Saturday, 16 August 2014

ESDL- Creating Virtual Switches in the Hypervisor - Part-1

Dear All,

Here one of the important task that need to be covered.
Before actual implementation we need to get some concepts about virtual switches and many more.

Definition - What does Virtual Switch (VSwitch) mean?

A virtual switch (vSwitch) is a software application that allows communication between virtual machines. A vSwitch does more than just forward data packets, it intelligently directs the communication on a network by checking data packets before moving them to a destination. 

Virtual switches are usually embedded into installed software, but they may also be included in a server’s hardware as part of its firmware. A virtual switch is completely virtual and can connect to a network interface card (NIC). The vSwitch merges physical switches into a single logical switch. This helps to increase bandwidth and create an active mesh between server and switches.

Techopedia explains Virtual Switch (VSwitch)

A virtual switch is meant to provide a mechanism to reduce the complexity of network configuration. This is achieved by reducing the number of switches that need to be managed after taking the network size, data packets and architecture into account. Because a virtual switch is intelligent, it can also ensure the integrity of the virtual machine's profile, which includes network and security settings. This proves a big help to network administrators as moving virtual machines across physical hosts can be time-consuming and pose security risks.
A virtual switch has a few key advantages:
  • Helps in easy deployment and migration of virtual servers
  • Allows network administrators to manage virtual switch deployed through a hypervisor.
  • Compared to a physical switch, it's easy to roll out new functionality, which can be hardware or firmware related.
There are two ways are available for to create vswitches
1) In Hyper-V Windows 2008/2012 or 2) VMware ESXI- vSphere client.

We will see one by one.

Here we go through vSwitch in Hyper-V 

Quick terminology

As I discuss Client Hyper-V in this article, for simplicity I'll use the terms Host Machine and Virtual Machine. , Figure A illustrates what I mean by these terms.

Figure A

Host machine verses virtual machine.

The Virtual Switch Manager

In order for a virtual machine created with Client Hyper-V to connect to a network and to the Internet, it must have access to a virtual switch. So the first order of business is to launch the Virtual Switch Manager and create and configure how you want the virtual network connection to work. To begin, launch the Hyper-V Manager using the tile on the Start Screen, navigate to the Actions pane, and select the Virtual Switch Manager action, as shown in Figure B.

Figure B

You'll launch the Virtual Switch Manager to create a virtual network connection.
When you see the Virtual Switch Manager screen, as shown in Figure C, you'll notice that the first thing that you must do is choose what type of virtual switch you want to create. As you can see here are three options: External, Internal, and Private.

Figure C

The Virtual Switch Manager offers you three types of virtual switches to choose from.
Of course, the one you choose will depend on how you want to use your virtual machine and in most cases you'll choose the External option. However, let's take a moment to examine each of these options so that you have a good understanding of what each one does.
  • When you select an External virtual switch, your virtual machine will be able to access all resources available on your physical network including host machine and the Internet.
  • When you select an Internal virtual switch, your virtual machine will only have a network connection with the host machine. In other words, the virtual machine will not be able to access resources on your physical network nor will it have access to the Internet.
  • The only time that you would want to select the Private virtual switch, is if have more than one virtual machine running at one time and you only want a connection between your virtual machines.
Each of these types of virtual switches is illustrated in Figure D.

Figure D

Each type of virtual switch has specific uses.
Before I move on, I just want to point out that you can indeed have more than one virtual switch. For instance, you could have both an External virtual switch and an Internal virtual switch. You could then experiment with virtual machines in different types of network configurations.

Configuring an External virtual switch

As I mentioned, in most cases you'll choose to create an External virtual switch in Windows 8's Client Hyper-V. When you do, the Virtual Switch Manager will present you with the set of options shown in Figure E.

Figure E

You'll use the Virtual Switch Manager to set up your External virtual switch.
Starting from the top, you can assign your virtual switch a name and provide a description in the Notes section. As you can see, I have provided both a name and notes for my example virtual switch.
Moving down to the Connection type section, you'll notice that while the connection type that you selected previously is selected here, in this case External, you could change your mind and select one of the other two types of network switches.
When the Connection type is set to External network, you'll see that your system's network card is shown in the drop down text box and that the Allow management operating system to share this network adapter check box is selected. To simplify what this check box selection means, think of it as sayingAllow host machine and virtual machine to use the same network card. In order for both machines to use the same network card to access the physical network, the Virtual Switch Manager actually creates two virtual network cards, one for the host machine and one for the virtual machine, and then connects these to the virtual switch. The virtual switch is then connected to the physical network card which is already connected to the physical network. This configuration is illustrated in Figure F.

