Virtualization 2.0 – Troubleshooting

Virtualization 2.0 – Troubleshooting ”; Previous Next In this chapter, we will discuss troubleshooting for network communication and for slow performance. Troubleshooting Network Communication In a virtual environment, to troubleshoot a network connectivity, we should follow some steps in order to find a resolution. Network Communication Indications Some of the symptoms that we have are as follows − You cannot connect to the Internet. There is no network connectivity to or from a single virtual machine. Virtual machines fail to connect to the network. Cannot get an IP. A TCP/IP connection fails to and from a single virtual machine. Network Communication Errors You can get the following errors as well − Destination Host Unreachable Network error Connection Refused Network cable is unplugged Ping request could not find host Please check the name and try again Unable to resolve target system name, etc. Network Communication Resolutions The resolutions for the above symptoms and errors are as follows − Make sure that the Port Group Name is associated with the virtual machine”s network adapter, which exists in the switch or in the Virtual Distributed Switch. Also, ensure that it is spelt correctly. Make sure that there are enough storage capacities in your virtual machine sometimes it affects the connectivity. Verify that the virtual network adapter is present and connected. Verify that the networking within the virtual machine”s guest operating system is correct. Verify that the TCP/IP stack is functioning correctly. If this virtual machine was converted from a physical system, verify that there are no hidden network adapters present. Because it can have hidden static routes. Verify that the vSwitch has enough ports for the virtual machine. Verify that the virtual machine is configured with two vNICs to eliminate a NIC or a physical configuration issue. Confirm that your virtual machine”s firewall is not blocking the Internet access. Confirm that your virtual machine”s anti-virus program is not blocking the Internet access. Ensure that the network adapter is enabled. Shut down the virtual machine and then restart your Host Machine. Removing and re-adding virtual network card adaptor. Troubleshooting Slow Performance Check if your CPU load is high. You can click on “CPU”. This will show you the amount of CPU the VM is consuming. If it is very high, you may consider adding some more vCPUs. This should be done after ensuring that the physical host has more cores available than what you are going to configure inside the VM. We should also consider whether the applications inside the VM are actually able to utilize multiple vCPUs or not. Check the Memory Memory could be a serious limit on VM performance as well. If you do not configure enough memory, the VM will usually respond by starting to swap its memory pages to disk .If your virtual machine is using more than 2/3rd of the memory and then we should allocate more. See Disk Alignment For any pre-Windows 7, pre-Windows 2008 Server or older Linux based systems, your disks may be misaligned. Misalignment may cause quite a performance hit, especially when your storage underneath does not have many IOPS to spare. It is important to format the virtual disks to a specific format or block size according to the application needs. For example – The database of a Microsoft SQL 2005 server is generally put on an NTFS that has a block size of 64KB. If the virtual machine has a performance issue at some point in time, you need to check the virus scanner. Not only on the impacted virtual machine, but also on the other virtual machines as well. If you do a P2V – a virtual machine (meaning you convert a physical machine to a VM) and you do not “clean up” afterwards, there may be a lot of unused drivers and even applications. Print Page Previous Next Advertisements ”;

Backing Up, Restoring & Migrating VM

Backing Up, Restoring and Migrating VM ”; Previous Next In this chapter, we will discuss how to back up, restore and migrate a virtual machine. Duplicating a VM To duplicate or clone a machine means making an exact copy of it. Most of the hypervisors support this feature. By duplicating a machine, we copy down every detail, including the name of the machine and the different network addresses attached to the machine. Duplicating a machine and putting it in to function is not always the best option because a duplicate name or IP in network can be a problem. We make duplication generally for backup purposes. Most hypervisors can clone while the machine is turned off. If the hypervisor accepts to clone while it is on, it is recommend to turn it off, because the process can crash the machine. In practice, we have discussed “How cloning is done in VMware Workstation”, please refer to the previous chapters. Backing Up and Recovering a VM There are three methods for backing up virtual machines. Method 1 The most common one is to install traditional backup software on the guest VM. If Windows OS is used on our VM, we can use “Backup and restore” to back up the machine, which is found in the “Control Panel”. For Linux OS, we can use many open source tools depending on our needs, like “Bacula”, “rsync”, etc. Method 2 Another strategy or method is to copy all of the files that define a VM. Therefore, we will have to go out and find all of the individual files that define our virtual machine and copy them to an alternate location. Some of these files are going to be large. Example: Here, we have created several VM machines with VirtualBox as shown in the following illustration. Their names are – “AC2”, “Kali2016.1”, “test”, “Windows 2012”. To find the files that we have to copy or to backup, we have to right click on the VM machine. Go to “Storage” then move your mouse over the virtual HDD and it will show the full path where the VDI files are found. We will save all these files to another location. Method 3 The third option to backup and restore VM machines is to use third party software. One of the best is VEEAM, which can be found on the following URL – https://www.veeam.com/ Converting a Physical Server into a Virtual Server In this section, we will see how to convert a physical machine into a virtual machine. This is often called as P2V in many literatures. VMware puts out a product that is called vCenter Converter, which will convert from a physical machine specifically into a VMware virtual machine. The software can be downloaded from – https://www.vmware.com/products/converter.html Microsoft has a product called Disk2vhd, which will convert a physical hard drive into a VHD formatted virtual hard drive. It can be downloaded from the following link – https://technet.microsoft.com/en-us/sysinternals/ee656415.aspx We just have to install the software on the physical server and click “Create” as shown in the screenshot below. A VHDX file will be created which could be imported in a Hypervisor. Both of these products will convert machines, while the server is running and is free. All the vendors of hypervisors have some P2V tool and they are typically free. From the vendor’s point of view, they would very much like you to convert your physical machines into virtual machines that are optimized for their hypervisor. Converting a Virtual Server into a Physical Server To convert a virtual server to a physical server also commonly called as V2P is certainly less common than a P2V conversion. However sometimes, it is needed in development-based environments. It does happen where a product needs to be tested in the virtual server than to a physical server, or to clone a production machine and move it to test. Hypervisor vendors do not offer such a tool. However, you have to request the hardware vendor, if they could offer such tools. Print Page Previous Next Advertisements ”;

