Tidying up the Virtualbox boot sequence (force_addr=0xaddr etc)

Cosmetic I know, but when running Ubuntu in virtualbox, two annoying issues are visibly seen during the boot sequence –

– long black screen, followed by

– a visual switch to display the error “piix4_smbus 0000.00.07.0: SMBus base address uninitialized – upgrade bios or use force_addr=0xaddr”

– followed by another switch to lightdm

Well, the issues are:

– Virtualbox drivers are not KMS based – which doesnt allow plymouth to correctly run when it should

– the Virtualbox bios doesnt support the kernel module Ubuntu is attempting to load

To resolve this needs a quick tweak.

First though, lets remove all the old kernels we dont need otherwise the tweaks below will take forever to complete (copy and paste this into a terminal):

sudo apt-get remove --purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')

Now lets hide the attempt to load the kernel module causing the TTY switch

sudo nano /etc/modprobe.d/blacklist.conf

Add the following line to the end of the file and save  (CTRL+O following by CTRL+X)

blacklist i2c_piix4

Next, force plymouth to use the standard boot Framebuffer

echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash

Lastly, lets update stuff to ensure the above changes are recognized in the boot sequence

sudo update-initramfs -u -k all

Reboot and enjoy.


3 thoughts on “Tidying up the Virtualbox boot sequence (force_addr=0xaddr etc)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s