I'm running XVM on my laptop. XVM has got FreeBSD installed with all the required ports to run APACHE/PHP.
I want this .vdi file to be imported into an EC2 instance.
- Is it possible to import a virtual OS to Amazon EC2?
- If yes, does it get all the libs installed and DBs created or just OS?
- Could somebody please share pointers/hints on how to do this!
Any help is much appreciated :)
Short answer, no – you should use one of the available AMI's for FreeBSD. Each signed release announcement (e.g. 11.2R) has the list of AMIs for each region. If you prefer to run a STABLE or CURRENT snapshot, subscribe to the freebsd-snapshots mailing list (low volume) and find the AMIs in each snapshot announcement (e.g. stable/11 from mid-September 2018).
Prior to appearing in those locations, you would have found status on Colin Percival's site. Colin is the driving force behind getting FreeBSD working well on EC2.
Use one of the project-supplied AMIs and customize it.
Just in case here are some scripts to create a FreeBSD + ZFS on root:
https://github.com/fabrik-red/images/blob/master/fabrik.sh
Or you can just use the image: https://github.com/fabrik-red/images/releases
More about it can be found in https://fabrik.red
Short answer, no but the long one is yes (it's other question is it supported). This is the procedure that I have used to create my machine (with pfSence):
Prepare your machine:
Create image:
Upload on AWS (for this you will need older version of AWS CLI)
./ec2-import-volume /tmp/image.raw -f raw -z us-east-1a -b BUCKET_NAME -O XXXXXXX -W XXXXXXX -o XXXXXX -w XXXXXXX
/tmp/dell_chrome/pfSence/image.raw - this is the raw image BUCKET_NAME - this is the bucket name in us-east-1./ec2-describe-conversion-tasks -O XXXXXXXXX -W XXXXXXXX
Thank you @nbari I saw the most important thing - uploading the volume in your site.
Another advice is to try using another IaaS cloud provider.
Some vendors (e.g CloudSigma or ElasticHosts) running KVM hypervisor do provide scripts to migrate your OS virtual machine including FreeBSD.