Solved

Linux virtualization

Posted on 2013-12-23
1
277 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
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

For Backups Guest OS files and indexing(and application awareness), Veeam needs Admin rights in Guest OS(Windows and Linux). In Windows a Domain Administrator account, and in Linux root access to perform this type of Backups and also Restore.
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now