Hi,
I red the FAQ about Virtualization and tried to set up "Option 4 - VMs
as real hosts on the same network" with DHCP for VM
My question is if the final note:
```
Note: If the host interface (em0 in the above example) is also
configured using DHCP, dhclient(8) running on that interface may block
DHCP requests from reaching guest VMs. In this case, you should select a
different host interface not using DHCP, or terminate any dhclient(8)
processes assigned to that interface before starting VMs, or use static
IP addresses for the VMs.
```
is valid for any interface on the host, that is configured to use
dhclient or only for the interface that is part of the bridge?
My network setup looks like:
[hodor]~$ grep . /etc/hostname.*
/etc/hostname.bridge0:add vether0
/etc/hostname.bridge0:add em1
/etc/hostname.bridge0:add em5
/etc/hostname.bridge0:up
/etc/hostname.bridge1:add vether1
/etc/hostname.bridge1:add em2
/etc/hostname.bridge1:add em3
/etc/hostname.bridge1:add em4
/etc/hostname.bridge1:up
/etc/hostname.em0:description "to the ISP"
/etc/hostname.em0:dhcp
/etc/hostname.em1:up
/etc/hostname.em2:up
/etc/hostname.em3:up
/etc/hostname.em4:up
/etc/hostname.em5:up
/etc/hostname.pflog1:up
/etc/hostname.pflog1:description "spamlogd logging interface"
/etc/hostname.vether0:up
/etc/hostname.vether0:inet 172.16.1.1/24
/etc/hostname.vether1:up
/etc/hostname.vether1:inet 172.16.255.254/24
Bridge0 is my primary lan network where the VMs are connected and the
only interface that is configured with dhclient is em0 which is not part
of any bridge. I have the following in /etc/vm.conf
```
[hodor]~$ doas cat /etc/vm.conf
switch "uplink" {
interface bridge0
}
ROOT="/home/vlado/vm"
vm "dvm" {
disable
memory 4G
disk $ROOT/debian.qcow2 format "qcow2"
interface { switch "uplink" }
owner vlado:vlado
}
```
And in /etc/pf.conf
```
set skip on { lo, enc0, em1, em2, em3, em4, em5, gif0, tap }
```
i.e. the filtering is happening only on the em0 and vether interfaces.
The problem is that the VM doesn't lease anything from the DHCP server
(dhcpd_flags=vether0) until I reload the pf rules with `pfctl -f
/etc/pf.conf`.
If I set the IP address on the guest manually - it works without
reloading the pf.
Please confirm if this behavior is expected because it's not getting
very clear from the FAQ.
Thanks in advance,
P.S.: This is on -current:
OpenBSD 6.6-current (GENERIC.MP) #505: Tue Dec 3 02:25:26 MST 2019
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 34300661760 (32711MB)
avail mem = 33248731136 (31708MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xec280 (37 entries)
bios0: vendor American Megatrends Inc. version "3.2a" date 05/31/2019