Figure F

The host machine is actually connected to a virtual network card.
In most cases, you'll leave the default selections for the External network just as they are. However, let's examine how these options work. Let's suppose that your system has two network cards in it: an Ethernet card called NC1 and Wireless card called NC2. If so, you could separate the network connections of your virtual machine and your host machine such that each would use a separate network card. To do so, you would select the network card that you wanted to use for the External network, say NC2, and then clear the Allow management operating system to share this network adapter check box. Then, the host machine would use NC1 to connect to the physical network and the virtual machine would use NC2 to connect to the physical network.
As you can see, by default the Enable virtual LAN identification for management operating system in the VLAN ID section is not selected. Chances are that you won't use this feature in a typical Client Hyper-V configuration. If you had a VLAN, or Virtual Local Area Network, you could use this option to specify an identification number that could be used to isolate network traffic from the host machine.

Other options

There are a two other sets of options that you can configure from within the Virtual Switch Manager and these appear in the left panel. The first one is called Extensions and it appears under your virtual switch. The second one is called MAC Address Range and appears under Global Network Settings. Again, both of these are advanced features and chances are that you won't use them in a typical Client Hyper-V configuration, but they are worth taking a look at, just so you know what they are all about.
Virtual Switch Extensions settings, shown in Figure G, provide you with a way to enable and add third-party extensible plug-ins to the virtual switch. These plug-ins can add enhanced networking and security features to a virtual network switch.
There are two options in the Switch extensions list: Microsoft NDIS Capture and Microsoft Windows Filtering Platform. As you can see, by default the Microsoft Windows Filtering Platform check box is selected while the Microsoft NDIS Capture check box is not. Without getting too technical, Capturing extensions are used to capture and monitor packet traffic while Filtering extensions are used to inspect, drop, or exclude packets. You can learn more about Virtual Switch Extensionshere.

Figure G

Virtual Switch Extensions can add enhanced networking and security features to the virtual switch.
As I said, these types of Virtual Switch Extensions won't generally be used in a typical Client Hyper-V configuration, so just leave the default settings as they are.
MAC Address Settings, shown in Figure H, displays the range of MAC addresses that are available to be assigned to the virtual network cards that the Virtual Switch Manager can create. Under normal circumstances, the default range of MAC addresses is sufficient for Client Hyper-V and you won't need to alter it.

Figure H

MAC Address Settings displays the range of MAC addresses that are available to be assigned to virtual network cards.

Completing the configuration

When you are done configuring your External virtual switch, click OK. When you do, you'll see a warning message indicating that during the virtual network connection procedure, the network connection for the host machine may temporarily go offline. When you click Yes, the changes will be applied and you'll see a progress bar. These steps are illustrated in Figure I.

Figure I

When you are done configuring your External virtual switch, click OK.

Checking the connection

Many of the folks that I have spoken to about setting up an External switch find it surprising that the host machine is actually connected to a virtual network card after you set up a virtual switch for your virtual machine. But its true and you can see for yourself by investigating the Network Connections tool or even on the command line with IPConfig.
Figures J and K show before and after screenshots of the Network Connections tool and the results from running the IPConfig command on the host machine.

Figure J

Running the Network Connections tool on the host machine.

Figure K

Running the IPConfig command on the host machine.


ESDL- Running Multiple Concurrent operationg system using bare metal Hypervisor

Dear All,

After successful completion of earlier task we have to move forward.
Our next task is again very easy.

Regarding the Bare Metal Hypervisor, and its installation configuration is we already discussed in my previous blogs(Read 3rd August and 8th July 2014 Blog).

Now, here we have run at least  2 OS concurrently. For this, follow the steps.
1) first, Access the Bare metal hypervisor through vSphere client with exact IP address, user name, and password.
2) Inventory with an IP address of bare metal will open. right click.
3) follow the procedure for creation of VM.
4) at the last your VM is ready by don't have the OS in it.
5) for this purpose open the VM in new console.
6) Once, it is opened there will be option CD/DVD. click it.
7) There is option Connect ISO to datastore, click it
8) datastore will open. just click on then automatically OS iso will installed on the VM.
If this 8 steps is not working then
9) there is again second option is also present connect ISO to local disk. click it
10) In new window there is upload and download option is present.click to upload data store.
11) once it is uploaded press ctrl+alt+del then automatically OS iso will install in existing VM.









