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.

Re-ip VCNS aka vShield Manager

After deploying the vShield Manager, it will use DHCP by default.
To change this, perform the below simple steps;


  1. Connect to the VM's console with the vSphere client.
  2. Login as admin and default (or the password for the admin CLI account that you entered when deploying the OVF) 
  3. Type "enable" and press return.
  4. Re-enter the password.
  5. Type "setup" and press return.
  6. Follow the prompts entering the new info.
A reboot is not necessary :)

Saturday, 8 November 2014

Installing VCD 5.5 in a VMware Workstation 10 lab Part 1

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 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!).

LAB SETUP
Things I have in my one-machine lab - you might be able to get away with less;
32GB RAM
500GB free space
VMWare Workstation (I have 10 but 9 or better should be ok)
One custom network (see NETWORK SETUP below)

SOFTWARE REQUIRED
As well as VMWare Workstation 10, you will need the following software - ALL of it is available in free trial form from the microsoft.com or vmware.com;
Windows Server 2008\2012
VMWare ESXi 5.1\5.5 (comes with the vSphere Trial)
VMWare vCenter Server 5.1\5.5 (comes with the vSphere Trial)
VMware vCloud Director 5.5 (comes with the vCloud Director Trial)
VMware vShield Manager 5.5 (comes with the vCloud Director Trial)

NETWORK SETUP
The Workstation VMs are all joined to a custom network, vmNet8, which I have set to use NAT (for connecting out to the real world - this is important to provide centralised time for your VMs via NTP), as well as DHCP.
My subnet IP is 192.168.89.0 with a mask of 255.255.255.0, it may make things easier for you if you use these values.

VMWARE WORKSTATION SETUP
Running in VMWare Workstation I have the following VMs;
One ESX 5.5i server with 18GB RAM, a 6GB install disk and a 200GB datastore disk
One vCenter Server 5.1 Appliance (4GB RAM default)
One Windows 2003 Server domain controller (512MB RAM)

DOMAIN CONTROLLER SETUP
I created a VM with 512MB RAM, 30GB disk space (suggest 768MB RAM with 40gb disk space (thin provisioned) for Windows 2008 and 2012) and 1 vCPU, connected to vmNet8
After a normal install of Windows Server, I set the server's IP as 192.168.89.20 (mask 255.255.255.0), Primary DNS as 192.168.89.20, and the gateway as 192.168.89.2 (the VMware workstation NAT router for this subnet).
I renamed the server to dc01, rebooted, then ran DCPROMO, using the domain name "domain.local", and all the defaults.
After another reboot, I ran dnsmgmt.msc and created host records for;
vcs01(.domain.local) at 192.168.89.10
esxi01(.domain.local) at 192.168.89.11
vcd01(.domain.local) at 192.168.89.40
vcd01cp(.domain.local) at 192.168.89.41
vshield01(.domain.local) at 192.168.89.45

Finally I installed VMWare tools.

VCENTER SERVER APPLIANCE SETUP
I deployed the appliance into VMWare Workstation, using a thin provisioned  disk.
Once it was deployed, I edited the VM's setting to use network VMNET8, then powered it on and connected to it's "console" to see the DHCP IP it had picked up.
I then went to https://192.168.89.<DHCP-assigned-IP>:5480 from my laptop's browser and set up the installation. Further details on that part can be found here;
https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.vsphere.install.doc%2FGUID-25FCBA87-5D2F-4CB6-85D7-88899B4AC174.html
I used the hostname vcs01(.domain.local), and IP 192.168.89.10 (mask 255.255.255.0, gateway 192.168.89.2). I also used (important!) NTP Time Server of 0.uk.pool.ntp.org as I am in the UK.

In the next part of these instructions, I shall continue by installing and configuring ESXi Server.