[virt-tools-list] Creation of new VM fails if user qemu does not exist

Richard W.M. Jones rjones at redhat.com
Mon Oct 12 12:40:27 UTC 2009


On Sat, Oct 10, 2009 at 02:45:26PM +0200, Frederik Himpe wrote:
> If no user qemu exists on my system (Mandriva), then creation of a VM
> fails with this backtrace, even though /etc/libvirt/qemu.conf contains
> user = "root"
> group = "root"
> 
> 
> Traceback (most recent call last):
>   File "/usr/share/virt-manager/virtManager/create.py", line 1174, in validate
>     return self.validate_install_page(revalidate=False)
>   File "/usr/share/virt-manager/virtManager/create.py", line 1300, in validate_install_page
>     self.guest.installer.location)
>   File "/usr/share/virt-manager/virtManager/create.py", line 64, in check_path_search_for_qemu
>     broken_paths = VirtualDisk.check_path_search_for_user(conn.vmm, path, user)
>   File "/usr/lib/python2.6/site-packages/virtinst/VirtualDisk.py", line 213, in check_path_search_for_user
>     uid = _name_uid(username)
>   File "/usr/lib/python2.6/site-packages/virtinst/VirtualDisk.py", line 78, in _name_uid
>     pwdinfo = pwd.getpwnam(user)
> KeyError: 'getpwnam(): name not found: qemu'
> 
> This seems to be caused by this patch: 
> http://cvs.fedoraproject.org/viewvc/rpms/python-virtinst/devel/virtinst-0.500.0-change-path-perms.patch?revision=1.1

That's a bug - please file one against virt-install in Bugzilla.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v




More information about the virt-tools-list mailing list