ESDL- Dynamically adding and reducing the resources on Hot VMs

Dear all,

Before going with this problem statement first we have to see what is meant by resources-
Some definitions are-
1) Aggregate Computer hardware, software, documentation, supplies and support services etc.
2) A resource, or system resource, is any physical or virtual component of limited availability within a computer system. Every device connected to a computer system is a resource.
3) Computer Resources is a locally owned and operated business providing services to both home users and businesses.

After this we make a tentative list of resources

General resources

Now, the basis of this we go with our VMware workstation-10 for the same problem definition.
Follow the steps

 1) Here, we will not make any change at the time of creation of Vm we just click next and next.
2) We set all default as VM as for us.
Once it is created then we start our work.

When VM has been created, it has two option
1) Power on VM &
2) Edit virtual machine Devices

Select 2 option and then you will get all the list of resources associated with that VM ,
List as follow
1) HDD
2) Network Adapter
3) Memory
4) CPU
5) Sound Card
6) USB, etc..

 Now, you can add some resources and remove some resources.
This is very simple task just take short time for execution.








Sunday, 3 August 2014

ESDL- Creating a Virtual Machine using vSphere Client 5.0

Basic Installation of VMware ESXi

For installation, you will need a server with a USB stick and a client computer with a copy of the Windows operating system.
Bild1 webend von esxi.png
  • After the client has been downloaded and installed, start the vSphere Client and choose your host.
Bild4 vSphare client eingeloggt am Server.png
  • Now, you can log in using the IP address and the user name and password previously assigned to you.
vSphere Client Login

Creating VMware vSphere Client Virtual Machines

  • You will now see the user interface for the vSphere Clients, which you can use to configure your virtual machines.
  • The CPU and the RAM will be detected automatically and can be assigned. Thus, you will merely need to allocate hard disk storage space in the first step.
  • In this example, storage space will be drawn through NFS and made available from an IOMega Storage "cube". This configuration has already been prepared.
  • To add the hard disk storage area, click on the ESXi machine, go to Configuration, and click the Storage tab on the left. Hard disks are not yet displayed there, therefore you will have to add the storage using the Confirm button.
Approve storage on the virtual machine


  • Now you can create the virtual machines. To do this, go to File / New / Virtual Machines
  • From there, you will be able to choose between the Typical and Custom options.
Creating a new virtual machine
  • If you have not yet familiarized yourself with virtual machines, the Typical option is worth recommending.
  • The following settings still need to set.
    • Name and Location: Assign the name of the computer for this, such as Windows 7 64Bit.
    • Data Store: Assign some storage (a datastore) to the virtual machine, an NFS share in this case.
    • Guest Operating System: Using this entry, you can assign a specific operation system to the machine, Microsoft Windows 7, for example.
    • Network: Enter the number of virtual NICs that you want to use here. The maximum possible is 4 vNICs.
    • Create a Virtual Disk: In this step, you will specify how much storage space you want to provide to the virtual machine. This value can be changed later.
    • Ready to Complete: This last step will present the values that you have just configured for confirmation.
  • The virtual machine has now been created.

  • Now, you need to assign, for example, a Windows 7 image to the machine and boot it. To do this, first click on the name of your machine and then on the Keyboard Video Mouse (KVM) icon.
Run KVM for the virtual machine
  • Click the CD button to either add an image from either a hardware CD drive or choose one from an NFS datastore. Note: the image must first have been uploaded into the NFS datastore. With an NFS datastore, this can also be done from vSphere Datastore management or a Widows system.
Adding an ISO image
  • Now, start the selected OS wizard and make the usual settings.
  • You now have a fully functional virtual machine.

VMware Tools

  • To make the virtual machine even more dynamic, you can install the VMWare tool. This tool offers the following advantages:
    • Special programs and drivers for the guest operating system
    • Simplified handling of the virtual machine
    • Improved performance
    • Installation under vShpere
    • Freeware
    Installing the VMWare tools
  • You can install the VMWare Tools on the KVM for the machine. To do this, go to VM / Guest / Install VMWare Tools
  • From there, a window will be opened under Windows to start the setup wizard.
  • Once you have installed the tool, the virtual machine will have to be restarted.