Virtualization 2.0 – Home

Virtualization 2.0 Tutorial PDF Version Quick Guide Resources Job Search Discussion Virtualization 2.0 is a technology that helps users to install different Operating Systems on a hardware. They are completely separated and independent from each other. Virtualization hides the physical characteristics of computing resources from their users, their applications, or end users. This is an introductory tutorial, which covers the basics of Virtualization 2.0 and explains how to deal with its various components and sub-components. Audience This tutorial is created for IT Managers and System Administrators, who want to learn how to install different OS on a hardware. It provides simple, easy to understand explanations with useful working examples. We will go through most of the important modules of Virtualization 2.0, so you can also use this as a reference for your future projects. This tutorial is intended to make you comfortable in getting started with Virtualization 2.0 and its various functions. Prerequisites Since Virtualization 2.0 is all about operating systems and hardware, you will need to have a basic knowledge about the various OS and their elements. Additionally, it will be helpful if you are familiar with various components such as a server, an application and various storage devices, if you want to understand all the information provided. Print Page Previous Next Advertisements ”;

Virtualization 2.0 – Pros and Cons

Virtualization 2.0 – Pros and Cons ”; Previous Next In this chapter, we will discuss some of the most common advantages and disadvantages of Virtualization. Advantages of Virtualization Following are some of the most recognized advantages of Virtualization, which are explained in detail. Using Virtualization for Efficient Hardware Utilization Virtualization decreases costs by reducing the need for physical hardware systems. Virtual machines use efficient hardware, which lowers the quantities of hardware, associated maintenance costs and reduces the power along with cooling the demand. You can allocate memory, space and CPU in just a second, making you more self-independent from hardware vendors. Using Virtualization to Increase Availability Virtualization platforms offer a number of advanced features that are not found on physical servers, which increase uptime and availability. Although the vendor feature names may be different, they usually offer capabilities such as live migration, storage migration, fault tolerance, high availability and distributed resource scheduling. These technologies keep virtual machines chugging along or give them the ability to recover from unplanned outages. The ability to move a virtual machine from one server to another is perhaps one of the greatest single benefits of virtualization with far reaching uses. As the technology continues to mature to the point where it can do long-distance migrations, such as being able to move a virtual machine from one data center to another no matter the network latency involved. Disaster Recovery Disaster recovery is very easy when your servers are virtualized. With up-to-date snapshots of your virtual machines, you can quickly get back up and running. An organization can more easily create an affordable replication site. If a disaster strikes in the data center or server room itself, you can always move those virtual machines elsewhere into a cloud provider. Having that level of flexibility means your disaster recovery plan will be easier to enact and will have a 99% success rate. Save Energy Moving physical servers to virtual machines and consolidating them onto far fewer physical servers’ means lowering monthly power and cooling costs in the data center. It reduces carbon footprint and helps to clean up the air we breathe. Consumers want to see companies reducing their output of pollution and taking responsibility. Deploying Servers too fast You can quickly clone an image, master template or existing virtual machine to get a server up and running within minutes. You do not have to fill out purchase orders, wait for shipping and receiving and then rack, stack, and cable a physical machine only to spend additional hours waiting for the operating system and applications to complete their installations. With virtual backup tools like Veeam, redeploying images will be so fast that your end users will hardly notice there was an issue. Save Space in your Server Room or Datacenter Imagine a simple example: you have two racks with 30 physical servers and 4 switches. By virtualizing your servers, it will help you to reduce half the space used by the physical servers. The result can be two physical servers in a rack with one switch, where each physical server holds 15 virtualized servers. Testing and setting up Lab Environment While you are testing or installing something on your servers and it crashes, do not panic, as there is no data loss. Just revert to a previous snapshot and you can move forward as if the mistake did not even happen. You can also isolate these testing environments from end users while still keeping them online. When you have completely done your work, deploy it in live. Shifting all your Local Infrastructure to Cloud in a day If you decide to shift your entire virtualized infrastructure into a cloud provider, you can do it in a day. All the hypervisors offer you tools to export your virtual servers. Possibility to Divide Services If you have a single server, holding different applications this can increase the possibility of the services to crash with each other and increasing the fail rate of the server. If you virtualize this server, you can put applications in separated environments from each other as we have discussed previously. Disadvantages of Virtualization Although you cannot find many disadvantages for virtualization, we will discuss a few prominent ones as follows − Extra Costs Maybe you have to invest in the virtualization software and possibly additional hardware might be required to make the virtualization possible. This depends on your existing network. Many businesses have sufficient capacity to accommodate the virtualization without requiring much cash. If you have an infrastructure that is more than five years old, you have to consider an initial renewal budget. Software Licensing This is becoming less of a problem as more software vendors adapt to the increased adoption of virtualization. However, it is important to check with your vendors to understand how they view software use in a virtualized environment. Learn the new Infrastructure Implementing and managing a virtualized environment will require IT staff with expertise in virtualization. On the user side, a typical virtual environment will operate similarly to the non-virtual environment. There are some applications that do not adapt well to the virtualized environment. Print Page Previous Next Advertisements ”;

