Virtualbox VM only getting IPv6 over bridge connection. How to get IPv4 address
Solution 1:
This thread is old but I figured it might help someone else out there...
I also faced the same issue just now. What I did to fix it was to switch to NAT mode in the server settings and then restart networking on the virtual machine. service networking restart
and the just check if it you got a IPv4 address from Virtualbox.
After checking just go into the settings again and switch back to the bridged connection and restart your network on the VM --> service networking restart
Not sure why but this solved the issue for me.