Creating a sys-usb for my desktop?

16 views
Skip to first unread message

Stumpy

unread,
Oct 14, 2020, 2:44:39 PM10/14/20
to Qubes users
I have recently had to reinstall qubes and I am at the point for making
a sys-usb. I have a desktop and a usb keyboard so I thought I had
previously just created one via sudo qubesctl state.sls qvm.sys-usb made
it so it would NOT start on boot up and I would manually start it after
logging in... well I just tried that and... locked myself out when i
rebooted. I am 99.999% sure i selected for it to not start up at boot
via qubes settings but I just want to make sure that the steps I (think)
I took should leave me with a usable system... if yes i will assume that
I had a brain fart and actually didnt set the sys-usb to not boot at
startup.
Thx!

Emily Andes

unread,
Oct 14, 2020, 3:04:51 PM10/14/20
to Qubes users
Oct 14, 2020 14:44:38 Stumpy <stu...@posteo.net>:

> I have recently had to reinstall qubes and I am at the point for making a sys-usb. I have a desktop and a usb keyboard so I thought I had previously just created one via sudo qubesctl state.sls qvm.sys-usb made it so it would NOT start on boot up and I would manually start it after logging in... well I just tried that and... locked myself out when i rebooted. I am 99.999% sure i selected for it to not start up at boot via qubes settings but I just want to make sure that the steps I (think) I took should leave me with a usable system... if yes i will assume that I had a brain fart and actually didnt set the sys-usb to not boot at startup.
> Thx!
>
> --
>
Pretty sure qubes automatically locks usb input without that vm active, so you need it to start automatically, there's probably a way to fix that through a rescue terminal or something, but I'd have to look into exactly how that would be done... since it's based on fedora you could probably;

Add rd.break at the end of kernel options
mount -o remount,rw /sysroot
chroot /sysroot
qvm-prefs sys-usb autostart False
exit
exit

-Emlay

Jarrah

unread,
Oct 14, 2020, 5:17:17 PM10/14/20
to qubes...@googlegroups.com

> Add rd.break at the end of kernel options
> mount -o remount,rw /sysroot
> chroot /sysroot
> qvm-prefs sys-usb autostart False
> exit
> exit

This is the first half, which will stop the VM from starting. The other
half is to remove `rd.qubes.hide_all_usb` from the kernel Commandline.
For UEFI, that's in `/boot/efi/EFI/qubes/xen.cfg`. For BIOS, you can
edit it for individual boots in grub and permanently change it in
`/etc/default/grub`.

Reply all
Reply to author
Forward
0 new messages