VMware Workstation Player

VMware Workstation Player ”; Previous Next In this chapter, we will understand how to install the VMware Workstation Player and its usages. Installing VMware Workstation Player VMware workstation player is a “hosted hypervisor”, so you have to have a pre-installed OS before continuing to install it. VMware workstation player is free version and available for non-commercial, personal and home use. They also encourage students and non-profit organizations to benefit from this offering. To download the VMware workstation player, you can click on the following link https://www.vmware.com/products/player/playerpro-evaluation.html. To install the VMware workstation player, follow the steps given below. Step 1 − Click on “Download Now” as shown in the screenshot below. Step 2 − You will see that a file has been downloaded → double click on it. Step 3 − A Table will pop-up initializing the installation of VMware → Click “Next”. Step 4 − Check the box “I accept the terms in the license agreement” → Click on “Next”. Step 5 − Once again, click on the “Next” button. Step 6 − Leave the default values and click on “Next”. Step 7 − Once again, click on “Next”. Step 8 − Click on “Install”. Step 9 − An icon will be created on the desktop. Click on it and a table will pop–up, where you have two possibilities: If you want to use it as a non-commercial version, just enter your email address. If you want to use it as a commercial version, check the second option and enter your serial key. Creating a VM with VMware Workstation To create a virtual machine, we have to follow the steps given below. Step 1 − Click on “Player” → File → New Virtual Machine. Step 2 − A table will pop-up requesting you to find a “Boot disk”, “Boot Image” or to install OS at a later stage. We will choose the second option and click on “Browse”. Then we have to click on the ISO image, which we want to install. Once all this is done, click on “Next”. Step 3 − As I am installing windows server 2012, it will pop-up a table requesting to enter the serial key → click directly on “Next”, if you want to activate the noncommercial version for Windows. Step 4 − After the above step is complete, a dialogue box opens. Click “Yes”. Step 5 − Click “Next”. Step 6 − In the “Maximum size disk” box, enter the value of your virtual Hard disk, which in our case is 60GB. Then click on “Next”. Step 7 − Click on “Finish”. Setting up Networking with VMware Workstation To set up the networking modes of a virtual machine in a VMware Workstation, we have to click on the “Edit virtual machine settings”. A table will be opened with the settings of networking and on the left hand side panel of this table click on “Network Adaptor”. On the left of this table, you can see the networking modes as shown in the following screnshots. If we want to limit the bandwidth usage of a virtual machine, click on “Advance” and set the incoming and outgoing bandwidths. Allocating Processors & Memory to a VM using VMware Workstation To allocate memory to a virtual machine in a VMware Workstation, we have to click on “Edit virtual machine settings”. A table will be opened and we will have to click on “Memory”. On the left hand side panel, we have to enter the amount of memory manually or by moving the arrow up and down as shown in the following screenshot. If you click on “Processors”. On the left hand side panel, we have to enter the amount of vCPU as shown in the screenshot below. Note − If you put more vCPU-s than what the host supports, it will fail to power on the VM. Duplicating a VM Using VMware Workstation To create duplicates of VM machines, we have to use the VMware Workstation Commercial Version. Let us see how to do it in practice by following the steps given below. Step 1 − Open the VMware managing console and right click on a VM that you want to duplicate. Click on “Manage”. Step 2 − Click on “Clone…” and a wizard will be open. Step 3 − Click on “Next”. Step 4 − Click on “Create a Full Clone” and “Next”. Step 5 − Put a name for the clone that will be created and “Finish”. The following screenshots describe the process of cloning. Once the cloning process is complete, the following window will open. Print Page Previous Next Advertisements ”;

