<noinclude>{{header}}</noinclude>
Download and install VirtualBox for your operating system.
{{Tab
|type=controller
|content=
{{Tab|
|title= === Windows ===
|image=[[File:Logo-windows-500x500.png|alt=Logo Windows|50px]]
|active=true
|content=
{{#widget:Download_Button
|text=Download VirtualBox for Windows (FREE!)
|os=windows
|fontsize=18px
|url=https://download.virtualbox.org/virtualbox/7.1.6/VirtualBox-7.1.6-167084-Win.exe
}}

<div class="toccolours mw-collapsible mw-collapsed" data-expandtext="Learn More" data-collapsetext="Show Less">
Microsoft Visual C++ 2019 Redistributable Package
<div class="mw-collapsible-content">
If you see the following error message:

'''Figure:''' ''Microsoft Visual C++ 2019 Redistributable Package Error''

[[File:VirtualBox_Microsoft_Visual_C_2019_Redistributable_Package.png|Microsoft Visual C++ 2019 Redistributable Package Error]]

{{quotation
|quote=
Oracle VM VirtualBox needs Microsoft Visual C++ 2019 Redistributable package installed first. Please install and restart the installation of Oracle VM VirtualBox.
}}

Microsoft Visual C++ 2019 Redistributable Package must be installed. <ref>
This link has been found on the <code>microsoft.com</code> website: [https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 Microsoft Visual C++ Redistributable latest supported downloads]
</ref>

{{#widget:Download_Button
|text=Microsoft Visual C++ 2019 Redistributable Package (FREE!)
|os=windows
|fontsize=18px
|url=https://aka.ms/vs/17/release/vc_redist.x64.exe
}}
</div>
</div>

<div class="toccolours mw-collapsible mw-collapsed" data-expandtext="Learn More" data-collapsetext="Show Less">
Optional: Digital signature verification.
<div class="mw-collapsible-content">

'''VirtualBox for Windows is not signed with OpenPGP / gpg. It is signed with authenticode.'''

After downloading the VirtualBox installer exe and starting it, the user should verify that sure that <code>Verified publisher:</code> is <code>Oracle Corporation</code>.

'''Figure:''' ''Windows signature signature verification window for VirtualBox''

[[File:Virtualbox_windows_digital_software_verification.png|400px|border]]

Advanced users might wish to learn more about {{kicksecure_wiki
|wikipage=Authenticode
|text=Authenticode (Windows Digital Software Signatures)
}} to perform a deeper verification.
</div><!-- close collapsible open -->
</div><!-- close collapsible content -->
}}<!-- close tab : windows -->
{{Tab
|title= === macOS ===
|image=[[File:Logo-apple-500x500.png|alt=Logo Apple|50px]]
|content=
{{#widget:Download_Button
|text=Download VirtualBox for macOS (FREE!)
|os=osx
|fontsize=18px
|url=https://download.virtualbox.org/virtualbox/7.1.6/VirtualBox-7.1.6-167084-OSX.dmg
}}
<div class="toccolours mw-collapsible mw-collapsed" data-expandtext="Learn More" data-collapsetext="Show Less">
Optional: Digital signature verification.
<div class="mw-collapsible-content">

'''VirtualBox for macOS is not signed with OpenPGP / gpg. It is notarized for macOS's gatekeeper.'''

See also Apple's official documentation [https://support.apple.com/en-us/HT202491 Safely open apps on your Mac].
</div><!-- close collapsible open -->
</div><!-- close collapsible content -->
}}<!-- close tab : macOS -->
{{Tab
|title= === Ubuntu ===
|image=[[File:Logo-ubuntusvg.png|alt=Logo Ubuntu|50px]]
|content=
'''For Ubuntu host operating systems''' {{VirtualBox_Host_Software_Installation_Option
|who=Ubuntu users
}}

{{mbox
|addToClass=cs-gray-light
|text=
''Tested on October 2022 using Ubuntu version <code>22.04</code>. Older versions are not recommended.''

{{Tab
|type=controller
|content=
{{Tab|
|title= ==== Command Line (All Users) ====
|image=[[File:Utilities-terminal.png|50px]]
|active=true
|content=
{{IconSet|h3|1}} '''On the host : Open a terminal.'''

{{IconSet|h3|2}} '''Update the package lists.'''

{{CodeSelect|code=
sudo apt update
}}

{{IconSet|h3|3}} '''Install VirtualBox and Linux kernel headers.'''

{{CodeSelect|code=
sudo apt install --no-install-recommends {{{virtualbox_package_debian}}} linux-headers-generic
}}

{{IconSet|h3|4}} '''Add your current user to group <code>vboxusers</code>. <ref name=vboxusersgroupadd />'''

{{CodeSelect|code=
sudo adduser $(whoami) vboxusers
}}

{{IconSet|h3|5}} '''Done.'''

The procedure of installing the VirtualBox host software is complete.
}} <!-- close tab : Ubuntu command line -->
{{Tab
|title= ==== Software Center (only if not using SecureBoot) ====
|image=[[File:Ubuntu_software_icon.png|alt=Logo Ubuntu Software Center|50px]]
|content=
{{VirtualBox Host Software Installation Ubuntu Software Center}}
}}<!-- close tab : Ubuntu software center -->
}}<!-- close tab controller : Command Live vs Software Center -->
}}<!-- close : mbox -->
}}<!-- close Tab : Ubuntu -->
{{Tab
|title= === Debian ===
|image=[[File:Logo-debian-500x500.png|alt=Logo Debian|50px]]
|content=
{{VirtualBox_Host_Software_Installation_Debian
|virtualbox_version={{{VirtualBox_Version}}}
|virtualbox_package_debian={{{virtualbox_package_debian}}}
}}<!-- close template VirtualBox_Host_Software_Installation_Debian -->
}}<!-- close tab : Debian -->
{{Tab
|title= === Kicksecure ===
|image=[[File:Kicksecure-basic-logo.png|alt=Logo Kicksecure|50px]]
|content=
{{Box|text=
'''{{Kicksecure}} host operating systems''' {{VirtualBox_Host_Software_Installation_Option
|who={{Kicksecure}} users
}}

{{mbox
|addToClass=cs-gray-light
|text=
Instructions for {{Kicksecure}} are simpler than instructions for Debian. <ref>
This is because by {{Kicksecure}} default:

* The Debian <code>fasttrack</code> repository is already enabled.
* The Debian <code>backports</code> repository is already enabled.
* Kernel headers package "<code>linux-headers-$(dpkg --print-architecture)</code> is already installed.
** Debian feature request: [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1022746 please provide linux-image-generic / linux-headers-generic]
</ref>

{{IconSet|h3|1}} '''On the host: Open a terminal.'''

{{IconSet|h3|2}} '''Update package lists.'''

{{CodeSelect|code=
sudo apt update
}}

{{IconSet|h3|3}} '''Install VirtualBox and Linux kernel headers.'''

{{CodeSelect|code=
sudo apt install --no-install-recommends {{{virtualbox_package_debian}}}
}}

{{IconSet|h3|4}} '''Add your current user to group <code>vboxusers</code>.''' <ref name=vboxusersgroupadd />

{{CodeSelect|code=
sudo adduser $(whoami) vboxusers
}}

{{IconSet|h3|5}} '''Done.'''

The procedure of installing the VirtualBox host software is complete.
}}
}}<!-- close mbox -->
}}<!-- close tab : Kicksecure -->
{{Tab
|title= === Linux ===
|image=[[File:Logo-linux-500x500.png|alt=Logo Linux|50px]]
|content=
{{Box|text=
'''Hosts using a non-Debian operating system:'''

* '''Install VirtualBox as per the normal mechanism for your Linux distribution'''. No special instructions for {{project_name_short}} are required. The installation of a recent VirtualBox host software is [[Unspecific|unspecific to {{project_name_short}}]]. Consult the documentation of your Linux distribution.
* {{project_name_short}} has has been tested with, expects VirtualBox version <code>{{{virtualbox_version}}}</code>.
* For example the outdated VirtualBox version <code>5.2.18</code> is incompatible.
}}

{{mbox
| image   = [[File:Ambox_notice.png|25px|alt=info]]
| text    =
'''General recommendations for users using Linux as a host operating system:'''

'''Linux kernel version:'''
* The recommended <u>host</u> Linux kernel version is the same version that Debian <code>{{Stable project version based on Debian codename}}</code> is using, see [https://packages.debian.org/{{Stable project version based on Debian codename}}/linux-image-amd64 <code>linux-image-amd64</code>].
* Newer <u>host</u> Linux kernel versions are likely to break VirtualBox VMs [[Kernel#Kernel_Issues|in many ways]] since these are unsupported by VirtualBox. <ref>
https://www.virtualbox.org/ticket/17055#comment:3
</ref>
'''Host operating system.''' The recommended <u>host</u> Linux distributions are:
* preferably the stable version of {{Kicksecure}} <code>{{VersionShort}}</code>, or
* [https://www.debian.org/ Debian Linux] version <code>{{Stable project version based on Debian codename}}</code>.
}}<!-- close box : non-Debian operating system -->
}}<!-- close tab : Linux -->
}}<!-- close tab controller : Download And Installation -->
<noinclude>
= Footnotes =
<references />
{{Footer}}
[[Category:MultiWiki]]
</noinclude>