Use aditional network card for vm

2024-03-31 Thread Nuno Teixeira
Hello all,

My laptop have re0 and iwlwifi0 network cards with only re0 at use.
vm-bhyve sets it to ifconfig bellow.

I suspect that re0 being in promiscous mode, it will originate some network
problems with backup programs like restic when reading too much files
(restic check --read-data) and to fix this issue I turn off vm-bhyve
network setting.

Is it possible to have a card just to be in use by bhyve, e.g. usb external
ethernet dongle or even laptop wifi card?

Thanks,

-
re0: flags=1008943
metric 0 mtu 1500

options=8209b
ether 00:2b:67:df:c6:73
inet 192.168.1.67 netmask 0xff00 broadcast 192.168.1.255
media: Ethernet autoselect (1000baseT )
status: active
nd6 options=29
lo0: flags=1008049 metric 0 mtu
16384
options=680003
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
groups: lo
nd6 options=21
vm-public: flags=1008843
metric 0 mtu 1500
options=0
ether 02:f4:ac:f8:d6:be
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: re0 flags=143
ifmaxaddr 0 port 1 priority 128 path cost 2
groups: bridge vm-switch viid-4c918@
nd6 options=9
-

-- 
Nuno Teixeira
FreeBSD Committer (ports)


[Bug 264253] hyperv: ifconfig media autoselect on FreeBSD 13.0 displays error: ifconfig: SIOCSIFMEDIA (media): Operation not supported

2024-03-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264253

--- Comment #8 from commit-h...@freebsd.org ---
A commit in branch stable/14 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=a1f89082dcb591886acc22c5503a2d5a82b267d9

commit a1f89082dcb591886acc22c5503a2d5a82b267d9
Author: Mark Peek 
AuthorDate: 2024-03-13 23:53:07 +
Commit: Mark Peek 
CommitDate: 2024-03-31 16:51:02 +

hyperv/hn: Don't return error when setting media to autoselect

Setting media to autoselect would always return EOPNOTSUPP.
As autoselect is the only valid media, this change now returns
success instead.

PR: 264253
Reported by:Prakash Shiva 
Reviewed by:Dexuan Cui , whu
Approved by:whu
MFC after:  2 weeks

(cherry picked from commit 63a7c4be4ad524629292eee659d6542f1c5e9c21)

 sys/dev/hyperv/netvsc/if_hn.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 264253] hyperv: ifconfig media autoselect on FreeBSD 13.0 displays error: ifconfig: SIOCSIFMEDIA (media): Operation not supported

2024-03-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264253

--- Comment #9 from commit-h...@freebsd.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=a26e93052a3897bb55301954dff7e40547d7f291

commit a26e93052a3897bb55301954dff7e40547d7f291
Author: Mark Peek 
AuthorDate: 2024-03-13 23:53:07 +
Commit: Mark Peek 
CommitDate: 2024-03-31 16:49:01 +

hyperv/hn: Don't return error when setting media to autoselect

Setting media to autoselect would always return EOPNOTSUPP.
As autoselect is the only valid media, this change now returns
success instead.

PR: 264253
Reported by:Prakash Shiva 
Reviewed by:Dexuan Cui , whu
Approved by:whu
MFC after:  2 weeks

(cherry picked from commit 63a7c4be4ad524629292eee659d6542f1c5e9c21)

 sys/dev/hyperv/netvsc/if_hn.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.


Re: Use aditional network card for vm

2024-03-31 Thread Nuno Teixeira
(...)

Ok I think I get it:

- Use wifi card for laptop internet connection.
- passtrhu re0
- edit vm/.config/system.info and remove bridge to re0.

Nice manual about it:
http://empt1e.blogspot.com/2016/10/bhyve-networking-options.html

Nuno Teixeira  escreveu (domingo, 31/03/2024 à(s)
15:40):

> Hello all,
>
> My laptop have re0 and iwlwifi0 network cards with only re0 at use.
> vm-bhyve sets it to ifconfig bellow.
>
> I suspect that re0 being in promiscous mode, it will originate some
> network problems with backup programs like restic when reading too much
> files (restic check --read-data) and to fix this issue I turn off vm-bhyve
> network setting.
>
> Is it possible to have a card just to be in use by bhyve, e.g. usb
> external ethernet dongle or even laptop wifi card?
>
> Thanks,
>
> -
> re0:
> flags=1008943
> metric 0 mtu 1500
>
> options=8209b
> ether 00:2b:67:df:c6:73
> inet 192.168.1.67 netmask 0xff00 broadcast 192.168.1.255
> media: Ethernet autoselect (1000baseT )
> status: active
> nd6 options=29
> lo0: flags=1008049 metric 0 mtu
> 16384
> options=680003
> inet 127.0.0.1 netmask 0xff00
> inet6 ::1 prefixlen 128
> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
> groups: lo
> nd6 options=21
> vm-public: flags=1008843
> metric 0 mtu 1500
> options=0
> ether 02:f4:ac:f8:d6:be
> id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
> maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
> root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
> member: re0 flags=143
> ifmaxaddr 0 port 1 priority 128 path cost 2
> groups: bridge vm-switch viid-4c918@
> nd6 options=9
> -
>
> --
> Nuno Teixeira
> FreeBSD Committer (ports)
>


-- 
Nuno Teixeira
FreeBSD Committer (ports)


Problem reports for virtualization@FreeBSD.org that need special attention

2024-03-31 Thread bugzilla-noreply
To view an individual PR, use:
  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id).

The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status  |Bug Id | Description
+---+---
Open|264267 | UEFI Booting on Azure Generation 2 VMs crashes

1 problems total for which you should take action.


[Bug 278058] Simultaneous use of Bhyve AND vnet on network PCI devices causes network failure

2024-03-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278058

Mark Linimon  changed:

   What|Removed |Added

   See Also||https://bugs.freebsd.org/bu
   ||gzilla/show_bug.cgi?id=2733
   ||72

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 273372] SR-IOV Networking in Bhyve Causes Chelsio T520-SO-CR to Fail on Host, Kernel Panic if Reset

2024-03-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273372

Mark Linimon  changed:

   What|Removed |Added

   See Also||https://bugs.freebsd.org/bu
   ||gzilla/show_bug.cgi?id=2780
   ||58

-- 
You are receiving this mail because:
You are the assignee for the bug.