Article 4XKGE Enabling bridged networking between host and guest VM systems

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:
sh-5.0# qemu-system-x86_64 -m 2G -enable-kvm <image_name>.qcow2
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:
/etc/network/interfaces
- 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.latest?d=yIl2AUoC8zA latest?i=oU0qKyqFjno:KL9PVRH9NsA:F7zBnMy latest?i=oU0qKyqFjno:KL9PVRH9NsA:V_sGLiP latest?d=qj6IDK7rITs latest?i=oU0qKyqFjno:KL9PVRH9NsA:gIN9vFwoU0qKyqFjno
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments