From owner-freebsd-questions@freebsd.org Fri May 22 14:44:44 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A298D2CA921 for ; Fri, 22 May 2020 14:44:44 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49T8Qg6s8jz4NrV for ; Fri, 22 May 2020 14:44:43 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=1MtW/dDHbx1OYzQdTE4v8u5njgyIXKrD0mhoCjEzC3o=; b=FcMI76aWK5PQNP4Qfv2gHnfR45 B6Mzr7zfgt9gFqIsa4LYUPc1RGXyN6o7TZayf7oCQ9AQm2uUnBMyCQl/tT6UCb92GLkFLVLGl8yzM /ZqMBbM6GFyu3M6/pVMk3fcvd+Bqt5vM7GmpQjvZDKWR1O0RpOmg/FWfg0g1mB/W0rds=; Received: from vas by admin.sibptus.ru with local (Exim 4.93.0.4 (FreeBSD)) (envelope-from ) id 1jc8ug-000Nqt-G3 for freebsd-questions@freebsd.org; Fri, 22 May 2020 21:44:42 +0700 Date: Fri, 22 May 2020 21:44:42 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: debian in bhyve on freebsd Message-ID: <20200522144442.GA91589@admin.sibptus.ru> References: <60e7d910e1eb13643ee3c60080e96766.squirrel@webmail.harte-lyne.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline In-Reply-To: <60e7d910e1eb13643ee3c60080e96766.squirrel@webmail.harte-lyne.ca> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 X-Rspamd-Queue-Id: 49T8Qg6s8jz4NrV X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=FcMI76aW; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-5.13 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.002]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.978]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; NEURAL_HAM_SHORT(-0.05)[-0.054]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2020 14:44:44 -0000 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable James B. Byrne via freebsd-questions wrote: > debian-10.4.0-amd64 > FreeBSD-12.1-RELEASE-p5-amd64 > vm-bhyve-1.4.2 >=20 > This is so tedious. Ok, I need to test rsync on Debian in relation to an= other > problem. I have created a bhyve vm for this OS, an OS I have never before > used, and find that the networking does not, work. Works fine for me (Debian GNU/Linux 10 (buster) under bhyve/FreeBSD 12.1).= =20 >=20 > On the debian byhyve console I see this: > ip a show > . . . > 2: enp0s5: mtu 1500 qdisc pfifo_fast st= ate UP > group default qlen 1000 > link/ether 58:9c:fc:06:84:ab brd ff:ff:ff:ff:ff:ff > inet 192.168.8.165/24 brd 192.168.8.255 scope global enp0s5 > valid_lft forever preferred_lft forever > inet6 fe80::5a9c:fcff:fe06:84ab/64 scope link > valid_lft forever preferred_lft forever >=20 > I do not recognize the i/f name enp0s5. I expected something like vtnet0 > instead. I am sure that this has something to do with systemd but whatev= er the > cause I cannot get this vm to talk to the network. Who cares how the interface is called? It has the same name in my virtual Debian: 2: enp0s5: mtu 1500 qdisc pfifo_fast stat= e UP group default qlen 1000 link/ether 58:9c:fc:09:55:61 brd ff:ff:ff:ff:ff:ff inet 192.168.246.52/24 brd 192.168.246.255 scope global dynamic enp0s5 valid_lft 78243sec preferred_lft 78243sec inet6 2001:470:ecba:2:5a9c:fcff:fe09:5561/64 scope global dynamic mngtm= paddr=20 valid_lft 2591870sec preferred_lft 604670sec inet6 fe80::5a9c:fcff:fe09:5561/64 scope link=20 valid_lft forever preferred_lft forever but it works fine and even got an autoconfigured IPv6 address from the FreeBSD host, as you see. >=20 > The config for this vm is: My config: loader=3D"uefi" cpu=3D2 memory=3D1G network0_type=3D"virtio-net" network0_switch=3D"main" disk0_type=3D"virtio-blk" disk0_name=3D"disk0" disk0_dev=3D"zvol" # VNC graphics=3D"yes" graphics_wait=3D"auto" graphics_res=3D"1280x720" #graphics_port=3D"5909" =20 graphics_listen=3D"192.168.4.1" xhci_mouse=3D"yes" uuid=3D"2069962f-78b3-11ea-a89e-5404a6b49a66" network0_mac=3D"58:9c:fc:09:55:61" >=20 > What should the virtual interface be called? How do I get this set prope= rly?=20 > Is this a byhyve problem? A debian problem? I don't give a @#$ how it is called while it works. Linux has always had interface names quite different from *BSD. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJex+VaAAoJEA2k8lmbXsY0/8oH+gPDMb/u+dWNwnTbgnRFHtVA FddamsMNiN+npyaM8MI3A46NBiHC5sn+S9p6cvLoi0+gxsp71SGzPaQBWcYs4lKv MFATyzAxAclezhdhPBd/Ovw7hDpNnNSjtaQRymL3ZyaksA1WIaZ+pNd3RjHaCVG9 SbNr5gzc6EuRiIj755pBL35vVWz4oSUQAnTN/upatG7+KdI/Ip7LJPC8AUYTcWXU OCqEWOcRsfPPKTEQ9lvPRnQB1jT48HnRuM3IkK3zEmu856OYbPl6vnWU8CfpeLjf 8LnRKRCgHUUWomPuTb1etVAcY0hJjRjdwz6qcK1hJ8OJ6vqxM83ce+O5QZpW4Vg= =5ueb -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp--