Quote:
Originally Posted by elch
If your USB drive is recognized by Linux, you can allow Qemu direct access to it by using e.g. the -hdb or -hdc parameter. However, this needs to be done before Qemu is started. The only way of doing this during runtime is to use the Qemu console. Press CTRL-Alt-2. Then enter: "usb_add host:<VendorID>:<ProductID>" (you can get the VendorID and ProductID from the command "lsusb").
|
Thank you very much! I didn't even know about the qemu console before your post.
Quote:
Originally Posted by elch
You are pointing to the mounted device. I'm not even sure whether you can specify FAT for NTFS devices. Use "fdisk -l" (as root) to get a listing of your disks. Then use e.g. -hdc /dev/sdb. It's best to keep it unmounted while Qemu uses it. Otherwise you might run into data loss if both your Linux system and your virtual machine write on the disk.
According to this thread, you might be right by using FAT for an already-mounted directory. Perhaps you need to be -fda, like in the example they provided:
qemu winxp.img -fda fat:floppy:/my_directory
|
I used GParted (I became lazy after using Windows, so it is hard to use console now

). And I tried to use not only mounted drives, but also /dev/sda1:
Code:
qemu -hda image.qcow2 -hdc /dev/sdb1
Code:
qemu -hda image.qcow2 -hdb /dev/sda1
Code:
qemu -hda image.qcow2 -hdb fat:/dev/sdb1
but I only get the following error
Code:
qemu: could not open disk image fat:/dev/sdb1/
Although this works for Windows host according to
this
Also tried the following
Code:
qemu -hda image.qcow2 -drive file="fat::rw:"/media/mydisc"",index=1,media=disk
But my Windows guest doesn't see it...
It seems that Samba is the only way to access files for me.
Quote:
Originally Posted by elch
I don't think Qemu supports the X.org clipboard. The only way to solve this is to either enable VNC or Remote Desktop within your virtual machine. VNC is directly supported by Qemu but when you're using Windows XP, I'd rather prefer Remote Desktop because it's faster and more suitable. It's also perfectly supported by Linux (rdesktop).
|
The only solution I saw was using VNC and x2vnc:
http://borderworlds.dk/blog/20070224-00.html
Quote:
Originally Posted by elch
Hope this helps.
|
Thank you very much! This is very helpful!