Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running virtualbox/vagrant in a cloud instance

I've tried two things:

First, I tried to install virtualbox on a EC2 machine, which proved to be impossible.

Second, I was able to install both vagrant and virtualbox on a Digital Ocean droplet, but when I tried to run vagrant up, it got stuck on Booting VM.

Several sources on Internet say that it is not possible to run a VM inside a virtualized environment (both Amazon and Digital Ocean provide this).

Is there any way I can solve this with another provider, or is there a way to run vagrant/virtualbox in Amazon or Digital Ocean?

like image 525
sauronnikko Avatar asked Nov 08 '22 07:11

sauronnikko


1 Answers

  1. Install VirtualBox and Vagrant on a physical machine such as your desktop
  2. Run the 3 commands from the command line:
  3. vagrant init somenameyoumakeup file://urlToYour.box
  4. vagrant up
  5. vagrant halt
  6. Open the VirtualBox UI
  7. Export the Virtual machine to OVA format using the File -> Export menu
  8. Follow the guide here for importing an OVA: https://aws.amazon.com/ec2/vm-import/
like image 69
David Avatar answered Jan 04 '23 02:01

David