amazon web services - package a running VirtualBox environment into a vagrant box and deploy it on aws ec2? -
i'm new vagrant , aws.
i have vagrant ubuntu image running in laptop , want package , deploy aws. how can this?
here have tried , found:
- vagrant package --output name.box gave me ~1gb .box file
- found vagrant-aws , vagrant-aws/example_box in github, seems me can deploy dummy/new box aws not existing one? correct me if wrong here.
- also tried work-around: deployed brand-new ec2 amazon machine image (ubuntu) , upload name.box file machine. , tried install vagrant , virtual box , manually vagrant up. told me can't on xen virtual machine.
thanks in advance!
i have vagrant ubuntu image running in laptop , want package , deploy aws. how can this?
the short answer not possible - have thought #3 workaround if not working ! , anyway not recommend.
why not work ?
vagrant works box, , each box built particular provider. default provider virtualbox, can have vmware provider , cloud provider such aws ec2. so, if vagrant flow same (vagrant up, halt, destroy ...) base box use not same , cannot apply existing virtualbox box work vmware example.
found vagrant-aws , vagrant-aws/example_box in github, seems me can deploy dummy/new box aws not existing one? correct me if wrong here.
no, can use box other provider, need base box (the initial 1 if want) have been made provider.
lets start dummy box, , build own things on it, can package aws instance new vagrant box , use it.
how create own box ?
this might question have. suggest @ packer, tool made same guys built vagrant complementary tool. tool helps create vagrant box, start os iso (for virtual box or vmware) or specific ami aws ec2.
for ubuntu, need @ http://cloud-images.ubuntu.com/locator/ec2/ pick correct ami want use, can use google find packer examples such https://github.com/octohost/ubuntu-14.04 can used starting points.
Comments
Post a Comment