docker - How to package vagrant/Virtual box VM for loading to another system -
i have vagrant vm, , want create image can take machine , start vm settings before.
i tried doing export appliance
, import appliance
virtual box, , able start vm, don't vagrant cannot ssh vagrant ssh
, , inside vm run web server in docker , cannot connect it. docker container start up, can't connect to.
what proper way create image of vagrant/virtualbox/docker environment entire system , can move it?
vagrant , virtualbox installation needed if want use vagrant ssh
. both separate softwares. vagrant used automation of vm creation using online available images.
this make easier ship source code , provisioning scripts. when 1 vagrant up
downloads base box online , provisioning scripts necessary setup. save sharing large boxes of 400mb+
when export vm , import someplace else, don't need vagrant ssh such. settings of box have port forwarding set. assuming 22
guest mapped 2222
on host can ssh directly using this
ssh -p 2222 vagrant@127.0.0.1
or if had enabled host network static ip can ssh using
ssh vagrant@192.168.33.100
ps: password vagrant
well.
wiki
Comments
Post a Comment