Tuesday, 8 July 2014

ESDL- Create a Guest OS on Bare Metal Hypervisor (Type- 1)

Dear All,

In my earlier blog we seen how to install VM workstation as well as how to configure VM on the same.

Now, we need to proceed, Type -2 installation is possible with VMware ESXi 5.5 or Windows 2008 or 2012 Sever with hyper-v enable.

We choose VMware ESXi 5.5 for our purpose.
Basic installation steps
1) If we shortage of resources like terminals then dont worry directly install the VMWare ESXi 5.5 on workstation itself, that will give same result as independent machine will provide.
2) In this installation you will get only yellow and black window. No GUI.
3) Important is configuration of an IP address, configure IP address as per the LAN address. 
4) To create VM on ESXi you need to install vCenter client on another terminal preferable is windows base OS.

On Next Machine.
1) same procedure directly download and install .exe of vCenter client from vmware.
2) give the IP address of ESXi with valid username and password.
3) It will install certificates. 
4) Inventory will open. 
Now, you are ready to install the new VM actually on ESXi but with the help of vCenter client.


ESDL- Creat a guest OS by using Type -2 (virtualization)

Dear All,

Let we see how to install the VMware workstation 10 that is new version in market as well as to create the VM on it.


examples of type is Oracle VM Box, VMware Workstation 10 etc. This are perform a role of hypervisor in this type 2.
Steps 1
To download VMware workstation 10 from web you need account in VM ware web site. It is a trial version which will valid upto 30 days from date of registration.

Step 2
After Successful registration you download it on windows/linux platform 32 bit/64 bits versions respectively.
Installation process in Windows is quite simple as compared with ubuntu.
We see here linux based ubuntu installation.

Steps 3
After download open terminal in ubuntu set the path where the version is actually get downloaded. 
eg. it downloaded in download folder then
admin@ubuntu.desktop$ cd download
admin@ubuntu.desktop/download$ ls
all files will be on screen
Now, for installation purpose execute following commands.
1. sudo chmod 755 "the whole string name that user have been downloaded". enter
it will ask admin password, put it.
2. sudo ./"the whole string name that user have been downloaded". enter
The installation process will start.

After Successful Installation now time come for configure a virtual machine.
 Follow the steps to configure the VM.

To create a virtual machine using VMware Workstation:
  1. Launch VMware Workstation.
  2. Click New Virtual Machine.
  3. Select the type of virtual machine you want to create and click Next:

    Note: Your choice depends partially on the hardware version you want your virtual machine to have. For more information, see Virtual machine hardware versions (1003746).
    • Custom: This gives you an option to create a virtual machine and choose its hardware compatibility. You can choose from Workstation 10.x, Workstation 9.x, Workstation 8.x, Workstation 6.5 -7.x, Workstation 6, Workstation 5, and Workstation 4.
    • Typical: This creates a virtual machine which has the same hardware version as the version of Workstation you are using. If you are using Workstation 8.x, it creates a virtual machine with hardware version 8. If you are using Workstation 6.5.x or 7.x, a virtual machine with hardware version 7 is created.
  4. Click Next.
  5. Select your guest operating system (OS), then click Next. You can install the OS using:
    • An installer disc (CD/DVD)
    • An installer disc image file (ISO)
  6. Click Next.
  7. Enter your Product Key.
  8. Create a user name with a password.
  9. Click Next.
  10. Enter a virtual machine name and specify a location for virtual machine files to be saved, click Next.
  11. Establish the virtual machine's disk size, select whether to store the virtual disk as a single file or split the virtual disk into 2GB files, click Next.
  12. Verify the other configuration settings for your virtual machine:
    • Memory – change the amount of memory allocated to the virtual machine.
    • Processors – change the number of processors, number of cores per processor, and the virtualization engine.
    • CD / DVD – with advanced settings where you can choose between SCSI, IDE.
    • Network adapter – configure it to bridge, NAT, or Host-only mode, or customize where you can choose between 0 to 9 adapters.
    • USB Controller.
    • Sound card.
    • Display – enable 3D graphics.
  13. Click Finish.
  14. When the virtual machine is powered on, the VMware Tools installation starts. You are prompted to restart your virtual machine once the Tools installation completes.
 



