VirtualBox 7.0.6, Ubuntu 22.04 host, Ubuntu 20.04/22.04 autoinstall hangs on reboot

Discussions about using Linux guests in VirtualBox.
Post Reply
emulat0r
Posts: 2
Joined: 22. Feb 2023, 21:38

VirtualBox 7.0.6, Ubuntu 22.04 host, Ubuntu 20.04/22.04 autoinstall hangs on reboot

Post by emulat0r »

Hi, im using VirtualBox 7.0.6 on Ubuntu 22.04 host to do a automated image for Ubuntu 20.04 and 22.04 using Packer. When I run the Ubuntu autoinstall, everything works fine up until the autoinstall reboots the instance and the instance just hangs and doesnt successfully reboot. The instance does not have guest additions installed (I dont plan on installing it either, ive never had to with this same process when doing an 18.04 image). I can rule out Packer and the automation as being the issue because the automation works fine on qemu and the instances dont hang on qemu. So whatever is happening here is Virtualbox specific (aside from the fact that its running significantly slower on Virtualbox than on qemu).

Has anyone seen this issue before?
 Edit:  Note: I am referring to Ubuntu's builtin autoinstall (aka the subiquity autoinstall replacement for debian-installer and not Virtualbox's autoinstall feature). 
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VirtualBox 7.0.6, Ubuntu 22.04 host, Ubuntu 20.04/22.04 autoinstall hangs on reboot

Post by mpack »

Please provide a VM log. 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.
emulat0r
Posts: 2
Joined: 22. Feb 2023, 21:38

Re: VirtualBox 7.0.6, Ubuntu 22.04 host, Ubuntu 20.04/22.04 autoinstall hangs on reboot

Post by emulat0r »

I figured out the problem. I had to disable x2apic and it started working ok. So i set `--bios-acpi acpi --x2acpi off` instead of `--bios-acpi x2acpi --x2acpi on` and that seems to have resolved the issue. This was never a problem for 18.04 before with this setting enabled.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VirtualBox 7.0.6, Ubuntu 22.04 host, Ubuntu 20.04/22.04 autoinstall hangs on reboot

Post by mpack »

Sorry, that sounds like a kludge, not a rational solution. There's no way an Ubuntu from this decade doesn't understand what an x2apic is. Also you seem to be conflating APIC with ACPI (one is a chip that manages interrupts etc, the other is mainly a power management protocol). It would be good to not mess with these things.
Post Reply