[libvirt] Fail to import available VM image

Jun Koi junkoi2004 at gmail.com
Tue Feb 14 14:45:49 UTC 2012


On Tue, Feb 14, 2012 at 6:57 PM, Alex Jia <ajia at redhat.com> wrote:
> On 02/14/2012 06:17 PM, Jun Koi wrote:
>>
>> hi,
>>
>> i am trying to import an available KVM image to use with libvirt.
>>
>> i am not sure if this is the problem of libvirt or not, so bear in me
>> if that is not the case.
>>
>> i run the following command, and got error:
>>
>> # virt-install -n winxp -r 800 -f img.winxp --accelerate --vnc
>> --noautoconsole -v --import
>> ERROR    [Errno 10] No child processes
>>
>> all the softwares are of latest version (libvirt 0.9.10 and
>> virtinst-0.60.1)
>
> It works well with python-virtinst-0.600.0-5.el6 for me. if you may attach
> your
> .virtinst/virt-install.log, it should be helpful for debugging.
>

yes, below is the log content.

also, one thing i dont understand: why it says "Hypervisor name is
'vbox'" in the log? i dont specify any hypervisor name in my command,
and i want to use KVM for my image.

thanks.
Jun

.....
[Tue, 14 Feb 2012 22:10:54 virt-install 2385] DEBUG (cli:220) Launched
with command line:
/usr/local/bin/virt-install -n winxp -r 800 -f img.winxp --accelerate
--vnc --noautoconsole -v --import
[Tue, 14 Feb 2012 22:10:54 virt-install 2385] DEBUG (cli:326)
Requesting libvirt URI default
[Tue, 14 Feb 2012 22:10:55 virt-install 2385] DEBUG (cli:328) Received
libvirt URI vbox:///session
[Tue, 14 Feb 2012 22:10:55 virt-install 2385] DEBUG (virt-install:259)
Requesting virt method 'hvm', hv type 'default'.
[Tue, 14 Feb 2012 22:10:55 virt-install 2385] DEBUG (virt-install:469)
Received virt method 'hvm'
[Tue, 14 Feb 2012 22:10:55 virt-install 2385] DEBUG (virt-install:470)
Hypervisor name is 'vbox'
[Tue, 14 Feb 2012 22:10:55 virt-install 2385] DEBUG (cli:950)
--graphics compat generated: vnc
[Tue, 14 Feb 2012 22:10:55 virt-install 2385] ERROR (cli:439) An error
occurred, but the cause is unknown
[Tue, 14 Feb 2012 22:10:55 virt-install 2385] DEBUG (cli:440)
Traceback (most recent call last):
  File "/usr/local/bin/virt-install", line 1008, in <module>
    sys.exit(main())
  File "/usr/local/bin/virt-install", line 993, in main
    guest = build_guest_instance(conn, options)
  File "/usr/local/bin/virt-install", line 529, in build_guest_instance
    options.disksize, options.sparse, need_storage)
  File "/usr/local/bin/virt-install", line 164, in get_disks
    get_disk(disklist[idx], sizelist[idx], sparse, guest, is_file_path)
  File "/usr/local/bin/virt-install", line 142, in get_disk
    origdev=dev)
  File "/usr/local/lib/python2.6/dist-packages/virtinst/cli.py", line
732, in disk_prompt
    sparse=origsparse)
  File "/usr/local/lib/python2.6/dist-packages/virtinst/VirtualDisk.py",
line 659, in __init__
    self.vol_install)
  File "/usr/local/lib/python2.6/dist-packages/virtinst/VirtualDisk.py",
line 974, in __change_storage
    path)
  File "/usr/local/lib/python2.6/dist-packages/virtinst/VirtualDisk.py",
line 182, in _check_if_path_managed
    vol = lookup_vol_by_path()[0]
  File "/usr/local/lib/python2.6/dist-packages/virtinst/VirtualDisk.py",
line 164, in lookup_vol_by_path
    vol = conn.storageVolLookupByPath(path)
  File "/usr/lib/python2.6/dist-packages/libvirt.py", line 3077, in
storageVolLookupByPath
    if ret is None:raise libvirtError('virStorageVolLookupByPath()
failed', conn=self)
libvirtError: An error occurred, but the cause is unknown




More information about the libvir-list mailing list