LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 01-20-2012, 10:24 AM   #1
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 12.10
Posts: 257

Rep: Reputation: 25
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.
 
Old 01-22-2012, 01:16 AM   #2
vishnu_sreekumar
Member
 
Registered: Jan 2006
Location: India
Distribution: Ubuntu, RHEL, Debian
Posts: 49

Rep: Reputation: 20
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
 
Old 01-23-2012, 04:14 AM   #3
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 12.10
Posts: 257

Original Poster
Rep: Reputation: 25
I tried this but got the exact same error. Can you recommend any decent management tools that can be installed without the dependency hell?
 
Old 02-01-2012, 02:19 AM   #4
vishnu_sreekumar
Member
 
Registered: Jan 2006
Location: India
Distribution: Ubuntu, RHEL, Debian
Posts: 49

Rep: Reputation: 20
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?
 
Old 02-02-2012, 12:25 AM   #5
Alekseyka2
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
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
 
Old 02-02-2012, 04:12 PM   #6
saifelyzal
LQ Newbie
 
Registered: Jun 2011
Distribution: Redhat
Posts: 28

Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cannot connect to newly created vm's using virt-viewer DraughtGlobe Linux - Virtualization and Cloud 2 03-08-2011 02:02 PM
LXer: Hacking libvirt/virsh/virt-manager/virt-install at Xen 4.0 Dom0 on top of Ubunt LXer Syndicated Linux News 0 05-06-2010 02:50 PM
LXer: Virt-install&Virt-manager at Xen 4.0-rc8 (2.6.32.10 pvops) Dom0 on top Ubuntu K LXer Syndicated Linux News 0 03-26-2010 09:41 PM
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Debian 5 05-29-2009 02:02 PM
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Linux - Newbie 2 05-28-2009 08:51 AM


All times are GMT -5. The time now is 09:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration