Running VirtualBox inside EC2 instance

Discussions related to using VirtualBox on Linux hosts.
Post Reply
utdrmac
Posts: 1
Joined: 6. Sep 2018, 00:05
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: CentOS7

Running VirtualBox inside EC2 instance

Post by utdrmac »

Hello. I'm attempting to use VirtualBox under CentOS 7.4 running on the AWS EC2 platform. Probably wondering why. Well, it's so that I can actually use 'packer' to help create OVA's. My upload speed is super crap. If I build the OVA in EC2, upload to S3 (used for distribution) would be wicked fast.

Each time I launch a VM, using vagrant, I get timeout on ssh. I've attempted several different vmdk's, official CentOS 7, and some 3rd party. Gone backwards in minor 7.* versions. Even switched to Ubuntu 16 as the guest OS. All give the same behavior. There's something fundamental I'm not seeing. This same Vagrantfile works just fine on my mac laptop.

I can see that VBoxHeadless is listening on port 2222 (which is the forwarded port to 22 on the guest). But ssh to that port just sits there.

Any ideas? Much appreciated.
Post Reply