TechShizz | All posts tagged 'vSphere'

vSphere: Creating a NFS datastore on an NFS share

1. Install NFS from Add Roles and Features:

2. Add a disk

3. Format the Disk

4. Create a folder on the Drive

5. Right click and go to NFS Sharing

6. Click Manage NFS Sharing

7. Enable "Share the Folder"

 

Create NFS Share

 

7. Set the permissions to Read/Write

Check the Allow root access checkbox.

 

Setting NFS Share Permissions

 

8. Next in vCenter right click on the ESXi Host > Storage > New Datastore:

Set datastore type

9. Select NFS - Use the same version NFS as existing infrastructure.

 

Version 4.1 has support for Multi-pathing, Kerberos and file locking controls.

 

10. Next specify the folder that was created and shared (It was called NFS-Mount in this example):

NFS Share details

 11. This Share, as the VMKernal Adapters are already set up can be added to ESXi-2 simply by right clicking the Datastore and selecting "Mount Datastore to other Host".

Create a NFS Datastore

 

Now both ESXi Hosts have access to this store, migrating a VM that’s hosted on that datastore would be easy.





Deploying vCenter Server Applience (vCSA)

Insert the VCSA Disc /ISO and find the VMWare-ClientIntergrationPlugin.exe

 

Once this is installed, we can then use the web browser to install vCSA

VCSA DVD

 

To open the browser, on the disc go to the vcsa-setup.html file. This will start an internet browser and you will need to allow the plugin to run.

vcsa-setup.html

 

There are 11 steps to the installer most are simple.

 

  1. Accept Licence
  2. Enter the IP/FQDN of the ESXi serve to which the vCSA VM will be installed along with its username and password. (Accept the certificate warning if cert is self signed)
  3. Specify VM name and OS Password
  4. Select the type of deployment, Embedded or External Platform Services controller.
  5. Create or Join a SSO domain (NOT AD DOMAIN) - Domain cannot be the same as AD Domain. Domain example could be vSphere.local
  6. Select appliance size [Tiny,Small,Medium,Large]
  7. Select either internal or Oracle database. (You can select Thin Provisioning here if you need to).
  8. Set the VMs IP configuration
  9. Confirm all settings.

 

You can now login to the vCSA server via https://vcsa.lab.local/vsphere-client

 

vCenter Sign-On Screen

 

====================================================

 

vCenter Admin Console


Installing an ESXi host on VMWareworkstation


The ESXi operating system will not install on just any machine. Your machine must meet some minimum requirements so before you try this on your home laptop make sure your laptop has got at least the following:


CPU: Must be 64bit and support hyper threading.

RAM: 16GB

Storage: SSD (Solid state hard drive) or at very least a hybrid drive.


Installing ESXi


1. Create a new VM and select custom on the first page, not Typical.

2. Select the newest version of hardware compatibility

3. Select "I will install the operating system later".

4.Select VMWare ESX

5. Name the machine and save it to your fastest storage drive. When you run multiple VMs they will all be competing for the use of your single disk. This disk will struggle to run even with an SSD in a lab environment. Also, your machine will take up a lot of space. Make sure you have at least 100GB to have a decent play with ESXi.


6. Selecting CPU settings - Keep it simple. If your installing two ESXi VM's, I'd set this to once CPU per VM. Remember that these hosts will be then sharing out that CPU to its host machines. If you're installing more than one ESXi its not a good idea to let both ESI hosts use all of your CPUs - it'll likly slow down your host machine which will in-turn hange all of the other VMs running.


7. RAM - Do the math - This is up to you but it goes without saying the more your physical host has the better. I say physical host because if you ramp up the RAM on your ESXi hosts too much you'll starve your host and this will effect the whole system. Here is an example.

16GB for a single ESXi is easy, just move the slider right to the "Maximum reccomended memory". However if you have two ESXi hosts or more I'd look at the maximum reccomended memory for the first ESXi host and divide that figure between your ESXi hosts. So if its 9912MB between two ESXi hosts, assign them 4956MB each. If you go over this the physical host will choke and you'll be sat there a long time when things lock up. The minimum you should ever try to give an ESXi host is 4GB (in my experiance it will not even install without this amount).

8.Networking - I'd reccommend as this is a lab environment to assign host only.

9. Select the default controller type.

10. Select SUSI

11. Select a disk - Create a new virtual disk. You could select a physical disk here if you have a free disk to dedicate but most people don't have one. If you do, great do it! It'll speed things up dramatically if can dedicate a disk to an entire ESXi host.


12. Specify Disk Capacity - You can just choose the default here, but for speed the best option would be

a. Size - as much as you can afford to allocate.

b Enable the "Allocate all disk space now" chackbox.

c. Select "Store virtual disk as a single file". This will reduce I/O time on the disk


12. Name the file


13. Now right click on the VM and go to settings - Select the ESXi ISO as the source for your CD/DVD drive. (Note: The ISO file must be local on your machine and note selected from a network share or the install will fail)


14. Add any additional hardware you need for your lab. Typically ESXi hosts need two NICs for every network they will be connected to so you'll need anything from 4+ NICs. Remember to consider your DHCP needs. VMWare Workstation will do DHCP for you, but if you plan to add a DC as on your ESXi host with DHCP you'll need to configure this accordingly.


Once installed the ESXi host needs to have its network configuration amended for the planned infrastructure,

 

Check in Network Adapters to make sure that all the expected NICs are present.

IPv6 can be disabled here if it's not needed for the management console to connect in.

DNS should be configure manually to ensure the correct server is used.

 

Can't find the vSphere client downloads?

Boom!

Download vSphere Client 5.5. Update 3: VMware-viclient-all-5.5.0-3024345.exe

Download vSphere Client 5.5 Update 2: VMware-viclient-all-5.5.0-1993072.exe

Download vSphere Client 5.5 Update 1b: VMware-viclient-all-5.5.0-1880841.exe

Download vSphere Client 5.5 Update 1VMware-viclient-all-5.5.0-1618071.exe

Download vSphere Client 5.5: VMware-viclient-all-5.5.0-1281650.exe