On a VM Host system architecture there may be a situation in which you want to disable libvirtd TLS certificate. This document provides instructions on how to do so.
An instruction to disable libvirtd TLS certificate for internal connections.
1. Log in to the system as "root" user - this is required to run the "request vmhost exec ..." commands.
2. From the "cli>" prompt, use the command below to check if the workaround has been implemented:
request vmhost exec "grep tls_no_sanity /etc/libvirt/libvirtd.conf"
Check the output:
#tls_no_sanity_certificate = 1 - means you need to go to the next step to implement the fix (notice the "#" in the beginning.
#tls_no_sanity_certificate = 1
tls_no_sanity_certificate = 1 - means the fix has been applied, no need to go to the next step
tls_no_sanity_certificate = 1
3. From the "cli>" prompt, use the following command to disable TLS validation: (this is in 1 single line)
request vmhost exec "sed -i -E 's/^[[:space:]]*#?[[:space:]]*(tls_no_sanity_certificate =).*$/\1 1/' /etc/libvirt/libvirtd.conf"
4. Validate the new TLS setting using step 2.
This concludes the process to disable the TLS certificate validity on a Junos device.
First publication 2025-10-14