This suggests that if you can build the ROS 1 from source, you have Flatpak and Snap as option, and maybe also AppImage.
Besides that there is also Linux KVM (QEMU) which may perform better than VirtualBox. Cannot find a good page for Ubuntu on it, but here’s the KVM entry of the excellent Arch Linux wiki wiki.archlinux.org/title/KVM