Restore a Virtual Server using Veeam

In a DR situation you may need to restore a virtual server using Veeam.

1. Open Veeam Backup & Replication

2. Click restore

Restore
3. Select Entire VM including registration then next

Restore entire vm
4. Click add VM then From Backup

from backup
5. Expand the backup job and select the VM you want to restore. Click next

sql
6. Select “Restore to a new location, or with different settings” then next. This is a safer option as it will not overwrite the failed VM leaving it available later if you need anything from it.

new location
7. Change the host server if you want to or leave the defaults and click next

host
8. Change the datastore as required. If you don’t have enough space on the original location select a datastore with enough free space.

datastore
9. On the folder page click Name and check “add suffix”

name

This is an important step to ensure the VM is not overwritten.

10. On Network click the Disconnected button. This will ensure there are no IP address conflicts when you restore the VM

network

11. Check the Summary and check the settings are as expected. To be double safe don’t check Power on VM after restoring. We can do this as a manual step.

Click finish to start the restore

summary

Install an External Platform Services Controller for vSphere 6.0

With an External Platform Services Controller you have the ability to manage multiple vCenter servers from one pane. It sounded like quite a cool option so I thought I would get it installed in the lab!

vCenter Architecture Options:

architecture]

Hardware Requirements:

hardware

  1. Build a Windows Server VM with 2 CPUs and 2 GB of RAM
  2. Attach the vCenter 6.0 ISO to your VM
  3. Double click the autorun to start setup. Click Install then next
  4. Enter a System Name and click Next

System Name
5. Fill out the vCenter Single Sign On Information and click next

single sign2
Note: The vCenter Single Sign on Domain must be different to Active directory domain or you will be presented with this message:

error1
6. Accept the default ports and click next

Ports
7. Click next

directorys
8. Check the settings and click Install

install
Once setup is completed, click Finish. Now you can connect your vCenter servers to the Platform services Controller.
completed

Creating a Nested Virtualization Lab on VMware 5.5

For my new lab I am using an old HP Z200 workstation with a Quad Core Xeon processor and 16GB RAM. For storage I have 1 SSD and 2 SATA disks.  After turning on Hyper threading in the BIOS I have 8 logical cores available in VMware.

1. Install VMware onto your physical host, assign a static IP address, setup a password etc

2. Browse to the IP address in a browser and download the vSphere client.

3. Connect to the host with the client and go to Configuration/Security Profile

4. Click on Properties in the upper right corner and you will get the a popup with all the services on this ESXi host. Select the SSH service and press the Options button.

services1

5. Select ‘Start and stop with host’ and then press start.

ssh-startup

5. Download and install Putty then SSH to your ESX host. Login as root.

Putty

6. Next we need to update the vmwareconfig file, inserting a couple of lines to allow the nesting of virtual hypervisors and installation of Microsoft Hyper-V.

echo ‘vhv.allow = “TRUE”‘ >> /etc/vmware/config
echo ‘hypervisor.cpuid.v0 = “FALSE”‘ >> /etc/vmware/config

We can run a cat command to verify the lines were inserted

cat /etc/vmware/config

cat

We should now be ready to install our nested Hypervisors!

7. Create and new VM with these settings:

Virtual machine version 8
4GB RAM
2 CPUs
Operating system set to ‘Other (64-bit)’
4 NICs (one connected to management network and the rest connected to trunk network with all vlans)
20 GB thin provisioned disk

check ‘edit the virtual machine settings before completion’ then press continue

vmconfig
Connect your VMware ISO file to the CD drive and check ‘connect at power on’ then finish.

ISO
Now, I had some issues getting the next bit to work. ESX would install but I couldn’t install any 64bit hosts. I thought at first my processor didn’t support it as I was getting these errors:

hardware error
I checked in the BIOS, but couldn’t find anything. When I tried to install a x64 VM I got this error:

Failed to start the virtual machine.
This virtual machine is configured for 64-bit guest operating systems. However, 64-bit operation is not possible.
This host does not support Intel VT-x.
For more detailed information, see http://vmware.com/info?id=152.

In the end this is how I got it working:

8. Power on the VM. Wait a few seconds then turn it off. Similar to the physical host we need to insert the vhv line into the config

Browse the file system until you can find the  .vmx file for the VM. Insert the vhv.allow line into the file

browse
9. Start the machine again and it should complete with no errors and 64 bit hosts should install nicely.

nestedx64
Reference material:
http://www.vcritical.com/2011/07/vmware-vsphere-can-virtualize-itself/
http://www.virtuallyghetto.com/2011/07/how-to-enable-support-for-nested-64bit.html
https://communities.vmware.com/docs/DOC-8970