View Single Post
  #6  
Old 5th March 2010, 23:55
unclecameron unclecameron is offline
Senior Member
 
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
Default

I have also tried to
Code:
virsh
unregister c
but it said there's no such domain, then I updated my switches to virt-install man page for squeeze, so it looks like:
Code:
virt-install --connect qemu:///system -n sq1 -r 1024 --vcpus=8 \
--file=/home/vm/sq1.qcow5 size=50 \
--location=http://ftp.us.debian.org/debian/dists/squeeze/main/installer-amd64/ \
-vnc :2 --noautoconsole --os-type=linux --os-variant=debiansqueeze \
--accelerate --network=bridge:br0 --hvm
but I get the same error:
Code:
ERROR    Guest name 'c' is already in use.
I have also tried using
Code:
virt-install --prompt
to do it interactively, but that script errors out with
Code:
ERROR    this function is not supported by the hypervisor: virConnectNumOfDefinedStoragePools
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 972, in <module>
    main()
  File "/usr/bin/virt-install", line 762, in main
    options.sparse, options.nodisks, guest, conn)
  File "/usr/bin/virt-install", line 314, in get_disks
    get_disk(disk, size, sparse, guest, conn, is_file_path)
  File "/usr/bin/virt-install", line 280, in get_disk
    d = cli.disk_prompt(None, kwargs)
  File "/usr/lib/pymodules/python2.5/virtinst/cli.py", line 427, in disk_prompt
    dev = VirtualDisk(**arg_dict)
  File "/usr/lib/pymodules/python2.5/virtinst/VirtualDisk.py", line 372, in __init__
    self.__validate_params()
  File "/usr/lib/pymodules/python2.5/virtinst/VirtualDisk.py", line 863, in __validate_params
    self.__check_if_path_managed()
  File "/usr/lib/pymodules/python2.5/virtinst/VirtualDisk.py", line 733, in __check_if_path_managed
    os.path.dirname(self.path))
  File "/usr/lib/pymodules/python2.5/virtinst/util.py", line 553, in lookup_pool_by_path
    inactive_list = conn.listDefinedStoragePools()
  File "/usr/lib/python2.5/site-packages/libvirt.py", line 1583, in listDefinedStoragePools
    if ret is None: raise libvirtError ('virConnectListDefinedStoragePools() failed', conn=self)
libvirtError: this function is not supported by the hypervisor: virConnectNumOfDefinedStoragePools
after I specify filesystem type. Racking my brains out
Reply With Quote