[fedora-virt] How To Get Fedora 10 Guest To See USB Device?
Robert L Cochran
cochranb at speakeasy.net
Wed Jan 28 03:28:14 UTC 2009
Here is the xml I have for my Fedora 10 guest machine running in my
Fedora 10 host machine.
Question: if I plug a USB flash drive into the host, how do I make that
accessible (as in readable and writable) to the guest machine? Look at
the <hostdev... > ebtry I have coded below. I must be doing something
wrong because when I:
*plug the flash drive in to the host
*verify the drive is mounted on the host
*start the guest
the guest cannot see that flash drive. Is the xml formatted incorrectly?
Or do I have to do something in the guest? Or do I need to plug the
flash drive in after starting the guest?
<domain type='kvm'>
<name>fedora10x64</name>
<uuid>33e7e731-4e18-dd90-222e-b1df83a76cad</uuid>
<memory>2097152</memory>
<currentMemory>2097152</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset="localtime"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-kvm</emulator>
<disk type='file' device='disk'>
<source file='/var/lib/libvirt/images/fedora10x64.img'/>
<target dev='vda' bus='virtio'/>
</disk>
<interface type='bridge'>
<source bridge='br0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
</console>
<hostdev mode='subsystem' type='usb'>
<source>
<vendor id='0x067b'/>
<product id='0x2517'/>
</source>
</hostdev>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
<sound model='es1370'/>
</devices>
</domain>
------------------------------------------------------------------
Thanks much!
Bob Cochran
More information about the Fedora-virt
mailing list