Virtualization 2.0 – Overview

Virtualization 2.0 – Overview ”; Previous Next Virtualization is a technology that helps us to install different Operating Systems on a hardware. They are completely separated and independent from each other. In Wikipedia, you can find the definition as – “In computing, virtualization is a broad term that refers to the abstraction of computer resources. Virtualization hides the physical characteristics of computing resources from their users, their applications or end users. This includes making a single physical resource (such as a server, an operating system, an application or a storage device) appear to function as multiple virtual resources. It can also include making multiple physical resources (such as storage devices or servers) appear as a single virtual resource…” Virtualization is often − The creation of many virtual resources from one physical resource. The creation of one virtual resource from one or more physical resource. Types of Virtualization Today the term virtualization is widely applied to a number of concepts, some of which are described below − Server Virtualization Client & Desktop Virtualization Services and Applications Virtualization Network Virtualization Storage Virtualization Let us now discuss each of these in detail. Server Virtualization It is virtualizing your server infrastructure where you do not have to use any more physical servers for different purposes. Client & Desktop Virtualization This is similar to server virtualization, but this time is on the user’s site where you virtualize their desktops. We change their desktops with thin clients and by utilizing the datacenter resources. Services and Applications Virtualization The virtualization technology isolates applications from the underlying operating system and from other applications, in order to increase compatibility and manageability. For example – Docker can be used for that purpose. Network Virtualization It is a part of virtualization infrastructure, which is used especially if you are going to visualize your servers. It helps you in creating multiple switching, Vlans, NAT-ing, etc. The following illustration shows the VMware schema − Storage Virtualization This is widely used in datacenters where you have a big storage and it helps you to create, delete, allocated storage to different hardware. This allocation is done through network connection. The leader on storage is SAN. A schematic illustration is given below − Understanding Different Types of Hypervisors A hypervisor is a thin software layer that intercepts operating system calls to the hardware. It is also called as the Virtual Machine Monitor (VMM). It creates a virtual platform on the host computer, on top of which multiple guest operating systems are executed and monitored. Hypervisors are two types − Native of Bare Metal Hypervisor and Hosted Hypervisor Let us now discuss both of these in detail. Native or Bare Metal Hypervisor Native hypervisors are software systems that run directly on the host”s hardware to control the hardware and to monitor the Guest Operating Systems. The guest operating system runs on a separate level above the hypervisor. All of them have a Virtual Machine Manager. Examples of this virtual machine architecture are Oracle VM, Microsoft Hyper-V, VMWare ESX and Xen. Hosted Hypervisor Hosted hypervisors are designed to run within a traditional operating system. In other words, a hosted hypervisor adds a distinct software layer on top of the host operating system. While, the guest operating system becomes a third software level above the hardware. A well-known example of a hosted hypervisor is Oracle VM VirtualBox. Others include VMWare Server and Workstation, Microsoft Virtual PC, KVM, QEMU and Parallels. Understanding Local Virtualization and Cloud Virtualization is one of the fundamental technologies that makes cloud-computing work. However, virtualization is not cloud computing. Cloud computing is a service that different providers offer to you based on some costs. In enterprise networks, virtualization and cloud computing are often used together to build a public or private cloud infrastructure. In small businesses, each technology will be deployed separately to gain measurable benefits. In different ways, virtualization and cloud computing can help you keep your equipment spending to a minimum and get the best possible use from the equipment you already have. As mentioned before, virtualization software allows one physical server to run several individual computing environments. In practice, it is like getting multiple servers for each physical server you buy. This technology is fundamental to cloud computing. Cloud providers have large data centers full of servers to power their cloud offerings, but they are not able to devote a single server to each customer. Thus, they virtually partition the data on the server, enabling each client to work with a separate “virtual” instance (which can be a private network, servers farm, etc.) of the same software. Small businesses are most likely to adopt cloud computing by subscribing to a cloud-based service. The largest providers of cloud computing are Microsoft with Azure and Amazon. The following illustration is provided by Microsoft where you can understand how utilizing extra infrastructure for your business without the need to spend extra money helps. You can have the on-premises base infrastructure, while on cloud you can have all your services, which are based on Virtualized technology. Print Page Previous Next Advertisements ”;