Sunday, 22 June 2014

ESDL- Virtual Machine Administration

Understanding Virtual Machines

1. A virtual machine is a software computer that, like a physical machine, runs an operating system and applications. 
2. A virtual machine uses the physical  resources of the physical machine on which it runs, which is called the host system. 
3. Virtual machines have virtual devices that provide the same functionality as physical hardware, but with the additional benefits of portability, manageability, and security. 
4. A virtual machine has an operating system and virtual resources that you manage in much the same way that you manage a physical computer. 


Further  part you can refer direct from VM Workstation book.
Kindly go through the link.



Type 1 Hypervisor
Type 1 (or native, bare-metal) hypervisors are software systems that run directly on the host’s hardware to control the hardware and to monitor guest operating-systems. A guest operating system thus runs on another level above the hypervisor. Some examples are VMware ESX, Xen, Microsoft Hyper-V, etc.
Type 1 hypervisors are appropriate when you want to provide the only OS that is used on a client. When a user turns a machine on, he only sees a single OS that looks and feels local.
Type 2 Hypervisor
Type 2 (or hosted) hypervisors are software applications running within a conventional operating-system environment. Considering the hypervisor layer as a distinct software layer, guest operating systems thus run at the third level above the hardware. Some examples are VMware Workstation, VMware Fusion,  MED-V, Windows Virtual PC, VirtualBox, Parallels, MokaFive, etc.
Type 2 hypervisors are appropriate when you want a user to have access to their own local desktop OS in addition to the centrally-managed corporate VDI OS. This could be for an employee-owned PCscenario, or it could be a situation where you have contractors, etc., who need access to their personal apps and data in addition to the company’s apps and data.
Client Hypervisors
Over the past 5 years, Type 1 hypervisors are dominantly used in the server market, whereas, Type 2 hypervisors are being used on clients, i.e., desktops and laptops. Recently, the need for a Type 1 hypervisor that runs locally on a client device, called the client hypervisor, has emerged for supporting the Virtual Desktop Infrastructure VDI).
Benefits
VDI’s promise lies in realizing a significant cost reduction for managing desktops. A client hypervisor is useful because it combines the centralized management of VDI with the performance and flexibility of local computing. It offers several advantages:
  • It provides a Hardware Abstraction Layer so that the same virtual disk image can be used on a variety of different devices.
  • The devices do not need a “base OS” when the client hypervisor is present. The maintenance overhead of patching a “base OS” frequently on each of the devices is greatly reduced.
  • Once a virtual disk image has been provisioned, it runs and the display is driven locally. This frees up the client from the need to support remote display protocols.
  • It decouples the management of the device from the management of Windows and the user; administrators can spend their time focusing on user needs instead of device maintenance.
Type 1 Server and Client Hypervisors
Server hypervisors are designed to make VMs portable and increasing the utilization of physical hardware. Client hypervisors are intended to increase the manageability of the client device and improve security by separating work and personal VMs.
The bottom line is that even though they’re both called “Type 1″ or “bare-metal hypervisors,” there are some philosophical differences in how each came to be. (This could help explain why it has taken over five years to extend the Type 1 hypervisor concept from the server to the desktop.)
Dimension Type 1 Server Hypervisor Type 1 Client Hypervisor
Design Goal Host multiple VMs and make each VM seem like a “real” server on the network. The user shouldn’t even know that there is a hypervisor or they are using a VM.
Virtualization Goal I/O: Disk and Networking Native device support that affects user experience, e.g.,
a) GPU and graphics capabilities
b) USB ports and devices
c) Laptop battery and power state
d) Suspend/Hibernate states
Tuning Maximum simultaneous network, processor and disk I/O utilization Graphics, multimedia and wireless connectivity
Hardware Support Narrow set of different preapproved hardware models Should (ideally) run on just about anything
Intrusiveness Controls most if not all of the hardware platform and devices and provide a near complete emulated and/or para-virtualized device model to the virtual machines running on top a) Should support full device pass-through to a guest VM.
b) Should also support dynamic assignment and “switching” of devices between different guests

Type 1 Client Hypervisor Vendors
In the Type 1 client hypervisor space, there are Neocleus NeoSphere and Virtual Computer NXTop. There are product announcements from both VMware and Citrix, however, there is no shipping product to date. There is also the Xen Client Initiative – an effort to port the open source Xen hypervisor to the client.