VMware Cloud Community
5truja
Contributor
Contributor
Jump to solution

remove vDS from host

Hi,

I lost connectivity between vCenter and vSphere host somehow. Then I ran esxcfg-vswitch -l and I could see one vDS that I previously got throug vDS switch config on vCenter. I tried to delete it with esxcfg-vswitch command but I got output: "No such virtual switch" though I see it when I run "esxcfg-vswitch -l" command. Is there any way to delete this since my vswif0 is not accessible anymore I had it as a teamed as a part of vDS Port Group and vDS (vmnic0 and vmnic1) but now I cannot access it. Is there any command line just for vDS?

Thanks in advance

MCTIP,VCP3,VCP4,VCP5,VCA-CLOUD,VCP-CLOUD,VTSP
Tags (1)
0 Kudos
1 Solution

Accepted Solutions
athlon_crazy
Virtuoso
Virtuoso
Jump to solution

You should refer to best vDS migration documentation which mentioned :

The recovery procedure for an ESX host involves moving the management vswif interface to a new temporary vSS. Management ccess to the server is required through an ILO interface or KVM physically attached to the server. After management connectivity is estored, use the vSphere Client to continue virtual network configuration.

Step 1: Logon to ESX host.

Step 2: Create a new temporary vSS (tmpSwitch) and Port Group (vswifPg)

esxcfg-vswitch -a tmpSwitch

esxcfg-vswitch -A vswifPg tmpSwitch

Step 3: Move uplink from vDS to vSS

esxcfg-vswitch -l (to get DVSwitch, DVPort, and vmnic names)

esxcfg-vswitch -Q vmnic0 -V <dvPort> <dvSwitch> (unlink vmnic0 from vDS)

esxcfg-vswitch -L vmnic0 tmpSwitch (link to vswitch)

Step 4: Move vswif from vDS to vSS

esxcfg-vswif -l (get vswif IP address, netmask, dvPort id, etc.)

esxcfg-vswif -d vswif0

esxcfg-vswif -a vswif0 -i <ip address> -n <netmask> -p vswifPg

Check or edit the default gateway address by editing /etc/sysconfig/network or adding default gateway address with:

route add default gw <gateway address>

vcbMC-1.0.6 Beta

vcbMC-1.0.7 Lite

http://www.no-x.org

http://www.no-x.org

View solution in original post

0 Kudos
3 Replies
a2alpha
Expert
Expert
Jump to solution

Not sure of vDS commandline options but if you have a spare IP i would create a new vswitch and then a service console then add an uplink to it. At least this way you can get it hooked back to vcenter and remove the vDS.

esxcfg-vswitch -a vSwitch1

esxcfg-vswitch -A "Service Console 2" vSwitch1

esxcfg-vswitch -L vmnic0 vSwitch1

esxcfg-vswif -a -i 192.168.1.2 -n 255.255.255.0 -p "Service Console 2"

Hope this helps.

Dan

athlon_crazy
Virtuoso
Virtuoso
Jump to solution

You should refer to best vDS migration documentation which mentioned :

The recovery procedure for an ESX host involves moving the management vswif interface to a new temporary vSS. Management ccess to the server is required through an ILO interface or KVM physically attached to the server. After management connectivity is estored, use the vSphere Client to continue virtual network configuration.

Step 1: Logon to ESX host.

Step 2: Create a new temporary vSS (tmpSwitch) and Port Group (vswifPg)

esxcfg-vswitch -a tmpSwitch

esxcfg-vswitch -A vswifPg tmpSwitch

Step 3: Move uplink from vDS to vSS

esxcfg-vswitch -l (to get DVSwitch, DVPort, and vmnic names)

esxcfg-vswitch -Q vmnic0 -V <dvPort> <dvSwitch> (unlink vmnic0 from vDS)

esxcfg-vswitch -L vmnic0 tmpSwitch (link to vswitch)

Step 4: Move vswif from vDS to vSS

esxcfg-vswif -l (get vswif IP address, netmask, dvPort id, etc.)

esxcfg-vswif -d vswif0

esxcfg-vswif -a vswif0 -i <ip address> -n <netmask> -p vswifPg

Check or edit the default gateway address by editing /etc/sysconfig/network or adding default gateway address with:

route add default gw <gateway address>

vcbMC-1.0.6 Beta

vcbMC-1.0.7 Lite

http://www.no-x.org

http://www.no-x.org
0 Kudos
5truja
Contributor
Contributor
Jump to solution

It worked fine once but when I try to unlink from one of the hosts I get "Invalid DVPort params 129" message. But the port nr is correct. I am running the following command line:

esxcfg-vswitch -Q vmnic0 -V <dvPort> <dvSwitch> (unlink vmnic0 from vDS)

if I run

esxcfg-vswitch -l

I se that my vmnic0 is using DV port 129 and I enter port 129 with -V switch here, but I get this as "Invalid DVPort params 129" and cannot unlink vmnic0 from DVS

MCTIP,VCP3,VCP4,VCP5,VCA-CLOUD,VCP-CLOUD,VTSP
0 Kudos