LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   virt-manager can't see newly created VM (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/virt-manager-can%27t-see-newly-created-vm-924816/)

Mark_667 01-20-2012 10:24 AM

virt-manager can't see newly created VM
 
I installed a system using the Create Virtual Machines Wizard in SLES 11 SP1, the installation went fine but the screen went blank part way through the first boot and I couldn't get it to respond so I closed the window it was using. I connected to QEMU in Virtual Machine Manager but it wasn't listed. Trying to create a new VM with the same details using the disk I'd just installed to gave the error 'A VM configuration already exists with that name.' Using a different name gave the error:

Error bringing up domain details: 'afd73b6b-5db3-aa48-1c73-12928c110386'
Code:

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 573, in show_details
    details = vmmDetails(self.get_config(), con.get_vm(uuid), self)
  File "/usr/share/virt-manager/virtManager/connection.py", line 655, in get_vm
    return self.vms[uuid]
KeyError: 'afd73b6b-5db3-aa48-1c73-12928c110386'

How do I get virt-manager to see my VM?
A virsh -c qemu:///system list lists it as still running.

vishnu_sreekumar 01-22-2012 01:16 AM

Try to stop the vm and undefine and then recreate it. The following commands should help
Quote:

virsh stop VM
virsh destroy VM
virsh undefine VM
Also, dump the configuration to an XML file before undefining the vm so that you can reuse the configs
Quote:

virsh dumpxml VM > VM-backup.xml

Mark_667 01-23-2012 04:14 AM

I tried this but got the exact same error. Can you recommend any decent management tools that can be installed without the dependency hell?

vishnu_sreekumar 02-01-2012 02:19 AM

I'm sorry, I use RHEL + KVM and the RHEV Manager (GUI) runs on Windows 2008. I think RHEV 3.0 has a java application to manage virtualization, still not sure if that can be used with SLES. Can you try to edit the vm name, id and mac address in the backup XML file and launch a new vm using that XML?

Alekseyka2 02-02-2012 12:25 AM

You can run your VM using XML file.
#virsh create /etc/libvirt/qemu/yourVM.xml
After that, you can see list of running VM:
#virsh list

saifelyzal 02-02-2012 04:12 PM

run virsh list
and check they any vm running if so
virsh destroy vmname
virsh undefine vmname
you should be able to create your vm once you undefine the vm


All times are GMT -5. The time now is 05:38 AM.