VirtualBox

Uit De Vliegende Brigade
Versie door Jeroen Strompf (overleg | bijdragen) op 20 mei 2018 om 11:41 (→‎Installatie Linux Mint)
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Naar navigatie springen Naar zoeken springen

VirtualBox is sinds 2012 de meest populaire virtualisatie-oplossing voor Linux. Het is grotendeels onder een GPL-licentie verkrijgbaar. Het heeft diverse gebreken en honhandigheden, maar is desalniettemin een hele goede manier om bv. dingen te testen.

Installatie Linux Mint

In het verleden:

sudo apt-get install virtualbox

In de lente van 2018:

sudo apt install virtualbox      # Er zijn nu geen menu-item oid. Alsof ik 'm niet kon executeren
sudo apt install virtualbox-qt   # Nu worden er menu-items aangemaakt

De instllatie vergt ca. 80 MB aan schijfruimte.

VirtualBox-specifieke drivers

Als ik na installatie van Linux Mint de bijbehorende VirtualBox-drivers wil installeren, start-ie niet meer op (mei 2018) → Volgende keer vantevoren een backup maken van de VB-instantie!

Randapparatuur

Ik heb vaak de grootste moeite om randapparatuur zoals USB-apparaten en webcams aan de praat te krijgen onder VirtualBox. Voor memory-sticks heb ik een alternatieve oplossing gevonden: Gebruik shared folder.

USB-devices, algemeen - 2012

Oracle VM VirtualBox User Manual Version 4.1.12_Ubuntu, p. 53:

The “USB” section in a virtual machine’s Settings window allows you to configure VirtualBox’s
sophisticated USB support. VirtualBox can allow virtual machines to access the USB devices on 
your host directly. To achieve this, VirtualBox presents the guest operating system with a 
virtual USB controller. As soon as the guest system starts using a USB device, it will appear
as unavailable on the host.

Be careful with USB devices that are currently in use on the host! For example, if you allow
your guest to connect to your USB hard disk that is currently mounted on the host, when the 
guest is activated, it will be disconnected from the host without a proper shutdown. This may 
cause data loss.

In the Settings dialog, you can first configure whether USB is available in the guest at all, and
in addition also optionally enable the USB 2.0 (EHCI) controller for the guest. If so, you can
determine in detail which devices are available. For this, you must create so-called “filters” by
specifying certain properties of the USB device.

Note: The EHCI controller is shipped as a VirtualBox extension package, which must be installed 
separately. See chapter 1.5, Installing VirtualBox and extension packs, page 15 for more 
information.

Casus: Connect usb-drive with guest vm (2012)

Het lukt me niet om een usb-drive te benaderen vanuit de gast-virtuele machine.

Meer mensen lijken de nodige moeite te hebben met dit truukje. Zie https://forums.virtualbox.org/viewtopic.php?f=8&t=45349 voor een paar suggesties. Samenvatting:

  • Creëer een filter zodat het host-OS weet dat-ie het apparaat niet moet kapen
  • Wacht tot het host-OS de schijf heeft gevonden. Kies eject en vind 'm daarna in het gast-os
  • Let op dat het gast-OS een geldige device-letter gebruikt
  • Installeer Oracle_VM_VirtualBox_Extension_Pack-4.1.8-75467.vbox-extpac, niet te verwarren met het Guest extentions pack
  • Etc.

Acties

  • Ge-update naar VirtualBox 4.2.16
  • Er is hoop: Ik kan in ieder geval een gedeelde map aanmaken. Met een beetje mazzel kan dat elk mountpoint zijn.

Casus: Webcam (aug. 2015)

  • Host-OS: Linux Mint
  • Guest-IS: Windows 7
  • Virtualbox-versie: 4.1.12_Ubuntu r77245

Bronnen

Manual

Installatie vanaf een iso-bestand