Skip to content

create custom disposable vm #7

@SCBuergel

Description

@SCBuergel
  1. set up TemplateVM debian-13-minimal-test
  2. DVM AppVM debian-13-dvm
  3. mark the AppVM as disposable template
  4. add root password
  5. create a dom0 .desktop launcher for a disposable xterm
  6. make xterm more readable for both the template VM as well as the DVM

in dom0:

qvm-clone debian-13-minimal debian-13-minimal-test
qvm-create --template debian-13-minimal-test --label gray debian-13-dvm
qvm-prefs debian-13-dvm template_for_dispvms True
qvm-run -u root debian-13-minimal-test "echo 'root:NEWPASSWORD' | chpasswd"

cat > ~/.local/share/applications/disp-xterm-debian-13.desktop <<'EOF'
[Desktop Entry]
Name=Disposable XTerm (Debian 13)
Exec=qvm-run --dispvm=debian-13-dvm -- xterm
Icon=utilities-terminal
Type=Application
Categories=Qubes;
Terminal=false
EOF

update-desktop-database ~/.local/share/applications

qvm-run debian-13-minimal-test 'cat > ~/.Xresources <<EOF
XTerm*renderFont: true
XTerm*faceName: Monospace
XTerm*faceSize: 14
EOF'

qvm-run debian-13-minimal-test 'xrdb -merge ~/.Xresources'

qvm-run debian-13-dvm 'cat > ~/.Xresources <<EOF
XTerm*renderFont: true
XTerm*faceName: Monospace
XTerm*faceSize: 14
EOF'

qvm-run debian-13-dvm 'xrdb -merge ~/.Xresources'

Log out and back in or:

xfce4-panel -r
  • Open the app menu
  • Right-click the launcher panel
  • Add Disposable XTerm (Debian 13) to the Launcher
    Result: clicking the launcher spawns a fresh disposable VM based on debian-13-dvm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions