Customize a named disposable using the vm-config feature revisions

Go back to topic: Customize a named disposable using the vm-config feature

  1. v10 anchor; v10 full version
  2. v9 anchor; v9 full version
  3. v8 anchor; v8 full version
  4. v7 anchor; v7 full version
  5. v6 anchor; v6 full version
  6. v5 anchor; v5 full version
  7. v4 anchor; v4 full version
  8. color bash script v3 anchor; v3 full version
  9. v2 anchor; v2 full version

Revision #10

Edited on
2025-06-04
Edited by user
ddevz
### Static IP address example
with a: `qubesdb-read /vm-config/ip_address` and `qubesdb-read /vm-config/gateway` in the rc.localwith a: `qubesdb-read /vm-config/ip_address` and `qubesdb-read /vm-config/gateway` in the rc.local ### Securedrop example: Here is a presentation on how they used the technique in a real world example when developing securedrop!: https://www.youtube.com/watch?v=GIZTeJU0iBY Higher fidelity copies of the slides are here: https://cfp.3mdeb.com/media/qubes-os-summit-2024/submissions/WDFJFY/resources/PUBLIC_Joys_and_Sorrows_of_Multi-VM_Ap_vP21ScR.pdf

Revision #9

Edited on
2025-06-04
Edited by user
parulin

Revision #8

Edited on
2025-06-03
Edited by user
ddevz
The official 3 sentances of documentation on this :) can be found here: https://dev.qubes-os.org/projects/core-admin-client/en/latest/manpages/qvm-features.html#vm-config

Revision #7

Edited on
2025-06-03
Edited by user
ddevz
`qubesdb-read /vm-config/wifi-1-pass` # Example of using the technique to automatically give your wireless password to sys-net each time it starts: `qubesdb-read /vm-config/wifi-1-pass` # Examples: ## Example of using the technique to automatically give your wireless password to sys-net each time it starts:
# Other example uses ## Other example uses

Revision #6

Edited on
2025-06-03
Edited by user
ddevz
# Intro This is a technique for automatically passing custom information to named disposables as they boot up. Our example case will be making a disposable sys-net remember your wifi password, but the same technique can be used for disposable sys-net remembering your static IP address, or other information. If you are unfamiliar with the "disposable sys-net needs wifi password each time system boots" issue, it's this:
Note: If you are only interested in getting your wireless password entered automatically on boot, and are ok with making a disposable template just for sys-net, then there is already a guide for doing that here: https://forum.qubes-os.org/t/disposable-sys-net-automatically-connect-wifi-config-file-or-rpc-service/21112 # The technique:
`qubesdb-read /vm-config/wifi-1-pass` GIven this, you can make a /rw/config/rc.local file that includes something like: `qubesdb-read /vm-config/wifi-1-pass` # Example of using the technique to automatically give your wireless password to sys-net each time it starts: GIven the commands demonstrating the technique shown above, you can make a /rw/config/rc.local file that includes something like:
similarly, you could create and set differnt vm-config.* paraemeters, then call nmcli with other options in the rc.local to configure a static IP address. Something like: so with that in the rc.local of the template, and running the the 2 qvm-features sys-net {blah blah blah} commands in dom0, your 802.11 should become persistant. # Other example uses Similarly, you could create and set differnt vm-config.* parameters, then call nmcli with other options in the rc.local to configure a static IP address. Something like:

Revision #5

Edited on
2025-06-03
Edited by user
ddevz

Revision #4

Edited on
2025-06-03
Edited by user
ddevz

Revision #3

Edited on
2025-06-03
Edited by user
parulin
Edit reason
color bash script
``` ```bash

Revision #2

Edited on
2025-06-02
Edited by user
ddevz
GIven this, you can make a /rw/config/rc.local file that includes something like: GIven this, you can make a /rw/config/rc.local file that includes something like: ```
fi fi ```