From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLvLb-00065b-Cv for guix-patches@gnu.org; Mon, 04 Dec 2017 13:20:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLvLY-0000Ld-6q for guix-patches@gnu.org; Mon, 04 Dec 2017 13:20:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:37154) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eLvLY-0000LG-2u for guix-patches@gnu.org; Mon, 04 Dec 2017 13:20:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eLvLW-00035T-47 for guix-patches@gnu.org; Mon, 04 Dec 2017 13:20:02 -0500 Subject: [bug#29409] [PATCH] build: vm: Use netdev qemu parameter. Resent-Message-ID: Date: Mon, 4 Dec 2017 13:19:46 -0500 From: Leo Famulari Message-ID: <20171204181946.GD30970@jasmine.lan> References: <877euhtjkj.fsf@gmail.com> <1512406324-17155-1-git-send-email-m.othacehe@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bAmEntskrkuBymla" Content-Disposition: inline In-Reply-To: <1512406324-17155-1-git-send-email-m.othacehe@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: m.othacehe@gmail.com Cc: 29409@debbugs.gnu.org --bAmEntskrkuBymla Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 04, 2017 at 05:52:04PM +0100, m.othacehe@gmail.com wrote: > From: Mathieu Othacehe >=20 > * gnu/build/vm.scm (load-in-linux-vm): "-net nic" option is > deprecated, replace it with "-netdev" and "-device" options. >=20 > See https://wiki.qemu.org/Documentation/Networking. > --- > gnu/build/vm.scm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm > index 20ee127..9e868f6 100644 > --- a/gnu/build/vm.scm > +++ b/gnu/build/vm.scm > @@ -113,7 +113,8 @@ the #:references-graphs parameter of 'derivation'." > (unless (zero? > (apply system* qemu "-nographic" "-no-reboot" > "-m" (number->string memory-size) > - "-net" "nic,model=3Dvirtio" > + "-device" "virtio-net-pci,netdev=3Dmynet" > + "-netdev" "user,id=3Dmynet" Does this work if you run multiple instances at one time? Or does the 'id' parameter need to be unique? --bAmEntskrkuBymla Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlolkcIACgkQJkb6MLrK fwjpcxAA27EQYQycFWdhzvrvLT3t/PAa5fCQiYJRX26foI8D9GIKaTw62SflLtQ+ 7Iv30LBznf2Chlvo2v1TU7idDvck1i+a0pzz5NpLiq+0xf0Ra36QS2BF47cWTqpZ IuDP2gM3OcuVVLnquOixo9ZJkuJNCMLT7zRTY9yb1tO0n+2FIxoGqjWVchi6/DVR ngkk2DNd1iS3fV+g0rVLO+36pzphhZ3IBU1poK5aZeNS0l2flGSy8S+jJBIh4RC9 NBxz/L6iBrTEEXwShnQZsGK4RZec+OI+UFnbXrV2IfXBfoEFZ5kxqXKq2XUOtPSp orY1aYnmlv79LRVx7tQdu1ecP2IlCgbu6r0equE1OB3Hhu71VLK/US/40Ko2X4ZT o+pZ6LhT3+6iwcI3q7XyD9C+H4v+rWh1nOpmTdz5oIpYHX2juf5Rmx+hyhdJ3I8Y 7lSKxLcNWwpevcN0U7G6fwOt8OML+Oqk7ShA5Vuvu4UnSoIQ9ZhWRy8HnxiFy9mY j9hsqkdWYEl9iTjwlAALzblGIJLpC2l/KisocAXgQ+mx4+v2AwiGrmgfw2Hd1Tak GcIrD8afO0QGOK8lsKVZE6pGyOvRqoqrxTLqxVceijHzlnoynA402t11bNMzm4qb JFGsUnYdfpq4wdr9XnzFVN+tLS0173EMfIKOZ30ICp3VBA0OL98= =nDgx -----END PGP SIGNATURE----- --bAmEntskrkuBymla--