Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
deb11:virtualboxvm [2022/09/24 12:14] – [Install Guest Additions on a Debian 11 host] Bernard Condraudeb11:virtualboxvm [2025/03/20 14:09] (current) – [Reboot (dead) vm] Bernard Condrau
Line 4: Line 4:
   * After installing the Guest Additions, close VirtualBox and restart it under your user account   * After installing the Guest Additions, close VirtualBox and restart it under your user account
  
-===== Install Guest Additions on a Debian 11 host ===== +===== Install Guest Additions on a Debian 11 guest operating system ===== 
-  - The following steps need to be taken inside the VM +  - The following steps need to be taken inside the VM after the operating system has been installed
-  - Attach the guest addition ISO to the VM and mount it<code>$ sudo mount /dev/cdrom /mnt/cd</code>+
   - Install the kernel headers, DKMS framework, and build tools<code>$ sudo apt update -y && sudo apt upgrade   - Install the kernel headers, DKMS framework, and build tools<code>$ sudo apt update -y && sudo apt upgrade
 sudo apt install dkms linux-headers-$(uname -r) build-essential</code> sudo apt install dkms linux-headers-$(uname -r) build-essential</code>
 +  - Attach the guest addition ISO to the VM and mount it<code>$ sudo mount /dev/cdrom /mnt/cd</code>
   - Install the VirtualBox guest additions<code>sudo sh /mnt/cd/VBoxLinuxAdditions.run</code>   - Install the VirtualBox guest additions<code>sudo sh /mnt/cd/VBoxLinuxAdditions.run</code>
   - Restart your virtual machine in order to reload the kernel modules<code>systemctl reboot -i</code>   - Restart your virtual machine in order to reload the kernel modules<code>systemctl reboot -i</code>
   - If you want the VM to automatically switch to full screen upon boot or login, toggle the **View option --> Auto-resize Guest Display**   - If you want the VM to automatically switch to full screen upon boot or login, toggle the **View option --> Auto-resize Guest Display**
   - Uninstall the guest additions<code>sudo sh /mnt/VBoxLinuxAdditions.run uninstall</code>   - Uninstall the guest additions<code>sudo sh /mnt/VBoxLinuxAdditions.run uninstall</code>
-  - Repeat steps 2,4-6 if the kernel or the VirtualBox version changes+  - Repeat steps 3-6 if the kernel or the VirtualBox version changes
   * [[https://kifarunix.com/install-virtualbox-guest-additions-on-debian-11/|Install VirtualBox Guest Additions on Debian 11]]   * [[https://kifarunix.com/install-virtualbox-guest-additions-on-debian-11/|Install VirtualBox Guest Additions on Debian 11]]
 +
 +===== Reboot (dead) vm =====
 +  - ''vboxmanage list runningvms''
 +  - ''vboxmanage controlvm <machine> poweroff''
 +  - ''vboxmanage startvm <machine> --type=headless''