Technical requirements
If you installed ROS 2 in a VM (as explained with VirtualBox at the beginning of the book), it probably worked well for all chapters in Part 1 and Part 2, and possibly for the previous chapters in Part 3, even when running RViz.
However, with Gazebo, chances are that the VM won’t be enough. VirtualBox doesn’t work well with 3D simulation tools. From now on, I would strongly recommend that you have Ubuntu installed with a dual boot. I know that some people had more success with VMware Workstation (using the free version for personal use) or WSL 2 on Windows. If you find another combination that works for you, fine, but I would still recommend a dual boot, which will possibly be less buggy and bring you a better experience overall.
So, if you are currently running a VM, take the time to set up a dual boot and install Ubuntu 24.04. Then, follow the instructions from Chapter 2 again to install ROS Jazzy. This will take you a bit of time in the...