Re: How to save/export a VM? -

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 07/25/14 11:52, Tom Horsley wrote:
On Fri, 25 Jul 2014 10:15:32 -0400
Bob Goodwin - Zuni, Virginia, USA wrote:

Now that I have a working Centos7 VM how do I save it and transfer it ti
a second computer?
    virsh dumpxml centos7 > centos7.xml

Replace centos7 with whatever your virtual machine name actually is.

That gives you an xml file which will contain one or more lines of the
form:

    <source file='/zooty/images/centos7.img'/>

Copy the xml file to the new machine, copy the disk image file it
mentions to the new machine as well, then on the new machine run

    virsh define centos7.xml

If you want to change the name of the image file, you can do
that, but be sure to change the xml to reflect the new name
before running the virsh define.

P.S. The virtual machine should not be running when you do this.

Is this the image file you're talking about?

<source file='/var/lib/libvirt/images/Centos7.qcow2'/>

I don't see anything xxx.img.

Bob

--
http://www.qrz.com/db/W2BOD
box10  Fedora-20/64bit Linux/XFCE

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux