1.1 KiB
General notes on migrating from Elastichosts to Proxmox.
One way to do this:
Create Proxmox KVM and add any large disks needed (e.g. if the server has a 100G /srv).
Stop all daemons on server.
rsync large directories (e.g. /srv, /opt, /home, /var) from Elastichosts server to Fork Sand server.
Power off server at Elastichosts.
Set new Elastichosts API key.
Download main / image from Elastichosts to sf-001 server (or other node). Just do this if the partition is 10G or less.
export EHURI=https://api.lax-p.elastichosts.com export EHAUTH=NUMB3RS:PASS
This copies the image from Elastichosts to Fork Sand:
./elastichosts-download.sh DISK-ID somename.img
Then add that image to the Proxmox cluster (moves from local disk to Ceph):
qm importdisk [vm ID to attach to] [disk image from Elastichosts] [Ceph pool name] qm importdisk 999 /home/jebba/somename.img krbd
Then in the Proxmox web GUI attach the disk
mount it in temporary system.
fsck.ext4 /dev/vdb1
mount /dev/vdb1 /mnt
chroot /mnt
Set new IP address.
vim network/interfaces