vDS port limits
Datastore connectivity issues
Can’t create a VMware Standard Switch vSS with vSphere web (next gen) client
I thought perhaps we had removed this functionality in vSphere 5.1, but it is still there, just very buried. You have to go into the properties of the Host, Actions/All vCenter Actions/ Add Networking.. (see below)
Here is the published document on how to do it.
Deploying a VMware vCloud Director (vCD) 5.1 virtual appliance with MS SQL backend
This is a guide for deploying vCloud in a LAB environment, these settings are not the most secure or performant, but this should get you up and running with vCloud 5.1 so you can test and learn it. The easiest way is with the appliance, you don’t need to use a MS SQL DB, but occasionally I need to crack open the DB and I am the most comfortable with that technology.
- My Assumptions about what you already have:
- One ESXi Host with the following VM’s on it.
- Windows with MS SQL DB (I’m using MS SQL 2008 R2)
- vShield Manager 5.1 with an IP set (also known as vCloud Networking and Security 5.1)
- vSphere 5.1 vCenter (can be the appliance)
- Available resources to Deploy vCloud Director Appliance
- VCP or equivalent level of knowledge
- One ESXi Host with the following VM’s on it.
- Prepare your Database (same steps as with non-appliance)
- Again, I am assuming you have MS SQL 2008R2 installed, without a local firewall, or ports opened.
- This is a great article, follow it, I will paste the highlights from it below, you can copy/paste these commands into SQL Query analyzer!!
1) Configure the database server.
A database server configured with 16GB of memory, 100GB storage, and 4 CPUs should be adequate for most vCloud Director clusters. (this is for production level quality)
2) Specify Mixed Mode authentication during SQL Server setup.
Windows Authentication is not supported when using SQL Server with vCloud Director.
3) Create the database instance.
The following script creates the database and log files, specifying the proper collation sequence.USE [master]
GO
CREATE DATABASE [vcloud] ON PRIMARY
(NAME = N'vcloud', FILENAME = N'C:\vcloud.mdf', SIZE = 100MB, FILEGROWTH = 10% )
LOG ON
(NAME = N'vcdb_log', FILENAME = N'C:\vcloud.ldf', SIZE = 1MB, FILEGROWTH = 10%)
COLLATE Latin1_General_CS_AS
GOThe values shown for SIZE are suggestions. You might need to use larger values.
4) Set the transaction isolation level.
The following script sets the database isolation level to READ_COMMITTED_SNAPSHOT.USE [vcloud]
GO
ALTER DATABASE [vcloud] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
ALTER DATABASE [vcloud] SET ALLOW_SNAPSHOT_ISOLATION ON;
ALTER DATABASE [vcloud] SET READ_COMMITTED_SNAPSHOT ON WITH NO_WAIT;
ALTER DATABASE [vcloud] SET MULTI_USER;
GOFor more about transaction isolation, see http://msdn.microsoft.com/en-us/library/ms173763.aspx.
5) Create the vCloud Director database user account.
The following script creates database user name vcloud with password vcloudpass.USE [vcloud]
GO
CREATE LOGIN [vcloud] WITH PASSWORD = 'vcloudpass', DEFAULT_DATABASE =[vcloud],
Deploy a VMware vCloud Director (vCD) 5.1 using RHEL 6.2
I am using RHEL 6.2 (Red Hat Enterprise Linux 6 64 bit, Update 2) because it is the latest version supported by vCloud 5.1, and it already includes java 1.6, which is needed for the certificate generation later (assuming your using self-signed, again this is only for LAB use)
- I am assuming you already have:
- One ESXi Host with the following VM’s on it.
- Windows with MS SQL DB (I’m using MS SQL 2008 R2)
- vShield manager
- Enough Room to create a vCloud VM
- Enough Room to create a vCenter VM (required later, not in this article)
- A management machine with SSH (putty) and SCP (WinSCP)
- VCP or equivalent level of knowledge
- One ESXi Host with the following VM’s on it.
- Create a vCD VM, It requires 1GB memory, I like to give it 2GB if possible.
- add two nics (one for http, one for consoleproxy)
- Thin provision the default 16GB hard drive
- Install RHEL 6.2
- Choose standard install options
- Post Installation
- Create a location to drop files
- mkdir /install
- Make sure SSH is enabled for ease of management (this is on by default)
- Install VMware Tools
- Use the KB article
- If that doesn’t work (it didn’t for me)
- To create a mount point, run:
- mkdir /mnt/cdrom
- To mount the CDROM, run:
- mount /dev/cdrom /mnt/cdrom
- go into install directory:
- cd /install
- find out the VMwareTools Filename ls /mnt/cdrom/VMwareTools* (or just use tab to autocomplete in next step)
- Unpack the Tools Tar
- tar -xzvf /mnt/cdrom/VMwareTools-9.0.0-782409.tar.gz
- after it expands, go into the directory it created cd /vmware-tools-distrib
- install tools by taking defaults ./vmware-install.pl
- unmount CDrom
- umount /mnt/cdrom
- Reboot
- To create a mount point, run:
- Setup your IP’s (static IP’s are your friend for this install)
- Run “setup” and put them in, sometimes after you configure the IP’s the nics won’t auto start, if so Edit /etc/sysconfig/network-scripts/ifcfg-eth0 and make sure it says
- Run “setup” and put them in, sometimes after you configure the IP’s the nics won’t auto start, if so Edit /etc/sysconfig/network-scripts/ifcfg-eth0 and make sure it says
- Create a location to drop files
Disable Fibre Channel HBA so I can connect to another Fabric
First go into vcenter, identify the correct HBA WWN, I just use the last octet, so I want to re-use "86", so that is the HBA I am going to disconnect from the existing Fibre.
Then Go into the Properties of each Datastore and click "Manage Paths", change the path selection policy to "Fixed" (so we can control what path the Host is using to access the current storage), Click "Change", click the status of the current path you wish to keep (not using 86), and click Preferred. After that, click the paths that 86 is using, and choose Disable. It should then look something like below, you can see the Adapter listed after the Path is chosen.
Click Close and repeat for all datastores. You also can verify/do this work from the Configuration/Storage Adapter page, which will look something like below, Note that we are looking at HBA2 (86), Under "Paths" and you can see status is Disabled.
After disabling all of the paths under each datastore, you may still have some paths left, those are just the connections to the array, but not actually a connection to a LUN. You can disable those if you choose, I do because I try to never leave anything to chance. At this point this HBA is no longer in use and is ready to be re-used to connect to the new Fibre.
In my case, I am using an HP server with HBA's installed into PCIe slots. My question is, which HBA is mapped to which PCIe Slot (I don't want to disconnect the wrong one since I just removed redundancy). I am using ESXi 5.x, so I have enabled SSH for troubleshooting. I tried logging into iLo, however it did not have PCIe slot card information, so I decided to go right twards the horses mouth so to speak and have SSH'd into my server and ran the following command:
esxcli hardware pci list
but that gave me alot of information I couldn't use, so then I tried:
lspci
which gave me:
000:067:00.0 Serial bus controller: QLogic Corp ISP2432-based 4Gb Fibre Channel to PCI Express HBA [vmhba1]
000:070:00.0 Serial bus controller: QLogic Corp ISP2432-based 4Gb Fibre Channel to PCI Express HBA [vmhba2]
This is perfect information, because the HP Quickspecs for the DL385G2 has the following info:
What’s new Guides for new products launched at VMworld 2012
If your like me, you always want to know what changed in the latest version, so here is a list of links to all the new PDF’s
vSphere 5.1 (Marketing Overview)
VMware vCloud Suite (Marketing Overview)
vSphere 5.1 vCenter
vSphere 5.1 Performance
vSphere 5.1 Storage
vSphere 5.1 Networking
vSphere 5.1 Platform
vSphere 5.1 Storage Appliance
vCloud Director 5.1
vSphere Replication
vSphere Data Protection
VMware vCenter Configuration Manager 5.5.1
VMware vCenter Operations Manager 5.0.3
VMware vCloud® Networking and Security Overview
VMware vCloud Architecture Toolkit 3.0 (soon)
I’m sure there are more, if you know of any more, let me know and I’ll add it.
Lab Manager 4 runs out of ports on your vDS
If you see an Error such as:
Unable to deploy virtual machines in resource pool "LBM4".
- Error deploying configuration networks.
- dvs.VmwareDistributedVirtualSwitch.addPortgroups task on AddDVPortgroup_Task failed: fault.LimitExceeded.summary
- The numPorts value : 8215 in spec exceeded maxPorts 8192.
- dvs.VmwareDistributedVirtualSwitch.addPortgroups task on AddDVPortgroup_Task failed: fault.LimitExceeded.summary
Even though the vDS (VMware Distributed Switch) maximum went up from 4,096 to 20,000 in vSphere 4.1, the vDS won’t be able to go over 8192 unless you manually modify the vDS. You would have already upgraded the vDS from a 4.0 to a 4.1 to have a number this high.
Here is the VMware KB that tells you how to manually increase the size of your vDS
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1038193
VCDX Spotlight #91
Greg Robertson recently did a VCDX Spotlight paper about me, Thanks for the mention!
http://thesaffageek.co.uk/2012/07/31/vcdx-spotlight-brian-smith/




