VMWare
VMWare
1. Introduction of VMWare
5. P2v Migration
7. VM Creation
8. VM Deletion
18. Cloning
1998
1999
2000
2001
VMware ESX 1.0 (Elastic Sky X) and VMware GSX 1.0 (Ground Storm X)
released
VMware Workstation 3.0 released
2002
2004
2005
2006
2007
2008
2009
VMware Workstation supports only one CPU and up to 1 GB of RAM. GSX Server
supports 2 CPUs and up to 2 GB of RAM. GSX Server is very similar to Workstation in
most other ways, but one of its coolest features is the Remote Console that allows you to
remotely manage and access your virtual machine from anywhere on your network. In
addition, it's much easier to work with in a high availability configuration.
While VMware Workstation is mostly used by a single user to run multiple instances of
operating systems for testing and support purposes, GSX Server is often used for server
consolidation by running virtual machines of server operating systems that simply appear
to be stand-alone servers to clients on the network.
GSX Server needs a hosting OS like Linux or Windows where it runs on, while ESX
Server uses it's own, very small OS (based on BSD i think). That makes the requirements
of the server hardware for the Host OS to be minimal. Vmware server running on a full
windows or Linux OS that OS itself will take up plenty of RAM and CPU power.
ESX server can run up to 128 VM's at the same time. Your main limits are determined by
how much RAM and CPU Power you have.
Virtualization : It is a technology that allows to transfer H/w into S/W. to run multiple
O/S at a time with out interruption.
Esx Installation :-
Disk : Local/SAN/NAS
Partition Table :
VM: (Virtual Machine) It is a Software generated computer works like your physical box.
VMware Products
Datacenter & Cloud Infrastructure
VMware vSphere
VMware vSphere Hypervisor (ESXi)
VMware Go
VMware vCloud Product Family
VMware vCloud Director
VMware vCloud Request Manager
VMware vCenter Product Family
VMware Server
Other
VMware View
VMware ThinApp
VMware ACE
VMware Workstation
VMware Player
Zimbra
VMware Mobile Virtualization Platform (MVP)
Core Components
Processor, Storage
Pre-installaton considerations
Installation of ESX4.0
Press Enter
RAID hardware identified and drivers loaded for the same.
Click on ―Next
Accept agreement and click on “Next”.
Click on Next
Select “NO” and click on ―Next.
After drivers loaded click on ―Next.
If serial available at the time of installation provide that or else select 2 nd option.
Click on ―Next..
IP Address :- 10.200.0.151
Subnet Mask :- 255.255.255.128
Gateway :- 10.200.0.129
PDNS :- 10.200.0.137
SDNS :- 10.200.0.150
HostName :- BLRESXVM001
For network settings if you are using DHCP IP for server checks DHCP and goes
ahead,
In case you are using Static IP Address for Virtual Infrastructure Server, mention
details and Click on ―Test these settings‖ if it shows Ok that means network setting
are ok if not then check the IP configuration and network card availability.
click on ―Next.
Click On ―Next.
Click On ―Next‖.
Select Time Zone and Click on ―Next‖.
Check the setting is ok and Click on “Next”.
Enter password for default user ―root‖ and add a new user also.
Password:-password
Setup will display all selected configuration options. Click on “Next” to proceed.
Click on ―Next
Click on finish.
After system reboot above screen appear on vSphere Server. This means operating system is Up
and available. Remaining all settings and operations will be done from Virtual Infrastructure client.
Networking Components
There are two other virtual adapters that are available through VMware technology.
Vswif is a paravirtualized device similar to vmxnet that is used by the VMware ESX
service console. Vmknic is a device in the VMkernal that is used by the TCP/IP stack to
serve NFS and software iSCSI clients.
Virtual Switches
1. Layer 2 forwarding.
2. VLAN tagging, stripping and filtering.
3. Layer 2 security, checksum and segmentation offloading.
Virtual ports: The ports on a virtual switch provide logical connection points
among virtual devices and between virtual and physical devices. Each virtual
switch can have up to 1,016 virtual ports, with a limit of 4,096 ports on all virtual
switches on a host. The virtual ports provide a rich control channel for
communication with the virtual Ethernet adapters attached to them.
Uplink ports: Uplink ports are associated with physical adapters, providing a
connection between the virtual network and the physical networks. They connect
to physical adapters when they are initialized by a device driver or when the
teaming policies for virtual switches are reconfigured. Virtual Ethernet adapters
connect to virtual ports when you power on the virtual machine, when you take an
action to connect the device or when you migrate a virtual machine using
VMware VMotion. A virtual Ethernet adapter updates the virtual switch port with
MAC filtering information when it is initialized or when it changes.
Port groups: Port groups make it possible to specify that a given virtual machine
should have a particular type of connectivity on every host, and they contain
enough configuration information to provide persistent and consistent network
access for virtual Ethernet adapters. Some of the information contained in a port
group includes virtual switch name, VLANIDs and policies for tagging and
filtering, the teaming policy and traffic shaping parameters. This is all the
information needed for a switch port.
Uplinks: With VMware technology, uplinks are the physical Ethernet adapters
that serve as bridges between the virtual and physical network. The virtual ports
connected to them are called uplink ports. A host may have up to 32 uplinks.
Virtual Switches
A virtual switch is a software program that allows one virtual machine (VM) to
communicate with another.
Virtual Ports
The ports on a virtual switch provide logical connection points among virtual devices and between virtual
and physical devices. You can think of them as virtual RJ-45connectors. Each virtual switch can have up to
1,016 virtual ports, with a limit of 4,096 ports on all virtual switches on a host.
The virtual ports in ESX Server provide a rich control channel for communication with the virtual Ethernet adapters
attached to them. ESX Server virtual ports
VMware ESX Server automatically generates MAC addresses for the virtual network
adapters in each virtual machine.
A MAC address is a six-byte number. Each network adapter manufacturer gets a unique
three-byte prefix called an OUI - organizationally unique identifier - that it can use to
generate unique MAC addresses. VMware has two OUIs - one for automatically
generated MAC addresses and one for manually set addresses.
The VMware OUI for automatically generated MAC addresses is 00:05:69. Thus the first
three bytes of the MAC address that is automatically generated for each virtual network
adapter have this value. ESX Server then uses a MAC address generation algorithm to
produce the other three bytes. The algorithm guarantees unique MAC addresses within a
machine and attempts to provide unique MAC addresses between ESX Server machines.
Connectivity to Storage Devices
Storage Area Networks (SANs) provide powerful features for a VMware vSphere
environment, including VMware VMotion and VMware DRS
iSCSI SAN
NAS
Network attached storage (NAS) devices offer all VMware vSphere capabilities. Network
Attached Storage provides file level access to storage over a standard LAN or WAN
network. Typically NAS units are customized to just data storage, data access and storage
and access management. NAS systems usually contain one to many hard disks and offer
some level of redundancy (RAID).
The use of World Wide Names for security purposes is inherently insecure, because the
World Wide Name of a device is a user-configurable parameter.
For example, to change the World Wide Name (WWN) of an Emulex HBA, the users
simply needs to run the `elxcfg` command.
Hard zoning physically blocks access to a zone from any device outside of the zone.
Soft zoning uses filtering implemented in fibre channel switches to prevent ports from
being seen from outside of their assigned zones. The security vulnerability in soft zoning
is that the ports are still accessible if the user in another zone correctly guesses the fibre
channel address.
A major advantage of WWN zoning is the ability to recable the fabric without having to
redo the zone information.
The use of World Wide Names for security purposes is inherently insecure, because the
World Wide Name of a device is a user-configurable parameter.
For example, to change the World Wide Name (WWN) of an Emulex HBA, the users
simply needs to run the `elxcfg` command.
• Rapid provisioning with deployment wizard and virtual machine templates reduces the
time and effort for creating and deploying virtual machines to a few mouse clicks.
• Secure access control, robust permissions mechanisms, and integration with Microsoft®
Active Directory guarantee authorized access to the environment and its virtual machines.
Responsibilities can be delegated to tiers of system administrators.
• Migration of live virtual machines across entirely separate physical servers with
VMware VMotion makes the maintenance of IT environments non-disruptive.
• Integration with third party systems management products through Web services APIs
provided by the VMware Infrastructure SDK.
VMware Tools
The first set of tools you want to familiarize yourself with is VMware Tools. VMware
Tools is a set of enhanced drivers and applications that installs on your virtual machine's
(VMs) operating system. As a best practice, you should make a habit of always installing
VMware Tools to ensure the optimal performance and stability of your VM. Also, double
check to make sure that you're running the latest vers...
vCenter Server is a service that acts as a central administrator for ESX/ESXi hosts
connected on a network. This service directs actions on the virtual machines and the
hosts. The vCenter Server is the working core of vCenter. You can have multiple
vCenter Server systems joined to a Linked Mode group. This allows you to log in to
any single instance of vCenter Server and view and manage the inventories of all the
vCenter Server systems in the group.
vCenter Server additional modules provides additional capabilities and features to
vCenter Server. Generally, additional modules (sometimes called plug-ins) are
released separately, install on top of vCenter Server, and can be upgraded
independently. You can install additional modules on the same computer as the
vCenter Server system or on a separate one. After the additional module is installed,
you can activate the module’s client component, which enhances the vSphere Client
with user interface (UI) options. Additional modules include vCenter Update
Manager, vCenter Converter, and vCenter Guided Consolidation Service.
vCenter Server Prerequisites
Before installing vCenter Server, review the prerequisites.
Your hardware must meet the requirements listed below
CPU – 2 CPUs
Processor – 2.0GHz or faster Intel or AMD processor. Processor requirements
might be higher if the database runs on the same machine.
Memory – 3GB RAM. Memory requirements might be higher if the database runs
on the same machine. vCenter Server includes a service called VMware VirtualCenter
Management Webservices. This servicerequires 128MB to 1.5GB of additional
memory. The VirtualCenter Management Webservices process allocates the required
memory at startup.
Disk storage – 2GB. Disk requirements might be higher if the database runs on
the same machine.
Microsoft SQL Server 2005 Express disk requirements – Up to 2GB free disk
space to decompress the installation archive. Approximately 1.5GB of these files are
deleted after the installation is complete.
Networking – Gigabit connection recommended.
If the machine on which you are installing vCenter Server has VirtualCenter
installed, you might want to upgrade instead of performing a fresh installation of
vCenter Server.
There must be no Network Address Translation (NAT) between the vCenter
Server system and the hosts it will manage.
Create a vCenter Server database, unless you plan to install the bundled SQL
Server 2005 Express.
The system that you use for your vCenter Server installation must belong to a
domain rather than a workgroup. If assigned to a workgroup, the vCenter Server
system is not able to discover all domains and systems available on the network
when using such features as vCenter Guided Consolidation Service. To determine
whether the system belongs to a workgroup or a domain, right-click My Computer
and click Properties and the Computer Name tab. The Computer Name tab
displays either a Workgroup label or a Domain label.
During the installation, the connection between the machine and the domain
controller must be working.
Click Next.
Click Next.
Click Next.
Click Next.
After completing the installation of vCenter Server, start the installation of vSphere Client.
Select vSphere
Click Next.
Select the ―I agree to the terms in the License Agreement” and click Next.
After completing the installation of vSphere Client, we have to configure vCenter Server, so open
the vSphere Client and give the ip address or hostname of vCenter Server, User name, Password
and login.
After logging into vCenter Server right click on hostname and select New Datacenter.
Give the name of the datacenter.
Name:-DHFLBLR Datacenter
In order to manage your ESX host using vCenter, you need to add it to the vCenter
console. This process (basically) connects to the host server, then adds a local user
(vpxuser) that will act as a service account for VC instructions. To add the host you’ll
need to connect to the vCenter server using the vSphere Client. Once in the vSphere
Client (if you haven’t done so already) make a new datacenter (DC) by right-clicking
on Hosts & Clusters. Name the DC for the location the host is located in (when
adding more hosts from this datacenter, just repeat the steps below).
After the datacenter is created, right-click on the datacenter object and select Add
Host.
Enter your host’s FQDN (if you’ve added an entry for it in your DNS server) or the IP
address along with root for the user name and root’s password. This will allow the
Adding hosts to vCenter will not affect the VMs that are running on the hosts.
Host Name:-BLRESXVM001
VMware HA minimizes downtime and IT service disruption while eliminating the need
for dedicated standby hardware and installation of additional software. VMware HA
also protects against multiple server failures in the cluster. Virtual machines are
protected as long as there is spare capacity in the cluster.
Click on Next.
Either Run or Save the download. Once downloaded, click Run, like this:
You'll be taken to the VMware Converter Installation Wizard, like this
Now click Next, accept the license agreement again, take the default installation
To Import a virtual machine, just click on the Import Machine button the top left side of
the interface.
Next, you'll see the Import dialog box come up. Click Next twice. Select the type of
source to import from:
In our case, we selected physical computer but notice all the different sources you can
import virtual machines from. You could import an existing virtual machine, a physical
machine that this program is running on, or a remote machine over the network.
We filled out the remote IP address and administrator username/password, then click
Next. The VM Converter will connect to the remote machine over the network at this
time. You will get the message that the VM Converter agent needs to be installed on the
remote machine.
Click Yes After the agent install is done, you will see a window that looks like this
Here you need to select the volumes you want to convert and if you want them to be
resized. I chose to only convert the C drive and to reduce the size to the smallest size
We will choose to put this physical machine on our standalone VMware Server
After you fill out the new name and the share, click Next.
Now, take the default to allow the disk space to grow (that is really up to you)
Click Next.
Take the default network options and click Next. Take the default on customizations and
click Next.
Click Finish
Also, if you go and look at the C:\SharedVM folder, you will see that there is indeed a
folder there with the name "Converted Win2003 Server". Inside that folder, is your
VMware VMDK virtual disk and a basic VMware VMX configuration file.
The next step it to make this image you have created a bootable image. This involves
installing drivers in that cloned OS to make the virtual disk, network, and CPU all
VMware devices. To do this, click on the Configure Machine.
Click Next, then select that you want to use this on VMware Server.
Browse to the path of the new VMX file and click Next
On the next screen, if you click the Customize checkbox, you will be given the option to
change a long list of computer settings. For example, the Windows license, time zone,
network settings, or workgroup & domain info.
If you choose to customize a virtual machine in this way, you will need to have sysprep
files. You may want to change the IP address of this new server before bringing it up on
the network. You want to make sure that you don't have an IP address conflict if the
cloned machine had a static IP address. As an alternative to this, I could put this machine
on a VMware private network and just bring it up with the old IP address or shutdown the
old machine before you bring up the new machine.
At this point, you can boot the new virtual machine with VMware. Go to your VMware
Server console. Click on File, Open, Browse, and browse to the VMX file for the new
virtual machine (you may want to move the VM from the SharedVM folder to your
default VMware folder).
You should now see that it is a virtual machine inside VMware Server, like this:
Press the Start button to boot the new VM.
Summary
VMware Converter is an amazing product. To be able to quickly, with a few points and
clicks, bring a physical server (or other imaged server) into VMware and boot them is
really fantastic! The best thing about this conversion was that the physical source
computer never had to be brought down to make this virtual image. Also, you never had
to login to that physical computer or boot it to a CD for cloning purposes. I believe that
VMware Converter has a strong future, helping us all convert to a more virtualized data
center..
1. vSphere has 33 Pre-Configured and Enabled Alarms
Like many network management systems, I would assume that when you go to the list of
alarms in a new vSphere infrastructure, that it would be blank. However, VMware is
trying to look out for us by creating 33 pre-configured and already enabled alarms.
Almost all of these are configured on ESX hosts and virtual machines but there is one
pre-configured alarm on your vSphere storage.
All of these pre-configured alarms are configured at the highest level - the vCenter
server.
2. Alarms Trickle Down the vSphere Inventory Hierarchy
As I said, the default alarms are configured at the vCenter level. However, vSsphere
alarms trickle down the inventory hierarchy. Thus, an alarm defined at the datacenter
level for a virtual machine, will apply to all virtual machines in the entire inventory
because that alarm "trickles down". In Figure 2 below, you can see how the alarms on a
VM say that they are defined at the vCenter level. The "defined in" link is a link to where
the alarm is defined so that if you click on the "vCenter40.wiredbraincoffee.com" in
Figure 2, will be taken to the vCenter server level and to that particular alarm.
Just like Tasks & Events, you will find an Alarms tab at every level of the hosts &
clusters inventory, the VMs & Templates, the Datastores inventory, and the Networks
inventory. This tells you that alarms can be configured (defined) and triggered at every
level of the vSphere infrastructure. For you, as a vSphere Admin, this is a great feature.
Once you select the Alarms tab, you will notice that there are two views. You can view
the Triggered Alarms and the Alarm Definitions. As we talked about, in point #1 and
#2 in this article, as there are 33 default alarms and they trickle down the inventory
hierarchy, it is very likely that you will see defined alarms for just about any inventory
item you select. However, it is unlikely that you will see triggered alarms unless your
infrastructure has an issue that has triggered a default alarm. As the default alarms are
pretty conservative, I highly recommend that you checkout the reason the alarm was
triggered as there could be a serious issue you need to resolve.
To create (define) a new alarm, you (obviously) need to go into the Defined alarms view.
From there, you can right-click, select New Alarm, and follow the procedure in point #5
of this article. The alarm definitions view will look just like it does in Figure 2.
One more place that you can always go to see alarms is the Triggered Alarm pane at the
bottom of the vSphere client. By default, this pane will show only Tasks. Here is where
you click to view the triggered alarms in every windows of the vSphere client:
STEP 4 - Give the alarm a useful and descriptive name (to you and others) and select the
correct alarm type
STEP 5 - Select between Monitor for conditions / state and Monitor for specific
Events and go to the next tab, Triggers
STEP 6 - Add a new Trigger. Set the Trigger Type, Condition, Warning, and Alert
levels. Note that this may take some tweaking over time to get the warning and alert
levels correct.
STEP 7 - Add a new Action. This could be to email you, send a SNMP notification trap,
or run a command. Let's say that you configure the alarm to email you, you would enter
your email address in the configuration as you see below in
When you are all done, click OK, and you should see the result of your work in the alarm
definitions view, as you see in Figure 8, below.
Summary
In this article, we learned the 5 things that oyu need to know about VMware vSphere
Alarms.
Launch vSphere Client -> Click on the top node in the left tree -> Configuration tab ->
Click on the storage menu item under “Hardware” section, as shown below. This storage
section, will display all available VMware datastores as shown below.r example, the
current VMware datastore1 on this ESXi server has following information.
Please note that the VMS file system can be created across multiple partitions to form
one logical VMFS volume.
Click on ‘Add Storage..’ link on the top right hand corner, which will display the “Add
Storage” wizard.
The first step is to specicy the esx storage type for the new ESX VMFS datastore. Select
Disk/LUN as shown below. (other option is to select network file system – nfs datastore)
. Select Disk/LUN
This step will display all the available disk groups on the server. This is a dell poweredge
2950 server, which already has a raid-1 logical disk group created at the hardware raid
level. The raid-1 diskgroup that was created at the hardware level is now visible to the
ESXi server. If you have more than one diskgroup available to the hardware, they’ll be
listed here.
. Current Disk Layout Configuration
This is only a information screen that says that the hard disk is blank etc.,. Click on Next
to continue
Specify the maximum file size for this esx datastore. In this example, I selected 256GB as
maximum file size with 1MB block size. Following options are available for the
maximum file size:
Login to the ESXi server using vSphere Client. Provide the ESXi root username and
password.
From the vSphere client menu, select File -> New -> Virtual Machine, which will launch
the create new virtual machien wizard as shown below. Choose “Typical” for the
configuration.
2. Specify the Virtual Machine Name
Specify the name of the VM instance in the “Name and Location” section. In this
example, I gave db-server as the VM name.
3. Choose the Datastore
vSphere client will display all the datastore available in the ESXi server. In this example,
there is only one datastore available with the name “datastore1″.
Choose from one of the following guest operating system that you would like to install.
Microsoft Windows
Linux
Novell NetWare
Solaris
Other
In the following example, I choose Linux and “Red Hat Enterprise Linux 5 (32-bit)” from
the “Version” drop-down list.
Please note that creating virtual machine does not install the guest OS for you. You still
have to do it once you’ve created the virtual machine.
Choose how much disk space you would like to allocated from the datastore for this
particular VM. In this example, the available disk-space in the “datastore1″ is 130 GB.
I’ve allocated 60 GB for the virtual disk of this particular VM.
. VM – Ready to Install
The wizard will display your choices in the “Ready to Complete” section as shown
below.
7. Virtual Machine Created – View Summary
Once the virtual machine is created, you can view the summary as shown below.
his displays following information about the VM.
Guest OS of the VM
CPU allocated for this VM
Memory (RAM) allocated for this VM
Disk space
Once the VM is installed, insert the guest OS CD in the cd-drive. In this example, the
guest OS is Red Hat Enterprise Linux 5. So, I inserted the RHEL 5 cd in the cd-drive.
1. Launch ESXi Console
To configure the ESXi, press F2 from the ESXi initial screen shown below.
2. Go to Network Configuration -> IP Configuration
This will let you set the ip-address, subnet mask and default gateway of the VMware
ESXi as shown below.
Question: How do I change root password on my VMware ESXi server?
Answer: Go to the server console and do the following to set root password for your
VMware ESX.
To configure the ESXi, press F2 from the ESXi initial screen shown below.
2. ESXi System Configuration Menu Items
Configure Password
Configure Lockdown Mode
Configure Management Network
Restart Management Network
Test Management Network
Disable Management Network
Restore Standard Switch
Configure Keyboard
View Support Information
View System Logs
Restart Management Agents
Reset System Configuration
Remove Custom Extensions
Right-click on VM
Select Snapshot
Clik on Take Snapshot
Assign a name for it & click on OK.
Snapshot Operation Effect
Take The current state of the virtual machine and its guest operating
system is captured.
Revert The state of the virtual machine and its guest operating system
reverts back to what it was when a snapshot was taken. If there are
multiple snapshots, the snapshot taken immediately prior to the
current state is used.
Snapshot Trees
Snapshot trees are only available in products that support multiple snapshots. A snapshot tree
shows all snapshots for a virtual machine and the relationship between snapshots.
This an example of a snapshot tree as seen in VMware Workstation's Snapshot Manager:
Note: The graphical representation of VMware ESX's Snapshot Manager is different but the
information displayed is the same.
How to delete a snapshot of a VM ;
Right-click on VM
Select Snapshot
Clik on Snapshot Manager
Select the snapshot what ever you want delete & click on delete.
You Are Here represents the current state of the virtual machine and its guest operating
system.
Windows XP Profession... represents the virtual machine itself and is not a snapshot.
You cannot use Go To to switch to this state nor can it be deleted.
To Go To one of the existing snapshots but not permanently lose the current state of the
virtual machine and its guest operating system:
1. Take a snapshot.
2. The new snapshot is shown between Snapshot for Clone of... and You Are
Here.
3. Go To the snapshot you choose. The current state of the virtual machine is lost.
4. Work on the virtual machine in its previous state.
5. When finished, use Go To to return the virtual machine to the state saved in step
1.
Note: Any changes made to the virtual machine in step 4 are lost unless another
snapshot is taken.
If you delete a snapshot you do not affect the current state of the virtual machine or any
other snapshot.
Warning: All data associated with the deleted snapshot is permanently committed to the
parent disk in the chain.
Right-click on VM
Click on Migrate
Changing the VM files such as .vmdk,.VMX etc from one Datastore to another
Datastore.(Change Datastore)
Click on Finish .
How to Delete a VM :
Right-click on ESX Server & click on Reboot ,Shutdown & Put the Server in
Maintenance mode migrate
Note : Before Reboot ,Shutdown & Put the Server in Maintenance mode migrate
all the Vms to another Server & then Reboot ,Shutdown & Put the Server in
Maintenance mode.
How to Clone a VM :
Right-click on VM
Click on Clone
Assign a name of a VM
Select the Cluster
Select the Datastore
Click on Don’t customize
Click on Finish.
Right-click on Template