Hello,

I am trying out VMM on an OpenBSD 6.4 server which has the following network 
interfaces defined:

[bnx0]+[bnx1]-->[trunk0]-->[vlan2]
[bnx0]+[bnx1]-->[trunk0]-->[vlan6]-->[bridge6]

The vlan2 is for the internal (management) network and vlan6 for the public 
(internet) network. I manage my server from vlan2 and would like to have my 
virtual machines on vlan6 which uses public IP addresses. For that purpose I 
have setup my /etc/hostname.* files as such:

hostname.bnx0 + hostname.bnx1:
up

hostname.trunk0:
trunkproto failover trunkport bnx0 trunkport bnx1 up

hostname.vlan2:
inet 192.168.1.5 255.255.255.0 192.168.1.255 vnetid 2 parent trunk0 description 
"private"

hostname.vlan6:
vnetid 6 parent trunk0 description "public" up

hostname.bridge6:
add vlan6

I am actually using Option 4 from the Networking chapter in the  virtualization 
FAQ (https://www.openbsd.org/faq/faq16.html) just that my setup has a redundant 
link (trunk0) and a VLAN (vlan6). So in theory that should work but 
unfortunately when I start a VM to install OpenBSD 6.4 from the bsd.rd boot 
file I do not have any network connectivity. I tried with DHCP first and in 
that case on the DHCP server I see the DHCPDISCOVER and DHCPOFFER 
requests/answer but there is never a DHCPACK. Then I tried assigning a static 
IP directly but still no network connectivity. I can't ping the default gateway 
of that public network. Checking with tcpdump on the firewall I can see the ARP 
who-has request and the ARP reply back the the VM but again it seems like the 
VM does not get it.

Here is my vm.conf conf file:

switch "uplink_vlan6" {
        interface bridge6
}

vm "example" {
        disable
        memory 2G
        boot "/home/admin/bsd.rd"
        disk "/var/vmm/example.qcow2"

        interface {
                switch "uplink_vlan6"
                lladdr fe:e1:bb:01:01:01
        }
}

I have also totally disabled pf on that OpenBSD VMM server but that did not 
change anything (I am using the default pf.conf from the installation)

Any ideas what I might be doing wrong or forgetting?

Regards,
Mabi

Reply via email to