MIGRATION OF SERVER FROM PROXMOX TO AWS

0buntu

New Member
Oct 2, 2021
8
0
1
30
Hello Members,

I have some VM on my on-premise proxmox environment, I need to move one of them to AWS because I need High-availability of the server, any help?
 
Last edited:
Have you checked the AWS documentation on importing images? https://aws.amazon.com/ec2/vm-import/ and https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html

If you could provide the VM config (qm config <VMID>) and the storage config (cat /etc/pve/storage.cfg), we might be able to help you with any additional steps required to get a raw image of your VM disks.

root@svr:~# qm config 102
boot: order=ide0
cores: 2
ide0: fivehundredgb:vm-102-disk-0,size=357968M
ide2: none,media=cdrom
memory: 4096
name: Bitrix24
net0: virtio=26:BD:7B:7F:BB:E1,bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: l26
scsihw: virtio-scsi-pci
smbios1: uuid=2760100d-b2ff-4c7c-833e-58ec0d4955ea
sockets: 2
vmgenid: 743360b5-7ab8-42a2-a0a4-a11f95b3e2b4
root@svr:~#

root@svr:~# cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content vztmpl,iso,backup

lvmthin: local-lvm
thinpool data
vgname pve
content images,rootdir

zfspool: fivehundredgb
pool fivehundredgb
content images,rootdir
mountpoint /fivehundredgb
nodes svr

root@svr:~#
 
As this is a ZVol, you can simply copy from the block device /dev/zvol/fivehundredgb/vm-102-disk-0 to a file with the `dd` command.

Create a backup first, just to be safe! Test it to see that it is working!
Make sure the VM is not running (for consistency).

Then run dd if=/dev/zvol/fivehundredgb/vm-102-disk-0 of=/path/to/file bs=4M. This will create the file at `/path/to/file` and copy all data to it.

If you have enough space, a simpler method would be to move the disk to the `local` storage with the format `raw`. This can be done in the GUI.
 
Last edited:
This step is completed.

1640721768973.png
As this is a ZVol, you can simply copy from the block device /dev/zvol/fivehundredgb/vm-102-disk-0 to a file with the `dd` command.

Create a backup first, just to be safe! Test it to see that it is working!
Make sure the VM is not running (for consistency).

Then run dd if=/dev/zvol/fivehundredgb/vm-102-disk-0 of=/path/to/file bs=4M. This will create the file at `/path/to/file` and copy all data to it.

If you have enough space, a simpler method would be to move the disk to the `local` storage with the format `raw`. This can be done in the GUI.
 

Attachments

  • 1640698637366.png
    1640698637366.png
    15.2 KB · Views: 21
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!