Virtualization 2.0 – Quick Guide

Virtualization 2.0 – Quick Guide ”; Previous Next Virtualization 2.0 – Overview Virtualization is a technology that helps us to install different Operating Systems on a hardware. They are completely separated and independent from each other. In Wikipedia, you can find the definition as – “In computing, virtualization is a broad term that refers to the abstraction of computer resources. Virtualization hides the physical characteristics of computing resources from their users, their applications or end users. This includes making a single physical resource (such as a server, an operating system, an application or a storage device) appear to function as multiple virtual resources. It can also include making multiple physical resources (such as storage devices or servers) appear as a single virtual resource…” Virtualization is often − The creation of many virtual resources from one physical resource. The creation of one virtual resource from one or more physical resource. Types of Virtualization Today the term virtualization is widely applied to a number of concepts, some of which are described below − Server Virtualization Client & Desktop Virtualization Services and Applications Virtualization Network Virtualization Storage Virtualization Let us now discuss each of these in detail. Server Virtualization It is virtualizing your server infrastructure where you do not have to use any more physical servers for different purposes. Client & Desktop Virtualization This is similar to server virtualization, but this time is on the user’s site where you virtualize their desktops. We change their desktops with thin clients and by utilizing the datacenter resources. Services and Applications Virtualization The virtualization technology isolates applications from the underlying operating system and from other applications, in order to increase compatibility and manageability. For example – Docker can be used for that purpose. Network Virtualization It is a part of virtualization infrastructure, which is used especially if you are going to visualize your servers. It helps you in creating multiple switching, Vlans, NAT-ing, etc. The following illustration shows the VMware schema − Storage Virtualization This is widely used in datacenters where you have a big storage and it helps you to create, delete, allocated storage to different hardware. This allocation is done through network connection. The leader on storage is SAN. A schematic illustration is given below − Understanding Different Types of Hypervisors A hypervisor is a thin software layer that intercepts operating system calls to the hardware. It is also called as the Virtual Machine Monitor (VMM). It creates a virtual platform on the host computer, on top of which multiple guest operating systems are executed and monitored. Hypervisors are two types − Native of Bare Metal Hypervisor and Hosted Hypervisor Let us now discuss both of these in detail. Native or Bare Metal Hypervisor Native hypervisors are software systems that run directly on the host”s hardware to control the hardware and to monitor the Guest Operating Systems. The guest operating system runs on a separate level above the hypervisor. All of them have a Virtual Machine Manager. Examples of this virtual machine architecture are Oracle VM, Microsoft Hyper-V, VMWare ESX and Xen. Hosted Hypervisor Hosted hypervisors are designed to run within a traditional operating system. In other words, a hosted hypervisor adds a distinct software layer on top of the host operating system. While, the guest operating system becomes a third software level above the hardware. A well-known example of a hosted hypervisor is Oracle VM VirtualBox. Others include VMWare Server and Workstation, Microsoft Virtual PC, KVM, QEMU and Parallels. Understanding Local Virtualization and Cloud Virtualization is one of the fundamental technologies that makes cloud-computing work. However, virtualization is not cloud computing. Cloud computing is a service that different providers offer to you based on some costs. In enterprise networks, virtualization and cloud computing are often used together to build a public or private cloud infrastructure. In small businesses, each technology will be deployed separately to gain measurable benefits. In different ways, virtualization and cloud computing can help you keep your equipment spending to a minimum and get the best possible use from the equipment you already have. As mentioned before, virtualization software allows one physical server to run several individual computing environments. In practice, it is like getting multiple servers for each physical server you buy. This technology is fundamental to cloud computing. Cloud providers have large data centers full of servers to power their cloud offerings, but they are not able to devote a single server to each customer. Thus, they virtually partition the data on the server, enabling each client to work with a separate “virtual” instance (which can be a private network, servers farm, etc.) of the same software. Small businesses are most likely to adopt cloud computing by subscribing to a cloud-based service. The largest providers of cloud computing are Microsoft with Azure and Amazon. The following illustration is provided by Microsoft where you can understand how utilizing extra infrastructure for your business without the need to spend extra money helps. You can have the on-premises base infrastructure, while on cloud you can have all your services, which are based on Virtualized technology. Virtualization 2.0 – Pros and Cons In this chapter, we will discuss some of the most common advantages and disadvantages of Virtualization. Advantages of Virtualization Following are some of the most recognized advantages of Virtualization, which are explained in detail. Using Virtualization for Efficient Hardware Utilization Virtualization decreases costs by reducing the need for physical hardware systems. Virtual machines use efficient hardware, which lowers the quantities of hardware, associated maintenance costs and reduces the power along with cooling the demand. You can allocate memory, space and CPU in just a second, making you more self-independent from hardware vendors. Using Virtualization to Increase Availability Virtualization platforms offer a number of advanced features that are not found on physical servers, which increase uptime and availability. Although the vendor feature names may be different, they usually offer capabilities such as live migration, storage migration, fault tolerance, high availability and distributed resource scheduling. These technologies keep

