[virt-tools-list] Creation of new VM fails if user qemu does not exist
Frederik Himpe
fhimpe at telenet.be
Sat Oct 10 12:45:26 UTC 2009
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
--
Frederik Himpe <fhimpe at telenet.be>
More information about the virt-tools-list
mailing list