Hi,
[1] Open Virtualization Archive (OVA)
[2] Virtual Machine Disk (VMDK)
[3] Virtual Hard Disk (VHD/VHDX)
[4] raw
I followed the steps below and encountered a ClientError: No valid partitions. Not a valid volume issue
#qemu-img convert kvmservertoaws.qcow2 kvmservertoaws.raw
aws ec2 import-image --disk-containers Format=raw,UserBucket="{S3Bucket=dacofficelabserversimage,S3Key=kvmservertoaws.raw}"
{
"ImportTaskId": "import-ami-0da503c0a22adbb0f",
"Progress": "1",
"SnapshotDetails": [
{
"DiskImageSize": 0.0,
"Format": "RAW",
"UserBucket": {
"S3Bucket": "dacofficelabserversimage",
"S3Key": "kvmservertoaws.raw"
}
}
],
"Status": "active",
"StatusMessage": "pending"
}
#aws ec2 describe-import-image-tasks --import-task-ids import-ami-0da503c0a22adbb0f
{
"ImportImageTasks": [
{
"ImportTaskId": "import-ami-0da503c0a22adbb0f",
"Progress": "19",
"SnapshotDetails": [
{
"DiskImageSize": 21478375424.0,
"Format": "RAW",
"Status": "active",
"UserBucket": {
"S3Bucket": "dacofficelabserversimage",
"S3Key": "kvmservertoaws.raw"
}
}
],
"Status": "active",
"StatusMessage": "converting",
"Tags": []
}
]
}
# aws ec2 describe-import-image-tasks --import-task-ids import-ami-0da503c0a22adbb0f
{
"ImportImageTasks": [
{
"ImportTaskId": "import-ami-0da503c0a22adbb0f",
"Progress": "27",
"SnapshotDetails": [
{
"DeviceName": "/dev/sde",
"DiskImageSize": 21478375424.0,
"Format": "RAW",
"Status": "completed",
"UserBucket": {
"S3Bucket": "dacofficelabserversimage",
"S3Key": "kvmservertoaws.raw"
}
}
],
"Status": "active",
"StatusMessage": "updating",
"Tags": []
}
]
}
# aws ec2 describe-import-image-tasks --import-task-ids import-ami-0da503c0a22adbb0f
{
"ImportImageTasks": [
{
"ImportTaskId": "import-ami-0da503c0a22adbb0f",
"SnapshotDetails": [
{
"DeviceName": "/dev/sde",
"DiskImageSize": 21478375424.0,
"Format": "RAW",
"Status": "completed",
"UserBucket": {
"S3Bucket": "dacofficelabserversimage",
"S3Key": "kvmservertoaws.raw"
}
}
],
"Status": "deleted",
"StatusMessage": "ClientError: No valid partitions. Not a valid volume.",
"Tags": []
}
]
}
Am I missing anything? Any help will be highly appreciated. I look forward to hearing from you. Please guide me. Thanks in Advance.
Best Regards,
Kaushal