- File > Preferences, click on Network then tab Host-only Networks, add a Host-only network.
- In Guest machine settings
- Click on Network, them click on an Adapter #N tab.
- Tick Enable network adapter if it's not ticked.
- Attached to: Host-only Adapter
- Name: choose the name of Adapter you created in step 1.
- Create static interface follow these steps
- Make sure that Firewall on Host machine allows connection between Host and Guest
- Static IP of Host-only Adapter usually is
192.168.56.1. - Make sure that IP address of static interface on Guest machine is
192.168.56.x, x from 2 to 255.
- On VirtualBox, choose
Devices>Insert Guest Additions CD Images - On VM:
- Windows Host, Ubuntu Guest
$ sudo mount /dev/cdrom /media/cdrom
$ cd /media/cdrom
$ sudo ./VBoxLinuxAdditions.run
- On VirtualBox
- Choose VM's
SettingsthenShared Folder - Add folder with: Folder Path is host path and Folder name is the name we're gonna mount on VM.
- On VM:
$ sudo mkdir -p <path/on/guest/machine/>
$ sudo mount -t vboxsf <folder_name> <path/on/guest/machine/>