Is it possible to build a Vagrant box (virtualbox provider) on AWS with Packer?

283 views
Skip to first unread message

Greg Roodt

unread,
Mar 18, 2018, 10:56:24 PM3/18/18
to Packer
Hi

I'm wondering if it is possible to build Virtualbox Vagrant boxes with Packer on an AWS instance? I know that it is possible to create a Vagrant box that is run on AWS (vagrant-aws), but I'm looking to build developer boxes for local use.

The preference is to build the boxes in CI, but I've seen somewhere that it might not be possible to run Virtualbox on AWS.

My thoughts were:
1. Start with an existing ISO
2. Provision it with Packer
3. Use the vagrant post-processor to output a vagrant.box

Is this possible?

Thanks!
Greg
 

Alvaro Miranda Aguilera

unread,
Mar 19, 2018, 3:49:59 AM3/19/18
to packe...@googlegroups.com
Hello

For most of the AWS flavor as they are either XEN or KVM the answer is no.

I would think the new nitro or baremetal may be able to install and run Virtualbox, not sure if cost will be friendly.

If you are open to other clouds, packet.net runs fine, you can provision with Terraform and run packer there.

Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/34259151-e0b0-4dcb-aa43-f4db382e96b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Rickard von Essen

unread,
Mar 19, 2018, 4:26:21 AM3/19/18
to packe...@googlegroups.com
There is support for nested virtualization since some time on AWS, see  https://aws.amazon.com/blogs/aws/new-amazon-ec2-bare-metal-instances-with-direct-access-to-hardware/

But you need* to run the builder for the Vagrant provider you want to support, i.e. virtualbox-XXX. 

Greg Roodt

unread,
Mar 20, 2018, 1:57:34 PM3/20/18
to packe...@googlegroups.com
Thanks both. I'll look into this a bit more then. I'll try a C5 instance and then if that doesn't work, explore other options like packet.net.

You received this message because you are subscribed to a topic in the Google Groups "Packer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/packer-tool/sgqjWUZACmc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt9GuBmLrzJfBzJhH5UfSNH%2B%2B%2BXVH%2BVthwkYNY-T8wjMjA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages