From a084624dfad75d425a7539d572f8302ac0cabe97 Mon Sep 17 00:00:00 2001 From: Roger Huba <38219102+RogerHuba@users.noreply.github.com> Date: Thu, 8 Feb 2024 09:29:02 -0700 Subject: [PATCH] updated fix for virtualbox7 (#223) --- ops-setup/4-virtualbox.md | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/ops-setup/4-virtualbox.md b/ops-setup/4-virtualbox.md index 82afba9..7818576 100644 --- a/ops-setup/4-virtualbox.md +++ b/ops-setup/4-virtualbox.md @@ -5,23 +5,37 @@ Configure your lab PC as a host for virtual machines. -### Install Virtualbox +### Install Virtualbox - Sourced from [LinuxTechi](https://www.linuxtechi.com/how-to-install-virtualbox-in-ubuntu/) Run each of these commands in your terminal: -This command will add the repository to allow for automatic updates. +```This command will update the list of packages avaliable to you.``` + +```bash +sudo apt update +``` + +```Add VirtualBox 7 Repository``` + ```bash -sudo add-apt-repository "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" +sudo apt install curl wget gnupg2 lsb-release -y +curl -fsSL https://www.virtualbox.org/download/oracle_vbox_2016.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/vbox.gpg +curl -fsSL https://www.virtualbox.org/download/oracle_vbox.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/oracle_vbox.gpg ``` -This command will update the list of packages avaliable to you. +```bash +echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list +``` + +```Install VirtualBox``` + ```bash sudo apt update +sudo apt install -y linux-headers-$(uname -r) dkms ``` NOTE: A good idea would be to type sudo apt install virtualbox– and hit tab to see the various VirtualBox versions available for installation – then select one of them by typing it completely. -Installs VirtualBox 7.0 ```bash sudo apt install virtualbox-7.0 -y ``` @@ -29,7 +43,8 @@ sudo apt install virtualbox-7.0 -y ### Add the Virtualbox Extension Pack ```bash -sudo apt install virtualbox-ext-pack -y +wget https://download.virtualbox.org/virtualbox/7.0.10/Oracle_VM_VirtualBox_Extension_Pack-7.0.10.vbox-extpack +sudo vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-7.0.10.vbox-extpack ``` > Note: Installing the extension pack will launch a special installer box within the Terminal, which will require you to confirm your choice. If you can't use your arrows to navigate this box, try using \ to change your selection and \ to mark or un-mark a selection. @@ -38,7 +53,6 @@ sudo apt install virtualbox-ext-pack -y ```bash gsettings set org.gnome.shell favorite-apps "$(gsettings get org.gnome.shell favorite-apps | sed s/.$//), 'virtualbox.desktop']" ``` - --- ### [⇐ Previous](./3-rdp-config.md) | [Next ⇒](./5-system.md)