Bridging physical adapter with KVM/QEMU
by JakeStarr from LinuxQuestions.org on (#4W709)
I apologize that this is a post that could go in either the virtualization or networking forums, so I hope I picked right since this involves the physical host over the virtualized clients.
I am relatively new to Linux, but have some past experience and am teaching myself in my new role how to deploy it as our in-house virtual infrastructure. Currently I am using VirtualBox, which lets me bridge the connection with a dropdown menu, but KVM seems to be a better VM platform for what I'm wanting to do. What I am trying to figure out is how to bridge my connections within KVM to simply use the physical adapter as its gateway to the local LAN and pull DHCP. My /etc/network/interfaces is currently set to:
Code:# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopbackI admit networking has never been my biggest forte in IT, so I'm not surprised I'm not wrapping my head around what to adjust or how to create this bridge, especially when eth0 isn't even listen as an interface. Any assistance would be greatly appreciated.


I am relatively new to Linux, but have some past experience and am teaching myself in my new role how to deploy it as our in-house virtual infrastructure. Currently I am using VirtualBox, which lets me bridge the connection with a dropdown menu, but KVM seems to be a better VM platform for what I'm wanting to do. What I am trying to figure out is how to bridge my connections within KVM to simply use the physical adapter as its gateway to the local LAN and pull DHCP. My /etc/network/interfaces is currently set to:
Code:# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopbackI admit networking has never been my biggest forte in IT, so I'm not surprised I'm not wrapping my head around what to adjust or how to create this bridge, especially when eth0 isn't even listen as an interface. Any assistance would be greatly appreciated.