VirtualBox
Is a Virtualization Software that can runs on MacOS, Windows, Linux clients and/or hosts.
Setup¶
- Nested Virtualization cannot be enabled on Windows 11 as Hyper-V is active by default
On Windows¶
- Change Host-Only adapter name → Windows
On Linux¶
- Install VirtualBox Guests Addons manually on Ubuntu
sudo apt install gcc make perl
- Install Guest addition
- Either autorun CD-ROM
- Or open Terminal and run
sudo ./VBoxLinuxAdditions.run
- Disable animations
gsettings set org.gnome.desktop.interface enable-animations false
- Allow user to access Shared Folder:
- Fix permissions with shared folders on Linux
- Message in Ubuntu:
This location could not be displayed.
andYou do not have the permissions necessary to view the contents of "sf_Manager".
- Message in Ubuntu:
- Solution:
sudo adduser $USER vboxsf
and reboot
- Fix permissions with shared folders on Linux
Data¶
- Compact a virtual hard drive
.vdi
- Defragment the disk
- In the guest:
- Linux:
dd if=/dev/zero of=/var/tmp/bigemptyfile bs=4096k ; rm /var/tmp/bigemptyfile
- Windows:
sdelete.exe c: -z
from Sysinternals
- Linux:
- Shutdown
- Run
VBoxManage.exe modifymedium --compact c:\path\to\thedisk.vdi