Guest Additions slows down VM on windows 11

Discussions about using Linux guests in VirtualBox.
Post Reply
Bedna
Posts: 7
Joined: 20. Dec 2022, 16:49

Guest Additions slows down VM on windows 11

Post by Bedna »

I recently got a new computer that made me upgrade to win 11. ryzen 9, 3090, 32gb mem, yada yada yada.
Installed the latest ver of virtualbox but got the "missing phyton" warning, installed python but still got the warning but ignored it, it did the same on my win 10 machine and it still worked perfect anyway.
Created a debian-11.5.0-amd64-netinst VM since that was what I was running on my old win 10 machine but after installation the VM ran super sluggy.
I installed Guest Additions together with the debian (when I created the machine) so it took me a while to figure out that THAT is the culprit.

I have tried changes to almost everything, reinstalled the latest version of Guest additions (but since I don't see it in the windows installed apps I cant uninstall it before but rather just install again).

I searched the interweb and the only thing I could find was a post from 2018 (not allowed to post links since new account so I guess I don't provide the link) that describes the same behavior down to the letter, but that got fixed with an update of virtualbox, does that mean this is a bug?

So I made another install but without running the guest additions and voila, runs fluently, but I cant copy paste, unless I SSH with putty into the machine, but c'mon...

EFI install of the image also doesn't work, it doesn't even detect any disks, but that is less important, the copy/paste is!

What do I do?
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Guest Additions slows down VM on windows 11

Post by mpack »

Please provide a VM log file. Make sure the VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Attach the zip here.
Bedna
Posts: 7
Joined: 20. Dec 2022, 16:49

Re: Guest Additions slows down VM on windows 11

Post by Bedna »

Forgot to click the "notify me", hence the delayed reply.

*edit. This is an installation of Debian 11.6 but it acts the exact same way as 11.5. I have both setup right now, if you want me to sent me the log file of the vm without the guest additions installed, give me a shout.
Attachments
Debian 11.6-2022-12-21-04-44-18.rar
(39.09 KiB) Downloaded 8 times
Bedna
Posts: 7
Joined: 20. Dec 2022, 16:49

Re: Guest Additions slows down VM on windows 11

Post by Bedna »

Here is the link to the old thread I was mentioning.

viewtopic.php?f=6&t=88414

Any progress on this?

As for now, I was forced to uninstall and use another VM software, I cant wait 5s to be able to interact with anything graphical in VirtualBox. With my hardware, this is terrible tbh.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Guest Additions slows down VM on windows 11

Post by mpack »

Bedna wrote: Any progress on this?
7.0.6 has been released, I suggest you give it a try. Remember to update the GAs as well. Plus I would update the graphics RAM to 128MB.

And check inside the guest OS process list for CPU hogs. CPU time is like energy: it gets converted into work, it never just disappears.
Bedna
Posts: 7
Joined: 20. Dec 2022, 16:49

Re: Guest Additions slows down VM on windows 11

Post by Bedna »

I WAS set to max (128) gpu mem, doesn't it say that in the log??
It's better, now I can at least open menus without having to wait 2-5s before I can click. Now it's just graphical lag, but I can live with that I guess, although I have to point out that this should not happen with my hardware, and doesn't on other VM software.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Guest Additions slows down VM on windows 11

Post by scottgus1 »

Bedna wrote:I WAS set to max (128) gpu mem, doesn't it say that in the log??
00:00:01.952868 VRamSize <integer> = 0x0000000004000000 (67 108 864, 64.0 MiB)
No.

Please repost a zipped log so we can see what has been changed.
Bedna
Posts: 7
Joined: 20. Dec 2022, 16:49

Re: Guest Additions slows down VM on windows 11

Post by Bedna »

Here ya go.
Attachments
Debian 11.6-2023-01-31-18-33-04.rar
(36.43 KiB) Downloaded 5 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Guest Additions slows down VM on windows 11

Post by mpack »

You somehow seem to have gone backwards. Your previous log showed 7.0.4 GAs.
00:00:18.856365 VMMDev: Guest Additions information report: Version 6.0.0 r127566 '6.0.0'
00:00:18.856383 VMMDev: Guest Additions information report: Interface = 0x00010004 osType = 0x00053100 (Linux >= 2.6, 64-bit)
Bedna
Posts: 7
Joined: 20. Dec 2022, 16:49

Re: Guest Additions slows down VM on windows 11

Post by Bedna »

Yeah, you tell me what happens with the software. I installed the latest ver of VirtualBox (I apparently didn't uninstall the old version so it updated the software).
Started Virtualbox. Got prompted that the guest additions needed to be updated so I agreed and accepted the changes. Started the guest machine and used device>upgrade guest additions.
Updated the actual guest machine software. Rebooted, tested and shutdown. Then gave you the logs.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Guest Additions slows down VM on windows 11

Post by scottgus1 »

It could be possible the auto update of Guest Additions failed.

Linux distros 'helpfully' pre-install their fork of Guest Additions in their OS's on the off chance it will be installed in a Virtualbox VM. Doesn't help much with Official Virtualbox.

Or it's a mix of fork & official GAs, which is worse.

Please try manually uninstalling and purging everything related to the Guest Additions inside the VM OS. Reboot, then handle the prerequisites and install 7.0.6 GAs manually: https://www.virtualbox.org/manual/ch04. ... ions-linux and https://www.virtualbox.org/manual/ch02. ... nux-prereq. Also, watch the terminal installation report when running the GAs installer. Error messages will show if the install ran into a problem.

Then please re-post a zipped log.
Bedna
Posts: 7
Joined: 20. Dec 2022, 16:49

Re: Guest Additions slows down VM on windows 11

Post by Bedna »

No Idea what is going on here...

Code: Select all

$ sudo sh ./VBoxLinuxAdditions.run uninstall
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.6 Guest Additions for Linux  100%  
VirtualBox Guest Additions installer
Removing installed version 7.0.6 of VirtualBox Guest Additions...
update-initramfs: Generating /boot/initrd.img-5.10.0-20-amd64
But here goes...

Code: Select all

$ sudo apt install linux-headers-amd64 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  linux-headers-5.10.0-21-amd64 linux-headers-5.10.0-21-common
The following NEW packages will be installed:
  linux-headers-5.10.0-21-amd64 linux-headers-5.10.0-21-common
  linux-headers-amd64
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.1 MB of archives.
After this operation, 59.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.debian.org/debian-security bullseye-security/main amd64 linux-headers-5.10.0-21-common all 5.10.162-1 [9,060 kB]
Get:2 http://security.debian.org/debian-security bullseye-security/main amd64 linux-headers-5.10.0-21-amd64 amd64 5.10.162-1 [1,066 kB]
Get:3 http://security.debian.org/debian-security bullseye-security/main amd64 linux-headers-amd64 amd64 5.10.162-1 [1,180 B]
Fetched 10.1 MB in 13s (792 kB/s)                                              
Selecting previously unselected package linux-headers-5.10.0-21-common.
(Reading database ... 165463 files and directories currently installed.)
Preparing to unpack .../linux-headers-5.10.0-21-common_5.10.162-1_all.deb ...
Unpacking linux-headers-5.10.0-21-common (5.10.162-1) ...
Selecting previously unselected package linux-headers-5.10.0-21-amd64.
Preparing to unpack .../linux-headers-5.10.0-21-amd64_5.10.162-1_amd64.deb ...
Unpacking linux-headers-5.10.0-21-amd64 (5.10.162-1) ...
Selecting previously unselected package linux-headers-amd64.
Preparing to unpack .../linux-headers-amd64_5.10.162-1_amd64.deb ...
Unpacking linux-headers-amd64 (5.10.162-1) ...
Setting up linux-headers-5.10.0-21-common (5.10.162-1) ...
Setting up linux-headers-5.10.0-21-amd64 (5.10.162-1) ...
Setting up linux-headers-amd64 (5.10.162-1) ...

Code: Select all

$ sudo rcvboxadd setup
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up 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: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 5.10.0-21-amd64.
update-initramfs: Generating /boot/initrd.img-5.10.0-21-amd64
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted
$ sudo reboot now

Code: Select all

$ sudo sh ./VBoxLinuxAdditions.run 
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.6 Guest Additions for Linux  100%  
VirtualBox Guest Additions installer
Removing installed version 7.0.6 of VirtualBox Guest Additions...
update-initramfs: Generating /boot/initrd.img-5.10.0-20-amd64
update-initramfs: Generating /boot/initrd.img-5.10.0-21-amd64
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up 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: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 5.10.0-21-amd64.
update-initramfs: Generating /boot/initrd.img-5.10.0-21-amd64
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted
$ sudo reboot now
IDK whats going on, clearly 7.0.6 was installed, and uninstalled 2 times then reinstalled during this process and we are back to the terrible way it was before it "kinda" worked for me. The whole Guest freezes every few seconds, can't even type freely in a terminal, ie, input is not being buffered. sigh
Attachments
Debian 11.6-2023-02-01-00-49-05.rar
(36.03 KiB) Downloaded 1 time
Post Reply