[FredLUG] KVM and Virtual Network

Paul W. Frields stickster at gmail.com
Thu Jan 21 11:53:50 EST 2010


On Thu, Jan 21, 2010 at 10:56:22AM -0500, Peter Larsen wrote:
>    I know a few of you use/used Qemu/KVM; I'm trying to kick the
>    VMware habbit here, but it's not turning out as easy as I thought
>    it would be.
> 
>    Besides som minor issues with the storage that I finally figured
>    out, I have great trouble with the network side. I simply want a
>    bridged network so the VM uses the same DHCP server as the host
>    does. However, the configuration for networking doesn't seem to
>    be active in the very least.
> 
>    When using the "Virtual Network Editor" I get three networks
>    defined: vmnet0 (bridged), vmnet1 (host-only) and vmnet8
>    (NAT). All very straight forward and fairly easy to figure
>    out. However, none of them are active for VMs to use. Instead
>    "brctl show" returns virbr0 which is enabled in a configuration
>    else-where. So how to enable the kvm-defined networks?  When I
>    try to assign network devices to a kvm, all I see is the NAT -
>    everything else says the bridge is disabled. Since I don't even
>    see the network names defined with kvm, I'm sure somekind of
>    configuration points to the "wrong" place that ignores what the
>    gui think is right - but where??

vmnet* interfaces are provided by VMWare, while KVM provides vnet*
interfaces.

Does this help?:

http://www.linux-kvm.com/content/using-bridged-networking-virt-manager

>    Btw. the package qemu-kvm is empty on fedora 12??

'rpm -qi qemu-kvm' and then 'rpm -qR qemu-kvm' show you why. It's a
metapackage.

>    When we did KVM at our fredlug meeting back in October (I think it was)
>    that was my biggest issue and actually never got resolved. So I wonder if
>    the F12 implementation somehow lacks the setup to be used in the way I
>    want, and I fear I may have to become a KVM master to just get a VM using
>    a bridge :(  Please tell me that isn't the case; at least it's one of the
>    reasons vmware may keep existing as the prime tool since this stuff simply
>    just "works" out of the box (well, once you have figured out how to
>    install it on the box that is - at least kvm/qemu is way easy there).

Nope, not at all.  I believe you can do this by right-clicking on the
hypervisor in the virt-manager GUI, and choosing "Details."  There you
can add more virtual networks through the GUI tool.

-- 
Paul W. Frields                                http://paul.frields.org/
  gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233  5906 ACDB C937 BD11 3717
  http://redhat.com/   -  -  -  -   http://pfrields.fedorapeople.org/
  irc.freenode.net: stickster @ #fedora-docs, #fedora-devel, #fredlug



More information about the Fredlug mailing list