qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Qemu-KVM VETH


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] Qemu-KVM VETH
Date: Fri, 20 Sep 2013 13:58:48 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Sep 19, 2013 at 05:31:01PM -0400, Tim Epkes wrote:
> Any plans to provide VETH support for Qemu-KVM.  It is a great pt-pt tie
> when when connecting to KVM's on the same machine.  I have multiple reasons
> for doing so (one is educational).  Thanks

QEMU already supports -netdev tap (if you want to use the host Linux
networking stack) and -netdev socket (if you just want point-to-point
tunneling).

The veth driver isn't suitable for QEMU's use case.  QEMU is a userspace
process that wants to inject/extract Ethernet frames.  That's exactly
what the tun (tap) driver does.  veth is useful for containers where you
want a Linux network interface that is handled by the host network stack.

Two solutions for point-to-point:

1. Run two guests with -netdev tap.  Put the interfaces on a software
   bridge (see brctl(8)).  Or you could also use IP forwarding instead
   of a bridge if you like.

2. Run two guests with -netdev socket.  They send Ethernet frames
   directly to each other.

See the qemu man page for configuration details.

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]