Kali linux vbox guest additions

Kali linux vbox guest additions

Installing “Guest Addition”, gives a better user experience with VirtualBox VMs (e.g. proper mouse and screen integration, as well as folder sharing). This is why since Kali Linux 2019.3, during the setup process it should detect if Kali Linux is inside a VM. If it is, then automatically install any additional tools (in VirtualBox’s case, virtualbox-guest-x11 ). The Guest Addition is also pre-installed in the Live image since Kali Linux 2021.3.

You must use VirtualBox 4.2.xx or higher in order to take advantage of the improvements, including compatibility updates, and enhanced stability of both the core application and the Guest Additions.

virtualbox-guest-x11

Should you decide to create your own VirtualBox installation of Kali Linux (rather than using our pre-made VirtualBox images), and you want to force a manual reinstall of virtualbox-guest-x11 (as something has gone wrong), first make sure you are fully updated, then enter the following:

[email protected]:~$ sudo apt update [. ] [email protected]:~$ [email protected]:~$ sudo apt install -y --reinstall virtualbox-guest-x11 [. ] [email protected]:~$ [email protected]:~$ sudo reboot -f [email protected]:~$ 

For older versions of Kali Linux, here is our previous guide.

Updated on: 2023-Mar-06
Author: g0tmi1k

Источник

How to install VirtualBox guest additions on Kali Linux

If you’re running Kali Linux inside a VirtualBox virtual machine, installing the Guest Additions software will help you get the most out of the system. VirtualBox Guest Additions will give the machine more capabilities, such as a shared clipboard with the host system, drag and drop file transfer, and automatic window resizing.

This makes copying data to and from a host system much more convenient. It also changes the VM’s resolution automatically when its window is resized, so you don’t need to change it manually. Guest Additions will work with just about any Linux distribution, but instructions can differ because of dependencies and package managers. Normally, Kali will automatically detect what platform the operating system has been installed on, and will include Guest Additions (if applicable) by default. If yours isn’t working or you just need to know how to use the features, we’ve got you covered in this guide.

In this guide, we’ll be going over the step by step instructions to get VirtualBox Guest Additions installed on Kali Linux. With these instructions, it doesn’t matter what host system you’re using, as long as the virtual machine is running Kali. This guide assumes that you’ve already installed Kali in the VM correctly.

Читайте также:  Opera mail on linux

In this tutorial you will learn:

Installation of VirtualBox Guest Additions on Kali Linux

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Kali Linux
Software VirtualBox Guest Additions
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

Install VirtualBox Guest Additions

Make sure your Kali virtual machine is powered on. Then, follow along with the steps below to install Guest Additions.

    Before starting, we need to make sure that Kali is up to date and has all new versions of software installed. Type the following commands in terminal to prepare the system.

$ sudo apt update $ sudo apt full-upgrade $ sudo apt -y autoremove
$ sudo apt install virtualbox-guest-x11

If the output tells you that the package is already installed, but you’ve observed that it’s not working, you can reinstall it with the following command.

$ sudo apt install -y --reinstall virtualbox-guest-x11

That’s all there is to it. When Kali finishes loading back up, you’ll be able to utilize the shared clipboard, drag and drop function, and automatic resolution resizing. Make sure you enable the shared clipboard and drag and drop option if you wish to use them, from inside the Devices menu.

Enable the shared clipboard and drag and drop features

Closing Thoughts

In this guide, we saw how to install VirtualBox Guest Additions on a Kali Linux VM. VirtualBox’s Guest Additions software makes virtual machines much easier to use. Although Kali usually includes Guest Additions by default, this doesn’t always work perfectly in the real world. You now know how to manually install the software, as well as enable its features from inside the VirtualBox menus.

Источник

How to Install VirtualBox Guest Additions on Kali Linux?

How to Install VirtualBox Guest Additions on Kali Linux

In this article, I’m going to show you that how to install VirtualBox Guest Additions on Kali Linux. When you are installing Kali Linux on VirtualBox or VMware, it’s important to install guest additions on VBox and VMware tools on VMware. If you want to have a wide display and everything works as real, so it’s more important.

On VMware, it’s very easy without any problem you can install it but on VBox, it’s not that much easy. You must run some commands. Anyway, in this post I’m going to show you in step by step.

Install VirtualBox Guest Additions on Kali Linux

The VirtualBox Guest Additions provide proper mouse and screen integration, as well as folder sharing, with your host operating system. To install them, proceed as follows.

Start up your Kali Linux virtual machine, open a terminal window and issue the following commands.
These commands are for latest Kali Linux version.

How to Install VirtualBox Guest Additions on Kali Linux?

Second Method

If the above method did not work for you, try this technique. Both methods provide proper mouse and screen integration. When you install the Guest Additions on the guest environment, all the good and advanced feature that you have on real machine. You’ll have those features on the guest environment.

Читайте также:  Kyocera fs 1040 линукс

Step #1. Start VM and login to your Kali Linux operating system. Once you loged in, from the top menu, tap on “Devices” then click on “Insert Guest Additions CD Image“. This is going to work when your virtual machine is turned on.

How to Install VirtualBox Guest Additions on Kali Linux?

Insert Guest Additions CD Image

A new small window will pop up for you that saying “The software will run directly from the medium VBOXADDITIONS_4.2.8. You should never run software that you don’t trust. If in doubt, press Cancel.” You’ll see this message. What you are going to do? If you click on “Run”, nothing will happen. Press “Cancel“.

How to Install VirtualBox Guest Additions on Kali Linux?

Run Guest Additions on Kali Linux

