Skip to content

Commit

Permalink
Cockpit: add support for KVM with bridged networking and samba manage…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
igorpecovnik committed Dec 31, 2024
1 parent 66d8921 commit 3abcf87
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tools/modules/software/module_cockpit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,19 @@ function module_cockpit() {
"${commands[1]}")
## install cockpit
pkg_update
pkg_install cockpit cockpit-ws cockpit-system cockpit-storaged
pkg_install cockpit cockpit-ws cockpit-system cockpit-storaged cockpit-machines samba dnsmasq virtinst qemu-kvm qemu-utils
# add bridged networking
cat <<- EOF > /etc/libvirt/kvm-hostbridge.xml
<network>
<name>hostbridge</name>
<forward mode="bridge"/>
<bridge name="br0"/>
</network>
EOF
virsh net-define /etc/libvirt/kvm-hostbridge.xml
virsh net-start hostbridge
virsh net-autostart hostbridge

echo "Cockpit installed successfully."
;;
"${commands[2]}")
Expand Down

0 comments on commit 3abcf87

Please sign in to comment.