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

Discussions about using Linux guests in VirtualBox.
Post Reply
Humbert
Posts: 4
Joined: 22. May 2017, 03:14

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

Post 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 2712 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 2712 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 2712 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 2712 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.
Last edited by Humbert on 22. May 2017, 16:24, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: [DEBIAN] GFXPAYLOAD failure with Linux Guest Additions

Post 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.
Humbert
Posts: 4
Joined: 22. May 2017, 03:14

Re: [DEBIAN] GFXPAYLOAD failure with Linux Guest Additions

Post 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.
Last edited by socratis on 22. May 2017, 15:13, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: [DEBIAN] GFXPAYLOAD failure with Linux Guest Additions

Post 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.
Humbert
Posts: 4
Joined: 22. May 2017, 03:14

Re: [DEBIAN] GFXPAYLOAD failure with Linux Guest Additions

Post by Humbert »

SOLVED!

Thank's for the support and have a nice day.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post 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.
Humbert
Posts: 4
Joined: 22. May 2017, 03:14

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

Post by Humbert »

Yup, you did well.
Post Reply