I have just installed ESXi on two new servers. I am using the web client to configure the systems.
I am trying to set up a private network on a vSwitch as so:
The 'Host Only' port group does not appear in the drop-down of the VM NIC configuration:-
Only the default 'VM Network' appears.
After a lot of Googling I realise that the portgroup could be configured as a 'Kernel' port group, which would mean it is only for Management traffic.
The question is: How do you configure the portgroup to be a 'VM' type using the ESXi 6.7 web client or using the esxcli?
The 'about' reports as:-
1.25.1
9210161
6.7.0
9484548
A vSwitch with a vmkernel port on it cannot take other port groups for virtual machines. You may need to create a dedicated vSwitch and only put virtual machine port groups on it.
You would need to create a new port group. The default is for a virtual machine.
Also, I can't help but notice you've assigned a public IP address to an ESXi host which both has a PTR record on public DNS servers and responds to ICMP. Exposing ESXi is a terrible security idea and should absolutely be avoided. ESXi or vCenter are not intended to be exposed on the public Internet.
Hi daphnissov,
Thankyou for your quick response.
Creating a new portgroup does not give the option to select a type. See the screenshot:-
...and it seems to default to 'Kernel'. Also, when the port group is viewed, it doesn't indicate which type it is!
Is there a way to do this from the esxcli?
Re public internet: This system is a trial. I am setting it up before it goes on to a private network. I've set the firewall to restrict access to a couple of source addresses. Thanks for the info.
Ian
A vSwitch with a vmkernel port on it cannot take other port groups for virtual machines. You may need to create a dedicated vSwitch and only put virtual machine port groups on it.
Ok, so I have now figured it out. Thanks daphnissov.
A Portgroup is a Kernel type if it contains a VMNIC, and does not appear in the VM NIC list of Portgroups.
If it doesn't contain a VMNIC, it is a VM type, and does appear in the VM NIC list of Portgroups.
Simple when you know.