feat: permit libvirtd tcp port customization
This commit is contained in:
parent
7375e560b4
commit
63afcaabb8
@ -4,6 +4,7 @@ ENV container docker
|
||||
|
||||
ENV LIBVIRTD_DEFAULT_POOL_PATH ""
|
||||
ENV LIBVIRTD_DEFAULT_NETWORK ""
|
||||
ENV LIBVIRTD_TCP_PORT "16509"
|
||||
|
||||
RUN yum install -y \
|
||||
libvirt-daemon-kvm \
|
||||
|
@ -58,6 +58,7 @@ sed -i 's/^log_outputs.*//g' /etc/libvirt/libvirtd.conf
|
||||
# replace commented default value to appropriate configuration
|
||||
sed -i "s/^#log_level.*/log_level = $LOG_LEVEL/g" /etc/libvirt/libvirtd.conf
|
||||
sed -i "s/^#log_outputs.*/log_outputs=\"$LOG_LEVEL:file:\/var\/log\/libvirt\/libvirtd.log\"/g" /etc/libvirt/libvirtd.conf
|
||||
sed -i "s/^#tcp_port.*/tcp_port=\"$LIBVIRTD_TCP_PORT\"/g" /etc/libvirt/libvirtd.conf
|
||||
|
||||
# clean previously configured value into /etc/libvirt/virtlogd.conf
|
||||
sed -i 's/^log_level.*//g' /etc/libvirt/virtlogd.conf
|
||||
|
Loading…
Reference in New Issue
Block a user