Virtualbox Appliance: Maintain same Private IP as used with Vagrant

bcollins asked:

I have an OVA which I created in conjunction with Vagrant. I want to distribute the OVA, but when people start it up I want to have the same Private IP address assigned by Vagrant. So far I’ve had no luck.

Any recommendations on how to export an OVA appliance and have it maintain the same private ip address as used during vm creation?

Thanks many times over.

My answer:


Don’t.

You could configure the guest to use a manually set IP address, but you can’t be sure that it will work for every user, nor even for any of them.

You can’t predict what sort of network environment your appliance will be used in. It’s even likely that most people who use your appliance won’t use VirtualBox at all, since it’s only suitable for consumer and (sometimes) developer use.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.