Preparing the Infrastructure

Preparing the Infrastructure ”; Previous Next Virtualization, at least at the server level, has been in use for some time. Since, the concept has expanded to the User, Application, Network, Security, Storage, and of course to Desktop Virtualization (VDI) as well. Therefore, to roll out in all these concepts, we have to prepare an infrastructure before, which is divided in some key components. The First one is Hypervisor and we have discussed it in the earlier chapters. Some important specifications needed for this job are – Processors, Memory and Networking Modes, etc. Networking – LAN and WAN Optimization VDI can be very resource intensive – this includes traffic over the wire. Having a good core-switching infrastructure will help alleviate this pain by allowing the administrators to create certain rules and policies revolving around traffic flow. Setting up QoS metrics for VDI-specific traffic can help remove congestion and ensure that the right traffic has the proper amount of priority. As for the traffic that is leaving the data center, knowing where the user is located and optimizing their experience based on certain criteria, becomes very important. Another significant aspect is storage. Large organizations will have numerous storage controllers. At the same time, some smaller organizations will be using only one. Regardless of the amount of storage controllers available, they need to be sized properly for VDI. To prevent boot and processing storms, organizations must look at IOPS requirements for their images. To alleviate processing pains, administrators can look at Flash Technologies (NetApp, Fusion-IO, XtremIO) or SSD Technologies (Violin, Nimbus) to help offload that kind of workload. Furthermore, intermediary platforms like Atlantis ILIO run on top of a virtual machine that utilizes massive amounts of RAM as the key storage repository. Understanding Different File Systems File systems are varied depending on their functions. Some of the most common ones are listed below − Virtual Machine File System- VMFS Network File System- NFS New Technology File System- NTFS Raw Device Mapping- RDM Let us discuss each of these in detail. Virtual Machine File System VMFS is a file system proprietary to VMware. It is a clustered file system and it can be mounted on multiple servers simultaneously. This helps every host to connect to the any file system at the same time, which is expected from a proprietary system preferred by VMware. Most of the VMware hypervisors will work with other file systems, but the default choice and the preferred choice is VMFS. Network File System NFS is a system that was originally developed by Sun, but is now an Open Standard system. Used commonly in the UNIX and Linux world. It is a distributed file system. It can be mounted on one server and the network will be used to share information to multiple machines. New Technology File System NTFS is the standard file structure for the Windows NT operating system. It is used for retrieving and storing files on the hard disk. Raw Device Mapping RDM helps any file in a virtual machine file system to act as a proxy for any raw device. It allows a VM to access as well as use the storage device. Choosing Between Different Types of Storage All the storage devices are divided into three categories, which are − Direct-Attached Storage Network-Attached Storage Storage-Area Network Let us understand each of these in detail. Direct-Attached Storage DAS is your local hard drive. We can have one or more local hard drives in every machine. It is mostly used for small-virtualized systems. This solution is appropriate for a small amount of guest machines. It is the cheapest and the easiest method of storage. You can connect an external hard drive too with this method, load any guest machines onto that external hard drive, and that is just a quick and easy way to get rolling. For example – A server that has local hard discs on it. That type of hypervisor can hold not more that 10-20 VM machines. A sample device can be a HP Server with eight local hard discs as shown in the following illustration. Network-attached Storage NAS is “Any server that shares its own storage with others on the network and acts as a file server in the simplest form”. Network Attached Storage shares files over the network. Some of the most significant protocols used are SMB, NFS, CIFS, and TCP/IP. When you access files on a file server on your windows system, it is NAS NAS will be using an Ethernet connection for sharing files over the network. The NAS device will have an IP address and then will be accessible over the network through that IP address. Biggest providers of NAS are QNAP and Lenovo. The following illustration shows how NAS works. Storage-area Network SANs allow multiple servers to share a pool of storage; making it appear to the server as if it were local or directly attached storage. A dedicated networking standard, Fibre Channel, has been developed to allow blocks to be moved between servers and storage at high speed. It uses dedicated switches and a fiber-based cabling system, which separates it from the day-to-day traffic traversing the busy enterprise network. While the well-established SCSI protocol enables communication between the servers’ host bus adaptors and the disk system. The following illustration shows how a SAN switch operates. Print Page Previous Next Advertisements ”;

Virtualization 2.0 – VirtualBox

