Hi Jun, I assume you haven't changed libvirt default URI, it may be a issue, I want to know whether it works for you if you explicitly specify --connect qemu:///system with virt-install? I think a root reason probably is your disk image location, the log said it can't find storage volume, if you put img.winp under the /var/lib/libvirt/images, then give a disk absolute path to virt-install, Does it work for you? Regards, Alex ----- Original Message ----- From: "Jun Koi" <junkoi2004@xxxxxxxxx> To: "Alex Jia" <ajia@xxxxxxxxxx> Cc: libvir-list@xxxxxxxxxx Sent: Tuesday, February 14, 2012 10:45:49 PM Subject: Re: Fail to import available VM image On Tue, Feb 14, 2012 at 6:57 PM, Alex Jia <ajia@xxxxxxxxxx> 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 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list