Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTGVR-0001Oh-8n for qemu-devel@nongnu.org; Tue, 21 Jul 2009 10:39:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTGVM-0001N2-Kl for qemu-devel@nongnu.org; Tue, 21 Jul 2009 10:39:48 -0400 Received: from [199.232.76.173] (port=58545 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTGVM-0001Mx-Fd for qemu-devel@nongnu.org; Tue, 21 Jul 2009 10:39:44 -0400 Received: from mx20.gnu.org ([199.232.41.8]:23463) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MTGVM-0001ho-35 for qemu-devel@nongnu.org; Tue, 21 Jul 2009 10:39:44 -0400 Received: from mx2.redhat.com ([66.187.237.31]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTGVJ-0005xr-Oc for qemu-devel@nongnu.org; Tue, 21 Jul 2009 10:39:42 -0400 Date: Tue, 21 Jul 2009 15:39:36 +0100 From: "Richard W.M. Jones" Message-ID: <20090721143936.GA18061@amd.home.annexia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] guestfwd option doesn't allow supplementary , server, nowait List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Jan Kiszka The option formerly known as -net channel was changed to: -net user,guestfwd=[tcp]:server:port-dev which in general would be an improvement. libguestfs currently uses: -net channel,6666:unix:/some/path,server,nowait which works (probably by accident, because the code happens not to use get_param_value). However in the new syntax that would be: -net user,guestfwd=tcp:10.0.2.4:6666-unix:/some/path,server,nowait This gives errors like: qemu: invalid parameter 'server,nowait' in 'vlan=0,guestfwd=tcp:10.0.2.4:6666-unix:/tmp/libguestfshRZgxr/sock,server,nowait' It seems like the code tries to do the right thing for the hostfwd and guestfwd parameters. There is a while loop which seems to check for these parameters explicitly, but it doesn't work -- I'm not sure why. libguestfs is continuing to use the old, working -net channel form of this parameter, so please don't remove it. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html