Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 232869

Re: Vsphere 5.1 vDS Won't allow ESXi Hosts to be Added

$
0
0

All, Here is my solution that resolved my issue. I cannot gaurentee that it will work for you. This is associated with VSphere 5.1 Upgrade. The 5.0 thru 5.1 vDS entries were missing in the SQL Database

 

Cause:
This issue occurs because there are rows missing in the VPX_DVS_COMPATIBLE table.
Resolution:
Notes: This procedure includes syntax for SQL Server. If you are using Oracle, modify the PL/SQL syntax accordingly. Ensure that the user account that is used to connect to the vCenter Server database has administrative privileges.

 

To resolve this issue:
1. Run this SQL statement to determine the contents of the database:

 

SELECT * FROM VPX_DVS_COMPATIBLE WHERE ID IN
(SELECT ID FROM VPX_ENTITY WHERE NAME = 'dvSwitch');

 

Where dvSwitch is the Distributed Virtual Switch name. Change according to your environment. If you have more than one Distributed Switch, you will need to run the scripts for all the Distributed Switches.

 

You see an output which indicates that the DVS compatibility includes ESX/ESXi 4.0 and 4.1, but not ESXi 5.0 or 5.1.

 

2. Run this query to add the missing rows:

 

USE VIM_Yourdatabasename; /* name of VC database,change according to your environment */
GO
DECLARE @dvs_name varchar(32);
DECLARE @dvs_id int;
SET @dvs_name = 'dvSwitch'; /* case sensitive DVS name,change according to your environment */
SET @dvs_id = (SELECT ID FROM VPX_ENTITY WHERE NAME = @dvs_name);
INSERT INTO VPX_DVS_COMPATIBLE VALUES
(@dvs_id,'esx','5.0+'),
(@dvs_id,'embeddedEsx','5.0+'),
(@dvs_id,'esx','5.1+'),
(@dvs_id,'embeddedEsx','5.1+');


Viewing all articles
Browse latest Browse all 232869

Trending Articles