proxmox - Migrate and attach existing disk of a VM to another VM on remote machine -
there 2 physical servers proxmox (proxmox-ve 4.2) installed on them, each 1 handles few vms , containers. these servers (almost) isolated , there no cluster/shared storage/additional storage, etc. between them.
a vm has been setup , configured it's os , application(s) on proxmox#1 should moved proxmox#2. in prior versions of proxmox, easy moving vm's disk image server using rsync or scp. in recent versions of proxmox, storage storing vm's disk separated parent host using lvmthin , there logical volume every single vm, state, snapshot, etc.
as not want install os , setup applications, how can migrate existing vm disk image proxmox#1 proxmox#2 , attach vm created main disk?
i found tricky way , it's easy can not believe.
on source (proxmox #1):
first, have use "move disk" in order access vm's disk raw or qcow2 file. using web interface, go datacenter
--> storage
, select local
. click edit
and in content
drop down, select disk image
("iso image", "container template" , "vzdump backup file" selected). put "max backups" 0 or 1 if ok
button disabled. select vm
on left, go hardware
tab, select hard disk
, click move disk
. on target storage
of pop-up box, select local
, choose appropriate format
. "qemu image format(qcow2)" ok in case. can check "delete source" or delete manually later (this suggested). click move disk
, after few minutes, vm disk ready. it's dumped in /var/lib/vz/images/vmid/
. when done, unselect disk image
datacenter --> storage
, select local
, click ok
.
on destination (proxmox #2):
using web interface, go datacenter --> storage
, select local
. click edit
and in content
drop down, select disk image
("iso image", "container template" , "vzdump backup file" selected). put "max backups" 0 or 1 if ok
button disabled. create vm
same specifications had on source server, select local
drop down in storage
section of hard disk
tab. not turn on machine. go /var/lib/vz/images/vmid/
, remove vm-vmid-disk-1.qcow2
. move image dumped on source server (proxmox #1) destination server (proxmox #2) '/var/lib/vz/images/vmid/' vm-vmid-disk-1.qcow2
name using rsync
or similar tools.
select vm
on left, go hardware
tab, select hard disk
, click move disk
. on target storage
of pop-up box, select local-lvm
, choose appropriate format
. when done, unselect disk image
datacenter --> storage
, select local
, click ok
.
turn on vm!
Comments
Post a Comment