I am attempting to set up a few VMs on my Debian machine using Libvirt and KVM. I would like these VMs to have their own public IP addresses, and if my understanding is correct, the way to accomplish this is via bridged networking. I have a /29 from my dedicated server provider. The following is my /etc/network/interfaces file.
Code: Select all
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
iface eno1 inet manual
auto br0
iface br0 inet static
# Use the MAC address identified above.
hwaddress ether 00:25:90:d2:ae:1c
address {MY HOSTS IP}
netmask {CORRESPONDING NETMASK}
gateway {CORRESPONDING GATEWAY}
bridge_ports eno1
# If you want to turn on Spanning Tree Protocol, ask your hosting
# provider first as it may conflict with their network.
bridge_stp off
# If STP is off, set to 0. If STP is on, set to 2 (or greater).
bridge_fd 0
Code: Select all
sudo virt-install --name {NAME} --ram {RAM} --vcpus 8 --disk path=/var/lib/libvirt/images/{DISK NAME},size=64 --os-type linux --os-variant debian9 --network bridge=br0 --graphics vnc,listen=0.0.0.0 --console pty,target_type=serial --location 'http://ftp.debian.org/debian/dists/bullseye/main/installer-amd64/'
Thanks.
RK