Date: Fri, 22 May 2020 21:44:42 +0700 From: Victor Sudakov <vas@sibptus.ru> To: freebsd-questions@freebsd.org Subject: Re: debian in bhyve on freebsd Message-ID: <20200522144442.GA91589@admin.sibptus.ru> In-Reply-To: <60e7d910e1eb13643ee3c60080e96766.squirrel@webmail.harte-lyne.ca> References: <60e7d910e1eb13643ee3c60080e96766.squirrel@webmail.harte-lyne.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
James B. Byrne via freebsd-questions wrote:
> debian-10.4.0-amd64
> FreeBSD-12.1-RELEASE-p5-amd64
> vm-bhyve-1.4.2
>
> This is so tedious. Ok, I need to test rsync on Debian in relation to another
> 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).
>
> On the debian byhyve console I see this:
> ip a show
> . . .
> 2: enp0s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state 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
>
> 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 whatever 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: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state 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 mngtmpaddr
valid_lft 2591870sec preferred_lft 604670sec
inet6 fe80::5a9c:fcff:fe09:5561/64 scope link
valid_lft forever preferred_lft forever
but it works fine and even got an autoconfigured IPv6 address from the
FreeBSD host, as you see.
>
> The config for this vm is:
My config:
loader="uefi"
cpu=2
memory=1G
network0_type="virtio-net"
network0_switch="main"
disk0_type="virtio-blk"
disk0_name="disk0"
disk0_dev="zvol"
# VNC
graphics="yes"
graphics_wait="auto"
graphics_res="1280x720"
#graphics_port="5909"
graphics_listen="192.168.4.1"
xhci_mouse="yes"
uuid="2069962f-78b3-11ea-a89e-5404a6b49a66"
network0_mac="58:9c:fc:09:55:61"
>
> What should the virtual interface be called? How do I get this set properly?
> 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.
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/
[-- Attachment #2 --]
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200522144442.GA91589>
