[virt-tools-list] How to install to a usb drive?

Cole Robinson crobinso at redhat.com
Mon Aug 1 14:03:44 UTC 2011


On 07/27/2011 05:49 PM, Dennis Jacobfeuerborn wrote:
> Hi,
> I'm trying to use virt-manager to install Centos 6 on an usb drive. The
> problem is that I don't see the device in the guest.
> 
> When I pass though the usb device it doesn't show up as a storage option
> during partitioning.
> 
> When I try to add /dev/sdb (the usb stick) as a USB storage device I get the
> following error:
> 
> Unable to complete install '<class 'libvirt.libvirtError'> internal error
> Process exited while reading console log output: char device redirected to
> /dev/pts/3
> qemu-kvm: -device usb-storage,drive=drive-usb-disk0,id=usb-disk0: Parameter
> 'driver' expects a driver name
> Try with argument '?' for a list.
> 

Is this a CentOS 6 host machine as well? Usually that error message means that
qemu doesn't recognized the device name libvirt requested, in this case
usb-storage. And indeed I'm pretty sure that we disable usb-storage at build
time for RHEL6.

If you are just trying to install to a physical usb stick, attach it to the VM
as a regular disk device and _not_ usb storage.

- Cole

> Traceback (most recent call last):
>   File "/usr/share/virt-manager/virtManager/create.py", line 1561, in do_install
>     dom = guest.start_install(False, meter = meter)
>   File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 973, in
> start_install
>     return self._do_install(consolecb, meter, removeOld, wait)
>   File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1038, in
> _do_install
>     "install")
>   File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1009, in
> _create_guest
>     dom = self.conn.createLinux(start_xml, 0)
>   File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1270, in createLinux
>     if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
> libvirtError: internal error Process exited while reading console log output:
> char device redirected to /dev/pts/3
> qemu-kvm: -device usb-storage,drive=drive-usb-disk0,id=usb-disk0: Parameter
> 'driver' expects a driver name
> Try with argument '?' for a list.
> 
> What do I have to do to make it properly show up as /dev/sda in the guest?
> 
> Regards,
>   Dennis
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list




More information about the virt-tools-list mailing list