REMnux / remnux-cli

This repository contains the source code for the REMnux installer, which is the command-line tool for installing and upgrading the REMnux distro.
https://REMnux.org
MIT License
37 stars 11 forks source link

Issue uploading OVA file to AWS #156

Closed mo-kd-5343 closed 9 months ago

mo-kd-5343 commented 9 months ago

Hi,

I am planning to use REMnux on an AWS. I am attempting to upload the image via VM import to run REMnux on an ec2 instance I have followed the guide: https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html , and use of the REMnux installation advice: https://docs.remnux.org/install-distro/get-virtual-appliance which includes advice on importing REMnux to AWS.

I have followed the guide and have the image located in an S3 bucket, upon running the command

aws ec2 import-image --description "REMnux VM Image" --disk-containers "file://C:\Users\OneDrive -\Documents\Project - malware enviroment\json\containers.json""

I receive the following output:

"ImportImageTasks" : [ { "Description": "REMnux VM Image". "import TaskID": "import-ami-099f022472866b45c" "SnapshotDetails" : [ { "DeviceName": "/dev/sde", "DiskImageSize": 518016469.0, "Format" : "RAW "Status": "completed", "UserBucket": { "S3Bucket": "vm-importbucket", "S3Key": "remnux-v7-focal.raw" } ] "Status": "deleted", StatusMessage": "ClientError: No valid partition. Not a valid volume. "tags":[] } ] }

I attempted this using .ova and .raw files and have received the same issue. I am unsure where to proceed the remnux file is unchanged and the file hash matches that on the documentation. Are there any solutions to this particular problem/ is there any documentation on uploading the image to aws via vm import I have struggled to find any online.

Thanks, any advice would be greatly appreciated.

Attatched screenshot of the issue: image

lennyzeltser commented 9 months ago

I haven't tried this, so I cannot comment directly on the nature of the problem. However, perhaps you can instantiate an Ubuntu 20.04 minimal instance in AWS, then add REMnux to it by following the Install from Scratch instructions?

mo-kd-5343 commented 9 months ago

Hi,

Thanks to help from my friend managed to get it to work, involved first using tar then gunzip to uncompress the vmdk file. From there following the instructions on VM/import page worked.

Commands: Untar .ova: tar xf remnux-v7-focal.ova

Uncompress the VMDK file: gunzip remnux-v7-focal-disk1.vmdk.gz

Screenshot of successful command: image

Screenshot of AMI on AWS: image

Thanks for your response.