[virt-tools-list] VirtInstall - error validating install location / global name 'virGetLastError' is not defined
Bogdan Rădulescu
bogdan.radulescu99 at gmail.com
Fri Mar 1 11:12:28 UTC 2013
Hello,
I am trying to run virt-install on a Slackware based distro and I get
errors when running with both --nodisk and with --disk
Obviously the /root/NimbleX-64-test.iso file is there but for some reason
virt-install doesn't want to accept that.
When running with --nodisk I get this error:
nimblex:~# virt-install --name test --ram 512 --nodisks --cdrom
NimbleX-64-test.iso -d
[Vi, 01 mar 2013 12:59:12 virt-install 15761] DEBUG (cli:220) Launched with
command line:
/usr/bin/virt-install --name test --ram 512 --nodisks --cdrom
NimbleX-64-test.iso -d
[Vi, 01 mar 2013 12:59:12 virt-install 15761] DEBUG (cli:325) Requesting
libvirt URI default
[Vi, 01 mar 2013 12:59:12 virt-install 15761] DEBUG (cli:327) Received
libvirt URI qemu:///system
[Vi, 01 mar 2013 12:59:12 virt-install 15761] DEBUG (virt-install:259)
Requesting virt method 'default', hv type 'default'.
[Vi, 01 mar 2013 12:59:12 virt-install 15761] DEBUG (virt-install:469)
Received virt method 'hvm'
[Vi, 01 mar 2013 12:59:12 virt-install 15761] DEBUG (virt-install:470)
Hypervisor name is 'kvm'
[Vi, 01 mar 2013 12:59:12 virt-install 15761] DEBUG (cli:934) DISPLAY is
set: graphics defaulting to VNC.
[Vi, 01 mar 2013 12:59:12 virt-install 15761] DEBUG (cli:952) --graphics
compat generated: vnc
[Vi, 01 mar 2013 12:59:12 virt-install 15761] DEBUG (DistroInstaller:209)
DistroInstaller location is a local file/path: /root/NimbleX-64-test.iso
[Vi, 01 mar 2013 12:59:12 virt-install 15761] DEBUG (DistroInstaller:235)
Error validating install location
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/virtinst/DistroInstaller.py",
line 231, in set_location
volName=stuple)
File "/usr/lib64/python2.7/site-packages/virtinst/VirtualDisk.py", line
659, in __init__
self.vol_install)
File "/usr/lib64/python2.7/site-packages/virtinst/VirtualDisk.py", line
974, in __change_storage
path)
File "/usr/lib64/python2.7/site-packages/virtinst/VirtualDisk.py", line
182, in _check_if_path_managed
vol = lookup_vol_by_path()[0]
File "/usr/lib64/python2.7/site-packages/virtinst/VirtualDisk.py", line
164, in lookup_vol_by_path
vol = conn.storageVolLookupByPath(path)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3387, in
storageVolLookupByPath
if ret is None:raise libvirtError('virStorageVolLookupByPath() failed',
conn=self)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 35, in __init__
err = virGetLastError()
NameError: global name 'virGetLastError' is not defined
[Vi, 01 mar 2013 12:59:12 virt-install 15761] ERROR (cli:438) Error
validating install location: Checking installer location failed: Could not
find media '/root/NimbleX-64-test.iso'.
[Vi, 01 mar 2013 12:59:12 virt-install 15761] DEBUG (cli:441)
Traceback (most recent call last):
File "/usr/bin/virt-install", line 304, in get_install_media
validate_install_media(guest, location, cdpath, cdinstall)
File "/usr/bin/virt-install", line 338, in validate_install_media
guest.installer.location = (location or cdpath)
File "/usr/lib64/python2.7/site-packages/virtinst/DistroInstaller.py",
line 237, in set_location
"Could not find media '%s'." % str(val)))
ValueError: Checking installer location failed: Could not find media
'/root/NimbleX-64-test.iso'.
Running with --disk path=/tmp/test.size=1G I get this:
nimblex:~# virt-install --name test --ram 512 --disk path=/tmp/test.size=1G
--cdrom /mnt/live/memory/data/NimbleX-64-test.iso -d
[Vi, 01 mar 2013 13:07:34 virt-install 16102] DEBUG (cli:220) Launched with
command line:
/usr/bin/virt-install --name test --ram 512 --disk path=/tmp/test.size=1G
--cdrom /mnt/live/memory/data/NimbleX-64-test.iso -d
[Vi, 01 mar 2013 13:07:34 virt-install 16102] DEBUG (cli:325) Requesting
libvirt URI default
[Vi, 01 mar 2013 13:07:34 virt-install 16102] DEBUG (cli:327) Received
libvirt URI qemu:///system
[Vi, 01 mar 2013 13:07:34 virt-install 16102] DEBUG (virt-install:259)
Requesting virt method 'default', hv type 'default'.
[Vi, 01 mar 2013 13:07:34 virt-install 16102] DEBUG (virt-install:469)
Received virt method 'hvm'
[Vi, 01 mar 2013 13:07:34 virt-install 16102] DEBUG (virt-install:470)
Hypervisor name is 'kvm'
[Vi, 01 mar 2013 13:07:34 virt-install 16102] DEBUG (cli:934) DISPLAY is
set: graphics defaulting to VNC.
[Vi, 01 mar 2013 13:07:34 virt-install 16102] DEBUG (cli:952) --graphics
compat generated: vnc
[Vi, 01 mar 2013 13:07:34 virt-install 16102] ERROR (cli:438) global name
'virGetLastError' is not defined
[Vi, 01 mar 2013 13:07:34 virt-install 16102] DEBUG (cli:441)
Traceback (most recent call last):
File "/usr/bin/virt-install", line 1015, in <module>
sys.exit(main())
File "/usr/bin/virt-install", line 1000, in main
guest = build_guest_instance(conn, options)
File "/usr/bin/virt-install", line 529, in build_guest_instance
options.disksize, options.sparse, need_storage)
File "/usr/bin/virt-install", line 164, in get_disks
get_disk(disklist[idx], sizelist[idx], sparse, guest, is_file_path)
File "/usr/bin/virt-install", line 137, in get_disk
dev, size = cli.parse_disk(guest, diskopts)
File "/usr/lib64/python2.7/site-packages/virtinst/cli.py", line 1610, in
parse_disk
format=fmt)
File "/usr/lib64/python2.7/site-packages/virtinst/VirtualDisk.py", line
659, in __init__
self.vol_install)
File "/usr/lib64/python2.7/site-packages/virtinst/VirtualDisk.py", line
974, in __change_storage
path)
File "/usr/lib64/python2.7/site-packages/virtinst/VirtualDisk.py", line
182, in _check_if_path_managed
vol = lookup_vol_by_path()[0]
File "/usr/lib64/python2.7/site-packages/virtinst/VirtualDisk.py", line
164, in lookup_vol_by_path
vol = conn.storageVolLookupByPath(path)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3387, in
storageVolLookupByPath
if ret is None:raise libvirtError('virStorageVolLookupByPath() failed',
conn=self)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 35, in __init__
err = virGetLastError()
NameError: global name 'virGetLastError' is not
defined
ERROR global name 'virGetLastError' is not defined
Hope you have some tips for me.
Regards,
Bogdan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20130301/7782497d/attachment.htm>
More information about the virt-tools-list
mailing list