Install virtualbox: Forskjell mellom sideversjoner

Fra pc-aid wiki
Malinux (diskusjon | bidrag)
Ny side: Virtualbox installation in Debian 12 # Install virtualbox 7.1 i Debian 12 bookworm # Put the repo, signature and install in one command, by copying and pasting into konsoe: sudo touch /etc/apt/sources.list.d/virtualbox.list && echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian bookworm contrib' | sudo tee /etc/apt/sources.list.d/virtualbox.list && wget -O- https://www.virtualbox.org/download/oracle_vb…
 
Malinux (diskusjon | bidrag)
Ingen redigeringsforklaring
Linje 1: Linje 1:
Virtualbox installation in Debian 12
= Virtualbox installation in Debian 12 =
 
# Install virtualbox 7.1 i Debian 12 bookworm
 
# Put the repo, signature and install in one command, by copying and pasting into konsoe:
 
sudo touch /etc/apt/sources.list.d/virtualbox.list && echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian bookworm contrib' | sudo tee /etc/apt/sources.list.d/virtualbox.list && wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg --dearmor && sudo apt update && sudo apt install virtualbox-7.1
 
# virtualbox 7.1 is now installed in Debian 12
 


=== '''Install virtualbox 7.1 i Debian 12 bookworm''' ===
Put the repo, signature and install in one command, by copying and pasting into konsoe:
<code>sudo touch /etc/apt/sources.list.d/virtualbox.list && echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] <nowiki>https://download.virtualbox.org/virtualbox/debian</nowiki> bookworm contrib' | sudo tee /etc/apt/sources.list.d/virtualbox.list && wget -O- <nowiki>https://www.virtualbox.org/download/oracle_vbox_2016.asc</nowiki> | sudo gpg --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg --dearmor && sudo apt update && sudo apt install virtualbox-7.1</code>
virtualbox 7.1 is now installed in Debian 12


= Install VBoxGuestAdditions in virtualbox =
= Install VBoxGuestAdditions in virtualbox =
Linje 21: Linje 16:
* Improved video support
* Improved video support


1) On the Host Machine: Download VBoxGuestAdditions.iso for the version you are running of Virtualbox. In the example, VirtualBox7.0 Load is run, therefore we download VBoxGuestAdditions_7.0.0.iso with wget to a folder on the host machine, e.g.: :
<code>wget <nowiki>https://download.virtualbox.org/virtualbox/7.1.0/VBoxGuestAdditions_7.1.0.iso</nowiki></code>


1) Start up the relevant virtual machine (Guest) running Debian 12


1) On the Host Machine: Download VBoxGuestAdditions.iso for the version you are running of Virtualbox. In the example, VirtualBox7.0 Load is run, therefore we download VBoxGuestAdditions_7.0.0.iso with wget to a folder on the machine, e.g.: :
2) Press Devices -> Optical Drives -> Then press Chose a disk file and scroll to where you downloaded the iso file to, press the iso file
 
wget <nowiki>https://download.virtualbox.org/virtualbox/7.0.0/VBoxGuestAdditions_7.0.0.iso</nowiki>
 
ENTER HERE:
 
sudo apt install linux-headers-amd64 build-essential -and
 
sudo sh VBoxLinuxAdditions.run
 
log out and back in of the session.
 
start -> exit -> log out
 
log in again by entering the password.
 
2) Start up the relevant virtual machine (Guest)
 
3) Press Devices -> Optical Drives -> Then press Chose a disk file and scroll to where you downloaded the iso file to, press the iso file
 
4) You will get a pop-up message in the bottom right corner:
 
5) Press «'''Mount and open»'''
 
6) Right-click in the window that pops up and press on '''"Open terminal here"'''
 
7) install kernel header for running kernel and press enter -> enter the password and press enter again:


sudo apt install linux-headers-amd64 build-essential -and
3) You will get a pop-up message in the bottom right corner:


8) Run the following command to install the virtualbox add-on and press enter:
4) Press «'''Mount and open»'''


sudo sh VBoxLinuxAdditions.run
5) Right-click in the window that pops up and press on '''"Open terminal here"'''


9) Enter the password of the user and press enter again
6) install kernel header for running kernel and press enter -> enter the password and press enter again:
<code>sudo apt install linux-headers-amd64 build-essential -y</code>
7) Run the following command to install the virtualbox add-on and press enter:
<code>sudo sh VBoxLinuxAdditions.run</code>
8) Enter the password of the user and press enter again


10) When the installation is complete, either log out and log in again or:
9) When the installation is complete, either log out and log in again or:


restart the virtual machine by pressing;
restart the virtual machine by pressing;
Linje 65: Linje 41:
Start button at bottom left -> Exit ->  
Start button at bottom left -> Exit ->  


11) Then press on '''OK''' or wait 30 seconds
10) Then press on '''OK''' or wait 30 seconds


12) Once the virtual machine has restarted,
12) Once the virtual machine has restarted,

Sideversjonen fra 17. mar. 2025 kl. 16:22

Virtualbox installation in Debian 12

Install virtualbox 7.1 i Debian 12 bookworm

Put the repo, signature and install in one command, by copying and pasting into konsoe:

sudo touch /etc/apt/sources.list.d/virtualbox.list && echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian bookworm contrib' | sudo tee /etc/apt/sources.list.d/virtualbox.list && wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg --dearmor && sudo apt update && sudo apt install virtualbox-7.1

virtualbox 7.1 is now installed in Debian 12

Install VBoxGuestAdditions in virtualbox

VBoxGuestAdditions provides the following features:

  • Host/Guest clock synchronization
  • Seamless window support
  • Shared folders
  • Shared clipboard
  • Mouse pointer improvements
  • Improved video support

1) On the Host Machine: Download VBoxGuestAdditions.iso for the version you are running of Virtualbox. In the example, VirtualBox7.0 Load is run, therefore we download VBoxGuestAdditions_7.0.0.iso with wget to a folder on the host machine, e.g.: :

wget https://download.virtualbox.org/virtualbox/7.1.0/VBoxGuestAdditions_7.1.0.iso 

1) Start up the relevant virtual machine (Guest) running Debian 12

2) Press Devices -> Optical Drives -> Then press Chose a disk file and scroll to where you downloaded the iso file to, press the iso file

3) You will get a pop-up message in the bottom right corner:

4) Press «Mount and open»

5) Right-click in the window that pops up and press on "Open terminal here"

6) install kernel header for running kernel and press enter -> enter the password and press enter again:

sudo apt install linux-headers-amd64 build-essential -y

7) Run the following command to install the virtualbox add-on and press enter:

sudo sh VBoxLinuxAdditions.run

8) Enter the password of the user and press enter again

9) When the installation is complete, either log out and log in again or:

restart the virtual machine by pressing;

Start button at bottom left -> Exit ->  

10) Then press on OK or wait 30 seconds

12) Once the virtual machine has restarted,

I virtualbox trykk: Devices -> Drag and Drop -> Bidrectional

Note: With Bidirectional, you can copy to and from the virtual machine 🙂