How to save/export a VM? -

Bob Goodwin - Zuni, Virginia, USA bobgoodwin at wildblue.net
Fri Jul 25 19:22:02 UTC 2014


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



More information about the users mailing list