This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
deb9:virtualbox [2020/06/20 00:54] – [through rc.local] Bernard Condrau | deb9:virtualbox [2025/09/08 14:23] (current) – [VirtualBox] Bernard Condrau | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== VirtualBox ====== | ====== VirtualBox ====== | ||
+ | |||
===== Host ===== | ===== Host ===== | ||
+ | * I recommend to install VirtualBox from the Oracle repository, as you get the latest version of VirtualBox | ||
* Add " | * Add " | ||
* Add Oracle VirtualBox public key:< | * Add Oracle VirtualBox public key:< | ||
Line 12: | Line 14: | ||
* [[https:// | * [[https:// | ||
- | ===== Guest ===== | + | ===== Guest Network |
+ | * [[https:// | ||
+ | * [[https:// | ||
===== Guest Additions ===== | ===== Guest Additions ===== | ||
* To upgrade the Guest Additions after upgrading the host version, download the guest additions pack, close all virtual machines, and start virtualbox as root< | * To upgrade the Guest Additions after upgrading the host version, download the guest additions pack, close all virtual machines, and start virtualbox as root< | ||
Line 32: | Line 37: | ||
==== through rc.local ==== | ==== through rc.local ==== | ||
=== startup === | === startup === | ||
- | - install [[deb10:service|rc.local]] as a systemd service on your debian server. This emulates the // | + | - install [[deb10:rclocal|rc.local]] as a systemd service on your debian server. This emulates the // |
- mount encrypted file systems through rc.local as explained in [[deb9: | - mount encrypted file systems through rc.local as explained in [[deb9: | ||
- start vms through rc.local headless. Since rc.local runs as root you need to use runuser to start the vm as the user who created the vm. You may also chose to put the startvm code into a script and add execution of the script to rc.local:< | - start vms through rc.local headless. Since rc.local runs as root you need to use runuser to start the vm as the user who created the vm. You may also chose to put the startvm code into a script and add execution of the script to rc.local:< | ||
Line 46: | Line 51: | ||
< | < | ||
- the scripts must be run as root so they can be executed through rc.local | - the scripts must be run as root so they can be executed through rc.local | ||
- | | + | |
+ | === links === | ||
+ | * Debian [[deb10: | ||
==== through XFCE Desktop ==== | ==== through XFCE Desktop ==== | ||
=== startup === | === startup === | ||
Line 94: | Line 101: | ||
* [[https:// | * [[https:// | ||
* [[http:// | * [[http:// | ||
+ | |||
+ | ===== Update VirtualBox ===== | ||
+ | * Make sure to update the same way you installed the previous version, either from the Oracle repository, or from the Debian backports | ||
+ | * If you followed my guide, check the VirtualBox version.revision.build (e.g. 6.1.16) | ||
+ | * Updating the build is done by running "apt upgrade"< | ||
+ | sudo apt upgrade</ | ||
+ | * Updating to a new version or revision is done by running "apt install virtualbox-< | ||
+ | sudo apt install virtualbox-6.1</ | ||
+ | |||
+ | ==== Links ==== | ||
+ | * [[https:// | ||
+ | ===== Manage VirtualBox through CLI ===== | ||
+ | ==== Extension Pack ==== | ||
+ | * Remove old extension pack< | ||
+ | * Download current extension pack from [[https:// | ||
+ | sudo vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.30.vbox-extpack</ | ||
+ | |||
+ | ==== Run VM ==== | ||
+ | * < | ||
+ | |||
+ | ==== Hold back upgrade ==== | ||
+ | * < | ||
+ | * < | ||
+ | ==== Links ==== | ||
+ | * [[http:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||