debian in bhyve on freebsd
Victor Sudakov
vas at sibptus.ru
Fri May 22 14:44:44 UTC 2020
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 at fidonet http://vas.tomsk.ru/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20200522/4c44c0f4/attachment.sig>
More information about the freebsd-questions
mailing list