Ubuntu 22.04 Support

Discussions about using Linux guests in VirtualBox.
agilis
Posts: 65
Joined: 21. Dec 2015, 18:46

Ubuntu 22.04 Support

Post by agilis »

Hello I am running Ubuntu Mate 22.04 with VirtualBox 6.1.34 and I am wondering if 22.04 is fully supported.

I use this guest OS as a programming environment at work and since the move to Ubuntu 22.04 from CentOS 7, I experience issues such as freezing, inability to click the mouse, and difficulty using Vagrant when bringing up the Guest instance. For example, I will attempt to reboot the Guest OS and I will end up freezing and after 10 minutes I am forced to power off the Guest where I am then booted into Recovery Mode. I also experience slow interaction times when trying to Save State.

When using Vagrant,

Code: Select all

vagrant reload
will often fail.

When referencing the documentation for VirtualBox, it does not show Ubuntu 22.04 as being fully supported but I am not sure if that documentation is up to date.
https://www.virtualbox.org/manual/ch03. ... tossupport

My machine specs are:
Intel Core i5-4590 @ 3.30GHz
RAM: 26 GB
Storage: SSD 250 GB
Windows 10 Build 1607 (My machine is locked to getting only security and essential updates)
Hyper-V is not installed.

Guest Machine Specs:
Ubuntu 64-bit
Base Memory: 6144 MB
Processors 2
Video RAM: 128 MB

Thank you in advance!
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Ubuntu 22.04 Support

Post by scottgus1 »

Start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.

Right-click the VM in the main Virtualbox window's VM list, choose Show Log. Save the far left tab's log, zip it, and post the zip file, using the forum's Upload Attachment tab.
agilis
Posts: 65
Joined: 21. Dec 2015, 18:46

Re: Ubuntu 22.04 Support

Post by agilis »

scottgus1 wrote:Start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.

Right-click the VM in the main Virtualbox window's VM list, choose Show Log. Save the far left tab's log, zip it, and post the zip file, using the forum's Upload Attachment tab.
Thanks for the response! Right now I'm up and running but when things happen again, such as a failed restart, etc. I will do as you asked.

Also, I'm assuming when you say "Power Off option set" to right-click on Machine. Close -> Power Off, correct?
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Ubuntu 22.04 Support

Post by scottgus1 »

agilis wrote:when you say "Power Off option set" to right-click on Machine. Close -> Power Off, correct?
Yes, if the VM can't be shut down from inside the VM's OS. The whole idea is to have all the windows associated with that VM, including error message boxes, close, or the log won't be complete.
agilis
Posts: 65
Joined: 21. Dec 2015, 18:46

Re: Ubuntu 22.04 Support

Post by agilis »

I was just in the Guest OS and lost the ability to use my mouse. Keyboard input was unaffected so I was able to shutdown via

Code: Select all

shutdown -h now
and successfully save the log which I have attached.
Attachments
RO Ubuntu MATE Development Environment-2022-07-19-17-55-09.zip
(53.31 KiB) Downloaded 10 times
agilis
Posts: 65
Joined: 21. Dec 2015, 18:46

Re: Ubuntu 22.04 Support

Post by agilis »

Okay. Happened again. But first some back story.

I have 3 display set up at work and at home when I'm working remote. My Ubuntu Mate Guest OS only uses 2 of those displays. When I switch back and forth between Home and Work, I have to ALWAYS switch the secondary display's arrangment both in Virtual Box (Wrong display is secondary) and then choose the specify the correct arrangement in Ubuntu Mate. I have to do this ALL the time.

When I went to perform these steps this morning after loading from a saved state, the GUI layer of Ubuntu Mate crashed hard. Screen went black, flashing cursor. I had to use CTRL-ALT 1 to switch to TTY1 which I was then able to shut down the Guest OS.

When I rebooted, I booted into a root terminal and had all kinds of write errors due to some kind of Recovery Mode I was in.

