Now that I have a working Centos7 VM how do I save it and transfer it ti a second computer?
I can't seem to find this, perhaps I don't know the right terms?
Bob
If it is a kvm vm and you are using cow file as the disks back-end, you can just copy the files to the new machine, and copy the machine xml from /etc/libvirt/qemu/vm.xml to the new machine and use `virsh define vm.xml` to recreate it
*-- Rabin*
On Fri, Jul 25, 2014 at 5:15 PM, Bob Goodwin - Zuni, Virginia, USA < bobgoodwin@wildblue.net> wrote:
Now that I have a working Centos7 VM how do I save it and transfer it ti a second computer?
I can't seem to find this, perhaps I don't know the right terms?
Bob
-- http://www.qrz.com/db/W2BOD box10 Fedora-20/64bit Linux/XFCE
-- users mailing list users@lists.fedoraproject.org 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
On 25.07.2014 16:35, Rabin Yasharzadehe wrote:
If it is a kvm vm and you are using cow file as the disks back-end, you can just copy the files to the new machine, and copy the machine xml from /etc/libvirt/qemu/vm.xml to the new machine and use `virsh define vm.xml` to recreate it
OK, 'QEMU *QCOW* Image' files. And what about 'QEMU *QED* Image' files?
*-- Rabin*
On Fri, Jul 25, 2014 at 5:15 PM, Bob Goodwin - Zuni, Virginia, USA < bobgoodwin@wildblue.net> wrote:
Now that I have a working Centos7 VM how do I save it and transfer it ti a second computer?
I can't seem to find this, perhaps I don't know the right terms?
Bob
-- http://www.qrz.com/db/W2BOD box10 Fedora-20/64bit Linux/XFCE
-- users mailing list users@lists.fedoraproject.org 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
libvirt fan club
On 07/25/14 10:52, poma wrote:
On 25.07.2014 16:35, Rabin Yasharzadehe wrote:
If it is a kvm vm and you are using cow file as the disks back-end, you can just copy the files to the new machine, and copy the machine xml from /etc/libvirt/qemu/vm.xml to the new machine and use `virsh define vm.xml` to recreate it
OK, 'QEMU *QCOW* Image' files. And what about 'QEMU *QED* Image' files?
*-- Rabin*
libvirt fan club
I am being overwhelmed with new terms, e.g. 'QEMU *QCOW.*
All I really want is the name of a file I can save, or is that not possible?
Bob
On 25.07.2014 16:59, Bob Goodwin - Zuni, Virginia, USA wrote:
On 07/25/14 10:52, poma wrote:
On 25.07.2014 16:35, Rabin Yasharzadehe wrote:
If it is a kvm vm and you are using cow file as the disks back-end, you can just copy the files to the new machine, and copy the machine xml from /etc/libvirt/qemu/vm.xml to the new machine and use `virsh define vm.xml` to recreate it
OK, 'QEMU *QCOW* Image' files. And what about 'QEMU *QED* Image' files?
*-- Rabin*
libvirt fan club
I am being overwhelmed with new terms, e.g. 'QEMU *QCOW.*
All I really want is the name of a file I can save, or is that not possible?
Bob
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/htm... 19.5. Migrating with virt-manager
Unable to migrate guest: unsupported configuration: Domain requires KVM, but it is not available. Check that virtualization is enabled in the host BIOS, and host configuration is setup to load the kvm modules. :)
kvm fan club
On 25.07.2014 17:31, poma wrote:
On 25.07.2014 16:59, Bob Goodwin - Zuni, Virginia, USA wrote:
On 07/25/14 10:52, poma wrote:
On 25.07.2014 16:35, Rabin Yasharzadehe wrote:
If it is a kvm vm and you are using cow file as the disks back-end, you can just copy the files to the new machine, and copy the machine xml from /etc/libvirt/qemu/vm.xml to the new machine and use `virsh define vm.xml` to recreate it
OK, 'QEMU *QCOW* Image' files. And what about 'QEMU *QED* Image' files?
*-- Rabin*
libvirt fan club
I am being overwhelmed with new terms, e.g. 'QEMU *QCOW.*
All I really want is the name of a file I can save, or is that not possible?
Bob
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/htm... 19.5. Migrating with virt-manager
Unable to migrate guest: unsupported configuration: Domain requires KVM, but it is not available. Check that virtualization is enabled in the host BIOS, and host configuration is setup to load the kvm modules. :)
kvm fan club
BTW Bob, what are this "save" & "export"? :) 'Clone' or/and 'Migrate' in libvirt terminology?
bios fan club
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.
On 25.07.2014 17:47, poma wrote:
On 25.07.2014 17:31, poma wrote:
On 25.07.2014 16:59, Bob Goodwin - Zuni, Virginia, USA wrote:
On 07/25/14 10:52, poma wrote:
On 25.07.2014 16:35, Rabin Yasharzadehe wrote:
If it is a kvm vm and you are using cow file as the disks back-end, you can just copy the files to the new machine, and copy the machine xml from /etc/libvirt/qemu/vm.xml to the new machine and use `virsh define vm.xml` to recreate it
OK, 'QEMU *QCOW* Image' files. And what about 'QEMU *QED* Image' files?
*-- Rabin*
libvirt fan club
I am being overwhelmed with new terms, e.g. 'QEMU *QCOW.*
All I really want is the name of a file I can save, or is that not possible?
Bob
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/htm... 19.5. Migrating with virt-manager
Unable to migrate guest: unsupported configuration: Domain requires KVM, but it is not available. Check that virtualization is enabled in the host BIOS, and host configuration is setup to load the kvm modules. :)
kvm fan club
BTW Bob, what are this "save" & "export"? :) 'Clone' or/and 'Migrate' in libvirt terminology?
bios fan club
And the rest of the well made "virt" docs is here, https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/#_V... Good luck with the libvirt. ;)
void fan club
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
On Fri, 25 Jul 2014 15:22:02 -0400 Bob Goodwin - Zuni, Virginia, USA wrote:
Is this the image file you're talking about?
<source file='/var/lib/libvirt/images/Centos7.qcow2'/>
Yep. The name just depends on which version of libvirt created it. Very old ones tend to be named .img, with newer versions it gives a different suffix depending on what kind of file it created.
On 07/25/14 15:43, Tom Horsley wrote:
On Fri, 25 Jul 2014 15:22:02 -0400 Bob Goodwin - Zuni, Virginia, USA wrote:
Is this the image file you're talking about?
<source file='/var/lib/libvirt/images/Centos7.qcow2'/>
Yep. The name just depends on which version of libvirt created it. Very old ones tend to be named .img, with newer versions it gives a different suffix depending on what kind of file it created.
Sure enough, that worked, I have a duplicate of Centos7 in the VM on this box10 in the VM in box7 now. I think I did as you suggested but in the end I told it to import the Centos7.qcow2 file, it churned slowly and gradually produced an exact copy, hopefully it will all work on a reboot ...
That file was huge, I didn't check the size and just sent it to my NFS server before sending it to box7, 10+ gigs, it took time but I've got my XFCE4 desktop configured as I want it, no fuss no muss!
Another hurdle overcome, thanks to all,
Bob
On 07/25/14 17:33, Joe Zeff wrote:
On 07/25/2014 01:50 PM, Bob Goodwin - Zuni, Virginia, USA wrote:
it took time but I've got my XFCE4 desktop configured as I want it, no fuss no muss!
Wouldn't it have been easier just to copy across $HOME if that's all you needed?
Possibly if that could be put in the VM. It would also be simpler to make an ordinary Centos7 install if I really needed it. It's just an exercise to see what can be done the provided Virtual Machine Manager. It's there and I will install Fedora 21 beta in it eventually.
Bob