Qubes OS 3 – Helpful Commands & Trouble Shooting

Although version Qubes 4 is out, I wanted to publish my summary of helpful commands and links that I used in the past for Qubes 3.2.1. Keep in mind, that the tips below could not be applicable for version 4 and are partially outdated. Also, the official documentation should cover most of that stuff already – this is just a reminder for myself since I used the steps below quite a lot over the last years.

Error Message: “DVM savefile creation failed”
Fix: qvm-create-default-dvm $template (or any other TemplateVM you intend to use)

Install new, supported template:
in dom0 sudo qubes-dom0-update qubes-template-fedora-[$]-minimal

Remove supported template:
in dom0 sudo yum remove qubes-template-fedora-25-minimal

Installing sys-firewall + sys-net based on new minimal template:
sys-firewall: minimal template only
sys-net: minimal + NetworkManager + NetworkManager-wifi + network-manager-applet + wireless-tools + dbus-x11 + dejavu-sans-fonts + tinyproxy + notification-daemon + gnome-keyring
see also here

sudo apt-get install qemu-utils
(under debian)
qemu-img convert file.vmdk -O raw output.img

in Dom0:qvm-run --pass-io $VM-with-img 'cat "/path/to/file.img"' > /var/lib/qubes/appvms/$vm/root.img

Install Printer:
1) plugin the USB cable
2) in Dom0: lsusb – search for your printer entry
3) in Dom0: readlink /sys/bus/usb/devices/usb$ –> substitute $ with the Bus number you found in lsusb –> e.g. outcome could usb3 –> the bdg address is now similar to this one 00:1a.0 right after 0000:
4) assign device to VM of your choice via Dom0: qvm-pci -a
5) Start your VM and install printer as usual – hplip for instance and hp-setup -i

Additional Information:

The official doc page – should be the first place to search.

Great cheat sheet

Old but still great for general understanding

Qubes 4.0 onward:

add external keyboard via usb-sys:

in dom0: /etc/qubes-rpc/policy/qubes.InputKeyboard

Add a line like this one to the top of the file:

sys-usb dom0 allow

Install Win10:

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 )

Google photo

You are commenting using your Google 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