Migrate KVM to Proxmox PVE

From RARForge
Revision as of 22:29, 19 July 2014 by Robertr (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

 RARforge :: Migrate KVM to Proxmox PVE

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 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