migrate physical to proxmox

copymaster

Member
Nov 25, 2009
183
0
16
Hi
After reading
http://pve.proxmox.com/wiki/Migration_of_servers_to_Proxmox_VE

specially the part

Physical (running) server to Proxmox VE (KVM) using SelfImage



i like to do a migration via selfimage. But the wiki only talks about a local vm-disk. one should export the vm via

qemu-nbd -t /var/lib/vz/images/xxx/vm-xxx-disk.qcow2

This is good if you have the vm on the local storage. In my case the vm should be on a ISCSI/LVM VOlume on a SAN.

I found some entries within /dev/pve1 which is my lvm volume

Can i simply use

qemu-nbd -t /dev/pve1/vm-102-disk-1

as command???
 
Hi,
i think you must first create a qcow2-file. man qemu-nbd says:
DESCRIPTION Export Qemu disk image using NBD protocol.

I use local space to get the image and convert it with qemu-img to raw. Then i copy the rawfile with dd to the logical volume.
eg.:
Code:
dd if=vm-102-disk-1.raw of=/dev/pve1/vm-102-disk-1 bs=1024k

Udo
 
Hi Proxmox Team!

I'm new in using your product, but it's tastes grate! :D

So, is there any newer way to migrate physical (running) machine to logical volume? I don't have any local space to migrate my machines that way.

Thanks for your help.

Balázs