- Newest
- Most votes
- Most comments
While I understand your goal of importing VMs from Proxmox to AWS using Migration Hub Orchestrator (MHO), there are a few challenges and considerations to address based on the information provided.
First, it's important to note that VM Import/Export supports specific image formats for importing disks and VMs. These include Open Virtual Appliance (OVA), Stream-optimized ESX Virtual Machine Disk (VMDK), Fixed and Dynamic Virtual Hard Disk (VHD/VHDX), and raw format. The .qcow2 format used in Proxmox is not directly supported.
Your approach of converting the .qcow2 files to supported formats like .vmdk, .raw, and .vhdx is a good start. However, the errors you're encountering suggest that there might be issues with the conversion process or the resulting files.
For the "Disk Validation failed" error with the .vhdx format, this could indicate that the converted file doesn't meet the specific requirements for VM Import/Export. The "Unknown OS / Missing OS files" error for .vmdk and .raw formats suggests that the conversion process might not be preserving the necessary operating system files or metadata.
Creating an OVA file is a good approach, as it's one of the supported formats. However, creating a valid OVF descriptor file can be challenging without the proper tools or expertise.
Here are some suggestions to help you move forward:
-
Ensure that your converted files (.vmdk, .raw, .vhdx) are compatible with the specific requirements of VM Import/Export. This includes checking that the file system formats are supported (ext2, ext3, ext4, Btrfs, JFS, or XFS for Linux; NTFS for Windows).
-
When converting, try using the stream-optimized VMDK format specifically, as it's mentioned as compatible with VM Import/Export.
-
For creating an OVA, consider using a tool like virt-v2v, which can convert Proxmox VMs to OVA format. This might help in creating a more compatible OVA file.
-
If possible, try using the AWS CLI to import your VM instead of the MHO interface. This might provide more detailed error messages that could help in troubleshooting.
-
Verify that your VMs meet all the requirements for VM Import/Export, including supported operating systems, boot modes, and volume types.
-
If you're using KMS encryption for your S3 bucket where the VM files are stored, ensure that the vmimport role has the necessary permissions to decrypt the files.
Unfortunately, I don't have specific experience with exporting VMs from Proxmox and importing them into AWS using MHO. However, these suggestions should help you troubleshoot and potentially resolve the issues you're facing. If problems persist, you may need to reach out to AWS support for more specific guidance tailored to your exact setup and VM configurations.
Sources
Importing a VM as an image - VM Import/Export
Requirements for resources that you import with VM Import/Export - VM Import/Export
VM Import/Export
"Unsupported specified file format" when importing VM as an image from S3 | AWS re:Post
Fehlermedung 'ClientError: Disk validation failed [Failed to read bytes of data from input]' bei dem Versuch ein OVA als Image zu importieren | AWS re:Post
answered 2 years ago
Looks like your end goal is to import VMs to AWS. As for all the methods that you have tried so far for converting the ".qcow2" backup images to a supported format like ".vmdk" or ".raw", I believe the conversion process is what's resulting in the final image not meeting the pre-requisites for launching the VM on AWS.
Could you instead check if importing as a ".vmo.lzo" backup file works. Referencing below steps that you can follow:
- Generate a ".vmo.lzo" backup image for your VM on Proxmox.
- Extract the uncompressed vma file from the vmz.lzo backup file (Promox backup). $ lzop -d vzdump-qemu-xyz.xyz.vma.lzo
- Extract the raw VM image from the vma file to a directory called "raw-image". $ vma extract -v vzdump-qemu-xyz.xyz.vma ./raw-image
- You can then upload the raw VM image straight to S3 and import it.
You can further use qemu-img to convert to .vmdk if needed (Make sure it is stream optimized as the below command): $ qemu-img convert -O vmdk -o subformat=streamOptimized xyz.raw xyz.raw.vmdk
answered 2 years ago
Relevant content
asked 2 months ago
asked 2 years ago
