From 3a6aee33382881c2678a09dc05c60377332bec04 Mon Sep 17 00:00:00 2001 From: Lukas Date: Fri, 5 Nov 2021 11:40:21 +0100 Subject: [PATCH] uncomment virsh uncomment virsh commands. don't do well with kickstart --- leaves/bh.cfg | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/leaves/bh.cfg b/leaves/bh.cfg index 057090b..2d05ebb 100644 --- a/leaves/bh.cfg +++ b/leaves/bh.cfg @@ -30,14 +30,18 @@ mkdir /mnt/sysimage/var/lib/libvirt/iso # Create a directory to store iso images wget https://boot.netboot.xyz/ipxe/netboot.xyz.iso -P /mnt/sysimage/var/lib/libvirt/iso/ -virsh pool-define-as iso dir /mnt/sysimage/var/lib/libvirt/iso/ # Make libvirt aware of this new directory by creating a so-called 'pool' -virsh pool-build iso # Build the pool -virsh pool-start iso # Start it -virsh pool-autostart iso # Set-it to autostart +# virsh command fail. would need to fetch a script and execute post-launch with a delay, for example using a systemd unit +# virsh pool-define-as iso dir /mnt/sysimage/var/lib/libvirt/iso/ # Make libvirt aware of this new directory by creating a so-called 'pool'. +# virsh pool-build iso # Build the pool +# virsh pool-start iso # Start it +# virsh pool-autostart iso # Set-it to autostart +# systemctl enable libvirtd # enable libvirt +# systemctl start libvirtd + # Add a network bridge. Still need to declare it to libvirt/virt-manager nmcli con add ifname br0 type bridge con-name br0 -nmcli con add type bridge-slave ifname enp1s0 master br0 # to-do : generalize this command +nmcli con add type bridge-slave ifname enp1s0 master br0 # to-do : generalize this command so that it could regardless of the name of the ethernet device nmcli con up br0 %end # End of the %post section \ No newline at end of file