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
评论区(暂无评论)