Libvirt设置防火墙规则重置 Ricky 2021-08-14 Linux,虚拟化技术默认 / 楷体 / 霞鹜文楷体 mkdir /etc/libvirt/hooks for f in daemon qemu lxc libxl network; do echo '#!/bin/sh iptables-restore < /etc/sysconfig/iptables' > "/etc/libvirt/hooks/$f" chmod +x "/etc/libvirt/hooks/$f" done service libvirtd restart