Migrate KVM to Proxmox PVE: Difference between revisions

From RARForge
Jump to navigation Jump to search
(Created page with "{{header}} == Info == [WIP] == raw info == * Source: LVM backed raw disk * Disk: /dev/drbd_hoplex-ha/hoplex-ha *Create Snapshot and Dump Image <source> /sbin/lvcreate -c 5...")
 
No edit summary
 
Line 13: Line 13:
dd if=/dev/drbd_hoplex-ha/hoplex-ha_1405799884 of=/raid/PVEmigrate/hoplex-ha/hoplex-ha_hoplex-ha__1405799884.img
dd if=/dev/drbd_hoplex-ha/hoplex-ha_1405799884 of=/raid/PVEmigrate/hoplex-ha/hoplex-ha_hoplex-ha__1405799884.img
</source>
</source>
*obtain the raw image size
<source>
qemu-img info /raid/PVEmigrate/hoplex-ha/hoplex-ha_hoplex-ha__1405799884.img
image: /raid/PVEmigrate/hoplex-ha/hoplex-ha_hoplex-ha__1405799884.img
file format: raw
virtual size: 260G (279172874240 bytes)
disk size: 260G
</source>
* create a VM with the required LVM size
* one the VM LV is created.. dd=<your image> of=new_lvm_device bs=1m


[[Category:How-to]]
[[Category:How-to]]
[[Category:Virtualization]]
[[Category:Virtualization]]

Latest revision as of 22:29, 19 July 2014

 RARforge :: Migrate KVM to Proxmox PVE

Info[edit]

[WIP]

raw info[edit]

  • Source: LVM backed raw disk
  • Disk: /dev/drbd_hoplex-ha/hoplex-ha
  • Create Snapshot and Dump Image

<source> /sbin/lvcreate -c 512 -p r -s -n /dev/drbd_hoplex-ha/hoplex-ha_1405799884 -L 1G /dev/drbd_hoplex-ha/hoplex-ha dd if=/dev/drbd_hoplex-ha/hoplex-ha_1405799884 of=/raid/PVEmigrate/hoplex-ha/hoplex-ha_hoplex-ha__1405799884.img </source>

  • obtain the raw image size

<source> qemu-img info /raid/PVEmigrate/hoplex-ha/hoplex-ha_hoplex-ha__1405799884.img image: /raid/PVEmigrate/hoplex-ha/hoplex-ha_hoplex-ha__1405799884.img file format: raw virtual size: 260G (279172874240 bytes) disk size: 260G </source>

  • create a VM with the required LVM size
  • one the VM LV is created.. dd=<your image> of=new_lvm_device bs=1m