Skip to content

Commit

Permalink
fix: delay issues on libvirt service when using RHEL with snc profile.
Browse files Browse the repository at this point in the history
…Fix #296.

Signed-off-by: Adrian Riobo <[email protected]>
  • Loading branch information
adrianriobo committed Sep 30, 2024
1 parent c9f82da commit 549b967
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/provider/aws/action/rhel/cloud-config-snc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ rh_subscription:
auto-attach: true
runcmd:
- while fuser /var/lib/rpm/.rpm.lock > /dev/null 2>&1 ; do sleep 1 ; done
- dnf clean all
- dnf install -y podman qemu-kvm libvirt virt-install virt-viewer jq git
# Debug libvirt
#- echo 'log_filters="1:libvirt 1:util 1:qemu"' | tee -a /etc/libvirt/libvirtd.conf
Expand All @@ -17,10 +18,10 @@ runcmd:
- echo 'auth_tcp = "none"' | tee -a /etc/libvirt/libvirtd.conf
- systemctl daemon-reload
- systemctl enable libvirtd-tcp.socket
- systemctl start --no-block libvirtd-tcp.socket
- systemctl start libvirtd-tcp.socket
- systemctl mask libvirtd.socket libvirtd-ro.socket libvirtd-admin.socket libvirtd-tls.socket libvirtd-tcp.socket
- systemctl enable libvirtd
- systemctl start --no-block libvirtd
- systemctl start libvirtd
- usermod -a -G libvirt {{ .Username }}
- echo "user.max_user_namespaces=28633" | tee -a /etc/sysctl.d/userns.conf
- sysctl -p /etc/sysctl.d/userns.conf
Expand Down

0 comments on commit 549b967

Please sign in to comment.