Virtualization 2.0 – VirtualBox ”; Previous Next In this chapter, we will understand what a VirtualBox is and discuss in detail the various components it has. Installing VirtualBox To start with, we will download VirtualBox and install it. We should follow the steps given below for the installation. Step 1 − To download VirtualBox, click on the following link https://www.virtualbox.org/wiki/Downloads Now, depending on your OS, select which version to install. In our case, it will be the first one (Windows host). Step 2 − Once the option is selected, click on “Next”. Step 3 − You have the option asking where to install the application. We can leave it as default and click on “Next”. Step 4 − Once the options are selected as shown in the following screenshot, click on Next. Step 5 − A dialog box will come up asking whether to proceed with the installation. Click “Yes”. Step 6 − In the next step, click on “Install”. Step 7 − Tick the start VirtualBox check box and click on “Finish”. Step 8 − VirtualBox application will now open as shown in the following screenshot. Now, we are ready to install the virtual machines. Creating a VM with VirtualBox To create a virtual machine with Oracle VirtualBox, we should follow the steps given below. Step 1 − To begin with, click on the “Oracle VM VirtualBox” icon on the desktop as shown in the screenshot below. Step 2 − The next step is to click on “New” button, which is in the top left hand side of the screen. Step 3 − A table will pop-up requesting you the parameters for the virtual machine. These will be − Name − We have to put a friendly name for this Virtual Machine. Type − Enter the OS that is going to be installed on it. Version − Enter the specific version for that OS, which we have selected earlier. Once all the above parameters are filled, click on “Next”. Step 4 − Select the amount of memory that you need to allocate in this VM → Click on “Next”. Step 5 − Check one of the three options for the HDD and click on “Create”. Step 6 − Select a file extension for your virtual HDD (It is recommended to use a common file extension that most of the hypervisors use like VHD) → click on “Next”. Step 7 − Choose whether you want the Virtual HDD as dynamic or fixed. This is based on your needs → Click on “Next”. Step 8 − Put a name for your virtual HDD file and select the disk size for your VM → Click on “Create”. All the above steps can be done in one shot by selecting the “Expert mode”. The virtual machine created will be as shown in the screenshot below. Setting up Networking with VirtualBox There are two types of networking modes in VirtualBox, which are − Nat Networks and Host-only Networks. Both of these are explained in detail below. Nat Networks For setting up Nat Networks, we should follow the steps given below. Step 1 − Go to Oracle VM VirtualBox Manager → Click on “Preferences…” Step 2 − Click on “Network” and then on the left panel click on the “NAT Networks” tab. Step 3 − Click on the “+” button, which is highlighted in the screenshot below. Step 4 − Here, we have to put the “Network Name” and the IP range for this network that will be NAT-ed, in order to have access to internet and to other networks. Host-only Networks For setting up Host-only Networks, we should follow the steps given below. Step 1 − If you click on the “Host-only Networks” tab, you can create networks that are isolated from the other networks. However, VM hosts communicate with each other and the Hypervisor machine. Click on the “+” sign. Step 2 − The host interface will continue to be created as shown in the screenshot below. Step 3 − If you click on button, you can edit the settings. Step 4 − If you want your host machines to take “DHCP IP”, click on the “DHCP Server” tab and check the box “Enable Server” → Click “OK”. Step 5 − In the “Adapter” tab, put the IP of the hypervisor. After all these preparations for setting up the network modes is complete. It is now time to assign a network to our VMs. To do this, Click on the VMs on the left side of the panel, then right click on the “Network” option and a table will be open. You can have up to four Ethernet adaptors per machine. The following image has four sections highlighted, which are explained below. Check the box “Enable Network Adapter” to enable the vNIC on the VM and attach it to one network. You can have many networks created, so we have to select one of them in the “Name” dropdown box. In the adapter type dropdown-box, we have to select a physical NIC that the hypervisor has. Promiscuous Mode: Here, we can select “Deny”, if we do not want the VMs to communicate with each other. Once all the above parameters are completed. Click on “OK”. Allocating Processors & Memory to a VM To allocate processors and memory to a virtual machine using VirtualBox, we should follow the steps given below. Step 1 − To allocate a processor and memory, you have to click on “Settings” after you have selected the VM. Step 2 − Click on “System” on the left side tab, then click on the “Motherboard” tab. Move the arrow left or right to allocate the memory as shown in the screenshot below. Step 3 − To allocate processors, click on the “Processor” tab. Move the arrow left or right to allocate the number of processors as shown in the screenshot below. Step 4 − After all those changes are done → click on “OK”. Duplicating a VM

Virtualization 2.0 – Microsoft HyperV

