Enabling bridged networking between host and guest VM systems
by starbearer from LinuxQuestions.org on (#4XKGE)
I am using a heavily locked down embedded Linux system, on which KVM and Libvirt have been installed.
Starting off a VM as -
Quote:
does start up the VM, but with NAT enabled, instead of DHCP Bridged network, which is what I'd like to have.
The usual way of enabling bridged network, at least on Red Hat, that I am aware of, is by going to /etc/sysconfig/network-scripts, copy the icfg- interface file, enable br0, and use that as an interface for the VM.
However, on this Linux distro, which comes from the Yocto project, network-scripts folder or indeed the interface configuration file isn't available.
Quote:
- isn't available either.
I cannot download virt-manager, as no repos are enabled, and I am not sure which OS and which version compatibility is there, so i cannot link it to a existing centos or fedora repo list. I downloaded virt-manager, but setup.py complains of missing modules like "unittest" etc which I cannot install.
However, KVM and libvirt are indeed offered as features, and they run fine, so i suppose using a bridge network should also be feasible.
I am not certain how it can be achieved, though.


Starting off a VM as -
Quote:
sh-5.0# qemu-system-x86_64 -m 2G -enable-kvm <image_name>.qcow2 |
The usual way of enabling bridged network, at least on Red Hat, that I am aware of, is by going to /etc/sysconfig/network-scripts, copy the icfg- interface file, enable br0, and use that as an interface for the VM.
However, on this Linux distro, which comes from the Yocto project, network-scripts folder or indeed the interface configuration file isn't available.
Quote:
/etc/network/interfaces |
I cannot download virt-manager, as no repos are enabled, and I am not sure which OS and which version compatibility is there, so i cannot link it to a existing centos or fedora repo list. I downloaded virt-manager, but setup.py complains of missing modules like "unittest" etc which I cannot install.
However, KVM and libvirt are indeed offered as features, and they run fine, so i suppose using a bridge network should also be feasible.
I am not certain how it can be achieved, though.