I'm running Vagrant and VirutalBox and wants to use a host only network. I use the following configuration:

config.vm.network "private_network", ip: ""

However my host doesn't get an IP address ( Vagrant won't tell me this, I had to run ip addr to figure this out. Note that NFS won't work by this.


I found out how to solve this. It is just a stupid error. VirtualBox use the network utility ifconfig which is deprecated for many distributions. I had net-tools installed which will install ifconfig but it looks like not all sub commands are support with this.

The solution is to install net-tools-deprecated. https://software.opensuse.org/package/net-tools-deprecated

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.