Magicloud Magiclouds
2011-Sep-29 06:08 UTC
[libvirt-users] virsh cannot list broken guest.
Hi,
I am starting to learn using libvirt with kvm on CentOS 6.
Just used this command to start a guest:
virt-install -ntest -r1024 --vcpus=1
-c/var/lib/libvirt/images/CentOS-6.0-x86_64-netinstall.iso
--os-type=linux --os-variant=rhel6 --disk vol=kvmguests/test --vnc -v
--virt-type=kvm --check-cpu --prompt --arch=x86_64
Then I found out that I misconfigured vnc. And I do not know how to
gracefully stop qemu. So I killed it.
Then with the command, I got:
ERROR Guest name 'test' is already in use.
What is the name of your virtual machine?
But at this time, there is nothing listed in virsh:
Welcome to virsh, the virtualization interactive terminal.
Type: 'help' for help with commands
'quit' to quit
virsh # list
Id Name State
----------------------------------
virsh # connect qemu:///system
virsh # list
Id Name State
----------------------------------
virsh #
What should I do?
--
???????
???????
Magicloud Magiclouds
2011-Sep-29 06:53 UTC
[libvirt-users] virsh cannot list broken guest.
On Thu, Sep 29, 2011 at 2:08 PM, Magicloud Magiclouds <magicloud.magiclouds at gmail.com> wrote:> Hi, > ?I am starting to learn using libvirt with kvm on CentOS 6. > ?Just used this command to start a guest: > virt-install -ntest -r1024 --vcpus=1 > -c/var/lib/libvirt/images/CentOS-6.0-x86_64-netinstall.iso > --os-type=linux --os-variant=rhel6 --disk vol=kvmguests/test --vnc -v > --virt-type=kvm --check-cpu --prompt --arch=x86_64 > ?Then I found out that I misconfigured vnc. And I do not know how to > gracefully stop qemu. So I killed it. > ?Then with the command, I got: > ERROR ? ?Guest name 'test' is already in use. > What is the name of your virtual machine? > ?But at this time, there is nothing listed in virsh: > Welcome to virsh, the virtualization interactive terminal. > > Type: ?'help' for help with commands > ? ? ? 'quit' to quit > > virsh # list > ?Id Name ? ? ? ? ? ? ? ? State > ---------------------------------- > > virsh # connect qemu:///system > > virsh # list > ?Id Name ? ? ? ? ? ? ? ? State > ---------------------------------- > > virsh # > > ?What should I do? > -- > ??????? > ??????? >Seems like it is not only broken guests. I just installed another one. And successful. But still, nothing listed in virsh. -- ??????? ???????