Archive for the ‘VMWare’ Category

Today i wasn’t able to create VM from OVA/OVF template, i tried Chrome and Mozilla Firefox (newest versions)

Although VMware client intergration plugin was installed (and recognized by both browsers)

1.PNG

I still was getting:The client Intergration Plug-in must be installed to enable OVF functionality and pop up The VMware Client Integration Plugin has udated its SSL certificate in Firefox.Please restart Firefox, even when i was using Chrome

2.PNG

The only solution i was able to find was to:

Untitled

  • Install The client Integration Plug-in
  • Start Mozilla
  • Disable Updates:
  1. Select the “Menu” Menu Button button in the upper-right corner, then choose “Options“.
  2. Select “General” on the left pane.
  3. Click “Advanced” then “Update”
  4. Select Never check for updates

4

Locate firefox.exe and double click on it

 

3.png

Then i logged in to vSphere,again allowed Intergration plug in and finally was able to deploy VM from template

 

Advertisements

vSphere Update Manager (VUM) is a tool which enabled VMWare administrators to automate and streamline process of applying updates to vSphere environment.VUM is integrated to vCenter server  and offers the ability to scan and remediate ESXi hosts.

In this example i used SQL server database (192.168.0.6) for storing updates,VUM will be installed on separate Windows Server 2016 machines (192.168.0.45)

Configuring SQL server

VMWare requires using SQL server login when SQL database is on separate server,so first thing is to create SQL server login:

In SQL server management studio Expand security-Right Click Login-New Login

 

1.png

 

 

2.PNG

 

Creating  VUM database

Right click Database-New Database

 

3

Set owner to SQL login

4.PNG

Set SQL login to be owner to MSDB database too (required during VUM installation)

1-1-3.PNG

 

Enable SQL Authentication

1-0.PNG

Check if Named Pipe,Shared Memory and TCP/IP is enabled,if not,enable it and restart MSSQL service

 

5

Using SQL server management studio try to log in using SQL server login,you should be prompted for new password

 

6

 

 

After we configured SQL server,now it’s time to configure server where VUM will be installed:

 

Configuring VUM server

Install appropriate ODBC driver (on my SQL server ODBC 11 driver is installed),so i need to install the same driver on VUM server

 

1-1-1.PNG

Creating connection to SQL server VUM database

Create ODBC connection (must select 32 bit version)

 

7.png

 

Select System DSN-Add

8

Select ODBC Driver 11

 

1-0.PNG

Enter Connection Name and name/IP of SQL server and click next

 

10.PNG

Enter SQL login credentials

11.PNG

From drop-down list select VUM database

 

12.PNG

Test connection and click OK

 

13

 

Installing VUM

Mount vCenter Server ISO,on Auto-Run windows select vSphere Update Manager-Server

2.png

Enter vCenter IP Address/hostname and vCenter credentials

3

Enter ODBC name (we created in in previous steps)

4.PNG

Enter SQL login

5

Leave default or enter custom ports (installation routine will open these ports on VUM server)

 

6.PNG

After installation finishes, Update Manager should be visible in vCenter Sever

13.png

 

Click Update Manager-icon with IP address of VUM server should appear-click on it-Manage-Settings-Download Settings-Download Now

 

Capture.PNG

We can monitor download progress from VUM server

 

7

 

8.PNG

 

9.png

 

vSphere Replication is solution for VM protection ,it’s integrated in vCenter server.Using vSphere Replication we can replicate VM from one datastore to another.

Features:

• Protect nearly any virtual machine regardless of operating system (OS) and applications. • Only changes are replicated, which improves efficiency and reduces network utilization.
• Recovery point objectives (RPOs) range from 15 minutes to 24 hours and can be configured on a per–virtual machine basis..
• Compatibility is provided with VMware Virtual SAN™, traditional SAN, NAS, and local storage.
• Quick recovery for individual virtual machines minimizes downtime and resource requirements.
• Optional network isolation and compression help secure replicated data and further reduce network bandwidth consumption.
• Support for Microsoft Volume Shadow Copy Service (VSS) and Linux file system quiescing improves reliability of recovered virtual machines.

Replication appliance is located on VMWare vSpehere Replication ISO.

Connect to vCenter server,Right-click to datacenter-Deploy OVF template

 

1 (1).png

Local File-Browse

 

1.PNG

Select OVF file from ISO (bin folder)

2

 

 

 

3.png

Accept License Agreement-click Next-Select Datacenter

4.png

Choose vCPU number

 

5.PNG

Choose ESXi  which will host Replication Appliance

 

6.PNG

Select Datastore

7.PNG

Specify network settings

 

8.PNG

