Migration one of my VPS from Proxmox to Cloudmin

hello,

i have couple of KVMs on Proxmox platform and am planning to move them over to cloudmin.. let me know if you recomend or suggest some improvements below..

Both the source and target os are going to ubuntu, dont want the risk the of switching the OS from ubuntu to centos but i think Centos might be better in the future.. Also the target IP is one of the nameservers .. and in effect NS1 would go down and NS2 will become active.

  1. install ubuntu 14.04 on the target KVM and get the virtualmin script installed* easier with cloudmin here.. one click, nice.
  2. update the packages and prep target KVM
  3. install PHP 7 for the TP package, because i am using this in the source KVM.
  4. backup the source virtual server and transfer the backup files to target KVM
  5. restore from backup 6.change the hostname and IP address references

or

  1. transfer the virtualserver from inside of the source KVM after connecting them in the cluster option, use Virtualmin transfer option. 5.change the hostname and IP address references

Any comments?

Status: 
Closed (works as designed)

Comments

We're not too familiar with Proxmox, but one option (if available) would be to backup the VMs on the original system to disk images, and then import these images into Cloudmin and use them to create new VMs on a new host.

i think proxmox has its own way of backing up and i am not able to get the original disk from VMA of theirs.. https://pve.proxmox.com/wiki/VMA

though this provides a good way to backup and restore in the proxmox environment.. it is not good for exporting or using it in a different virtualization platform.. that is one of the reasons to go away from proxmox .. otherwise their frontend is slick.. since cloudmin is using opensource.. it has its issues but provides openness.

thanks for your comment..

It sound like what you want is a tar format backup in "stop mode", where the VM was shut down at the time the backup was taken. It would be worth taking a look inside one of those to see if it contains the actual VM filesystem, or just the disk image (the latter being what Cloudmin can work with).

All you really need is the disk image, for that you have 2 choices:

1.- If you're using raw images on the VM, o emu images, just power off the VM and copy the file over to the new server. 2.- If you're using any kind of block device for your VMs (LVM based, or partitions, or iscsi attached storage, etc), use dd to dump an image of the VM to a file.

There are plenty of howtos on proxmox wiki to do both of them.

Even from a proxmox backup you can extract the VM disk as it is just a .tar, or tar.gz, or tar.lzo (depending on the compression method you used to perform the backup) file containing the Proxmox related configuration which will not be usable on the Cloudmin server for sure, and the disk images of the virtual machine the backup belongs to.

Thanks for the reply, i think i realized this some time back.. but i have do this action.. the VM has a big image of 180 GB :)

@ kawarmc and JamieCameron - So i basically copy the raw image over to cloudmin from proxmox.. then created an image from it.. all went fine.. after that i created a KVM.. using this image.. all ok.. but the kernel panicked inside of the guest.. which makes sense due to the config difference between proxmox and cloudmin.. so yes it is possible to migrate over proxmox kvm images to cloudmin .. but there might be worked involved to get it fully working and hence.. i think migrating virtualmin server is easier as compared to this method.. especially if the image is of 250 GB :)..

What was the kernel panic message exactly? I've seen images fail to boot in some cases where there is a mismatch between the disk device that the kernel expects vs. what is actually provided by KVM (ie. sda vs hda vs vda).

yes that is correct, its was about the hda vs vda.. but i guess i did not have the patience.. :( since this is a production server.. i do not want to take the chances.. but in short this is possible.. to migrate KVM disks from Proxmox to cloudmin.