I have attached the logs for assistance.

Thank you in advance.
Attachments
RO Ubuntu MATE Development Environment-2022-07-22-11-23-20.zip
(34.73 KiB) Downloaded 5 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Ubuntu 22.04 Support

Post by scottgus1 »

There's a couple of these:
00:01:04.819212 AsyncCompletion: Task 0x00000007b66fc0 completed after 46 seconds
( ^ lines like this repeated ad infinitum ^ )
00:01:04.819347 VD#0: Read request was active for 46 seconds
00:01:04.819364 VD#0: Aborted read (0 bytes left) returned rc=VERR_PDM_MEDIAEX_IOREQ_CANCELED
00:01:04.820663 AHCI#0P0: Canceled read at offset 22305587200 (4096 bytes left) returned rc=VERR_PDM_MEDIAEX_IOREQ_CANCELED
Looks like the virtual drive #0 is having trouble reading its data, which probably means that 'C:\VirtualBox VMs\RO Ubuntu MATE Development Environment\box-disk001.vmdk' is stored on a host drive that is having problems.

Run a disk check on the host, and be prepared to rebuild the VM because the host drive has too many problems.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Ubuntu 22.04 Support

Post by fth0 »

Regarding your different issues:

1. I'd assess the disk I/O as a major problem in your setup.

2. I'd suggest to use VirtualBox 6.1.36, which brings improvements for multi-screen setups.

3. If you encounter the "mouse clicks don't work, but keyboard does" issue again, try if one of the following commands helps:

Code: Select all

sudo pkill -fx "/usr/bin/VBoxClient --draganddrop"
sudo pkill -fx "/usr/bin/VBoxClient --draganddrop" && /usr/bin/VBoxClient --draganddrop
agilis
Posts: 65
Joined: 21. Dec 2015, 18:46

Re: Ubuntu 22.04 Support

Post by agilis »

scottgus1 wrote:There's a couple of these:
00:01:04.819212 AsyncCompletion: Task 0x00000007b66fc0 completed after 46 seconds
( ^ lines like this repeated ad infinitum ^ )
00:01:04.819347 VD#0: Read request was active for 46 seconds
00:01:04.819364 VD#0: Aborted read (0 bytes left) returned rc=VERR_PDM_MEDIAEX_IOREQ_CANCELED
00:01:04.820663 AHCI#0P0: Canceled read at offset 22305587200 (4096 bytes left) returned rc=VERR_PDM_MEDIAEX_IOREQ_CANCELED
Looks like the virtual drive #0 is having trouble reading its data, which probably means that 'C:\VirtualBox VMs\RO Ubuntu MATE Development Environment\box-disk001.vmdk' is stored on a host drive that is having problems.

Run a disk check on the host, and be prepared to rebuild the VM because the host drive has too many problems.
Thank you very much for the recommendation. I did as you suggested and this was the result:

Code: Select all

Checking file system on C:
The type of the file system is NTFS.
Volume label is Windows.

A disk check has been scheduled.
Windows will now check the disk.                         

Stage 1: Examining basic file system structure ...
Cleaning up instance tags for file 0x37d3e.
  664576 file records processed.                                                         File verification completed.
  52257 large file records processed.                                      0 bad file records processed.                                      
Stage 2: Examining file name linkage ...
  872680 index entries processed.                                                        Index verification completed.
  0 unindexed files scanned.                                           0 unindexed files recovered to lost and found.                     
Stage 3: Examining security descriptors ...
Cleaning up 565 unused index entries from index $SII of file 0x9.
Cleaning up 565 unused index entries from index $SDH of file 0x9.
Cleaning up 565 unused security descriptors.
Security descriptor verification completed.
  104053 data files processed.                                            CHKDSK is verifying Usn Journal...
Usn Journal verification completed.

Stage 4: Looking for bad clusters in user file data ...
  664560 files processed.                                                                File data verification completed.

