Hi,
I am trying to figure out how to do p2v and v2v migrations on a Centos 7 kvm host. With previous versions there was virt-p2v but that does not seem to exist with Centos-7.
I realize that if I am using shared storage, I can do live migrations but that does not help with p2v migrations.
Does anyone know what the recommended procedure is for migrating either physical or virtual machines to Centos-7 is?
I have tried searching for the answer but my google foo is not being helpful.
Regards,
Hi
I do this last week, and I use CloneZilla to generate a file image from a phisical server running Ubuntu and after that, used Clonezilla to restore into KVM hypervisor with no tears...
Very smoothly...
Cheers
2014-08-19 14:21 GMT-03:00 me@tdiehl.org:
Hi,
I am trying to figure out how to do p2v and v2v migrations on a Centos 7 kvm host. With previous versions there was virt-p2v but that does not seem to exist with Centos-7.
I realize that if I am using shared storage, I can do live migrations but that does not help with p2v migrations.
Does anyone know what the recommended procedure is for migrating either physical or virtual machines to Centos-7 is?
I have tried searching for the answer but my google foo is not being helpful.
Regards,
-- Tom me@tdiehl.org Spamtrap address me123@tdiehl.org _______________________________________________ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Do you get it??
2014-08-19 14:25 GMT-03:00 Gilberto Nunes gilberto.nunes32@gmail.com:
Hi
I do this last week, and I use CloneZilla to generate a file image from a phisical server running Ubuntu and after that, used Clonezilla to restore into KVM hypervisor with no tears...
Very smoothly...
Cheers
2014-08-19 14:21 GMT-03:00 me@tdiehl.org:
Hi,
I am trying to figure out how to do p2v and v2v migrations on a Centos 7 kvm host. With previous versions there was virt-p2v but that does not seem to exist with Centos-7.
I realize that if I am using shared storage, I can do live migrations but that does not help with p2v migrations.
Does anyone know what the recommended procedure is for migrating either physical or virtual machines to Centos-7 is?
I have tried searching for the answer but my google foo is not being helpful.
Regards,
-- Tom me@tdiehl.org Spamtrap address me123@tdiehl.org _______________________________________________ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
-- Obrigado
Cordialmente
Gilberto Ferreira
Konnecta TI Tecnologia - Sistemas de Virtualização, Soluções de Armazenamento de Dados, Criação de SAN/NAS, Zimbra Mail Server, Implantação de Linux e Windows server.
Fundação Softville Rua Otto Boehm, 48
(47) 9676-7530
Skype: gilberto.nunes36
www.konnectati.com.br
blog.konnectati.com.br
On Wed, 20 Aug 2014, Gilberto Nunes wrote:
Do you get it??
Yes, I got it working. Turned out it was much simpler than I was making it. I did not need clonezilla or anything else except rsync.
What I did was a minimal install of the same os the original machine was running, and then rsync the original machine over top of the new VM, excluding things like fstab, inittab, and other things that are specific to the hardware.
This allows me to keep the original machine on line until just before I am ready to kill it off. When I am ready to kill off the old machine and start the new one I stop all externally accessible services, change the network config to reflect the way I want it in production, do 1 last rsync, reboot and I am live.
Typical down time has been less than 15 minutes.
It takes a little tinkering to figure out the stuff that should be excluded but once I got that it went well.
Thanks for the help.
Regards,
On Tue, 19 Aug 2014, Gilberto Nunes wrote:
Hi
I do this last week, and I use CloneZilla to generate a file image from a phisical server running Ubuntu and after that, used Clonezilla to restore into KVM hypervisor with no tears...
Thanks for the info. I was kinda hoping for a solution using tools that are supplied with Centos but this sounds feasible so I will give it a try.
Nice
Keep me posted... I wanna see you progress and I'll try help..
Cheers
2014-08-20 10:54 GMT-03:00 me@tdiehl.org:
On Tue, 19 Aug 2014, Gilberto Nunes wrote:
Hi
I do this last week, and I use CloneZilla to generate a file image from a phisical server running Ubuntu and after that, used Clonezilla to restore into KVM hypervisor with no tears...
Thanks for the info. I was kinda hoping for a solution using tools that are supplied with Centos but this sounds feasible so I will give it a try.
-- Tom me@tdiehl.org Spamtrap address me123@tdiehl.org
2014-08-19 14:21 GMT-03:00 me@tdiehl.org:
Hi,
I am trying to figure out how to do p2v and v2v migrations on a Centos 7 kvm host. With previous versions there was virt-p2v but that does not seem
to
exist with Centos-7.
I realize that if I am using shared storage, I can do live migrations
but
that does not help with p2v migrations.
Does anyone know what the recommended procedure is for migrating either physical or virtual machines to Centos-7 is?
I have tried searching for the answer but my google foo is not being helpful.
Regards,
-- Tom me@tdiehl.org Spamtrap address me123@tdiehl.org _______________________________________________ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
On Wed, Aug 20, 2014 at 9:54 AM, me@tdiehl.org wrote:
On Tue, 19 Aug 2014, Gilberto Nunes wrote:
Hi
I do this last week, and I use CloneZilla to generate a file image from a phisical server running Ubuntu and after that, used Clonezilla to restore into KVM hypervisor with no tears...
Thanks for the info. I was kinda hoping for a solution using tools that are supplied with Centos but this sounds feasible so I will give it a try.
One of my favorite approaches, which is *FAST*, is to take the live server down and make tarballs of all its relevant filesystems with a live CD, and possibly an NFS share. Store the tarballs for reference, and use a live CD or PXE toolkit to allow access to the disk images in the new virtual machine.
Then create partitions as needed, mount them, untar the contents onto the partitions, and edit the mounted /etc/fstab. Also do a "grub install" inside the chroot cage, and unless your underlying virtualization.
Reboot from the new disk image, and voila. Working virtual environment. It can take tuning to automate or optimize it, to install virtualization toolkits or best configure the network, but I've installed roughly..... 18,000 systems this way, for both virtualization and hardware operating systems. The tarballs allow excellent source control of the underlying system, and easy tuning of the base OS image: just untar them and do a 'chroot' into them, and do manual editing or yum install or whatever. Exit the chroot, and tar them back up, and deploy with the new image.
This is generally *MUCH, MUCH* faster than replicating disk images or doing a pre-configured kickstart installation.
On 8/21/2014 3:41 AM, Nico Kadel-Garcia wrote:
On Wed, Aug 20, 2014 at 9:54 AM, me@tdiehl.org wrote:
On Tue, 19 Aug 2014, Gilberto Nunes wrote:
Hi
I do this last week, and I use CloneZilla to generate a file image from a phisical server running Ubuntu and after that, used Clonezilla to restore into KVM hypervisor with no tears...
Thanks for the info. I was kinda hoping for a solution using tools that are supplied with Centos but this sounds feasible so I will give it a try.
One of my favorite approaches, which is *FAST*, is to take the live server down and make tarballs of all its relevant filesystems with a live CD, and possibly an NFS share. Store the tarballs for reference, and use a live CD or PXE toolkit to allow access to the disk images in the new virtual machine.
How about using FSArchiver from a live CD to create the backup image(s) ? http://www.fsarchiver.org/Main_Page
CloneZilla is also my recommendation. I've used it for Centos 5/6 and Windows 2008 P2V to VMWare or Hyper-V and it gets the job done. I've even V2V between VMWare and Hyper-V and it worked for Windows and Linux VMs. ---
Regards, Geoff Hodder
On 2014-08-21 19:05, Zoltan Frombach wrote:
On 8/21/2014 3:41 AM, Nico Kadel-Garcia wrote: On Wed, Aug 20, 2014 at 9:54 AM, me@tdiehl.org wrote: On Tue, 19 Aug 2014, Gilberto Nunes wrote: Hi I do this last week, and I use CloneZilla to generate a file image from a phisical server running Ubuntu and after that, used Clonezilla to restore into KVM hypervisor with no tears... Thanks for the info. I was kinda hoping for a solution using tools that are supplied with Centos but this sounds feasible so I will give it a try.
One of my favorite approaches, which is *FAST*, is to take the live server down and make tarballs of all its relevant filesystems with a live CD, and possibly an NFS share. Store the tarballs for reference, and use a live CD or PXE toolkit to allow access to the disk images in the new virtual machine.
How about using FSArchiver from a live CD to create the backup image(s) ? http://www.fsarchiver.org/Main_Page [1]
_______________________________________________ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt [2]
Links: ------ [1] http://www.fsarchiver.org/Main_Page [2] http://lists.centos.org/mailman/listinfo/centos-virt
On Tue, Aug 19, 2014 at 1:21 PM, me@tdiehl.org wrote:
Hi,
I am trying to figure out how to do p2v and v2v migrations on a Centos 7 kvm host. With previous versions there was virt-p2v but that does not seem to exist with Centos-7.
I realize that if I am using shared storage, I can do live migrations but that does not help with p2v migrations.
Does anyone know what the recommended procedure is for migrating either physical or virtual machines to Centos-7 is?
While maybe not officially recommended, you could rsync [0] the OS over.
You have a couple of options if you choose to rsync: 1) set up partitions, mount them in a rescue environment, and rsync most everything (certain items from /dev/ can be excluded and everything from /sys/ and /proc/, not to mention NFS mount points, etc). Then tweak fstab, chroot to install grub, and possibly rebuild the initrd/initramfs with proper modules (might need virtio, etc). There are other nuances like MAC addresses on interfaces (if HWADDR is defined in your network-scripts files), but those would be a possible gotcha even if you used Clonezilla. 2) set up partitions, install a fresh copy of CentOS7, then rsync everything over top (means you don't have to sync identical files).
You'll need knowledge of a bunch to do the manual operations (that otherwise would be automated by anaconda) for the rsync method. But the upside is I've managed to keep production boxes up and minimized downtime (maybe slightly more latency/delay on the production host, but it wasn't noticeable).
[0] https://wiki.archlinux.org/index.php/Full_system_backup_with_rsync
On Thu, Aug 21, 2014 at 7:25 PM, SilverTip257 silvertip257@gmail.com wrote:
On Tue, Aug 19, 2014 at 1:21 PM, me@tdiehl.org wrote:
Hi,
I am trying to figure out how to do p2v and v2v migrations on a Centos 7 kvm host. With previous versions there was virt-p2v but that does not seem to exist with Centos-7.
I realize that if I am using shared storage, I can do live migrations but that does not help with p2v migrations.
Does anyone know what the recommended procedure is for migrating either physical or virtual machines to Centos-7 is?
While maybe not officially recommended, you could rsync [0] the OS over.
If you go this route, boot with a Live DVD and make a tarball, or use "star" to make an SELinux aware tarball. That way, you have a copy to store, label, and unpack into a chroot cage and edit and propagate elsewhere, as needed.
Rsync can be efficient, but transmitting and uncompressing a tarball is *much faster*. Put it in the swap partition temporarily, if you need to.