From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6zk6-0004Fa-EY for qemu-devel@nongnu.org; Thu, 30 Aug 2012 04:04:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6zk5-0006Ic-DB for qemu-devel@nongnu.org; Thu, 30 Aug 2012 04:04:46 -0400 Received: from mail-we0-f173.google.com ([74.125.82.173]:41439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6zk5-0006Hl-6m for qemu-devel@nongnu.org; Thu, 30 Aug 2012 04:04:45 -0400 Received: by weyz53 with SMTP id z53so789044wey.4 for ; Thu, 30 Aug 2012 01:04:44 -0700 (PDT) Date: Thu, 30 Aug 2012 08:23:51 +0100 From: Stefan Hajnoczi Message-ID: <20120830072351.GA6814@stefanha-thinkpad.localdomain> References: <86wr0i58zt.fsf@gray.siamics.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86wr0i58zt.fsf@gray.siamics.net> Subject: Re: [Qemu-devel] IPv6 support for -net user? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ivan Shmakov Cc: Jan Kiszka , qemu-devel@nongnu.org On Wed, Aug 29, 2012 at 04:43:18PM +0700, Ivan Shmakov wrote: > I'm writing an iPXE mini-HOWTO (in Russian), using QEMU and > -net user in examples (so that they're runnable by unprivileged > users.) > > However, the QEMU documentation [1] seems to suggest that only > IPv4 is implemented for -net user, which made me curious on > whether the IPv6 support is planned to be added anytime soon? > > Personally, I'm interested mostly in QEMU sending router > (prefix) advertisements to the “guest”, and forwarding TCP and > UDP traffic, although support for recursive DNS discovery and > DHCPv6 may also be nice to have. Jan Kiszka is the -net user maintainer, I have CCed him. I'm not aware of work to add IPv6 support to slirp. Someone would have to step up and submit patches :). You can still do unprivileged IPv6 networking with external DHCPv6, etc software: $ qemu -netdev socket,id=socket0,listen=127.0.0.1:1234 \ -device virtio-net-pci,netdev=socket0 The socket netdev tunnels traffic over a TCP or UDP socket. For TCP it prefixes each packet with the big-endian uint32_t length. For UDP no length header is necessary because packet boundaries are preserved. You could write your own code or find something that can speak with QEMU's -netdev socket. Stefan