Stage 5: Looking for bad, free clusters ...
  15180580 free clusters processed.                                                        Free space verification is complete.

Windows has made corrections to the file system.
No further action is required.

 241248255 KB total disk space.
 179491324 KB in 386897 files.
    292660 KB in 104054 indexes.
         0 KB in bad sectors.
    741951 KB in use by the system.
     65536 KB occupied by the log file.
  60722320 KB available on disk.

      4096 bytes in each allocation unit.
  60312063 total allocation units on disk.
  15180580 allocation units available on disk.

Internal Info:
00 24 0a 00 2f 7d 07 00 e0 9d 0d 00 00 00 00 00  .$../}..........
a7 01 00 00 b5 00 00 00 00 00 00 00 00 00 00 00  ................

Windows has finished checking your disk.
Please wait while your computer restarts.
agilis
Posts: 65
Joined: 21. Dec 2015, 18:46

Re: Ubuntu 22.04 Support

Post by agilis »

fth0 wrote:Regarding your different issues:

1. I'd assess the disk I/O as a major problem in your setup.

2. I'd suggest to use VirtualBox 6.1.36, which brings improvements for multi-screen setups.

3. If you encounter the "mouse clicks don't work, but keyboard does" issue again, try if one of the following commands helps:

Code: Select all

sudo pkill -fx "/usr/bin/VBoxClient --draganddrop"
sudo pkill -fx "/usr/bin/VBoxClient --draganddrop" && /usr/bin/VBoxClient --draganddrop
Thank you for responding. I will upgrade to 6.1.36 and I just posted the results of check disk ran moments ago.
agilis
Posts: 65
Joined: 21. Dec 2015, 18:46

Re: Ubuntu 22.04 Support

Post by agilis »

So I'm attaching another log of the events that just happened moments ago. Could my VM disk itself be corrupted? Windows 10 check disk did not result in any major issue as far as I'm aware.

Edit: This is the output of fsck

Edit: Could this be related to antivirus? My VM is stored in the root of the C drive.

Code: Select all

sudo fsck -p /dev/sda3
fsck from util-linux 2.37.2
/dev/sda3: clean, 295830/1933312 fles, 3622165/7732224 blocks
Attachments
RO Ubuntu MATE Development Environment-2022-07-25-10-37-25.zip
(37.36 KiB) Downloaded 6 times
Leetmeymayk
Posts: 6
Joined: 10. Aug 2022, 18:10

Re: Ubuntu 22.04 Support

Post by Leetmeymayk »

Based on the information I saw, X based desktops should be supported buy Wayland ones aren't yet (no additions from distro, and ones installed manually don't work).
agilis
Posts: 65
Joined: 21. Dec 2015, 18:46

Re: Ubuntu 22.04 Support

Post by agilis »

This past Thursday I was in the middle of using Ubuntu Mate and all of a sudden the filesystem was mounted as read-only. It was at that point where I where I just assumed my virtual disk was just corrupted and fsck was not going to be able to rescue it.

I cloned the base .vdi image I used to create the .vmdk file and simply booted from that. I have had zero issues since making the switch. Shutdowns, Reboots have all been flawless.

I don't quite understand what corrupted the .vmdk file and I didn't know how to verify the integrity of the file.
agilis
Posts: 65
Joined: 21. Dec 2015, 18:46

Re: Ubuntu 22.04 Support

Post by agilis »

This experience was short-lived. I/O errors and filesystem switching to read-only came back when I booted the VM Monday afternoon. We are now suspecting that my SSD that is both storing the vM and is serving as Windows start-up disk is not able to meet the I/O demand at certain times and causing requests to be delayed. Plan of action is to add another SSD for just the VMs to be stored on and see if that fixes it.
agilis
Posts: 65
Joined: 21. Dec 2015, 18:46

Re: Ubuntu 22.04 Support

Post by agilis »

This seems to be an on-going issue:

https://www.virtualbox.org/ticket/10031
Post Reply