Vagrant box ubuntu/focal64 dummy output and resize freezes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Expired
|
Undecided
|
Unassigned |
Bug Description
The Canonical official image Ubuntu 20.04 LTS
1.does not has sound (dummy output only in sound settings)
2.VMSVGA display mode in Virtualbox is not working well: a resize of the Windows freezes it.
Here is a reproducible way of the symptoms:
1. Creates a Vagrantfile with this content:
Vagrant.
config.vm.box = "ubuntu/focal64"
config.
config.
config.
s.inline= <<-'SHELL'
aptInstall() {
echo "$(date --iso-8601=s) Installing " "$@" | sudo tee -a /var/log/
( time sudo DEBIAN_
}
installDesk
if ! ( dpkg -l ubuntu-desktop ) &>/dev/null ; then
sudo apt update -y
fi
}
installDesktop
sudo usermod -a -G sudo,vboxsf vagrant
echo "[INFO] $0 $(id -nu): End of bootstrap shell $(date --iso-8601=s)."
if test -f /var/run/
echo "Restart needed: /var/run/
sudo cat /var/run/
sudo reboot
fi
SHELL
end
config.
config.
v.gui = true
v.memory = 2048
v.cpus = 1
v.customize ["modifyvm", :id, "--vram", "128"]
v.customize ["modifyvm", :id, "--graphicscont
v.customize ["modifyvm", :id, "--accelerate3d", "on"]
v.customize ["modifyvm", :id, "--audioin", "on"]
v.customize ["modifyvm", :id, "--audioout", "on"]
v.customize ["modifyvm", :id, "--audiocontrol
end
end
The cause of all this is because the image misses an important package:
vagrant@
ii linux-modules-
bit x86 SMP
sudo apt install linux-modules-
Or even better I think, the whole package:
sudo apt install linux-image-generic
that also install linux-modules-
This fixes both the sound and VMSVGA issue. It misses lots of drivers by default!
If we compare to also official Ubuntu box from Bento (eg https:/
Recommended solution:
rebuild all Ubuntu images with linux-image-generic installed!
These issues are already referenced in:
https:/
https:/
https:/
Probably related to https:/ /bugs.launchpad .net/cloud- images/ +bug/1873506 too.
Alternative solution: /app.vagrantup. com/ubuntu/ boxes/focal64 some indication that, for Virtualbox to properly display with 3D acceleration and with sound, one needs to add:
Put in documentation of the image https:/
sudo apt install linux-image-generic