-
-
Notifications
You must be signed in to change notification settings - Fork 604
Running OSv on EC2
As of today, OSv support for the Xen Hypervisor is still experimental, and consequently so is EC2. This is provided in a best effort basis, and should not be used to evaluate OSv's stability or benchmark performance
We are however evolving quickly on that front, and you are welcome to help by Forking us on github
Since it is based on Xen, EC2 has two modes of operation: Paravirtualization (PV), and Hardware assisted Virtualization (HVM). PV is a work in progress, and actually quite exciting to work with but it currently cannot boot. Here, we will tell you how to run HVM images.
However possible to run native Linux HVM images, it is a lot easier to adapt Microsoft Windows images, which is what we do. You can build your own custom OSv image and upload it into EC2, merely replacing the disk of a Windows VM with an OSv disk. Instructions on how to do this will be available soon.
We are providing two type of AMI:
Our recommendation is using the first. Keyless AMI will be deprecated in future releases.
- launch an AMI
- Select t1.small or higher as the instance type (micro instance is not supported)
- Proceed (Next) to set Configure Instance Details
- Proceed (Next) to set Add Storage
- Proceed (Next) to set Tag Instance
- Proceed (Next) to set Security Group - make sure to enable SSH on port 22
- click Review and Launch
- click Launch
- select a key-pair option base on the AMI type you choose earlier:
- For key-pair AMI - create a new key-pair or use an existing one
- For keyless AMI - choose Proceed without a Key Pair.
And you are good to go!
- Launch your instance
- Click "Instances" to watch the new OSv instance status: Once it move to state "running" you can connect to it.
- Copy the public DNS name available on the instance dashboard.
- For a key-pair AMI
ssh -i your-key-pair.pem your-public-dns.amazonaws.com
- for key-less AMI
ssh your-public-dns.amazonaws.com -l admin