We'd like to show our building block to a client but we need the machine to be turned on all the time.
I have not tried it, but I assume you would need something like the following:
- Get the Vagrant box running on an EC2 instance
- Set up Apache or some other web server to handle incoming web requests (if you're not sure how to do this, search for a "reverse proxy" tutorial)
- Set up DNS so that your EC2 instance has a friendly name
To make things a bit more secure, you could set up the reverse proxy so that it adds authentication, SSL offloading, and so on.
I think this will not work, because you can't run a virtualized environment inside an EC2 instance.
Explanation from testing - Can VirtualBox be executed under Amazon EC2 instance? - Stack Overflow :
Basically: Amazon's virtualization software is already using the privileged instruction sets that VirtualBox would need.
I may be missing something -- why would you need VirtualBox? EC2 is already providing a virtual machine that you could load the VM image onto, so I'm not sure why you would want an additional layer of virtualization.
Hello, a virtual machine is created for a certain provider. I don't think you can simply change the virtualization provider in the vagrant file. You can use EC2 as a provider in vagrant, but you have to create the VM using EC2 as provider also.
I found a way to do it on Azure, I think AWS should be similar
This is the tutorial I followed
Upload a custom Linux disk with Azure CLI 2.0 | Microsoft Docs
So basically you have to upload your VM to an instance.
If you are evaluating Azure virtual machines for hosting your workloads, you can export an existing Amazon Web Services (AWS) EC2 Windows VM instance then upload the virtual hard disk (VHD) to Azure. Once the VHD is uploaded, you can create a new VM in Azure from the VHD.
LINK: Move a Windows AWS VMs to Azure | Microsoft Docs
I've got a detailed step-by-step for this if you're interested. The process should work for both Windows and Linux, even though a Linux EC2 instance is specified:
Dropbox - create_bblearn_AWS_AMI_and_deploy.txt
This topic covers moving a single VM from AWS developer to Azure. For the full process or steps Url: Move a Windows AWS VMs to Azure | Microsoft Docs
You may also take advantage of one of the AWS AMIs we have made available at:
AWS Marketplace: Blackboard Learn for REST and LTI Developers
No muss no fuss.
I recommend the AMI. Developers with the AWS Amazon Smile - The new Bb AMI Service
Retrieving data ...