Hi
I am completely new to this qemu stuff. I was looking for a way to transfer very large files such as unpacked kernel source without using a network.
One way is to use an usb stick. Copy the files from the host, umount the usb stick and launch the qemu guest such that you have a match for your usb details. I have tested copy from and paste to this usb stick
My ref was
https://bbs.archlinux.org/viewtopic.php?id=209828my result as an image showing mount tool and file manager
https://i.imgur.com/RRS8p5R.pngMy steps
1 Depending on whether you have an udev rule or a file manager that automounts inserted media, DISABLE that for use with this method please
2 Insert usb storage stick and do not mount
3
tce-load -i usb-utils && lsusb
4 Note the usb details mine were Bus 002 Device 002: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive
We only care about Bus and Device numbers.
In example below the order is bus then hostaddr
5) launch qemu (in example I am launching TC32 bit) and change your numbers to suit
qemu-system-i386 -enable-kvm -hda vdisk.img -m 4G \
> -device usb-ehci,id=usb,bus=pci.0,addr=0x4 -device usb-host,hostbus=2,hostaddr=2
Its easy to see hostbus will be bus so hostaddr must be Device
6) Inside guest qemu session use mount tool to mount usb device if your file manager/guest udev rule does not automount
######
Just tested umount in guest...pull stick and re-insert it
It got a new (host) device number so I will need to reboot guest, with updated numbers to use stick again this host session
YMMV