Solved

Linux virtualization

Posted on 2013-12-23
1
281 Views
Last Modified: 2013-12-28
I am trying to clone a vm. I tried to copy the vm and trying dump the xml file.

Even though i have img file , I am getting error saying that domain node1-clone.img not found.

[root@Client-4 qemu]# cd /mnt/virtual/
[root@Client-4 virtual]# ls -l
total 53446968
-rw-------  1 qemu qemu 10737418240 Nov  2 21:53 dnsserver.img
-rw-r--r--  1 root root           1 Nov  2 21:52 foo
-rw-------  1 qemu qemu 10737418240 Nov  2 21:53 KDC-Server.img
drwx------  2 root root       16384 Oct 29 21:42 lost+found
-rw-------  1 qemu qemu 10737418240 Nov  2 21:54 NIS-Server.img
-rw-------  1 root root 10737418240 Nov  2 21:42 node1-clone.img
-rw-------  1 qemu qemu 10737418240 Nov  2 21:53 node1.img
-rw-------  1 root root 10737418240 Nov  2 21:51 node2.img
drwxr-xr-x 12 root root        4096 Oct 31 04:02 rhel6_3
-rw-r--r--  1 qemu qemu  3679453184 Nov  2 03:36 rhel-server-6.3-x86_64-dvd.iso
[root@Client-4 virtual]#
[root@Client-4 virtual]#
[root@Client-4 virtual]# virsh dumpxml node1-clone.img > foo
error: failed to get domain 'node1-clone.img'
error: Domain not found: no domain with matching name 'node1-clone.img'
0
Comment
Question by:ittechlab
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 19

Accepted Solution

by:
xterm earned 440 total points
ID: 39736584
Your syntax is wrong - it should be "virsh dumpxml <domain name>" aka, the name of your virtual machine, not the image file.  So if you named it node1, then do "virsh dumpxml node1 > node1.xml"
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Rebooted a CentOS 7 server and it wouldn't boot into the later Core version 5 107
Samba Question 11 107
SSL/TLS - openssl troubleshooting 3 61
SMTP log file for IMSVA 5 33
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question