Very good option, No need to go to server. But your network bandwidth
should be strong, Just insert CD/DVD in your client system's CD/DVD tray
esxi/esx server over network (You can map iso file to VM as well from client) and
just Start installing OS/application.
How to configure "Client
Power on VM, Open VM console. Click CD/DVD drive icon, if cd/dvd is in
Tray just "press connect to D:" (D is my cd/dvd drive on VM) or use
connect to iso image on local disk to map ISO file on client computer.
Press connect to ISO image on local disk if you want to mount an ISO
file which is stored on client system or on shared drive.
Now here is the tricky part, you will get disconnect from connected
CD/DVD drive as soon as you restart the VM and VM booting is so fast you might
not get enough time to connect to CD/DVD rom. For this just configure power on
boot delay settings from VM settings>Options tab>boot option. Enter 1000 milliseconds
(adjust it as per your convenience). And you will get enough time to connect to
D drive or map ISO file. (if you are mapping ISO file for first time I will
suggest increase milliseconds as per your convenience)
Also make sure in VM bios boot from CD/DVD is selected in the top
(Trick here, to boot directly into Bios setting as above screenshot
select option Force BIOS setup, next time it boots it enters into bios, VM
booting is really fast, you might face hard time when wants to go to bios
Just insert CD/DVD on to esx/esxi server and you go, vm will access it.
Make sure you have selected options as below. Here my connected check
box is greyed out because vm is powered off.
If you don’t select device status to connected or connect at power on
(once you power on vm D drive will get automatically connected if you have
selected connect at power on), CD/DVD drive will be in disabled status, it
means you have inserted CD/DVD but Host drive is not in use.
(vMotion will not work if device status is connected, it will give the
You will map ISO file which are kept on esxi local disks, vmfs
datastore or NFS drive. (here my suggestion is Keep all your ISO file
centralize at one shared datastore location, if the same datastore is accessible
from another esxi host, vMotion will not get interrupted even if device status
(If iso files are kept on local disk of host and another host is not
able to access it and status is connected vmotion will not work)
CD/DVD drive Modes:
You will be able to edit these settings only when VM is
Passthrough IDE (raw). Use mode only for remote client device access.
Emulate IDE. Use to access a host CD-ROM device.
The host CD-ROM device is accessed through emulation mode. Passthrough
mode is not functional for local host CD-ROM access. You can write or burn a
remote CD only through pass-through mode access, but in emulation mode you can
only read a CD-ROM from a host CD-ROM device.
Virtual Device Node is similar depict of IDE primary, secondary (master/slave)
HDD port on physical system.
Checking and changing device
status from RVtools and powercli.
Many time it happens you connect to CD/DVD drive but forget to uncheck connected
and destination Host is not able to access cd/dvd from source host, which might
cause interruption in vMotion depending on device type settings. It is very
hectic if you have multiple VMs (lets say 20, 50 maybe more than 100), you will
need to check device status on every VM settings manually.
There is no option available in vsphere client to change the current installed
network adapter type, You will have to either install a new network adapter or
you can change the existing network adapter type through powercli, you can
create a script to change adapter type of all the VM in vcenter or on Esxi
server, at one shot.
Open powercli from start menu,
Connect to vCenter server (you can connect directly to esxi server as
well), by executing below command you will log onto vcenter server (my vcenter
IP address is 192.168.33.12, you can use servername or FQDN as well)
Once the command executed it will pop up and ask for credentials, Make
sure you have appropriate permissions on vcenter.
Now you are logged into vcenter successfully, you will see something
like below, how you are connected to vcentre server.
Find The VM for which you want to change the adapter type. Fire command
"get-vm", it query the list of VMs available on vcenter. Here I want
to change network adapter type for winxp001.vcloud.lab.
Next command to get details about network adapter type of VM
winxp001.vcloud.lab. Here I used get-networkadapter in pipe line to query
network adapter details.
Get-VM winxp001.vcloud.lab | get-networkadapter
Now it's time to change network adapter type, below is the link for description
about all the available network adapter types.
Now get-vm will query VM properties and settings from $vmlist which
contains text file data, by piping information
into get-networkadapter I am querying network adapter properties and settings,
and again I am piping the information into "set-networkadapter -type
vmxnet3" to change type. In the last option "-confirm:$false" is used to skip
confirmation (figure 8) and continue with action.
Before configuring Failover clustering, shutdown VM.
Open failover cluster Manager, right click Services and application and
click Configure a service or Application
Select virtual Machine from the list and click next.
Select VM to make it highly available.
Press next, check your settings on the next screen.
I am ignoring the warning on the next screen (you can view the report
and read what is this warning) click finish. (if you get a warning you can
proceed but in error you need to sort it out before clicking finish)
Right click VM and start it, once it is up we will test failover.
Once VM is fully up open cmd prompt on AD and type below command
Ping 192.168.33.34 -t
Right click vm > live migrate virtual machine to another note > 1
- live migrate to node hyperv02,
Now VM will move from hyperv01 to hyperv02
If you check the status it is migrating.
I got only 2 pings dropped while migration and littlie stretched
latency, It means clients accessing VM didn’t even know they are accessing VM
from hyperv02. Check it from HyperV manager as well.
Now try simulating Hardware down, Hard reboot Hyperv02, VM should be failover
to host Hyperv01 with little downtime. (VM will restart on HyperV01 host).
I am creating first Virtual Machine on hyperv01 server. Right click
hyperv01, click new, then virtual Machine.
Enter the name for new virtual machine "VM" and store it on
P:\VM (Shared clustered disk)
Keep defaults. Memory - 512 MB.
Select vNetwork - virtual network from dropdown box, all the VM's
network traffic will pass through vNetwork (Public network - 192.168.33.0/24).
I am giving 40 gb vhdd to VM (remember our shared Disk P drive is only 20 gb, VM will use space on
demand, let's say I have installed OS which will take 10 gb of space, if you
check size of the vm.vhd you will find it only 10 GB. As you fill up the data inside vm.vhd it will grow but not
beyond 20 gb. If you move vhd file to larger disk size (at least 40 GB). you
can fill it upto 40 gb)
I have kept windows 2008 r2 enterprise ISO file on the C drive of
hyperV01, I am going to use it to install it on to the VM.
Next screen is a summary about VM settings, click finish.
Now you can see one VM on hyperv01, right click on VM and click
This is console for VM, from here we can control installation and
configuration of VM.
We had mapped ISO image while
creation of VM and it will boot from it once you start VM, Install windows 2008 R2 and configure below
settings, all other settings will be default.