Import VM (freebsd) to AWS

0

Hi all,

Can you tell me please how can I import vm (freebsd) to aws? tried both .ova and .vmdk and raw format, same error

Thanks in advance.

 aws ec2 describe-import-image-tasks --import-task-ids import-ami-087857a5fdc4173a7
 {
"ImportImageTasks": [
    {
        "Description": "import image vm",
        "ImportTaskId": "import-ami-087857a5fdc4173a7",
        "SnapshotDetails": [
            {
                "Description": "My Server OVA",
                "DeviceName": "/dev/sde",
                "DiskImageSize": 8589934592.0,
                "Format": "RAW",
                "Status": "completed",
                "UserBucket": {
                    "S3Bucket": "disk-image-filebucket",
                    "S3Key": "freebsd_p1.img"
                }
            }
        ],
        "Status": "deleted",
        "StatusMessage": "ClientError: No valid partitions. Not a valid volume.",
        "Tags": []
    }
]
 }
질문됨 10달 전430회 조회
2개 답변
0

How to install necessary driver to can run on AWS Hypervisor?

And in my issue cannot ssh into freebsd(from marketplace) ec2 instance, error permission denied, and if i sudo its private key too open, error public key.

How to fix this issue?

답변함 8달 전
  • You need to restrict private key file permission to yourself only, e.g. "chmod 600 <private_keyfile>" on Linux/MacOS

0

FreeBSD is not a supported OS by VM Import.

Instead, you can do a snapshot import. Command is something like

aws ec2 import-snapshot --description "FreeBSD" --disk-container "file://file.json"

Do ensure that your FreeBSD image has necessary drivers to run on AWS hypervisor. This can be nvme driver, ENA driver and Xen PV drivers. After import is done, go to EC2 console, snapshots to create AMI image and launch it.

Alternatively, you can launch a FreeBSD instance from AWS Marketplace

AWS
Mike_L
답변함 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인