Creating a Rocky Linux TemplateVM on Qubes
Why was this so hard to do…?
If you’ve stumbled upon this via Googlin’ you’ll probably find this helpful, if you’re just reading stuff on my blog it probably won’t be so interesting to you so skip to something else ;)
Now that CentOS is no longer the workhorse for server linux that it once was (announcement), the community are probably going to want to move to RockyLinux as this provides that downstream distro stability that CentOS previous did.
dom0terminal emulator use
qvm-createas I’m not sure exactly how you create a
TemplateVMusing the Qubes Manager GUI:
qvm-create --class TemplateVM rocky --property virt_mode=HVM -l gray
* it doesn’t have to be gray, just feels like the right colour for a template
- Once that is created you can make any changes you wish via the Qubes Manager GUI, specifically one I needed for this install was to bump the initial memory up from 400MB
- TemplateVMs don’t usually have a
NetworkVMattached so double check you’re connected to
sys-firewallfor the install piece
- In one of your existing QubesVMs go download the bootable ISO that you need from https://rockylinux.org/download
and move it over to the
/tmpdir for simplicity
- back in
qvm-start rocky --cdrom=<your other vm name>:/tmp/Rocky-8.4-x86_64-boot.isoassuming you have enough init memory allocated this will eventually get you to the installation GUI for Rocky
- For reasons tbd the Rocky Linux installer cannot see the bootable media as an installation source
to figure out what your ethernet configuration needs to be run the following in
qvm-prefs rocky, noting down the
- Back in the Rocky installer GUI, go to the network configuration and locate the IPv4 settings for eth0, you’ll need to switch from DHCP to manual, and plug in those values from step-6, additionally you’ll need a DNS provider for the next step to work, so just use something like 18.104.22.168 (cloudflare), 22.214.171.124 (IBM) or even 126.96.36.199 (Google) for sake of the install only.
- Now go to the failing setup for source installation and use this URL https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/ or something similar to that depending on how quickly this guide ages ;)
- The rest should of the steps in the GUI should now be unblocked and your TemplateVM can be created 🎉
I hope someone stumbles across this and finds it helpful!