B
BlueBuild5mo ago
Heus

installing virt-manager in recipe.yml

I want to create a recipe.yml that installs all the dev tools like bluefin-dx, but I'm not sure how to add the user to the libvirt group. Here's the recipe:
...
- libvirt
- virt-manager
- virt-viewer
- qemu
- qemu-char-spice
- qemu-device-display-virtio-gpu
- qemu-device-display-virtio-vga
- qemu-device-usb-redirect
- qemu-img
- qemu-system-x86-core
- qemu-user-binfmt
- qemu-user-static
# SystemD
- type: systemd
system:
enabled:
- libvirtd
- virtnetworkd.socket
- ​​virtstoraged.socket
- ​​virtnodedevd.socket
disabled:
# - flatpak-system-update.timer user: enabled: # - my-custom.service disabled: # - flatpak-user-update.timer # ----------------------------------------------------------------------- - type: script
snippets:
- "sudo usermod -a -G libvirt $(whoami)" # this won't work right?
...
- libvirt
- virt-manager
- virt-viewer
- qemu
- qemu-char-spice
- qemu-device-display-virtio-gpu
- qemu-device-display-virtio-vga
- qemu-device-usb-redirect
- qemu-img
- qemu-system-x86-core
- qemu-user-binfmt
- qemu-user-static
# SystemD
- type: systemd
system:
enabled:
- libvirtd
- virtnetworkd.socket
- ​​virtstoraged.socket
- ​​virtnodedevd.socket
disabled:
# - flatpak-system-update.timer user: enabled: # - my-custom.service disabled: # - flatpak-user-update.timer # ----------------------------------------------------------------------- - type: script
snippets:
- "sudo usermod -a -G libvirt $(whoami)" # this won't work right?
ignore indentation
2 Replies
Moonlight
Moonlight5mo ago
I mean, I have Virt-man set in my recipe, and I use it used mode without any extra configuration
Solution
xyny
xyny5mo ago
GitHub
linuXYZ/recipes/recipe.yml at ae7e14c879bd57b9eeaea77fccedbf48ca821...
Contribute to xynydev/linuXYZ development by creating an account on GitHub.
Want results from more Discord servers?
Add your server