Lab Manual (1)
Lab Manual (1)
SUBMITTED TO:
Dr. Waseeq-ul-Islam
SUBMITTED BY:
BS (IT) Section A
Follow all the steps such as select language, region, http, local host and install the xenserver.
Adding xenServer on XenCenter
For adding xenserver to xencenter ,first install the xencenter on your device.
Click on add a server.
Write the ip address of xenserver and admin name and password which your xenserver have.
After enter these pop up screen show which is “attempting to connect server.
When server connected we can easily manage or configure the server in graphical user
interface.
Install a VM template in xencenter
We can do this by dividing the process in two parts.
Then just choosing the default settings we get install the virtual machine.
Lab no.2
Managing CPU for VM
Select Virtual Machine from the VMware Player menu bar.
Select Virtual Machine Settings from the menu.
Selecting the Processors line on the left side of the screen under the Hardware window will
display the Processor options.
By selecting the Number of Processor Cores drop-down menu, you can choose up to 32 vCPUs
for your virtual machine. If you have an application that requires more than a single vCPU, you
can increase its number of vCPUs at this time. VMware Player limits you to 32 vCPUs in a single
virtual machine.
Hyper threading
Enable Hyper-Threading in BIOS for increased virtual machine (VM) density and better CPU
utilization.
Monitor CPU ready time in XenCenter; high values indicate contention—consider disabling HT
for latency-sensitive VMs.
CPU working
Now checking the CPU working mechanism
The CPU gives them the highest priority and run them parallel
But, now I opened the Word(or any file that is not as such important than running a virtual
environment)
But the system gives priority to its own work first then going to others (a lack of efficiency of system)
Lab no.3
Managing memory for virtual machine
In VMware Player, select the Windows 10 virtual machine.
At the bottom right or from the Virtual Machine menu, select Edit Virtual Machine Settings.
The first hardware device highlighted is Memory. The memory configuration for the Windows 10
virtual machine. You can adjust the memory up or down by using the slider or by directly
changing the value in the Memory For This Virtual Machine text box.
VMware Player provides three default values: a minimum recommended memory value, a
recommended memory value, and a maximum recommended memory value. The minimum and
recommended values are based on the guest operating system, while the maximum amount is
based on the amount of memory in the host server.
Select Cancel to close the Virtual Machine Settings window
Lab no.4
Managing storage
If your virtual machine is still running, shut it down. Once it is powered down, edit the Virtual Machine
Settings and highlight the Hard Disk option. Some basic information about the C: drive: some capacity
information, the name of the file that comprises the hard disk in the physical system’s file system, and a
small selection of utilities. The utilities menu shows a number of tools.
Defragment is similar to the physical disk tool in that it will rear range the data files in the virtual disk in
a more compact configuration, but it will not reclaim that newly emptied space.
Compact will reduce the size of a virtual disk by reclaiming empty space, but the virtual machine must
be powered down to use this capability.
Let’s add a second disk drive to the system. Below the Device Summary on the left side of the screen,
select Add. If your host system requests permission for VMware Workstation Player to make changes on
the computer because it will be creating a new disk file, allow it to do so by selecting Yes.
Figure shows the initial screen of the Add Hardware Wizard. Hard Disk is already highlighted, so select
Next to continue.
The Select a Disk Type window appears, as shown in Figure 9.6. You can choose between bus types, but
stay with the recommended SCSI. Select Next to continue.
The first radio button is already selected to Create A New Virtual Disk by creating a file on the host
operating system. Notice the other selections as well. Use An Existing Virtual Disk would allow you to
connect or reuse a previously created disk. Use A Physical Disk would allow the virtual disk direct access
to a physical device. Select Next to continue.
Next, you get to choose how much storage space you’d like to allocate to the new drive. You can see in
Figure 9.8 that both maximum and recommended sizes are presented as guidelines. You have an option
to allocate all of the space on the disk at once, or have it grown incrementally as it is required. As with
the C: drive during the original virtual machine creation, you also have the option to keep the disk file as
one single file or split it into multiple smaller ones. The plusses and minuses are stated in the
description. For this exercise, enter 5 GB and then choose to Store Virtual Disk as a Single file. Select
Next to continue.
The final screen of the Add Hardware Wizard, allows you to select the name and placement of the
virtual disk files. The wizard takes the existing virtual disk name and increments it by default. Also by
default, the disk will be placed in the existing virtual machine folder. You can select Browse to examine
the folder and existing files there already. When you are done, close the Browse window and then select
Finish to complete the process.
Add Harddisk Space
Back on the Virtual Machine Settings window, you can see that the new disk has appeared. Examine the
capacity of the new disk and note that the maximum size and the actual size are different because you
didn’t pre-allocate the space. If you highlight the Utilities, you can see that the only option available is to
expand the disk size. One reason why is that the job of creating a new disk is not complete. The disk is
now configured and connected to the virtual machine, but you haven’t formatted and initialized it for
Window’s use.
Select OK to close the Virtual Machine Settings window and power on the virtual machine by selecting
Play Virtual Machine. Note that there are now two disk icons at the top of the VMware Workstation
Player window. If you hover over them with your cursor, you will see both the original 30 GB C: drive
and the new 5 GB drive.
Once the virtual machine is powered on, click the Windows Start button and select All Apps. Expand the
Windows Administrative Tools folder and double-click Computer Management. In the left-hand
windowpane, expand the Storage item if it isn’t already done and select Disk Management.
The utility recognizes that the new storage device, Disk 1, has not yet been initialized and, as shown in
Figure, offers to do so. You can move the window to uncover the existing devices and verify that the disk
to be initialized is the correct one. Select OK to proceed.
The new drive is now recognized by the system and is online, but it is still not usable by Windows. As
illustrated in Figure 9.12, right-click in the Unallocated portion of the disk and a menu appears. Select
New Simple Volume. The Volume Wizard appears. Select Next to Continue.
The maximum and minimum volume sizes are presented, and you can choose a value in MB between
those limits. Leave the default, which is the maximum value, and then choose Next to continue.
The next screen allows you to assign a drive letter to the new disk. E: has already been selected, but you
can change that if you like by choosing another letter from the remaining choices in the drop-down
menu. Select Next to continue.
The next screen has formatting options. For our purposes, the defaults are fine, but change the Volume
label to Second Drive. Select Next to continue.
The final screen of the wizard allows you to review the selections you have made. Check your work and
then select Finish. After a few moments, the new disk, Second Drive, has been formatted and mounted
to the file system as Drive E.
When the drive was mounted, Windows 10 automatically recognized it and an AutoPlay window
appeared when the format was complete. Close the Computer Management utility. You can also see the
drive by clicking the Windows File Explorer icon and choosing This PC, shows the drive is completely
empty aside from the overhead Windows maintains for management structures.
Lab no.5
Managing Networking for a Virtual Machine
Network Adapter
In the virtual machine, enter cmd into the Search text box. Select the cmd icon. When the command-line
window opens, enter the command ipconfig and press Enter. You can see your system IP address in the
traditional dot and decimal format, the four octets next to the IPv4 Address label. If there were multiple
NICs in this virtual machine, there would be additional entries with additional IP addresses.
Right-click on the revealed network adapter and choose Properties. Select the Driver tab, as shown in.
You can see a standard Intel network adapter with a standard Microsoft driver. From the virtual
machine’s point of view, the virtual network adapter is identical to a physical network adapter.
Let’s examine the network adapters from the perspective of the host system.
Not in the virtual machine, but from the host Windows operating sys tem, enter device into the Search
text box. Select the Device Manager icon. When the Device Manager utility opens, select the triangle to
the left of the Network Adapters icon to display the adapters. In addi tion to the two physical network
adapters for wired and wireless connections, two others are labeled VMware Virtual Adapters.
Right-click on either of the VMware adapters and choose Properties. Select the Driver tab. You can see
that this adapter is a VMware virtual adapter; in other words, it is a software construct that represents
an adapter with which the virtual machines can connect. In the case of VMware Workstation Player, this
virtual adapter is analogous to the virtual switches that the Type 1 hypervisors utilize. There are two
different adapters here, and each has a different function, along with a third that you will see shortly.
Now we will examine the various connection types you can select when creating a network connection.
Back in VMware Workstation Player, under the Player pull-down menu, from the Manage option, select
Virtual Machine Settings. Highlight the network adapter. The network connection choices. We will focus
on three connection types in the next section. They are bridged, NAT, and host-only.
Types of Network
Bridge
NAT
Host Only
We are going to skip LAN Segments and the Advanced features as outside of the scope of this text. LAN
Segments gives you the ability to create a private network to share between virtual machines, and you
can learn more by checking the user documentation. The Custom option, as it states in the window,
allows you to choose a specific virtual network. Care should be taken if you opt to use this route because
certain virtual networks within VMware Workstation Player are preconfigured for certain connection
types. Don’t use these for a Custom network. Again, the user documenta tion provides the pertinent
details.
Lab no.6
Snapshot
Taking snapshots to save state of the system
Go to vmware select the machine. Power on the machine.
Take the snapshot by right click on the machine in library of vmware.
Click on the snapshot a dropdown menu show click on the take snapshot.
Snapshot save on child disk.
We can revert anytime from snapshot and also clone the snapshot and delete the snapshot.
Cloning
A machine having same spcifications, username and password has been cloned.
Template
Go ito settings
Go to Advance
Lab no.7
Copying from a virtual machine
1. Drag and drop
Open vmware.
Select the machine where you want to make a share folder.
Go to edit this file.
Go to the option.
Click sharefolder.
Select always enable.
Add the path for folder.
Host path or name of folder. click next.
Specify the sharefolder attribute according to your choice.
Using USB device
First mount USB in virtual machine copy data from the machine.
Unmount the USB from the virtual machine.
Now mount USB into the physical machine paste the data in physical machine or vice versa.