From owner-freebsd-virtualization@freebsd.org Wed May 11 05:05:50 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5187BB360CE for ; Wed, 11 May 2016 05:05:50 +0000 (UTC) (envelope-from hiren@strugglingcoder.info) Received: from mail.strugglingcoder.info (strugglingcoder.info [104.236.146.68]) by mx1.freebsd.org (Postfix) with ESMTP id 340141B4A; Wed, 11 May 2016 05:05:49 +0000 (UTC) (envelope-from hiren@strugglingcoder.info) Received: from localhost (unknown [10.1.1.3]) (Authenticated sender: hiren@strugglingcoder.info) by mail.strugglingcoder.info (Postfix) with ESMTPA id 3529A17E73; Tue, 10 May 2016 22:05:49 -0700 (PDT) Date: Tue, 10 May 2016 22:05:49 -0700 From: hiren panchasara To: Allan Jude Cc: freebsd-virtualization@freebsd.org Subject: Re: Setting up interfaces on ubuntu under bhyve Message-ID: <20160511050549.GE51099@strugglingcoder.info> References: <20160511002910.GD51099@strugglingcoder.info> <57327FC3.1070305@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="n+lFg1Zro7sl44OB" Content-Disposition: inline In-Reply-To: <57327FC3.1070305@freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2016 05:05:50 -0000 --n+lFg1Zro7sl44OB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 05/10/16 at 08:41P, Allan Jude wrote: > On 2016-05-10 20:29, hiren panchasara wrote: > > (keep me cc'd please; I am not subscribed) > > > > I usually create a freebsd vm with: > > sh /usr/share/examples/bhyve/vmrun.sh -c 2 -m 2048M -t tap2 -t tap3 -t > > tap4 -d freebsd.img -i -I freebsd.iso vm1 > > > > and run it with: > > sh /usr/share/examples/bhyve/vmrun.sh -c 2 -m 2048M -t tap2 -t tap3 -t > > tap4 -d freebsd.img vm1 > > > > I am trying to bring up an ubuntu vm and following > > https://www.monkeybrains.net/support/bhyve (file based and not zfs vol > > based) > > > > If I want to create a similar-ish vm: > > # bhyve -c 2 -m 2048M -H -P -A -s 0:0,hostbridge -s 1:0,lpc -s > > 2:0,virtio-net,tap2,tap3,tap4 -s > > 3,ahci-cd,./ubuntu-13.10-server-amd64.iso -l com1,stdio -s > > 4,virtio-blk,./linux.img linux > > >=20 > you'd have to do: >=20 > -s 2:0,virtio-net,tap2 > -s 2:1,virtio-net,tap3 > -s 2:2,virtio-net,tap4 >=20 > to get the 3 NICs Thanks Allan. Now I see 3 tap devices being created on host and 3 devices in the guest. (Also, 'ifconfig -a' to see them and not just 'ifconfig' on ubuntu. Silly me freebsd user ;-)) Appreciate your quick help. Cheers, Hiren >=20 > > VM comes up but I don't see vtnetN interfaces there as I would on > > the freebsd vm. On the freebsd vm, I see vtnet0, vtnet1 and vtnet2. > > > > the tap interfaces are not even created on the host. > > > > What am I missing? > > > > Cheers, > > Hiren > > >=20 >=20 > --=20 > Allan Jude --n+lFg1Zro7sl44OB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAABCgBmBQJXMr2qXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNEUyMEZBMUQ4Nzg4RjNGMTdFNjZGMDI4 QjkyNTBFMTU2M0VERkU1AAoJEIuSUOFWPt/lPLgH/Ru9Z8gDMQZ29mAkutpKEAhx aR2qGfUg1bt/AeiVQvnXKaOJ88ETNmhVgrReNjrYfTFcukgyuNdtvxiXKzO7qql0 VlbslNvMzFlgMYBADU7J35m2uAxQd2D6sSUyA9dP+8ED3uwww6Rfr4q1HlBeyf4T ZyoConIyJgPiKQmzBTqw8Iv1y5lWQ2Nh2BN5kgjeKm2djmHbuD9o4oN93A4AOvGV xFHHEXht54QUVJ8mVoJ5mvIB1fHkozWHxv2hzgGqPQ7X8SzPI+mf3pQvKiesQrX0 R49ScZYwEqgFBHjdnphBkq7wDr6lvGxPVNX4vYKJTPvbQ2W2k/g7/oqII0NRfO8= =bmUG -----END PGP SIGNATURE----- --n+lFg1Zro7sl44OB--