Skip to content

Esther7171/virtualbox-fullscreen_issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

VirtualBox Full Screen Guide

This guide provides two approaches to enabling full-screen mode in VirtualBox for Kali Linux. Choose the method that best suits your needs.

1. Simple Display Adjustment

If you're looking for a quick solution without needing advanced features, follow these steps:

  1. Open Display Settings:
    • Click on the Kali menu icon and search for Display.
  1. Adjust Display Resolution:
    • Set the display resolution to your preference.

2. Install Guest Additions Manually

If the first method doesn't work, or you need advanced functionality, follow these steps.

Why is Manual Installation Necessary?

VirtualBox may not properly detect the Kali Linux ISO, as shown below:

  • Kali ISO Not Detected Properly:
  • Ubuntu ISO Detected Correctly:

Steps to Install Guest Additions

Step 1: Insert the Guest Additions CD

  • Navigate to Devices in the VirtualBox menu.
    • Click Insert Guest Additions CD or Upgrade Guest Additions.

Step 2: Open Terminal in the CD Directory

  1. Open the CD folder.
  2. Right-click on any blank area and select Open Terminal.
  1. Gain root privileges:
    • Set a root password (if not already set):
      sudo passwd root
    • Switch to root:
      su

Step 3: Install Guest Additions

  1. Make the installer executable and run it:

    chmod 755 ./VBoxLinuxAdditions.run
    sh VBoxLinuxAdditions.run
  2. If the installation fails, install the required packages:

    sudo apt install build-essential linux-headers-$(uname -r)
    sudo apt install gcc make perl -y
  3. Run the installer again:

    sh VBoxLinuxAdditions.run
  4. Build the kernel modules:

    /sbin/rcvboxadd quicksetup all
  5. Restart your system:

    init 6
  6. Verify installation:

    lsmod | grep vboxguest
  7. To troubleshoot issues:

    nano /var/log/VBoxGuestAdditions.log

Step 4: Enable Full Screen

  1. In VirtualBox, go to View > Auto-resize Guest Display.
  2. Select Full Screen mode.

One-Line Command

For advanced users, here’s a single command to automate the setup:

sudo passwd root && chmod 755 ./VBoxLinuxAdditions.run && sh VBoxLinuxAdditions.run && sudo apt install build-essential linux-headers-$(uname -r) && apt install gcc make perl -y && apt install -y virtualbox virtualbox-dkms virtualbox-ext-pack virtualbox-guest-utils virtualbox-qt virtualbox-guest-additions-iso && /sbin/rcvboxadd quicksetup all && init 6

Update and Upgrade Script

To keep your system updated, create an automated script:

  1. Create a file named update.sh:

    nano update.sh
  2. Add the following content:

    #!/bin/bash
    sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get -y full-upgrade && sudo apt-get -y dist-upgrade && sudo apt autoremove -y
    echo "All done!"
  3. Save and close the file (Ctrl + X, then Y, and Enter).

  4. Make the script executable:

    chmod +x update.sh
  5. Run the script:

    ./update.sh

Badges

MIT License
GPLv3 License
AGPL License

For more information, visit the VirtualBox Linux build instructions.

Releases

No releases published

Packages

No packages published