0% found this document useful (0 votes)
572 views10 pages

P2V by Clonezilla PDF

This document discusses physical to virtual (P2V) migration using Clonezilla. It defines P2V as migrating a physical server's OS, applications, and data to a virtual machine. There are two types of P2V migration: hot migration where the source system remains running, and cold migration where the source is offline. The document provides a 3-step process for P2V using Clonezilla including preparing the destination VM, creating the VM, and migrating the data. It also discusses software options for P2V and provides guidance on using Clonezilla for imaging, restoring, and cloning in the migration step.

Uploaded by

ndarndar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
572 views10 pages

P2V by Clonezilla PDF

This document discusses physical to virtual (P2V) migration using Clonezilla. It defines P2V as migrating a physical server's OS, applications, and data to a virtual machine. There are two types of P2V migration: hot migration where the source system remains running, and cold migration where the source is offline. The document provides a 3-step process for P2V using Clonezilla including preparing the destination VM, creating the VM, and migrating the data. It also discusses software options for P2V and provides guidance on using Clonezilla for imaging, restoring, and cloning in the migration step.

Uploaded by

ndarndar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Physical to Virtual (P2V)

Migrating a physical server's operating system


(OS), applications, and data from that physical
server to a virtual-machine guest hosted on a
virtualized platform wikipedia
Hot migration
Source system is in running state
Recommended for static data, not good for
mail server, SQL server
Cold migration
Source system is offline
Clonezilla only works for cold migration
1

P2V

Source: http://p2vsolutions.net/
2

P2V 3 steps
1. Decide the destination VM
Install the required drivers of VM on source
machine (physical side)
2. Create VM
3. Migrate

Source http://planetvm.net/blog/?p=2108
3

Which Software Shall I Use?


No clear answer, Every P2V software has its own
strengths and weaknesses.
VMWare vCenter Convert
Virt-P2V
OpenQRM

Clonezilla can also be used to perform P2V,


i.e. in the step 3 migrate in the previous page.

image sources: vmware.com, libguestfs.org, openqrm-enterprise.com/


4

P2V by Clonezilla live


Physical machine side

Basic ideas
Before migrating, make sure the OS on the
physical machine has the required drivers for
the virtual machine which you want to move
to.
OS
GNU/Linux
Initrd is important
MS Windows
Sysprep
Image source: http://img21.imageshack.us/img21/9902/400mildrivers.jpg

Virtual Machine Side


For x86/x86-64
KVM/QEMU
Xen
VirtualBox
https://www.virtualbox.org/wiki/Migrate_Windows
Make use of MergeIDE before migrating
Enable CPU PAE and IO APIC

VMWare (Workstation, Fusion, Player, ESX...)


...

Image sources: linux-kvm.org, xenproject.org, www.virtualbox, vmware.com


6

Migrate by Clonezilla

Once step 1 and step 2 are done, you can migrate


the system by Clonezilla:
1. Imaging Ref: http://clonezilla.org/clonezilla-live-doc.php
Physical Image Restore to Virtual
machine
Recovery iso/zip CD or USB flash drive

P2V migrate by
Clonezilla

2. Cloning Ref: http://clonezilla.org/clonezilla-live-doc.php


Physical A local Virtual B
Physical A network Virtual B

Disk size:
Expert mode, choose -k1 to create the partition table
proportionally
Make sure the disk size is big enough
8

P2V by Clonezilla on Youtube


Clonezilla restore from ISO, P2V
http://www.youtube.com/watch?v=EMT81bgZMPA
CentOS / RHEL Linux Virtualization Part 1/3 : Creating
VMWare Disk Partition using Clonezilla
http://www.youtube.com/watch?v=21QTnVw_EHo
CentOS / RHEL Linux Virtualization Part 2/3: image migration
to VMWare using Clonezilla - NFS
http://www.youtube.com/watch?v=olJSXttInEo

P2V fails?

Possible reasons
Missing required drivers

E.g. Kernel panic not syncing : Attempted to kill init!


No required modules in initrd
Rescue mode then
mkinitrd v f initrd-${kver}.img ${kver}

Wrong arch, e.g. AMD64 OS i686 VM


MAC address of network card
Network is down. Service fails to start
Serial number of proprietary software depends
on hardware.
...
10

You might also like