Set root password,NTP servers and appliance IP

9.PNG

 

10.PNG

 

11.PNG

After some minutes Appliance should be deployed

12.PNG

 

Log in to vCenter Replication Appliance using web browser (http://ipaddress:5480/

If VRM service is stopped,go to Configuration,enter vCenter username and password click Save and Restar Service

 

13.PNG

Click yes

 

14.PNG

In vCenter server you should be able to see vSphere Replication

 

Capture.PNG

and new context menu should appear when right click on VM:

1.PNG

 

In case you don’t see vSphere Replication,try first to reboot vSphere Replication appliance,if it fails,reboot vCenter Server,if it fails too reboot ESXi host (this helpled in my case 🙂 )

If all fail check log file on vCenter Server,vsphere_client_virgo.log stored in /var/log/vmware/vsphere-client/logs/

 

 

Installing vCenter for ESXi 6.0

Posted: February 22, 2017 in VMWare

In this post i’ll install vCenter on Windows Server 2016 with SQL database located on separate server.

vCenter Server is an application that is used as a centralized management tool for ESXi hosts and  VMs. vCenter Server performs tasks on the individual ESXi hosts that have been added as members of a vCenter

vCenter server must have at least 8 GB of RAM

Configuring SQL server

I’ll use Windows authentication,so first step would be to create login and map it to Windows user account (standard domain user)

In SQL management studio Expand Security-Right click Login-New Login

 

1

 

Check Windows authentication-Search

 

2.png

Location-domain name-enter domain user name (esxi_user in my case)

 

3.png

 

Creating database

vCenter needs database for storing it’s data.Right click database-New database

 

4.png

Specify new login as database owner

 

5.png

 

Set this login as owner of msdb database but only during vCenter installation,after installation finishes,restore sa account as msdb owner

 

6.png

 

 

Setting vCenter server

vCenter server needs to have access to SQL server database during installation

 

Download and install SQL native client from https://www.microsoft.com/en-us/download/details.aspx?id=50402 (sqlncli.msi)

 

7.png

 

Control Panel-Administrative tools-ODBC Data Sources (64-bit)

 

8.png

 

Select System DSN-Add-SQL Server Native Client-Finish

 

9.png

After clicking Finish,Create a New Data Source wizard opens-set name,from drop-down list choose SQL server and click Next

 

10

Check Integrated Windows authentication and click Next

 

11.PNG

Click Change the default database to: and from drop-down list select database for vCenter and click Next

 

12.PNG

 

Click Test data source and if everything is fine,click OK

 

13.png

Installing vCenter (NET Framework 3.5 is required)

 

14.PNG

 

The Platform Services Controller (PSC) enables  log in and administer vCenter,so it must be installed

 

15.PNG

Set System name

 

16.PNG

Set password for SSO administrator

 

 

17.PNG

Service account must be specified if we want to use Windows authentication

 

 

18

 

 

19

We must add System account Log on as service right,on Domain controller create/edit GPO

Windows Settings-Security Settings-Local Policies-User Right Assignment-Log on as a service-Add account

 

20.png

 

on vCenter server run gpudate /force and click next,error should disappear-click Next

Select DSN Name (created in previous steps)

 

21

 

 

 

22.PNG

 

 

 

23

 

 

After installation we can see that setup created a bunch of tables for databases

 

24.PNG

 

 

25.PNG

 

 

Unattended install ESXi 6.0

Posted: February 21, 2017 in VMWare

Creating ks.cfg file

This specify install location,root password,network settings and hostname

# Sample scripted installation file
#
# Accept the VMware End User License Agreement
vmaccepteula
# Set the root password for the DCUI and Tech Support Mode
rootpw mypassword
# Install on the first local disk available on machine
install --firstdisk=local --overwritevmfs
# Set the network to static on the first network adapter
network --bootproto=static --device=vmnic0 --ip=192.168.0.10 --netmask=255.255.255.0 --gateway=192.168.0.1 --nameserver=8.8.8.8 --hostname=esx1.test.com
# A sample post-install script
%post --interpreter=python --ignorefailure=true
import time
stampFile = open('/finished.stamp', mode='w')
stampFile.write( time.asctime() )

I copied this file to USB stick (must be formatted as FAT32!!)

We need to specify path to unattended file (Shift+O)

 

1

ks=usb (specifies usb as ks.cfg file location-installer will search for all USB drives formated as FAT16/32)

 

2

Installation has finished:

 

1.png

Replication in WMware vSphere 5.5

Posted: October 14, 2015 in VMWare

VMware vSphere Replication is a hypervisor-based, asynchronous replication solution for vSphere virtual machines. It is fully integrated with VMware vCenter Server and the vSphere Web Client.

vSphere Replication is provided in open virtualization format (OVF) or with a standard vCenter Server installation.OVF consist of vSphere Replication Server and components being used to administer and manage vSphere replications.With vSphere Replication, you can replicate virtual machines from a source datacenter to a target site quickly and efficiently

OVF appliance can be freely downloaded here,with your VMWare account

After downloading,right click your cluster in vSphere Web Client and choose deploy OVF template

Untitled

Browse to downloaded OVF file and click next

Untitled1

Accept EULA,provide a name,select appliance location,datastore.destination network,IP protocol,if you choose static IP allocation provide DNS,Gateway and subnet mask info and set root passwordReview service binding information and verify that Binding status is OK and click finish.

After successfuly deployement,open console and check if applianced has booted properly:

Untitled

Restar vCentar server (in my case i restarted vCenter appliance)

After restart click on vCenter Server,click manage tab,you shoud see vSphere replication tab.Click on it,click Replication Servers,you should see replication appliance

Untitled2

In this example we’ll migrate xp VM from one datastore to another.Please,take note that i am doing this in lab environment,in the real world,we would transfer VM to another vCenter server.

Right click on running VM and select AllvSphere Replication Actions-Configure replication

Untitled

Select replicate to a vCenter Server

Untitled4

Select vCenter server,i used same vCenter server i am logged in,in real time environment we would use another vCenter server.

Untitled5

Select vSphere replication server,which will conduct migration (in this case our OVA imported template)

Untitled6

select datastore on destination vCenter where VM shold be replicated to

Untitled7

Configure replication for VM.With a Recovery Point Objective (RPO) value we determine the maximum data loss that can be tolerated.If we set the RPO to 10 minutes,it means that vSphere Replication can tolerate losing the data for up to 10 minutes.In our example,the latest available replication instance can never be in a state that is older than 10 minutes. A replication instance refers to the state of a virtual machine at the time the replication starts.We can also enable multiple snapshot instances (Point in time instances) .

Untitled8

Click next and finish.

Click on vCenter Server-Monitor-vSphere Replication-outgoing replication

Untitled

If we want to configure additional recovery point,right click on VM and choose Sync now

Untitled1

Untitled

Recovering VM

To quickly recover recent version of VM,select vCenter server that vSphere Replication appliance is registered to from left sidebar-Monitor tab-vSphere Replication-incoming replication.

Select powered off VM,right click and choose recovery

Untitled10

Synchronize recent changes-Performs a full synchronization of the virtual machine from the source site to the target site before recovering the virtual machine,only available if the data of the source virtual machine is accessible

Use latest available data- Recovers the virtual machine by using the data from the most recent replication on the target site, without performing synchronization. Use this option if the source virtual machine is inaccessible or if its disks are corrupted.

Untitled11

Power on virtual machine after recovery

Untitled13

Distributed switches in vCenter 5.5

Posted: September 28, 2015 in VMWare

Distributed switches provides centralized location for setup,provisioning, administration, and monitoring the virtual network for the entire infrastructure.Imagine that we have 10 ESXi hosts and that we have been given task to implement same kernel network on all 10 hosts,instead of repeating tedious and error prone procedure on every of 10 ESXi hosts,we can set up management network on only one host and that changes will propagate to remaining 9.That’s all possible with distributed switches

Creating distributed switch

Right click on datacenter (where ESXi hosts are located) and select New Distributed Switch:

Untitled

Give switch name or leave default one and click next

Untitled

Choose compatibility

Untitled2

Choose number of ports available on this switch (define number of NIC’s for this switch),create Port group and name it.

Port group specifies port configuration options for each member port

Untitled3

After Distributed switch (dswitch in further discussion), is created,add ESXi hosts to newly created dswitch.Right click switch and choose Add and manage hosts

Untitled4

Untitled5

In this example,i have 2 hosts

Untitled7

Select check box to apply changes to all added ESXI hosts (template mode)

Untitled8

Choose ESXi host from which changes will be applied to other ESXi servers

Untitled9

We will add ESXi’s NIC to kernel network

Untitled10

Select desired NIC,click Assign uplink and then click Apply to all in order to assign same adapter to all ESXi host.

Note:it’s presumed that both ESXi servers have same number of NIC’s

Untitled11

Now click New Adapter to add previously selected NIC to VMKernel network:

Untitled11a

Click browse and select previously created port group

Untitled12

Select service which will be used on VMKernel network

Untitled13

Untitled14

Now go to network properties of both ESXi hosts and review setup,VMKernel network named iSCSI will be seen:

Untitled13

Untitled13