mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-10 12:08:36 -05:00
![Daniel Weiße](/assets/img/avatar_default.png)
* Mini Constellation commands to quickly deploy a local Constellation cluster * Download libvirt container image if not present locally * Fix libvirt KVM permission issues by creating kvm group using host GID inside container * Remove QEMU specific values from state file Signed-off-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: Nils Hanke <nils.hanke@outlook.com>
13 lines
364 B
Bash
Executable File
13 lines
364 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Assign qemu the GID of the host system's 'kvm' group to avoid permission issues for environments defaulting to 660 for /dev/kvm (e.g. Debian-based distros)
|
|
KVM_HOST_GID="$(stat -c '%g' /dev/kvm)"
|
|
groupadd -o -g "$KVM_HOST_GID" host-kvm
|
|
usermod -a -G host-kvm qemu
|
|
|
|
# Start libvirt daemon
|
|
libvirtd --daemon --listen
|
|
virtlogd --daemon
|
|
|
|
sleep infinity
|