Skip to main content

Enable re-sizing of Manjaro 18.1 VirtualBox VM

I have installed Manjaro 18.1 as a VM using VirtualBox. Tried to use the default configuration using Type = Linux, Version = Arch Linux (64-bit) as Manjaro was not availabe as an option when creating a VM in VirtualBox. Unfortunately, this sets the Graphics Controller to VMSVGA which was too late for me to learn as this prevents resizing of the VM display.

Anyway, to fix this, do the following.

Update Manjaro for good measure
$: sudo pacman -Syu

If kernel is updated, restart the VM:
$: sudo reboot

Get the kernel in use as this will be needed later.
$: uname -r

Mine shows this
5.4.13-3-MANJARO

Install VirtualBox guest utils
$: sudo pacman -S virtualbox-guest-utils
At a later point it will ask for VIRTUALBOX-GUEST-MODULES, this will be the kernel guest module that needs to be installed which should match with the running kernel. For example in my VM, console output shown below, I have to select 7 as I am running kernel 5.4 (5.4.13-3-MANJARO).
resolving dependencies...
:: There are 11 providers available for VIRTUALBOX-GUEST-MODULES:
:: Repository extra
   1) linux316-virtualbox-guest-modules  2) linux414-virtualbox-guest-modules
   3) linux419-virtualbox-guest-modules  4) linux44-virtualbox-guest-modules
   5) linux49-virtualbox-guest-modules  6) linux53-virtualbox-guest-modules
   7) linux54-virtualbox-guest-modules  8) linux55-virtualbox-guest-modules
:: Repository community
   9) linux419-rt-virtualbox-guest-modules
   10) linux54-rt-virtualbox-guest-modules  11) virtualbox-guest-dkms

Enter a number (default=1): 7

Remove video driver for VMware as this is not needed anymore.
$: sudo mhwd -r pci video-vmware

Next up is to shutdown the VM as we need to change the configuration.
$: sudo shutdown -h now

Once the VM is down, change configuration Graphics Controller to VBoxVGA ( Settings | Display | Graphics Controller to VBoxVGA). Start the VM, login and resize the VM window size - should work by now. You might need to click inside the VM to force it to resize.

Reference:
https://unix.stackexchange.com/questions/499938/manjaro-guest-on-virtualbox-not-able-to-get-the-full-resolution

Comments

Popular posts from this blog

Error! Could not locate dkms.conf file install VirtualBox 4.1.8 on Ubuntu 11.10

Tried to update my Ubuntu host today and it did pickup that new version of VirtualBox is available (4.1.8). All other packages installed properly except that VirtualBox installation was complaining about missing dkms.conf file, see error message below. $: sudo /etc/init.d/vboxdrv setup * Stopping VirtualBox kernel modules [ OK ] * Uninstalling old VirtualBox DKMS kernel modules Error! Could not locate dkms.conf file. File: does not exist. [ OK ] * Trying to register the VirtualBox kernel modules using DKMS [ OK ] * Starting VirtualBox kernel modules [ OK ] Though it looks like installation was fine but I am concerned about its effects to VirtualBox functionality. To fix this, do: $: cd /var/lib/dkms/vboxhost $: sudo rm -r 4.1.4 $: sudo /etc/init.d/vboxdrv setup Of course you have to re

The following add-ins could not be started MonoDevelop.GnomePlatform

Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message: The following add-ins could not be started: The root of the trace shows MonoDevelop.GnomePlatform,2.8 A quick search shows that MonoDevelop depends on libgnomeui . This should have been part of dependencies when installing the application but well.... Below is the screen shot of the error message. References: http://software.1713.n2.nabble.com/MonoDevelop-and-openSUSE-12-1-td7462957.html [2013/04/09] - Same issue observed in OpenSUSE 12.3 and also the same fix. [2014/11/02] - Same issue observed in OpenSUSE 13.3, mondevelop 3.0.6 and the same fix.