Virtualbox: Difference between revisions

From Bitpost wiki
No edit summary
No edit summary
Line 13: Line 13:
  cd /mnt/guestiness/
  cd /mnt/guestiness/
  ./VBoxLinuxAdditions.run
  ./VBoxLinuxAdditions.run
=== LAN and DHCP ===
I think these are the defaults, they seem sane:
Host app > File > Host Network Manager > Properties > Adapter > [x] Configure automatically
                                                    > DHCP Server > Server Address > 192.168.56.100
                                                                  > Lower/Upper bounds .101 - .254
So we can just set a static one in a VM to:
192.168.56. [2 through .99]
And set up the host in the VM hosts file to:
192.168.56.100

Revision as of 17:08, 11 April 2018

Guest Additions

Guest additions seem to be a necessary evil to get the clock syncing. Which version to install? Seems that the apt way is working best.

  • In Ubuntu you can use apt:
sudo apt-get install dkms
sudo apt-get install virtualbox-guest-additions-iso
# check the status:
sudo service virtualbox-guest-utils status
# DO NOT INSTALL ntp!
sudo apt remove ntp
  • You can mount /dev/cdrom to get the version that came with the Windows host install.
su -
mount /mnt/cdrom /mnt/guestiness
cd /mnt/guestiness/
./VBoxLinuxAdditions.run

LAN and DHCP

I think these are the defaults, they seem sane:

Host app > File > Host Network Manager > Properties > Adapter > [x] Configure automatically
                                                    > DHCP Server > Server Address > 192.168.56.100
                                                                  > Lower/Upper bounds .101 - .254

So we can just set a static one in a VM to:

192.168.56. [2 through .99]

And set up the host in the VM hosts file to:

192.168.56.100