Friday, 21 November 2014

Installing VCD 5.5 in a VMware Workstation 10 lab Part 2

This is intended to be a VERY quick and dirty multi-part guide to installing VCD 5.5 in a VMware Workstation 10 lab.

It is NOT intended to be a complete step by step guide, so it's mainly for experienced professionals, BUT if you are starting out with this stuff, I feel you would learn more by following this guide and searching for, or working out yourself, the bits you don't know (rather than following a prescriptive step by step guide that a 12 year could follow)

No offence 12 year olds!

So in Part 1 (http://itsgettingcloudy.blogspot.co.uk/2014/11/installing-vcd-55-in-vmware-workstation.html) I set up a VMWare Workstation 10 lab, installed a Windows Domain Controller\DNS server, and deployed the vCenter Server Appliance.

Now on with the show!

ESXi SERVER SETUP
I created a new Workstation VM with 18GB RAM, a 6GB disk, and the OS type ESXi Server.
After the VM was created, I edited the settings to add a second disk of 200GB (thin deployed), and connected the NIC to vmNet8.
As part of the OS setup, I used the hostname esx01.domain.local, IP 192.168.89.11, subnet mask 255.255.255.0, DNS Server 192.168.89.20, and a default gateway of 192.168.89.2
Instructions on the above can be found here;
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2034803

ESXi SERVER CONFIG
Once the server was deployed, it was necessary to do each of these things;
Log in to the vCenter Server web client at https://192.168.89.10:9443
Create a Datacenter
Create a new Cluster called Cluster01.
Enable DRS, and accept all defaults.
Add esxi01 to the Cluster.
Configure esxi01 to use the same NTP server as your appliance (I used 0.uk.pool.ntp.org)
Add a datastore using the 200GB disk and VMFS5
Unlike in the 'old' days, ESXi will automatically create a usable virtual networking config for you 'out of the box'
If you don't know how to do any of the above, working out how will definitely teach you something about ESXi\vSphere\vCenter Server!!

Now you can deploy the vCD appliance;

VCD APPLIANCE DEPLOYMENT
To deploy the VCD appliance, it was necessary to do each of these things;
Log in to the vCenter Server web client at https://192.168.89.10:9443
Select host esxi01
From "Actions", choose "Deploy OVF Template"
Browse to the "vCloud Director VA OP" OVF (I found it necessary to change the file type from OVF to OVA or All Files)
Accept the EULA
Change the VM name from "vCloud Director" to "vcd01"
Select my datacenter
Select my 200GB datastore (changing disk type to thin provisioned)
Set root and guest passwords
Expand the networking settings and enter;
Default Gateway 192.168.89.2
DNS Server 192.168.89.20
Network 1 IP 192.168.89.40
Network 1 subnet mask 255.255.255.0
Network 2 IP 192.168.89.41
Network 2 subnet mask 255.255.255.0
Tick Power on after deployment
Click Finish.
While the OVF was deploying, I kicked off deploying the vShield appliance;

VSHIELD APPLIANCE DEPLOYMENT
To deploy the vShield appliance, it was necessary to do each of these things;
Open the "full fat" Windows vSphere client (I was getting validation errors when trying to deploy from the web client using chrome)
Select host esxi01
From "Actions", choose "Deploy OVF Template"
Browse to the "vShield Manager" OVF (I found it necessary to change the file type from OVF to OVA or All Files)
Accept the EULA
Change the VM name from "vShield Manager" to "vshield01"
Select my datacenter
Select my 200GB datastore (changing disk type to thin provisioned)
Set CLI admin and privilege mode passwords
Tick Power on after deployment
Click Finish.
Whilst that was deploying, I moved on to configuring vCD;

CONFIGURING VCD PART1
To configure VCD, it was necessary to do these steps;
Open a browser and go https:<IP you used for the VCD VM's network 1 i.e. 192.168.89.40>
Go through the wizard;
License Agreement - accept this
License Key - you should have got a trial license key from vmware.com when downloading the software
Admin user and contact info - make a note of the administrator username and password you set use here
System name and ID - I used the hostname (vcd01) and default ID
Click Finish
Before running through the next part of the VCD config, we need VCNS\vShield working with vCenter so lets do that next

CONFIGURING VCNS
To configure VCNS, it was necessary to do these steps;
Change the IP from DHCP assigned, to the IP you created a DNS record for (vshield01) in part 1.
To do this, follow my quick guide here: http://itsgettingcloudy.blogspot.co.uk/2014/11/re-ip-vcns-aka-vshield-manager.html
Open a browser and go https:<IP you used for the vShield01 VM i.e. 192.168.89.45>
Username will be admin password will be default
You will be at the "Settings & Reports - Configuration" page
Click EDIT on the vCenter Server line.
Enter the vCenter Server IP and credentials then OK
Click EDIT on the NTP Server line
Enter the same NTP server as you used on your vCenter appliance (I used 0.uk.pool.ntp.org)
Reboot the VCNS manager from the vSphere client by choosing Restart Guest



CONFIGURING VCD PART2
Open a browser and go https:<IP you used for the VCD VM's network 1 i.e. 192.168.89.40>
Next, attach a vCenter by doing the below;
Go to https://192.168.89.40/cloud and log in with the administrator username and password you have set up
Click "Attach a vCenter"
Enter the relevant details then go on to the next tab
Enter the VCNS server details, note that the admin password is not the one you type into the OVF deployment wizard, but is still 'default' unless you have changed it in the vShield web console
Click Finish


Congratulations, you now have a functioning vCloud Director lab, further config will be necessary depending on what you want to use it for.

Watch out for more guides to follow, helping you set up the lab for various purposes.

No comments:

Post a Comment