VirtualBox - jakestanley/dotfiles GitHub Wiki

Considerations for VirtualBox

Host

Storage & Snapshots

One of the benefits of using VirtualBox is that I can take snapshots of the system, however I don't really want to snapshot the contents of /var/lib/docker or /home. Any volumes that are classed by VirtualBox as "write through" or "immutable" won't be affected by snapshots. This is also useful for any volumes that contain just data.

  • / (root drive) should be on a normal drive
  • /home should be on a write through drive
  • /var/lib/docker should be on a write through drive
  • Use fixed drives where possible unless you're worried about write cycles

Host Settings

Video modes

VBoxManage setextradata global GUI/MaxGuestResolution any
VBoxManage setextradata "ArchLinux_default_1543231149945_24624" "CustomVideoMode1" "1920x1080x24"
VBoxManage setextradata "ArchLinux_default_1543231149945_24624" "CustomVideoMode2" "1920x1080x24"

Guest Settings

  • Do not enable 3D acceleration for Linux
  • Use as much VRAM as is available, as long as it doesn't go into the red zone
  • Network adapter may need to be NAT when behind a proxy and bridged adapter otherwise
  • Prefer a stable file system like ext4 over btrfs
    • I nearly lost a btrfs system today (14th June 2019).
    • I recovered from a "child eb" issue with btrfs rescue super-recover /dev/<label> but YMMV
⚠️ **GitHub.com Fallback** ⚠️