migration vm to proxmox with san

copymaster

Member
Nov 25, 2009
183
0
16
Hi Guys

Well i try to migrate from vm to a proxmox cluster and followed the wiki.
So i copied the vmdk file to the proxmox server and converted it with qemu-img.

Now the wiki says: copy the vm image to /var/lib/vz/images/VMID....
Well i want to store the vm on a san which is located under /dev/pve1 (i think)

So i copied the vm image to the location /dev/mapper/pve1--disk--104--2 and made a symlink from /dev/pve1/vm-104-disk2 to that location.

Now i want to change the hardware of the vm in webinterface, but it doesn't show up the copied image.....

How do i get the copied image to san so that i can use it?
 
Well i want to store the vm on a san which is located under /dev/pve1 (i think)

Please create a disk image first using the web interface. It should then show up under /dev/pve1/vm-<vmid>-....

Then copy the data into that image.
 
ok how do i copy the raw image that i created to the image on the san?

I already have an image on the san and the qemu-img-converted raw file is under /root

the image on the san is /dev/pve1/vm-104-disk1 which links to /dev/mapper/pve1--vm--104--disk--1

And the raw image is under /root/vmware.raw

Can you please give advice?
 
ok how do i copy the raw image that i created to the image on the san?

I already have an image on the san and the qemu-img-converted raw file is under /root

the image on the san is /dev/pve1/vm-104-disk1 which links to /dev/mapper/pve1--vm--104--disk--1

And the raw image is under /root/vmware.raw

Can you please give advice?
Hi,
if you search you will find the info in this forum.

Code:
dd if=/root/vmware.raw of=/dev/pve1/vm-104-disk-1 bs=1024k
Thats all!

Udo