Page 1 of 1

[SOLVED] [DEBIAN] GFXPAYLOAD failure with Linux Guest Additions

Posted: 22. May 2017, 04:50
by Humbert
Hello. I have a little issue with the Linux Guest Additions.

Steps to reproduce:
- install Debian 8 normally from the network ISO (WITHOUT GUI);
- login as root
- do the following command:

Code: Select all

# edit /etc/default/grub
- uncomment the line:

Code: Select all

#GRUB_GFXMODE=640x480
- and modify it as follow:

Code: Select all

GRUB_GFXMODE=1024x768
- add the following line just below:

Code: Select all

GRUB_GFXPAYLOAD_LINUX=keep
- save the file and quit the editor (CTRL + C --> :w --> CTRL + C --> :quit);
- do the following commands:

Code: Select all

# update-grub
# reboot now
- wait for the boot menu.
- observation: the parmeters that we modified above are good for the boot menu (resolution = 1024x768):
good1.JPG
good1.JPG (72.63 KiB) Viewed 2801 times
- press <enter> to boot on GNU/Linux;
- wait for the login prompt;
- observation: the parmeters that we modified above are also good for the terminal (resolution = 1024x768):
good2.JPG
good2.JPG (45.28 KiB) Viewed 2801 times
- login as root;
- insert the Guest Additions ISO;
- install the Guest Additions by the following commands:

Code: Select all

# apt-get install build-essential module-assistant
# apt-get install linux-headers-$(uname -r)
# mount /media/cdrom
# sh /media/cdrom/VBoxLinuxAdditions.run --nox11
# eject /media/cdrom
# reboot now
- wait for the boot menu;
- observation: the parmeters that we modified above are good for the boot menu (resolution = 1024x768):
good1.JPG
good1.JPG (72.63 KiB) Viewed 2801 times
- press <enter> to boot on GNU/Linux;
- wait for the login prompt;
- observation: the parmeters that we modified above are NOT GOOD for the terminal (resolution = 800x600):
notgood.JPG
notgood.JPG (37 KiB) Viewed 2801 times
Conclusion: Linux Guests Additions breaks the GFXPAYLOAD. (Title.)

Possible workaround: reject the screen resizing feature during installation. (I dont know how to do that.)

HOST:
OS: Windows 10.0.15063 (x64)
GPU: GTX 770

GUEST:
OS: Debian 8.8
Kernel: Linux 3.16.0-4-amd64

VM settings:
Default exept:
- RAM = 2048 Mo;
- VRAM = 64 Mo;
- CPU = 2.

Virtual Box:
Version: 5.1.22 r115126 (Qt5.6.2) + expansion pack.

Additional informations:
Installation packages: SSH server, standard system utilities.
The resolution switch happens during the initial system loading (just before the login prompt).

Thank's for help.

Re: [DEBIAN] GFXPAYLOAD failure with Linux Guest Additions

Posted: 22. May 2017, 13:41
by Perryg
I am curious as to what benefit you think you are/would get from installing the guest additions in a CLI guest? AFAIK without X the guest additions can not impact the screen size and I know nothing in them that would impact the boot parm. Have you verified that during the update or distro package install the boot parm was retained?

I will say the last time I tested this in Debian I had to actually manually edit two different files to get it to work properly. I don't remember which at the moment but a search on google should find the information you need. I also think I had to blacklist something, but again that should turn up in a search. I do know that framebuffers are a part of the OS and not VirtualBox.

Finally be careful when tinkering with the GFX lines. They are for graphics and not framebuffers. Meaning that you might be able to get a full screen at boot and then a fall back at login.

Re: [DEBIAN] GFXPAYLOAD failure with Linux Guest Additions

Posted: 22. May 2017, 14:42
by Humbert
Hello and thank's for your reply.

I use the Guest Additions because the shared folder feature which I need to use.

As you can see in the screenshots, the GFXPAYLOAD line works fine WITHOUT the Guests Additions.

It is after the Guest Additions installation that the problem happens.

And when I uninstall the Guest Additions by the command below, everything works again.

Code: Select all

sh /media/cdrom/VBoxLinuxAdditions.run uninstall
So it's looks like that Guest Additions alters the boot (and "force" 800x600 console resolution).

Have a nice day.

Re: [DEBIAN] GFXPAYLOAD failure with Linux Guest Additions

Posted: 22. May 2017, 16:15
by Perryg
Ok I found my notes on this. I set it like you in grub and it did as you saw, and remember I said something about a blacklist?.
Now add vboxvideo to "/etc/modprobe.d/fbdev-blacklist.conf" and reboot.

As a side note I don't remember this being needed is all distros but keep a note handy just in case.

Re: [DEBIAN] GFXPAYLOAD failure with Linux Guest Additions

Posted: 22. May 2017, 16:22
by Humbert
SOLVED!

Thank's for the support and have a nice day.

Re: [SOLVED] [DEBIAN] GFXPAYLOAD failure with Linux Guest Additions

Posted: 22. May 2017, 16:51
by Perryg
You're welcome. I have since added this to the tutorial section Linux-guests because I have so many notes after all the years I find it takes too long to find anything these days.

Re: [SOLVED] [DEBIAN] GFXPAYLOAD failure with Linux Guest Additions

Posted: 22. May 2017, 17:11
by Humbert
Yup, you did well.