[Solved] Debian guest won't go in full screen any more

Discussions about using Linux guests in VirtualBox.
Post Reply
emil78
Posts: 112
Joined: 15. Jun 2012, 11:28

[Solved] Debian guest won't go in full screen any more

Post by emil78 »

I have debian stretch guest machine. I updated the guest machine and also updated virtualbox to the current version 6.0.4. But guest machine won't go in full screen any more. If i try to install new guest additions i get:

Code: Select all

Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.4 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.0.4 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: Kernel headers not found for target kernel 
4.9.0-8-amd64. Please install them and execute
  /sbin/rcvboxadd setup

Also, if i run 'lsmod | grep vbox' i don't get any results, which mean no vbox modules are loaded.
Last edited by socratis on 13. Feb 2019, 11:41, edited 1 time in total.
Reason: Marked as [Solved].
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Debian guest won't go in full screen any more

Post by socratis »

emil78 wrote:
VirtualBox Guest Additions: Kernel headers not found for target kernel
4.9.0-8-amd64. Please install them and execute
  /sbin/rcvboxadd setup
I believe the error message is clear. Which part you don't understand? You're missing the headers for your current kernel.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
emil78
Posts: 112
Joined: 15. Jun 2012, 11:28

Re: Debian guest won't go in full screen any more

Post by emil78 »

How to install the headers? If i run 'apt update' and then 'apt dist-upgrade' it shows that no new updates need to be installed.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Debian guest won't go in full screen any more

Post by socratis »

If you have never installed the headers, there's going to be nothing to update, so that's not surprising. I use the following command to get the correct headers:

Code: Select all

apt-get install kernel-headers-$(uname -r) kernel-devel-$(uname -r)
But this is mostly a Debian question, not a VirtualBox one...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
emil78
Posts: 112
Joined: 15. Jun 2012, 11:28

Re: Debian guest won't go in full screen any more

Post by emil78 »

Installing the headers fixed the problem. Thanks.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Debian guest won't go in full screen any more

Post by socratis »

Glad you got it going. Marking as [Solved].
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
umairahmedshah
Posts: 1
Joined: 14. Feb 2019, 17:40

Re: [Solved] Debian guest won't go in full screen any more

Post by umairahmedshah »

The command contains
linux-headers
instead of
kernel-headers
I ran the following in my terminal.

Code: Select all

apt-get install linux-headers-$(uname -r)
leonardopereira
Posts: 28
Joined: 16. Aug 2018, 16:42
Primary OS: MS Windows 10
VBox Version: OSE Debian
Guest OSses: Linux Mint 18

Re: [Solved] Debian guest won't go in full screen any more

Post by leonardopereira »

umairahmedshah wrote: I ran the following in my terminal.

Code: Select all

apt-get install linux-headers-$(uname -r)
Worked fine for me using sparkylinux in virtualbox 6.1.16. Thanks a lot.
Post Reply