Hi,
Since I'm not familiar with Ubuntu VM, would you please set a a test Windows VM and connected to the virtual switch, then check if the Windows VM could access the network.
Best Regards,
Anne
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello
I am using hyper-V on windows server 2016 essentials.
I have an OPNsense router serving 3 VLANs on the same physical port of the server
I have configured a virtual switch on this physical port with VLAN10.
I have an ubuntu 20.04 VM. I have set VLAN 10 in it's network adapter configuration.
When I enter the Ubuntu VM, I get a message:
Connection failed: Activation of network connection failed
Without the VLAN settings on the switch & adapter - the VM works fine on the base network with no VLAN tag.
Questions:
Thanks
Uri
Hi,
Since I'm not familiar with Ubuntu VM, would you please set a a test Windows VM and connected to the virtual switch, then check if the Windows VM could access the network.
Best Regards,
Anne
Hi
I have spun up a brand new win10 VM on the main network switch and let it update to latest.
Built a new virtual network switch (VLAN40) and set it's VLAN to 40.
Usingt VLAN40 and (VLAN==40) on the network adapter, the DHCP is not found
same with only (VLAN==40) on the network adapter
With just VLAN40 switch - DHCP brings regular network IP address, not from VLAN
Regular network DHCP when VLAN not set on switch or virtual network card.
so it seems like the VLAN definition on the virtual LAN switch is bad.
Now removed VLAN definition from switch and virtual network card.
connected a physical smart switch to the network and set VLAN 40 on port 1.
connected the server physical network port to this port on the switch
Windows VM and ubuntu VM. Both got an IP address on the VLAN range.
rechecked:
re-connected the servers physical network port to the main network switch
set VLAN = 40 on the virtual switch and on the virtual network port for the Win10 VM.
No DHCP connection
same for ubuntu VM
deleted the virtual switch for VLAN40/physical port #2 and rebuilt it
same results