Step #2. Now Open terminal then type these commands.

  • cp / media / cd-rom / VBoxLinuxAdditions.run / root /
  • chmod 755 / root / VBoxLinuxAdditions.run
  • cd / root
  • . / VBoxLinuxAdditions.run
  • Reboot

How to Install VirtualBox Guest Additions on Kali Linux?

Installing VirtualBox Guest Additions Kali Linux

When typed “Reboot”, your virtual machine will restart automatically. After restarting, you’ll have an awesome wide screen.

Conclusion

In this article, I covered that how to install VirtualBox guest additions on Kali Linux and how the commads worked. All these tasks done in this post. If you did not understand any command or any parts, let us know. Thanks for being with us.

Источник

Install VirtualBox Guest Additions on Kali Linux 2021.3

In this tutorial, you will learn how to install VirtualBox guest additions on Kali Linux 2021.3.

Guest additions offers many other features;

  • Run VM in fullscreen mode
  • Mouse pointer integration
  • Shared folders for easy sharing of files between the host and the guest
  • Ensures better and accelerated video performance.
  • Seamless windows integration
  • Generic host/guest communication channels that enables you to control and manage guest execution.
  • Provides Host-Guest time synchronization.
  • Shared clipboard between host and guest vm.
  • Automated logins.

Install VirtualBox Guest Additions on Kali Linux 2021.3

There are two ways in which you can install VirtualBox guest additions on Kali Linux 2021.3.

Install VirtualBox Guest Additions on Kali Linux 2021.3 via x11 Guest Utilities package

The virtualbox-guest-x11 package X11 Guest Utilities.

To install this package, you need to have the Kali Linux repositories installed.

Check if you Kali Linux repos installed;

grep -v '#' /etc/apt/sources.list | sort -u
deb http://http.kali.org/kali kali-rolling main non-free contrib deb-src http://http.kali.org/kali kali-rolling main non-free contrib

If the command output is empty, run the command below to install Kali Linux rolling release repositories.

Run system package cache update once the repos are installed.

Install VirtualBox x11 guest utilities.

apt install virtualbox-guest-x11

Once the installation is done, reboot the system;

Your Kali Linux 2021.3 is now running in fullscreen on VirtualBox.

If the screen doesn’t automatically resize to fullscreen on reboot, you can toggle the screen auto-resize by navigating to VirtualBox VM menu View > Auto-resize Guest display .

Install VirtualBox Guest Additions on Kali Linux 2021.3

Install VirtualBox Guest Additions via Guest Additions ISO

To install VirtualBox Guest Additions via Guest additions ISO file, you need to insert the guest additions iso/image file into your Kali Linux 2021.3 virtual machine.

Читайте также:  Линукс открыть pdf файл

Install Linux Headers, DKMS and Build Tools

To verify if these build requirements have already been installed, run the command below;

sudo dpkg -l | grep -E "dkms|linux-headers-$(uname -r)|build-essential"
ii build-essential 12.9 amd64 Informational list of build-essential packages

The ii means that the the build-essential tools is installed.

Install the missing packages;

sudo apt install dkms linux-headers-$(uname -r) build-essential

Insert the Guest Additions Image into the Kali Linux 2021.3 virtual machine

Guest additions image can be inserted into a VirtualBox virtual machine manually via the VM menu or by installing the virtualbox-guest-additions-iso package.

Insert Guest Additions Image manually

Guest additions image can be manually inserted into a vm via the VM virtualbox menu.

Before the image can be inserted into the vm, ensure that you have unallocated (empty) controller IDE from virtual machine storage settings to insert the image.

Once the installation is done, insert the Guest Additions ISO into the vm from the menu bar > Devices > Insert Guest Additions CD Image.

Once you insert the image, a dialog box which prompts you to run or cancel the Guest Additions installer is launched.

If no dialog is launch upon Guest addition image insertion, simply double click the image icon the desktop to mount it.

The virtualbox guest additions image can be mounted on either, /media/ .

You can find the mount point using df -h command.

Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 957M 0 957M 0% /dev tmpfs tmpfs 199M 1000K 198M 1% /run /dev/sda1 ext4 15G 9.7G 4.4G 70% / . . /dev/sr1 iso9660 59M 59M 0 100% /media/cdrom1

Insert Guest additions Image by installing it

You can as well install the VirtualBox Guest additions iso/image file from Kali Linux repositories;

sudo apt install virtualbox-guest-additions-iso

When installed, the VirtualBox Guest Additions ISO is now available as /usr/share/virtualbox/VBoxGuestAdditions.iso .

To install the Guest Additions ISO, you need to mount it.

sudo mount -o loop /usr/share/virtualbox/VBoxGuestAdditions.iso /media/cdrom

Install VirtualBox Guest Additions on Kali Linux 2021.3

Next, run the Guest additions installer for Linux on Kali Linux 2021.3 VirtualBox vm.

Replace the path to the Guest additions installer appropriately.

bash /media/cdrom/VBoxLinuxAdditions.run

Once the installation is done, restart the system to reload the kernel modules and apply the changes.

Kali Linux 2021.3 FullScreen on VirtualBox

Your Kali Linux 2021.3 should now be running in fullscreen. If upon system reboot the screen doesn’t auto-resize automatically, be sure to toggle (off/on, so to say) View -> Auto-resize Guest Display on the VM menu bar to set right VM resolution.

Install VirtualBox Guest Additions on Kali Linux 2021.3

That concludes our guide on how to install VirtualBox Guest Additions on Kali Linux 2021.3 and run it on full-screen as well as shared clipboards between the host and the VM.

SUPPORT US VIA A VIRTUAL CUP OF COFFEE

We’re passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Источник

Оцените статью
Adblock
detector