Virtualization 2.0 – Microsoft Hyper-V ”; Previous Next In this chapter, we will discuss Microsoft Hyper-V along with its various modules. Installing Hyper-V in Windows Server 2012 Microsoft Hyper-V, known as Windows Server Virtualization, is a native (bare) hypervisor. It can create virtual machines on x86-64 systems running Windows OS, starting with Windows 8. Hyper-V supersedes Windows Virtual PC as the hardware virtualization component of the client editions of Windows NT. A server computer running Hyper-V can be configured to expose individual virtual machines to one or more networks. Hyper-V was first released alongside Windows Server 2008 and Windows 7 and has been available without charge for all the Windows Server versions and some client operating systems since that time. Let us see how to install a Hyper-V role in a Windows Server 2012 by following the steps given below. Step 1 − To Install Hyper-V role go to “Server Manager” → Manage → Add Roles and Features. Step 2 − Click on “Next”. Step 3 − Select “Role-based or feature-based installation” option → click on “Next”. Step 4 − We will locally install the Hyper-V role as such “Select a server from the server pool” → click “Next”. Step 5 − From the Roles lists, check the “Hyper-V” Server role → click on Add Features on the popup window → click “Next”. Step 6 − Click “Next”. Step 7 − Choose your server’s physical network adapters that will take part in the virtualization and responsible for network switching → click on “Next”. Step 8 − Under Migration, leave the default settings → click on “Next”. Step 9 − Choose the path where you want to save the file → click on “Next”. Step 10 − Click “Install” and wait for the installation bar to finish. Installing Hyper-V in a windows 10 workstation To install it in Windows 7, 8, 10 versions, you have to check if your computer supports virtualization. Following are the basic requirements − Windows 10 Pro or Enterprise 64-bit Operating System. A 64-bit processor with Second Level Address Translation (SLAT). 4GB system RAM at minimum. BIOS-level Hardware Virtualization support. In my case, we have a laptop HP Probook 450 G3, which supports it. Before continuing with the installation, follow the steps given below. Step 1 − Ensure that hardware virtualization support is turned on in the BIOS settings as shown below − Step 2 − Type in the search bar “turn windows features on or off” and click on that feature as shown below. Step 3 − Select and enable Hyper-V. Creating a Virtual Machine with Hyper-V In this section, we will learn how to create a virtual machine. To begin with, we have to open the Hyper-V manager and then follow the steps given below. Step 1 − Go to “Server Manager” → Click on “Hyper-V Manager”. Step 2 − Click “New” on the left Panel or on the “Actions” button. Step 3 − Double-click on “Virtual Machine…” Step 4 − A new table will open → Type Name of your new machine → click “Next”. Step 5 − A new table will be opened where you have to allocate the memory. Keep in mind you cannot choose more memory than you have physically. Step 6 − In the “Connection” drop down box, choose your physical network adaptor → click on “Next”. Step 7 − Now it is time to create a Virtual Hard disk, if you already have one, choose the second option. Step 8 − Select the Image of ISO that has to be installed → click on “Finish”. Step 9 − After clicking on finish, you would get the following message as shown in the screenshot below. Step 10 − To connect to the Virtual machine, Right Click on the created machine → click on “Connect…” Step 11 − After that, installation of your ISO will continue. Setting up Networking with Hyper-V The Hyper-V vSwitch is a software, layer-2 Ethernet network-traffic switch. It allows administrators to connect VMs to either physical or virtual networks. It is available by default within the Hyper-V Manager installation and contains extended capabilities for security and resource tracking. If you attempt to create a VM right after the set-up process, you will not be able to connect it to a network. To set up a network environment, you will need to select the Virtual Switch Manager in the right hand side panel of Hyper-V Manager as shown in the screenshot below. The Virtual Switch Manager helps configure the vSwitch and the Global Network Settings, which simply lets you change the default ‘MAC Address Range’, if you see any reason for that. Creation of the virtual switch is easy and there are three vSwitch types available, which are described below − External vSwitch will link a physical NIC of the Hyper-V host with a virtual one and then give your VMs access outside of the host. This means that your physical network and internet (if your physical network is connected to internet). Internal vSwitch should be used for building an independent virtual network, when you need to connect VMs to each other and to a hypervisor as well. Private vSwitch will create a virtual network where all connected VMs will see each other, but not the Hyper-V host. This will completely isolate the VMs in that sandbox. Here, we have selected “External” and then “Create Virtual Switch”. The table with the setting of the vSwitch will be open where we will fill the fields as shown below Name − is the name that we will put to identify the vSwitch. Notes − is the description for us, generally, we put friendly descriptions to be understood. Connection Type − is external as explained earlier and selects a physical network card on my server. Once all this is entered, Click on “OK”. Allocating Processors & Memory to a VM using Hyper-V In this section, we will see the task of allocating CPU, Memory and Disk Resources