Quantcast
Channel: VMware Communities: Message List - Failed to add vmkernel nic: A specified parameter was not correct. vSphere CLI + ESXi 4
Viewing all 48 articles
Browse latest View live

Failed to add vmkernel nic: A specified parameter was not correct. vSphere CLI + ESXi 4

$
0
0

Hi. I try to add vmknic with Jumbo Frames to my distributed virtual switch.

 

I read the guide vSphere Command-Line Interface Installation and Reference Guide:

"vicfg-vmknic  -a -i DHCP "vmk5"

I see error message:

Failed to add vmkernel nic: A specified parameter was not correct.

Vim.Host.VirtualNic.Specification.Ip

 

What's wrong?

I tried all combinations of parameters with the same result.


Re: Failed to add vmkernel nic: A specified parameter was not correct.

$
0
0

I am having the same problem with ESXi and the CLI and receiving the same error (cannot specify dvsName or dvPortID). If it matters I am using the Nexus 1000V, not the native distributed virtual switching. I have a lab that I can use to test potential remedies if anyone has any to try.

Re: Failed to add vmkernel nic: A specified parameter was not correct.

$
0
0

OK! I figured out a workaround.

 

Since adding a vmkernel interface remotely doesn't seem to work with DVS, I simply created one on a standard vSwitch and then migrated it to the DVS. And voila: the MTU set to 9000 migrated intact with it! Here are the steps I followed:

 

1. Put the ESX Host in maintenance mode - evacuate VMs manually if necessary

 

2. Remove the iSCSI/NFS VMKernel interface from the DVS

 

3. Create a standard virtual switch with no physical adapters. It does not need to be a VMKernel switch VM Networking is fine. Make a note of the name you gave to the PortGroup created on the new vSwitch.

 

4. Using the remote command line, add the new vkernel interface specifying an appropriate jumbo MTU (9000) and the PortGroup on the new standard vSwitch. For example:

 

esxcfg-vmknic.pl --server

 

If you get 3 replies, everything works. If you get failures, something went awry. Go back and verify the interface is configured properly using the esxcfg-vmknic.pl --list    command.

 

Enjoy!

 

M

Re: Failed to add vmkernel nic: A specified parameter was not correct.

$
0
0

Did you ever get this to work?  I am running into the exact same error on ESXi as you did.  However, I cannot find anyone who has fixed that error.  If you did, could you let me know please...?

Re: Failed to add vmkernel nic: A specified parameter was not correct.

$
0
0

As far as I know, the only fix is the workaround I detail above. It works with ESXi fine.

Re: Failed to add vmkernel nic: A specified parameter was not correct.

$
0
0

Another workaround that always work is both remove and add the vmkX in unsupported mode.

Re: Failed to add vmkernel nic: A specified parameter was not correct. vSphere CLI + ESXi 4

$
0
0

Hello.

 

Is there any way to do this through the Gui.

I have 2 hosts each with 2 nics.

 

The second host this worked fine but I am unable to do so on the first host

I did it the same way on both and i get the specified parameter is not correct.

 

I have tried everything I can think of including resetting the management network and then moving the VMKernel to the 2nd nic and still can't move the primary nic to vDS.

 

Thanks in advance.

Re: Failed to add vmkernel nic: A specified parameter was not correct. vSphere CLI + ESXi 4

$
0
0

The workaround mentioned above is what worked for me:

  • Add a port group to a regular vSwitch: esxcfg-vswitch -A "iSCSI3" vSwitch1
  • add the new vmkernel nic to this portgroup: esxcfg-vmknic -a -i DHCP -p "iSCSI3" -m 9000
  • use the GUI to migrate the new vmk to the desired dvSwitch and adjust the IP configuration

To confirm the membership of the vmk, just run: esxcfg-vswitch -l

To check the mtu of the newly created vmk: esxcfg-vmknic -l

 

That's all.


Viewing all 48 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>