VirtualBox Notes

1. Install

  1. First stop any existing running instance:

    sudo systemctl stop virtualbox.service
  2. Get VirtualBox

    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian jammy contrib" |
    sudo tee /etc/apt/sources.list.d/vbox.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-get update
  3. Install VirtualBox

    sudo apt-get install virtualbox-7.0 -y

2. Troubleshooting

2.1. Guru Meditation Error

  • If you see this all of a sudden, it may be due to a recent kernel update.
    You may need to find a newer version of VirtualBox or revert to a previous kernel version:

    Guru Meditation Error

3. Create Windows 11 VM

3.1. Create a new Windows 11 VM

3.2. Install Windows 11

  1. Start up the VM.

  2. Select the Windows 11 .iso file.

  3. Begin the install process.

  4. Continue the install until reaching this screen:

    This PC can’t run Windows 11

    PC Cant Run Windows 11

  5. At this point we need to stop the install and create new registry entries.

  6. Click the red X button in the upper right-hand corner.

  7. Choose the VirtualBox menu option Input  KeyBoard  Soft Keyboard

  8. From the Soft Keyboard, select Shift+F10 to open a cmd prompt window.

  9. Now close the Soft Keyboard

  10. From the cmd prompt window, run the regedit command.

  11. Navigate to the HKEY_LOCAL_MACHINE  SYSTEM  Setup key:

    Registry Folder

  12. Right-mouse click on the Setup key and select New  Key to create a new key named LabConfig

  13. Create two new keys:

    1. Right-mouse click on the LabConfig key and select New  DWORD and create a key named BypassSecureBootCheck and set the value to 1.

    2. Right-mouse click on the LabConfig key and select New  DWORD and create a key named BypassTPMCheck and set the value to 1.

    3. These are the two new keys:

      New Regedit Keys

  14. Close the Registry Editor Window.

  15. Close the cmd window.

  16. Click the Install now button to restart the install process.
    The install process should get past the previous point where we saw, This PC can’t run Windows 11.

3.3. Domain Join

  1. Follow these instructions

Requires Active Directory Domain Services (AD DS)