VMware Cloud Community
rademr1
Contributor
Contributor

Problems assigning 2 active vmnics with a Kickstart file.

I am having problems assigning 2 active vmnics to a vSwitch. It will assign both the vmnics to the vSwitch, but one one is active. The other is on standby. This is what I am using in the Kickstart file. vmnic5 is always assigned standby. Could I please get the correct text to complete this.

/usr/sbin/esxcfg-vswitch -a vSwitch1:64

/usr/sbin/esxcfg-vswitch -A Production vSwitch1

/usr/sbin/esxcfg-vswitch -L vmnic1 vSwitch1

/usr/sbin/esxcfg-vswitch -L vmnic5 vSwitch1

0 Kudos
5 Replies
Rubeck
Virtuoso
Virtuoso

Try 2 add this:

vimsh –n –e “hostsvc/net/vswitch_setpolicy --nicorderpolicy-active vmnic1,vmnic5 vSwitch1”

/Rubeck

0 Kudos
rademr1
Contributor
Contributor

I am getting an error when I run the command below. Just to let you know,

I am using ESX 3.5 and have already setup the vSwitch and assigned the

NICS to it. Here is a screen shot of what I get when I run the script. Is

there are way to remove vmnic5 from the standbyNic section?

Thanks,

Ryan Rademan

Information Systems Technologist

601 West Main St.

Jefferson City, MO 65102

Desk: 573-526-3957

Cell: 573-644-3378

Rubeck <communities-emailer@vmware.com>

05/19/2008 09:24 AM

To

<ryan.rademan@modot.mo.gov>

cc

Subject

http://ESX 3.5 Configuration New message: "Problems assigning 2 active vmnics

with a Kickstart file."

,

A new message was posted in the thread "Problems assigning 2 active vmnics

with a Kickstart file.":

http://communities.vmware.com/message/948018

Author : Rubeck

Email : vmware@rubeck.dk

Profile : http://communities.vmware.com/people/Rubeck

Message:

0 Kudos
Yattong
Expert
Expert

hey,

Try this... http://communities.vmware.com/message/930501

Good Luck

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points ~y
0 Kudos
vmPUNK
Enthusiast
Enthusiast

Here is what you do, if you can cheat like me. Add a spare NIC then remove it.

The key being here that you seem to have to specify both the active and standby policies and as I couldn't figure out a NULL value for standby I cheated with a spare.

esxcfg-vswitch --link vmnic5 vSwitch0 #temporary

vmware-vim-cmd hostsvc/net/vswitch_setpolicy --nicorderpolicy-active vmnic0,vmnic6 --nicorderpolicy-standby vmnic5 vSwitch0

esxcfg-vswitch --unlink=vmnic5 vSwitch0

service mgmt-vmware restart

Thx

0 Kudos
dominic7
Virtuoso
Virtuoso

Try this syntax, it should get you up and running:

  1. Create the vSwitch1 vSwitch and the VMotion port group

/usr/sbin/esxcfg-vswitch -a vSwitch1:64

/usr/sbin/esxcfg-vswitch -A "VMotion" vSwitch1

/usr/sbin/esxcfg-vswitch -M vmnic1 vSwitch1 -p "VMotion"

/usr/sbin/esxcfg-vswitch -M vmnic2 vSwitch1 -p "VMotion"

/usr/sbin/esxcfg-vswitch -L vmnic1 vSwitch1

/usr/sbin/esxcfg-vswitch -L vmnic2 vSwitch1

It's from an article I wrote here:

http://vmprofessional.com/index.php?content=scripted_install

0 Kudos