Debian 11 bullseye KVM host installation with public bridge network
#install packages
#apt install --no-install-recommends qemu-system qemu-utils libvirt-clients libvirt-daemon-system bridge-utils
#adduser <youruser> libvirt
#create bridge interface
# ip link add br0 type bridge
## brctl addbr br0 (deprecated, use ip link instead!)
# vi /etc/network/interfaces
#add/modify following
......
# The primary network interface
#allow-hotplug eno1 # eno1 is my interface name ,change to yours
#iface eno1 inet dhcp
## kvm bridge
##
iface eno1 inet manual
auto br0
iface br0 inet dhcp
pre-up ip tuntap add dev tap0 mode tap user root
pre-up ip link set tap0 up
bridge_ports eno1 tap0
bridge_stp off
bridge_maxwait 0
bridge_fd 0
post-down ip link set tap0 down
post-down ip tuntap del dev tap0 mode tap
Now you can connect from remote virt-manager something like this:
qemu+ssh://root@<kvm host br0 IP >/system
沒有留言:
張貼留言