You are on page 1of 359

USING "HYPER-V" IN "WINDOWS 8..

" TO RUN "VIRTUAL MACHINES"

Web location for this presentation:


http://aztcs.org Click on Meeting Notes
2

SUMMARY
If you run the 64-bit version of "Windows 8 Release Preview" in your real computer, you can run the bundled "Hyper-V" program to create "virtual machine" computers, in order to save money, space, and 3 time.

SUMMARY (continued)
In the near future, if you run the "Windows 8 Pro" version or "Windows 8 Enterprise" version of "Windows 8", you can run the bundled "Hyper-V" program to create "virtual machine" computers, in order to save money, space, and time.
4

3 Virtual Machines Running in "Hyper-V" running in my real "Windows 8 Release Preview" computer!
5

EXPLANATION OF THE LIVE DEMO

Start with your real physical computer

Upstream to the real Internet

Real Physical Computer running "Windows 8 Release Preview 64-bit"

Activate the free "VMware Player" virtual machine program in "Programs and Features" in the "Control Panel" of "Windows 8.."
Real Physical Computer running "Windows 8.."
"Hyper-V" Virtual Machine Program

Upstream to the real Internet

Create a virtual "External Network Switch" using the "Hyper-V" program


Real Physical Computer running "Windows 8.."
"Hyper-V" Virtual Machine Program

Upstream to the real Internet

Virtual External Network Switch

Use the "Hyper-V" program to make an empty virtual machine


Real Physical Computer running "Windows 8.." "Hyper-V" Virtual Machine Program

Upstream to the real Internet

Virtual External Network Switch

Blank Virtual Machine with no Operating System

Get into the empty virtual machine program and install "Windows 7 Enterprise Trial 64-bit" into it.

Upstream to the real Internet

Real Physical Computer running "Windows 8.."


"Hyper-V" Virtual Machine Program

Virtual External Network Switch

"Windows 7.." Virtual Machine

Use the "Hyper-V" program to make a second empty virtual machine.


Real Physical Computer running "Windows 8.."

Upstream to the real Internet

"Hyper-V" Virtual Machine Program

Virtual External Network Switch

"Windows 7.." Virtual Machine

Blank Virtual Machine with No Operating System

Get into the empty virtual machine and install "Windows XP" into it.

Upstream to the real Internet

Real Physical Computer running "Windows 8.."


"Hyper-V" Virtual Machine Program

Hyper-V's External Virtual Network Switch

"Windows 8" Virtual Machine

"Windows XP" Virtual Machine

Use the "Hyper-V" program to make a third empty virtual machine

Upstream to the real Internet

Real Physical Computer running "Windows 8.."


"Hyper-V" Virtual Machine Program

Hyper-V's External Virtual Network Switch

"Windows 8" Virtual Machine

"Windows XP" Virtual Machine

Blank Virtual Machine with No Operating System

Get into the empty virtual machine and install "Ubuntu 12.04" into it
Real Physical Computer running "Windows 8.."
"Hyper-V" Virtual Machine Program

Upstream to the real Internet

Hyper-V's External Virtual Network Switch

"Windows 8" Virtual Machine

"Windows XP" Virtual Machine

"Ubuntu 12.04" Virtual Machine

The end result is three virtual machines and a virtual network switch inside a real "Windows 8.." computer
Real Physical Computer running "Windows 8.."
"Hyper-V" Virtual Machine Program

Upstream to the real Internet

Hyper-V's External Virtual Network Switch

"Windows 8" Virtual Machine

"Windows XP" Virtual Machine

"Ubuntu 12.04" Virtual Machine

View of the three virtual machines from "Windows Explorer" in the real, "Windows 8" host computer:

18

View of the three virtual machines from "Windows Explorer" in the "Windows XP" virtual machine:

19

View of the three virtual machines from "Windows Explorer" in the "Windows 7" virtual machine:

20

View of the three virtual machines from the "Nautilus" file manager applet in the "Ubuntu 12.04" virtual machine:

21

More Explanation of the Demo


A virtual machine running Windows 7 Release Preview" is running inside my real computer. A second virtual machine running "Windows XP Professional" is also running inside my real computer.
22

More Explanation of the Demo


A third virtual machine running "Ubuntu 12.04" is also running inside my real computer.

23

More Explanation.. (continued)


The three virtual machines and my real host computer are all sharing files with each other, using the virtual external network switch that "Hyper-V" has provided.
24

OBJECTIVES FOR USING VIRTUAL MACHINES

1. Save real money 2. Save real space 3. Save real time


25

STRATEGIES FOR OBJECTIVE 1 TO SAVE MONEY You can use "virtual machines" to reduce the number of physical computers that you operate and this can help you to avoid buying additional computers:

26

STRATEGIES FOR OBJECTIVE 1 TO SAVE MONEY (continued) Thin Provisioning of hard drives: Virtual machines can help you to avoid buying more hard drives because, by default, they are set up to "fool" their guest operating systems into "seeing" more hard drive space than is actually physically available: 27

STRATEGIES FOR OBJECTIVE 1 TO SAVE MONEY (continued)


In a virtual machine system, each guest operating system can be "shown" a much larger amount of hard drive space than is actually utilized by it, but the actual usage of physical hard drive space is just the "used" space--not the "free space that the virtual machines see.
28

STRATEGIES FOR OBJECTIVE 1 TO SAVE MONEY (continued) When you use virtual machines in free "virtual machine programs", it is like getting a pile of computers to use for free with all of them residing inside your existing physical "host" computer.

29

STRATEGIES FOR OBJECTIVE 1 TO SAVE MONEY (continued) You can use a virtual machine to attempt to repair failed hard drives. See http://aztcs.org/meeting_notes/ winhardsig/harddrives/repairin g/030-HDsoftrepairs.pdf
30

STRATEGIES FOR OBJECTIVE 1 TO SAVE MONEY (continued) You can easily run software that normally conflicts with each other or slows each other down (such as multiple versions of Microsoft Office) in separate virtual machines so that they do not "see" each other.
31

STRATEGIES FOR OBJECTIVE 1 TO SAVE MONEY (continued) You can test beta software such as the prolific "Mozilla Firefox" betas without causing permanent problems with the production version of the same software, since many betas inactivate or remove the existing production version of the same program.
32

STRATEGIES FOR OBJECTIVE 2 TO SAVE SPACE (CONTINUED) With virtual machines, you no longer need to keep older computers around in order to run those beloved MS-DOS games or to run prior year versions of income tax software or old versions of financial software such as "Quicken, "QuickBooks or Turbotax.
33

STRATEGIES FOR OBJECTIVE 3 TO SAVE TIME

You can clone existing "virtual machines" in a fraction of the time that it takes to set up, reload, or re-image real, physical computers.
34

STRATEGIES FOR OBJECTIVE 3 TO SAVE TIME (continued)

If you use a cloned "virtual machine" for accessing the Web and it catches a virus/malware/trojan, you can delete the cloned "virtual machine" and create a fresh new one in tens of minutes.
35

ADDITIONAL BENEFITS OF VIRTUAL MACHINES All virtual machine programs provide you with "virtual networks": By default, the "virtual networks" give you an extra measure of security when you are accessing Web sites on the Internet.
36

IMPLEMENTATION
PROJECT 1: Compare "Hyper-V" to other "Virtual Machine Programs to decide if it meets your needs PROJECT 2: Install the Hyper-V program into your "Windows 8 Release Preview" computer. PROJECT 2A: Create a Virtual "External Network Switch" using the "Hyper-V" program PROJECT 3: Create Virtual Machines inside37 "Hyper-V".

IMPLEMENTATION (continued)
OPTIONAL PROJECT 4: Do Physical to Virtual" ("P2V") to convert an existing computer(s) into virtual machines that will run inside the "Hyper-V" program PROJECT 5: (Learn to) Use Virtual Machines

38

PROJECT 1 DETAILS
(COMPARE "HYPER-V TO OTHERS..")

"Project 1" from the standpoint of software for an organization or business compared to "Project 1" from the standpoint of software for private, in-home use.

39

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS)

"Project 1" for an organization or business: In order to select the "virtual machine program" that is best for a "Windows 8.." end-user computer in a business or a notfor-profit organization, you should compare the capabilities of the Windows 8's bundled "Client Hyper-V" program to "VMware Workstation, "Windows Virtual PC", and "Microsoft Virtual PC 2007".
40

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

o "Oracle VM VirtualBox is not a viable alternative for an organization because Oracle does not offer a way for you to legally purchase it for your organization or business. o "Windows Virtual PC" is available for free in any end-user computer that is running "Windows 7 Professional" (or higher). It has no usage restrictions: You can use it for your organization or business. 41

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

o "Microsoft Virtual PC 2007" is available for free in "Windows XP Pro" (or higher) or "Windows Vista..". It has no usage restrictions: You can use it for your organization or business.

42

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

o See http://en.wikipedia.org/wiki/Windows_Vi rtual_PC

43

44

45

46

47

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

In a business or any type of organization (where "Oracle VM VirtualBox" and "VMware Player" cannot legally be used for free), "Hyper-V" will have a compelling advantage in cost (since it is "bundled in with "Windows 8 Pro and Enterprise") relative to non-free virtual machine programs such as "VMware Workstation". 48

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

On May 14, 2012, Paul Thurott stated that the cost of upgrading from the "Windows 8" edition of "Windows 8" to the "Windows 8 Pro" edition of "Windows 8" will be about $15. See http://www.winsupersite.com/blog/sup ersite-blog-39/windows8/windows-8pro-pc-upgrade-cost-15-143077
49

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

See http://webhostinggeeks.com/blog/thefuture-of-vmware-questioned/ for more discussion on how the almostfree pricing of "Hyper-V" makes it a viable product.

50

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

"Project 1" for private, in-home use: In order to select the "virtual machine program" that is best for private, in-home use, you should compare the capabilities of the Windows 8 Pro's bundled "Hyper-V" program to it's free alternatives which are o "VMware Player o "Oracle VM VirtualBox o "Windows Virtual PC" o "Microsoft Virtual PC 2007" 51

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

o "Hyper-V" can be activated at no charge in "Windows 8 Release Preview" (and "Hyper-V" will be available in the future "Windows 8 Pro 64-bit" and "Windows 8 Enterprise 64-bit) o "VMware Player is free for private use in "Windows XP" and higher, including "Windows 8". However, it cannot be legally used by a business or any other organization.
52

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS)

o "Oracle VM VirtualBox is free for private use in "Windows XP" and higher including "Windows 8.." o "Windows Virtual PC" is free with "Windows 7 Home Premium" and higher. "Windows Virtual PC" will not install into a "Windows 8.." computer. 53

PROJECT 1 DETAILS

o "Microsoft Virtual PC 2007" is free for Windows Vista Business, Windows Vista Business 64-bit edition, Windows Vista Enterprise, Windows Vista Enterprise 64bit edition, Windows Vista Ultimate, Windows Vista Ultimate 64-bit edition, Windows XP Professional Edition, Windows XP Professional x64 Edition , Windows XP Tablet PC Edition "Microsoft Virtual PC 2007" will not install into a "Windows 7" or "Windows 8.." 54 computer.

(COMPARE "HYPER-V" TO OTHERS..)

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

"Hyper-V" is available for free inside the 64-bit version of "Windows 8 Release Preview" (May 31, 2012). "Hyper-V" is also available for free inside the 64-bit versions of "Windows 8 Developer Preview" (Sept. 13, 2011) and "Windows 8 Consumer Preview" (Feb. 29, 2012).
55

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

In the near future, "Hyper-V" will be bundled into the production 64-bit edition of the "Windows 8 Pro" and the production 64-bit edition of "Windows 8 Enterprise" versions of "Windows 8".
56

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

In the near future, "Client Hyper-V" will NOT be available inside the regular "Windows 8" version of "Windows 8".
57

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

Microsoft's preliminary documentation on "Client Hyper-V" is located at http://technet.microsoft.com/enus/library/hh857623.aspx and http://social.technet.microsoft.com/wik i/contents/articles/7704.client-hyper-vsurvival-guide.aspx
58

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

Inside "Windows 8..", "Client Hyper-V" is called "Hyper-V". However, in Microsoft's Web sites and blogs, "Hyper-V" is called "Client Hyper-V" and it is occasionally called "Hyper-V version 3". The "V" stands for "Varidian" which is a shade of blue-green. We do not care what they call it!
59

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

Hardware requirements for "Hyper-V" 4GB RAM is required (in the host computer) Hyper-V requires a 64-bit processor that has Second Level Address Translation (SLAT). For information on checking and changing the virtualization support settings in your system's BIOS, consult your system manufacturer. See also: http://social.technet.microsoft.com/wiki/c ontents/articles/3190.aspx 60

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

Hardware requirements for "Hyper-V" To determine if your 64-but CPU supports SLAT, see http://www.edtittel.com/win7view/beprepared-for-windows-8-hyper-vgotcha.html

61

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

Hardware requirements for "Hyper-V" A comprehensive list of the features of "Hyper-V" can be found at http://www.aidanfinn.com/?p=11979

62

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

Hardware requirements for "Hyper-V" (continued) "Hyper-V" is not available in the 32bit version of "Windows 8..". In other words, "Hyper-V" requires a 64-bit version of "Windows 8.." which requires a 64-bit processor.
63

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

Hardware requirements for "Hyper-V" (continued) Apparently, "Hyper-V" requires 4 Gigabytes of RAM while "VMware Player 4" and "Oracle VM VirtualBox 4" only require 2 Gigabytes of RAM.

64

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

Hyper-V has limited USB support by means of "USB passthrough" from a "RDP" remote connection. RDP stands for Remote Desktop Protocol which is Microsofts scheme for letting one Windows computer access the Desktop of another.
65

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

"VMware Player 4" has excellent USB 2 support: You can connect USB devices such as flash drives and USB wireless adapters "on the fly" while a virtual machine is running.

66

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

"Oracle VM VirtualBox" has problematic USB 2 support (but no USB 3 support"). It sort of works if you fight with it!

67

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

"USB passthrough" from a "RDP" remote connection: You cannot connect a USB device directly to a Hyper-V virtual machine. You can pass through USB external hard drives, USB flash drives, and any USB/IDE/SCSI/NAS/SATA/eSATAconnected device that acts like a hard drive in "Windows Explorer" by means 68 of a RDP connection.

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..) Hyper-V does not allow USB, PCI, or PCIe wireless network adapters to be connected to virtual machines
"VMware Player 4" has excellent support for USB 2 wireless network adapters but no support for PCI or PCIe wireless network adapters "Oracle VM VirtualBox" has problematic support for USB 2 wireless network adapters but no support for PCI or PCIe wireless 69 network adapters

PROJECT 1 DETAILS
(COMPARE "HYPER-V" TO OTHERS..)

Hyper-V virtual machines cannot be installed in a computer that has a 32-bit processor (Your computer must have a 64-bit processor.) "VMware Player 4" virtual machines can reside in a computer that has a 32-bit processor "Oracle VM VirtualBox" virtual machines can reside in a computer that has a 32-bit 70 processor

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS..)

"Hyper-V" cannot be installed into any "Windows 8.." computer where either "VMware Player" or "VMware Workstation" is already installed.
71

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

To install both "Hyper-V" and "VMware Workstation" OR "VMware Player" into the same computer, you have to play tricks with the "Windows Boot Manager" as shown in http://blogs.msdn.com/b/virtual_pc_guy/ar chive/2008/04/14/creating-a-nohypervisor-boot-entry.aspx and http://graegert.com/general/hyper-v73 vmware-only-one-at-a-time

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)
and http://terrytlslau.tls1.cc/2011/03/using-bcdedit-set-upboot-menu-for.html

74

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

You can install and run "Hyper-V" and "Oracle VM VirtualBox" into the same "Windows 8.." computer. However, if you have both "Hyper-V" and "Oracle VM VirtualBox" installed, virtual machines that are running in "Oracle VM VirtualBox" will run extremely slowly.
75

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

When both "Hyper-V" and "Oracle VM


VirtualBox" are installed into the same computer: virtual machines running in "Oracle.." will get an incorrectly emulated virtual processor which is a lot less capable than the actual processor in the real host computer. For example, a 64-bit Intel processor will often be emulated as a 32-bit one. You can take advantage of this to slow down old DOS and Windows 76 3.1 games.

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

When both "Hyper-V" and "Oracle VM VirtualBox" are installed into the same computer: You will be unable to run "Windows 8" or "GNU/Linux" guest operating systems inside virtual machines inside "Oracle VM VirtualBox" running in a "Windows 8.." host. 77

When "Windows 7 Enterprise Trial 32-bit" was installed into a virtual machine running in "Oracle VM VirtualBox" in a "Windows 8.." host, we were unable to increase the swap file to greater than 4095 Megabytes until we forced on "Physical Address Extension" ("PAE"). The procedure for doing this is located in Pages 114 through 150 of "Speeding Up Windows 7" which is located at http://aztcs.org/meeting_notes/winhardsig 81 /speedupWindows/win7speedup.pdf

PROJECT 1 DETAILS (continued) (COMPARE "HYPER-V TO OTHERS)

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Because Hyper-V is part of the Windows 8.. operating system, it has speed advantages over its competition: virtual machines in Hyper-V will start up faster and run faster compared to virtual machines in VMware Player (free), "VMware Workstation", and Oracle VM VirtualBox (free). 82

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

SiSoftware Sandra 2012 Lite (version 2012-05-18.40) benchmarks for virtual machines running "Windows 7 Enterprise Trial 64-bit" with "Service Pack 1", 5.5 Gigabytes of assigned RAM, 4 (out of 8) virtual cores of a virtual i7-920 Intel processor, a 750 Gigabyte virtual IDE hard drive, Microsoft Security Essentials, and Adobe Acrobat Reader 10, 83 :

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

o 4.76 kPT--Hyper-V virtual machine (in a Windows 8 RC 64-bit host) o 4.28 kPT--Oracle VM Virtualbox 4.1 virtual machine (in a Windows 7 64-bit host) o 4.11 kPT--VMware Workstation 8 virtual machine (in a Windows 7 64-bit host) o 3.76 kPT--VMware Player 4.0 virtual machine (in a Windows 7 64-bit host)
84

85

86

87

88

89

90

91

92

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

See http://soerennielsen.wordpress.com/ 2011/07/07/vmware-or-hyper-v-forvirtualization/

93

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Due to the overhead of virtualizing hardware, virtual machines always run slower than the real host computer that they reside on.

94

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

o o o o

4.76 kPT-- Hyper-V vm 4.28 kPT-- Win 7 VM Virtualbox 4.1 vm 4.11 kPT--VMware Workstation 8 vm 3.76 kPT--VMware Player 4.0 vm

o 6.45 kPT--Windows 7 Real Physical (Host) Computer o 6.48 kPT--Windows 8 Real Physical (Host) Computer
95

96

97

98

99

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

You can compensate for some of the slowdowns that are inherent in virtual machines by performing various speedup tweaks on both your host computer and the virtual machines that reside in it. See:
100

PROJECT 1 DETAILS (continued)

"Speeding Up Windows Vista": PowerPoint .PPT format Adobe .PDF format ----------------------------------------------- "Speeding Up Windows 7": PowerPoint .PPT format Adobe .PDF format ----------------------------------------------- "Speeding Up Windows XP": PowerPoint .PPT format 101 Adobe .PDF format

(COMPARE "HYPER-V TO OTHERS)

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Many "Windows.." and "GNU/Linux" distros running in Hyper-V virtual machines can gain extra speed by using Microsoft's "Enlightened I/O" through the virtual "VMBus". See http://en.wikipedia.org/wiki/Hyper-V Use the "Network Adapter" test to determine if the "VMBus" is in use.
102

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

See http://en.wikipedia.org/wiki/Hyper-V and http://www.virtuatopia.com/index.php /An_Overview_of_the_HyperV_Architecture and http://msdn.microsoft.com/enus/library/cc768520(v=bts.10).aspx


103

104

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

For "Windows.." virtual machines, the ability to communicate with the VMBus has to be built into the kernel of "Windows.." (which is true for "Windows XP", "Windows Vista", "Windows 7", and "Windows 8") For distros of the "GNU/Linux" operating system, the ability to communicate with VMBus is either built in by the developer or you can add it in yourself.
105

Reference: http://en.wikipedia.org/wiki/Hyper-V

106

References: http://blogs.technet.com/b/iftekhar/archive /2009/04/15/virtualizing-linux-onmicrosoft-hyper-v.aspx and http://rmicteched.files.wordpress.com/200 8/06/hyper-v.ppt and

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Some comparisons between "HyperV" and other virtual machine programs can be found at http://social.technet.microsoft.com/F orums/enUS/w8itprovirt/thread/9e29761519e1-4134-8450-c0bdf5adddc7

109

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

A very extensive comparison between "Hyper-V" and "VMware.." can be found at http://www.zdnet.com/debate/hyperv-or-vmware/6348000

110

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Some special considerations for Windows Virtual PC and Microsoft Virtual PC 2007 (continued): Windows Virtual PC and Microsoft Virtual PC 2007" will not allow "Windows 8 Release Preview" to be installed inside a virtual machine. 111

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Some special considerations for Windows Virtual PC and Microsoft Virtual PC 2007 (continued): Windows Virtual PC and Microsoft Virtual PC 2007" will not install into a host computer that is running "Windows 8 Release Preview" 112

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Some special considerations for VMware Player: It is much easier and faster to clone a virtual machine in VMware Player, compared to "Hyper-V" and Oracle VM VirtualBox.
113

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Some special considerations for VMware Player (continued): -To clone a virtual machine in VMware Player, you just use a file manager such as Windows Explorer to copy the entire virtual machine folder.
114

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Some special considerations for VMware Player (continued): -To clone a virtual machine in other virtual machine programs, you have to follow a longer and more involved procedure.
115

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Some special considerations for Oracle VM VirtualBox -In addition to its own .VDI virtual hard drive format, Oracle VM VirtualBox can use .VMDK virtual hard drives that were created by VMware Player and .VHD virtual hard drives that were created by Windows Virtual PC and "Hyper116 V".

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Some special considerations for Oracle VM VirtualBox (continued)


-The degree to which an Oracle VM VirtualBox virtual machine can use a .VMDK or a .VHD file depends on the specific operating system that is being installed into the virtual machine. Sometimes you can boot up from the .VMDK or .VHD file and sometimes you can only use the .VMDK or .VHD file as a data drive.
117

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Some special considerations for Oracle VM VirtualBox (continued)


A .VHDX virtual hard disk file (that was created by "Hyper-V" in "Windows 8.." cannot be opened or attached to an Oracle VM VirtualBox virtual machine

118

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

"Hyper-V" has virtual IDE and SCSI hard drive adapters--no virtual SATA network adapters are available. In a "Hyper-V" virtual machine, the bootable "virtual hard drive" of a virtual machine has to be attached to a virtual IDE adapter. 119

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

"Hyper-V" lets you make virtual hard drives that are up to 60 Terabytes in size. Other "virtual machine programs" only let you make much smaller virtual hard drives: For example "VMWare Player 4" and "Oracle VM VirtualBox 4" allow you to create virtual hard drives that are 2 Gigabytes (2040.0 Megabytes) in size.
120

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Some special considerations for Oracle VM VirtualBox(continued) Oracle VM VirtualBox provides you with more options for the type of virtual hard drive controller (that is used to connect to the virtual hard drive of a virtual machine).
121

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Some special considerations for Oracle VM VirtualBox(continued) Oracle VM VirtualBox provides you with virtual IDE, SCSI, SATA and SAS hard drive controllers. VMware Player only provides virtual machines with IDE and SATA virtual hard drive controllers.
122

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

Some special considerations for Oracle VM VirtualBox(continued)


Windows Virtual PC and Microsoft Virtual PC 2007 do not give you any virtual hard drive controller options when you are setting up a virtual machine: You get a virtual Intel IDE Controller.
123

PROJECT 1 DETAILS (continued)

Some special considerations for Oracle VM VirtualBox (continued) In ..VirtualBox, if your host computer has a 64-bit CPU chip with Intel VT-# support or AMD-V support, even if you are running a 32-bit host operating system, you can create (slow) virtual machines with 64-bit operating systems. 124

(COMPARE "HYPER-V TO OTHERS)

PROJECT 1 DETAILS (continued)


(COMPARE "HYPER-V TO OTHERS)

"Hyper-V" in "Windows 8" has less reliable Linux support for running Linux in virtual machines relative to "VMware Player" and "Oracle VM VirtualBox".

125

PROJECT 2 DETAILS
(INSTALL "HYPER-V"..)

For instructions on how to install "Hyper-V" into a Windows 8.. host computer, see http://www.howtogeek.com/76532/ho w-to-install-or-enable-hyper-vvirtualization-in-windows-8/
126

PROJECT 2 DETAILS
(INSTALL "HYPER-V"..)

"Hyper-V" is a legacy Desktop applet that is part of "Windows 8 Pro" and "Windows 8 Enterprise" that runs as a "snap-in" in "Microsoft Management Console" ("MMC").

127

PROJECT 2 DETAILS (continued)


(INSTALL "HYPER-V"..)

"Hyper-V" is a legacy Desktop application, not a Metro Style App!

128

PROJECT 2 DETAILS (continued)


(INSTALL "HYPER -V"..)

Microsoft's official documentation for "Hyper-V" is located at http://technet.microsoft.com/enus/library/hh857623.aspx and http://social.technet.microsoft.com/wiki/co ntents/articles/7704.client-hyper-vsurvival-guide.aspx
129

PROJECT 2A DETAILS
(CREATE A VIRTUAL "EXTERNAL NETWORK SWITCH" USING THE HYPER-V PROGRAM)

Unlike other virtual machine programs, "Hyper-V" does not provide you with a virtual network for the virtual machines that you create, so you have to create one prior to creating any virtual machines.
130

PROJECT 2A DETAILS
(CREATE .. "EXTERNAL NETWORK SWITCH"..)

Step 1: Start the Hyper-V program: Double-click on virtmgmt.msc from inside C:\Windows\System32\ or run virtmgmt.msc from any command prompt window or "Run" box 131

132

PROJECT 2A DETAILS
(CREATE .."EXTERNAL NETWORK SWITCH"..)

Step 2: Click on "Virtual Switch Manager" inside the "Action" pane.

133

134

PROJECT 2A DETAILS
(CREATE .."EXTERNAL NETWORK SWITCH"..)

Step 3: Make sure that "External" is highlighted.

135

136

PROJECT 2A DETAILS
(CREATE .."EXTERNAL NETWORK SWITCH"..)

Step 4: Make sure that "New Virtual Network Switch" is highlighted.

137

138

PROJECT 2A DETAILS
(CREATE .."EXTERNAL NETWORK SWITCH"..)

Step 5: Click on the "Create Virtual Switch" button.

139

140

PROJECT 2A DETAILS
(CREATE .."EXTERNAL NETWORK SWITCH"..)

Step 6: Change the "Name" from "New Virtual Switch" to an appropriate name. We recommend "External Virtual Switch 01".

141

142

PROJECT 2A DETAILS
(CREATE .."EXTERNAL NETWORK SWITCH"..)

Step 7: Click on the "Apply" button.

143

144

145

PROJECT 3 DETAILS
(CREATE VIRTUAL MACHINES) Project 3 Method 1: Use the installation media provided by the maker of the operating system. Project 3 Method 2: Clone an existing virtual machine so that it runs in the same virtual machine program. Project 3 Method 3: Clone an existing virtual machine so that it runs in a different virtual machine program (= V2V ) 147

PROJECT 3 (CREATE VIRTUAL MACHINES)


Method 1: Use Installation Media (or an .ISO file)

"Hyper-V" Program

148

PROJECT 3 (CREATE VIRTUAL MACHINES)


Method 2: Clone an Existing Virtual Machine So That it Runs in the Same Virtual Machine Program

"Hyper-V" Program

149

PROJECT 3 (CREATE VIRTUAL MACHINES)


Method 3: Clone a Virtual Machine So That It Runs in a Different Virtual Machine Program (V2V)

Oracle VM VirtualBox

VMware Player

"Hyper-V" Program

150

PROJECT 3 DETAILS
(CREATE VIRTUAL MACHINES)

Method 1 Details: Use the installation media (floppy disks, CDs, DVDs, or .ISO files) provided by the maker of the operating system.
151

PROJECT 3 DETAILS (CREATE VIRTUAL MACHINES) Method 1 Details: If you are creating a virtual machine which will run "Windows XP", "Windows 7", or "Windows 8" as a guest OS, create a "Legacy Network Adapter" for the virtual machine prior to starting the virtual machine to install the guest OS. Then add a regular VMBus-based "Network Adapter" after the operating system is installed. Then remove the "Legacy Network Adapter". Then reboot the virtual machine to force a "plug and play" synch up with the VMBus-based 152 "Network Adapter.

PROJECT 3 DETAILS (CREATE VIRTUAL MACHINES) Method 1 Details: If you are creating a virtual machine which will run "Windows Vista" as a guest OS, create a "Legacy Network Adapter" for the virtual machine prior to starting the virtual machine to install the guest OS. Then add a regular VMBus-based "Network Adapter" after the operating system is installed. Then perform the workaround described at http://support.microsoft.com/kb/954282
153

PROJECT 3 DETAILS (CREATE VIRTUAL MACHINES) Method 1 Details: (If you are creating a virtual machine which will run "Windows Vista"..(continued)) Then remove the "Legacy Network Adapter". Then reboot the virtual machine to force a "plug and play" sync up with the VMBus-based "Network Adapter".

154

PROJECT 3 DETAILS
(CREATE VIRTUAL MACHINES)

Method 1 Details: If you are creating a virtual machine which will run "Ubuntu" or a "Ubuntu" derivative, create a (regular) "Network Adapter" for the virtual machine prior to starting the virtual machine. (This is because "Ubuntu" has VMBus drivers for the "Network 155 Adapter" already in it.)

PROJECT 3 DETAILS Method 1 Details: If you are creating a virtual machine which will run non-"Ubuntu" or non"Ubuntu" derivative distros of GNU/Linux, create a legacy "Network Adapter" for the virtual machine prior to starting the virtual machine. After the operating system is installed, you can attempt to download and install drivers for a (regular) "Network 156 Adapter".
(CREATE VIRTUAL MACHINES)

PROJECT 3 DETAILS
(CREATE VIRTUAL MACHINES)

Method 1 Details: For advice on installing "Ubuntu 11.10" into a virtual machine in "Hyper-V" in "Windows 8..", see http://www.eightforums.com/tutorials /5078-hyper-v-create-linux-virtualmachine-windows-8-a.html
157

PROJECT 3 DETAILS
(CREATE VIRTUAL MACHINES)

Method 2 Details: Clone an existing Hyper-V virtual machine (so that the cloned virtual machine also runs inside the HyperV virtual machine program).

158

PROJECT 3 DETAILS (CREATE VIRTUAL MACHINES) Method 2: Clone Virtual Machines (continued)

Two alternative procedures for cloning a virtual machine in Hyper-V": Cloning Procedure 1: Use the "Export" and "Import" functions of "Hyper-V" Cloning Procedure 2: Copy the .VHDX or .VHD virtual hard drive and then run the "New" "Virtual Machine" function of "Hyper-V".
159

PROJECT 3 DETAILS (CREATE VIRTUAL MACHINES) Method 2: Clone Virtual Machines (continued)

"Cloning Procedure 1"--To clone a virtual machine by using the "Export" and "Import" features of "Hyper-V": Step 1: Use the "Export" feature of HyperV to create a backup "image" of a virtual machine Step 2: Use the "Import" feature of HyperV to create a new virtual machine from the backup image that was created in "Step 160 1".

PROJECT 3 DETAILS (CREATE VIRTUAL MACHINES) Method 2: Clone Virtual Machines (continued)

"Cloning Procedure 2"--To clone a virtual machine by copying the .VHDX or .VHD virtual hard disk file: Use "Windows Explorer" to make a copy of the .vhd or .vhdx virtual hard drive file. From the Menu bar of "Hyper-V", click on "Action", "New", and "Virtual Machine". Specify the copy of the virtual hard drive file when you arrive at the "Connect Virtual 161 Hard Disk" dialog box.

PROJECT 3 DETAILS
(CREATE VIRTUAL MACHINES)

Method 3 Details: "Method 3" consists of using an existing virtual machine to create a new virtual machine that runs on a different virtual machine program (= V2V which stands for Virtual to Virtual)
162

PROJECT 3 DETAILS
(CREATE VIRTUAL MACHINES)

Method 3 Details (continued): You can use Microsoft's free Disk2VHD program to use a Oracle VM VirtualBox virtual machine to create a new virtual machine for "Hyper-V". See http://www.aztcs.org/meeting_notes/winha rdsig/virtualmachines/v2v/Disk2VHD-v2vVBoxtoVHD.pdf
163

PROJECT 3 DETAILS
(CREATE VIRTUAL MACHINES)

Method 3 Details (continued): You can use the free "VMDK(VMWare) to VHD Converter" to convert a VMware virtual machine to a new virtual machine for Hyper-V. See http://community.spiceworks.com/ho w_to/show/635
164

PROJECT 3 DETAILS
(CREATE VIRTUAL MACHINES)

ADD-ON SOFTWARE TO INSTALL INTO EACH VIRTUAL MACHINE:


After you create a virtual machine using any of the three methods, you should start the virtual machine and install addon software that is provided by the maker of the virtual machine program.
165

PROJECT 3 DETAILS
(CREATE VIRTUAL MACHINES) For "Windows.." virtual machines running in "Hyper-V", you can install the "Integration Services" Add-on to enable enhanced functions such as better mouse control, a driver for the non-legacy network adapter, AND faster communications between the virtual machine and the host operating system: Start up the guest operating system of the virtual machine Click on "Action"; then click on "Insert Integration Services Setup Disc".
166

PROJECT 3 DETAILS
(CREATE VIRTUAL MACHINES)
When you install Hyper-V's "Integration Services" as a software program into a guest operating system, you are adding a "VMBus" module into the virtual machine. See http://www.virtuatopia.com/index.php/Understan ding_and_Installing_HyperV_Integration_Services

167

PROJECT 3 DETAILS
(CREATE VIRTUAL MACHINES)

For "GNU/Linux.." virtual machines running in "Hyper-V", you can install "Integration Services" to make VMBusbased virtual "Network Adapters" work after you download it from http://www.microsoft.com/enus/download/details.aspx?id=28188 or http://www.microsoft.com/enus/download/details.aspx?id=29991 168

PROJECT 3 DETAILS
(CREATE VIRTUAL MACHINES)

For an example of how to install "Integration Services" into a Linux distro, see http://jaredheinrichs.com/how-toinstall-centos-on-hyper-v-withnetworking.html

169

PROJECT 3 DETAILS
(CREATE VIRTUAL MACHINES)

Some distros of Linux already have Microsoft's "Integration Services" incorporated by their developers so you do not need to install "Integration Services" after installing them into a virtual machine: Ubuntu 12.04, Linux Mint 13
170

OPTIONAL PROJECT 4 (P2V=PHYSICAL TO VIRTUAL) Use a Real Computer to Make a Virtual Machine

"Hyper-V" Program

171

OPTIONAL PROJECT 4 DETAILS (continued) (DO "PHYSICAL TO VIRTUAL)

To use a real, physical computer to create a "virtual machine" (P2V) that can be "played" in any "Windows 8.." computer that has "Hyper-V" activated in it, you can use Microsofts Disk2vhd.

172

OPTIONAL PROJECT 4 DETAILS (continued) (DO "PHYSICAL TO VIRTUAL)

Physical to Virtual (P2V) By Microsofts Free Disk2VHD Program The Disk2VHD program can be downloaded from http://technet.microsoft.com/enus/sysinternals/ee656415
173

OPTIONAL PROJECT 4 DETAILS (continued) (DO "PHYSICAL TO VIRTUAL) Physical to Virtual (P2V) By the Microsofts Free Disk2VHD Program

You can install it into any physical computer that has Windows XP Service Pack 2 and higher, Windows Vista, or Windows 7 and use it to create a .VHD virtual hard drive file that can be used to create a virtual machine in Windows Virtual PC, Microsoft Virtual PC 2007, or Oracle VM VirtualBox.
174

OPTIONAL PROJECT 4 DETAILS (continued) (DO "PHYSICAL TO VIRTUAL) Physical to Virtual (P2V) By Microsofts Free Disk2VHD Program (continued)

For detailed instructions for using Disk2VHD to use a Windows XP computer to create a virtual machine that runs in "Hyper-V", see http://www.techrepublic.com/photos/con vert-xp-into-a-windows-7-virtualmachine-with-disk2vhd/466302
175

OPTIONAL PROJECT 4 DETAILS (continued) (DO "PHYSICAL TO VIRTUAL) Physical to Virtual (P2V) By Microsofts Free Disk2VHD Program (continued)

The steps for using Disk2VHD to create a virtual machine from a real computer are almost exactly the same as the (V2V) steps for using an Oracle VM VirtualBox virtual machine to create a Windows Virtual PC or Microsoft Virtual PC 2007 virtual machine.
176

Virtual Hardware

PROJECT 5 DETAILS: USE VIRTUAL MACHINES

Full virtualization means that all major hardware components are virtualized in software by the "virtual machine program".

177

PROJECT 5 DETAILS
USE VIRTUAL MACHINES

Virtual Hardware (continued) A view of itself from inside a Windows 7 virtual machine inside Hyper-V:
178

PROJECT 5 DETAILS: USE VIRTUAL MACHINES

Virtual Hardware (continued):

The manufacturer of this virtual machine computer is shown to be Microsoft Corporation.

179

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Virtual Hardware (continued) The "virtual hardware" in a virtual machine contains a set of standardized hardware that the "virtual machine program" creates for each virtual machine: BIOS, motherboard, drive controllers, network adapter(s), monitor, 180 keyboard, mouse, etc.

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Virtual Hardware (continued) This makes virtual machines easy to transfer from one computer to another as long as we run them in the same virtual machine program.
181

Virtual CPUs (continued) "Hyper-V" provides each virtual machine with a virtual processor that is the same as the actual processor of the physical host computer.

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES

182

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Virtual motherboards Hyper-V provides each virtual machine with a virtual motherboard.

183

184

185

186

187

188

189

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Virtual motherboards All virtual machines get a "Virtual Machine 7.0 motherboard that shows "Microsoft Corporation" as the manufacturer.

190

191

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Virtual BIOS For a "Hyper-V" virtual machine, the only BIOS settings that you can adjust are Num Lock On/Off and Boot Device Order.

192

193

194

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Virtual BIOS For Hyper-V virtual machines, you can only configure the virtual BIOS settings from the "Settings" box:

195

196

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Allocated RAM For a Hyper-V virtual machine, you can assign RAM up to the total amount of free RAM in the host computer.

197

198

199

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

An extensive comparison between various virtual machine programs can be found at http://en.wikipedia.org/wiki/Compari son_of_platform_virtual_machines

200

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Virtual hard drives When you create a virtual machine, you can also create a "virtual hard drive" for it.

201

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES Virtual hard drives (continued) A virtual hard drive file in Hyper-V" in "Windows 8 will have a file extension of .VHDX or .VHD

202

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Virtual hard drives (continued) In a "Windows 8.." computer the default location for virtual hard drives is C:\Users\Public\Documents\ Hyper-V\Virtual hard disks
203

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES Virtual hard drives (continued) See http://www.hyperv.nu/archives/hvredevoort/2012/01/win dows-8-storage-and-hyper-v-part-2vhdx-and-powershell/

204

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Virtual hard drive controllers The type of virtual hard drive that a guest operating system sees depends on which type of virtual hard drive controller you connect to the virtual hard drive. 205

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Mouse cursor control rule #1: When you first click inside a window of a virtual machine, you might be just activating the mouse for that window. Then you usually have to click again to make something happen inside the virtual machine window. 206

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES

Mouse cursor control rule #2: For each virtual machine (window), your mouse cursor will either be in "integration mode" or in "captured"/"in jail" mode.

207

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Mouse cursor control rule #2 (continued): To release the mouse cursor from a virtual machine that is running in "Hyper-V", press Ctrl + Alt + Left arrow once.
208

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Keyboard control: The keyboard of your computer will only work inside a virtual machines window if you have the mouse cursor inside the virtual machine window AND maybe if you have already clicked at least once inside the virtual machine window. 209

Window ownership by which virtual machine?? To determine if a Window belongs to a specific virtual machine, move the Window from side to side and watch the borders of the window.
In Windows 7 do not shake the Window too fast, or all the other Windows might minimize (Aero Shake). 210

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

"Hyper-V" requires you to use its "Virtual Switch Manager" to install a virtual "network switch(s)" that your real host computer and all of your virtual machines have to use for all network communications to the real Internet and to the real Local Area Network (LAN).
211

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

When you use Hyper-V's "Virtual Switch Manager" to install a virtual "network switch", you can make three kinds of "network switches": o Virtual external switch o Virtual internal switch o Virtual private switch
212

213

214

215

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES
When you have Hyper-V running in your Windows 8 computer and you switch from a wired to a wireless network adapter, or vice versa, your existing virtual "External network switch(s)" will fail to switch over to the new, real network adapter and all of your virtual machines will be disconnected from your real network until you manually connect the "External network switch(s)" to the new network adapter from inside the Hyper-V 216 management console.

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Virtual network that you can create for a Hyper-V virtual machine when a real wired network adapter is present in the host computer:
217

Real Host Computer

Real Wired Network Adapter

218

Real Host Computer

Real Wired Network Adapter

219

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

No direct access to the virtual "MAC: A" that connects the host computer ("root partition") to the virtual external switch.
220

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Direct access to the virtual "MAC: B" network adapters from inside the guest operating system of each virtual machine.
221

PROJECT 5 DETAILS (continued)

"Mac: A" virtual network adapter for the host computer (=root partition) only works when the virtual network switch is attached to a wired network adapter that is connected to the real LAN.
222

USE VIRTUAL MACHINES

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES However, when you disconnect the real, wired network adapter from the real network, "Mac: A" virtual network adapter for the host computer (=root partition) fails (and the host is no longer connected to any real or virtual networks) while the "Mac: B" network adapters for the virtual machines continue to work and the virtual machines can "see" each other. 223

Real Host Computer

Real Wired Network Adapter

224

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Both "Mac: A" virtual network adapter (for the host computer) and all "Mac: B" virtual network adapter(s) (for the virtual machine) fail when the virtual external network switch is disconnected from a real WiFi network. 225

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Virtual network that is used by a Hyper-V virtual machine when a real WiFi network adapter is present in the host computer:
226

Real Host Computer

Real Wireless Network Adapter

227

Real Host Computer

Real Wireless Network Adapter

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Both "Mac: A" virtual network adapter (for the host computer) and all "Mac: B" virtual network adapter(s) (for the virtual machine) fail when the virtual external network switch is disconnected from a real WiFi network. 229

Real Host Computer

Real Wireless Network Adapter

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES Reference for previous two diagrams: http://blogs.msdn.com/b/b8/archive/2011 /09/07/bringing-hyper-v-to-windows8.aspx

231

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

When you create a virtual machine, you can create a virtual "Network Adapter" or a virtual "Legacy Network Adapter" for the virtual machine:
232

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES

virtual "Network Adapter" in virtual machine configuration screens o It runs at 10 Gigabits per second o It attaches to the virtual machine's virtual VMBus o = "synthetic network adapter" in Microsoft tech literature o = "Microsoft Hyper-V network adapter" from viewpoint of guest OS o It has no real analog in real physical devices 233

virtual "Legacy Network Adapter" in virtual machine configuration screens


o It runs at 100 Megabits per second o It attaches to virtual machine's emulated/virtual PCI bus o = virtual "Intel 21140 PCI Fast Ethernet adapter" which is a virtual analog of a real wired network adapter that really existed 10 years ago
234

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES

235

236

237

238

239

240

241

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Virtual VMBus-based "Network Adapter" as seen from inside a "Windows 7.." virtual machine:

242

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

If you use your RIGHT mouse button to click on the "Network Adapter":

243

244

245

246

247

248

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Virtual "Legacy Network Adapter" as seen from inside a "Windows 7.." virtual machine:

249

250

251

252

253

254

255

256

257

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Right-click on the "Network Adapter":

258

259

260

261

262

263

264

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES A "Network Adapter" connects to the "VMBus" and it is described as having "Enlightened IO". A "Legacy Network Adapter" connects to the virtual machine by means of an "Emulation Module" that is provided by Hyper-V. The "Emulation Module" fools the guest operating system into "seeing" a real wired network adapter.
265

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES When you give "Windows XP", "Windows Vista", "Windows 7", and "Windows 8" virtual machines a "Network Adapter", you have to install Hyper-V's "Integration Services" program as an application program that runs inside the "Windows.." virtual machine guest.
266

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES To install "Integration Services" into a virtual machine (or to make sure that "Integration Services is already installed into a virtual machine), click on "Action" on the top Menu Bar. Then click on "Insert Integration Services Setup Disk" on the pull-down menu:

267

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES When "Windows XP.." runs in a Hyper-V virtual machine and you install Hyper-V's "Integration Services", it shows up in "Add or Remove Programs" in the "Control Panel":

268

269

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES When "Windows Vista", "Windows 7", or "Windows 8" runs in a Hyper-V virtual machine and you install Hyper-V's "Integration Services", it does not show up in "Programs and Features" in the "Control Panel":

270

271

272

273

When a "distro" of GNU/Linux in a Hyper-V virtual machine is capable of using a "Network Adapter", it means that the software developers of the "distro" have included Microsoft's "Linux Integration Components" source code in their compilation of the Linux kernel, or as drivers in the distro, or the end user of the Linux computer has added the "Linux Integration Components" manually as 274 drivers downloaded from Microsoft.com

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES See http://blogs.technet.com/b/virtualization/ar chive/2008/04/01/linux-integrationcomponents-for-hyper-v-rc-nowavailable.aspx and http://blog.allanglesit.com/2009/05/hyperv-guests-linux-integration-componentsubuntu-and-debian/ and 275

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES and http://blogs.technet.com/b/port25/archive /2009/07/20/more-on-the-hyper-v-linuxintegration-components.aspx and http://www.microsoft.com/enus/download/details.aspx?id=11674 and
276

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES and http://blogs.technet.com/b/virtualization/a rchive/2008/04/01/linux-integrationcomponents-for-hyper-v-rc-nowavailable.aspx and http://social.technet.microsoft.com/Foru ms/en/linuxintegrationservices/thread/c9 019f84-2375-4196-ac8d-4eb7da66d5ea
277

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES "Hyper-V" has no direct USB support. However there are two workarounds: Workaround 1 = File Sharing (conventional fire sharing, file sharing via home group, or a network-to-USB device) and Workaround 2 = USB Passthrough (from a RDP connection from another physical computer) 278

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

USB Workaround 1 = File Sharing: Hyper-V does not provide a USB controller for its virtual machines. However, if you activate file sharing for any folder on an external USB hard drive or any folder on an USB flash drive, you can then access the shared folder from inside a virtual machine:
279

PROJECT 5 DETAILS (continued) USE VIRTUAL MACHINES

Workaround 2 = File Sharing (continued):


o From the host computer, start "Windows Explorer", o Right click on the folder that you wish to share, o Click on "Properties" in the pop-up utility menu, o Click on the "Sharing" tab, o Click on "Advanced Sharing", o Place a check mark in "Share this folder", o Click on "Permissions", o Checkmark "Full Control" for "Everyone", o Click on the "OK" button.
280

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Workaround 2 = USB Passthrough: Hyper-V does not provide a USB controller for its virtual machines. However, if you activate "Remote Desktop Connection" in a virtual machine, you can use a "Remote Desktop Connection" to do a "USB Passthrough" to loan a USB connection or a USB-connected storage device (external hard drive, flash drive, camera chip, etc.) to a virtual machine that is running in "HyperV".
281

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Remote Desktop Workaround for Audio: Hyper-V does not provide a virtual sound controller for its virtual machines. However, if you activate "Remote Desktop Connection" in a virtual machine, you can use a "Remote Desktop Connection" to do a "Sound Passthrough" to loan a sound controller to a virtual machine that is running in "Hyper-V".
282

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

Remote Desktop Workaround for Drives on the Host: If you activate "Remote Desktop Connection" in a virtual machine, you loan a real or virtual drive that is connected to the host computer to a virtual machine running in "Hyper-V". The real or virtual drive can be internal or external and the drive can be connected by means of IDE, SCSI, SAS, RAID, eSATA, or SATA. It can even be a drive that is mapped to a server location.
283

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

When you "loan" a DVD/CD-R/RW drive to a virtual machine, you can access the contents of any DVDs and CDs but you will be unable to write or burn to the DVD or CD media. However, you will be unable to play music CDs and DVD videos that are attached to the host computer.

284

285

286

287

288

289

290

291

292

293

294

295

296

297

298

299

300

301

302

303

304

305

306

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

When you use "Remote Desktop Protocol" to "loan" a sound controller, a drive, or a drive-like device to a virtual machine in Hyper-V, the "loaned" device shows up in the "Other" section of "Windows Explorer" inside the virtual machine. Your application programs will be unable to access the shared drives and drive-like devices directly so you will have to copy them to the virtual hard drive(s) of the virtual machine using "Windows Explorer" inside the virtual 307 machine.

PROJECT 5 DETAILS (continued)


USE VIRTUAL MACHINES

You cannot make more than one "Remote Desktop Protocol" connection into a virtual machine at the same time. If you make a "Remote Desktop Protocol" connection to a virtual machine, the local user of the virtual machine will be automatically logged off. If you then log into the virtual machine locally, the "Remote Desktop Protocol" connect will be terminated.
308

Using a RDP remote connection to "loan" a USB connection, a hard drive, a drive-like device, or sound controller to a Hyper-V virtual machine ("RDP" = "Remote Desktop Protocol")

Upstream network switch/router

Real Physical Computer running "Windows 8.."


"Hyper-V" Virtual Machine Program

Hyper-V's External Virtual Network Switch

Remote Desktop Connection


Remote Desktop Connection applet in the host computer, or a workgroup computer or a virtual machine "Windows.." Virtual Machine

PROJECT 5 DETAILS (continued) Using virtual machines for secure Web browsing, see
http://www.suite101.com/content/use-virtualization-to-improvedesktop-security-a73715 and http://www.mobileandsecure.co.uk/articles/safe-surfing-virtualpc.html and http://superuser.com/questions/48939/virtual-machine-and-virus and http://www.trustware.com/index.php?mact=News,cntnt01,detail, 0&cntnt01articleid=85&cntnt01origid=15&cntnt01detailtemplate =press_detail_with_image&cntnt01returnid=56 314

USE VIRTUAL MACHINES

APPENDIX 3 LEGAL ISSUES OF USING VIRTUAL MACHINES If you are recommending, planning, or installing virtual machine software for your business, school, or other nonprofit organization, please read the End User License Agreements for all virtual machine programs and guest operating system software, to determine what is legal. 315

APPENDIX 3 (continued) LEGAL ISSUES OF USING VIRTUAL MACHINES

See http://aztcs.org/meeting_notes/win hardsig/virtualmachines/legal.pdf

316

APPENDIX 4
TROUBLESHOOTING VIRTUAL MACHINES IN "HYPER-V"

See http://eniackb.blogspot.com/2009/05/ how-to-recover-hyper-v-virtualmachine.html

317

APPENDIX 4 (continued)
TROUBLESHOOTING VIRTUAL MACHINES IN "HYPER-V" (continued)

When you do not have enough available RAM, and you attempt to start up a virtual machine, you get this error message:

318

319

320

APPENDIX 4A
RESETTING A FAILED NETWORK IN A HOST COMPUTER THAT IS RUNNING "HYPER-V"

Step 1: Hover the mouse cursor over the lowerleft corner of the Metro or "Desktop" display Step 2: When a thumbnail appears in the lowerleft corner of the display, use the RIGHT mouse button to perform a single click.
321

APPENDIX 4A (continued)
RESETTING A FAILED NETWORK.. (continued)

Step 3: A "Power Users Menu" will pop-up.

322

APPENDIX 4A (continued)
RESETTING A FAILED NETWORK.. (continued)

Step 4: When a thumbnail appears in the lowerleft corner of the display, use the RIGHT mouse button to perform a single click.

323

APPENDIX 4A (continued)
RESETTING A FAILED NETWORK.. (continued)

Step 5: Click on "Control Panel" in the "Power Users Menu".

324

APPENDIX 4A (continued)
RESETTING A FAILED NETWORK.. (continued)

Step 6: A "Control Panel" windows will be displayed.

325

APPENDIX 4A (continued)
RESETTING A FAILED NETWORK.. (continued)

Step 7: Click on "Control Panel" in the "Power Users Menu".

326

APPENDIX 4A (continued)
RESETTING A FAILED NETWORK.. (continued)

Step 7: Double-click on "Network and Sharing Center".

327

APPENDIX 4A (continued)
RESETTING A FAILED NETWORK.. (continued)

Step 8: Click on "Change adapter settings".

328

APPENDIX 4A (continued)
RESETTING A FAILED NETWORK.. (continued)

Step 9: For each and every object inside the "Network Connections" window: use the RIGHT mouse button to click on the object; a pop-up context menu will be displayed; click on "Disable"; use the RIGHT mouse button to click on the object again; a pop-up context menu will be displayed; 329 click on "Enable"

APPENDIX 7
NESTING VIRTUAL MACHINES

"Hyper-V" in "Windows 8.." does not allow the nesting of virtual machines

330

APPENDIX 8 FREE SOFTWARE TRIALS FROM MICROSOFT

You can download and use software trials from Microsoft. They provide time-limited trial copies of their operating systems and their application software programs for you to use.
331

FREE SOFTWARE TRIALS FROM MICROSOFT (continued)

Windows 7 Enterprise Trial at http://technet.microsoft.com/enus/evalcenter/cc442495.aspx?ITPI D=wtcpgs downloads as an .ISO DVD image file that can be installed into any real computer or virtual machine program. 332

FREE SOFTWARE TRIALS FROM MICROSOFT (continued)

Our general instructions for downloading and installing Windows 7 Enterprise Trial are located at http://aztcs.org/meeting_notes/win hardsig/win7eval/win7eval.pdf
333

FREE SOFTWARE TRIALS FROM MICROSOFT (continued)

Our specialized instructions for installing Windows 7 Enterprise Trial into a VMware Player virtual machine are located at http://aztcs.org/meeting_notes/winh ardsig/win7intovmware/win7intovm ware.pdf
334

FREE SOFTWARE TRIALS FROM MICROSOFT (continued)

Our specialized instructions for installing Windows 7 Enterprise Trial into a Oracle VM Virtualbox virtual machine are located at http://aztcs.org/meeting_notes/winh ardsig/win7intovirtualbox/win7intovi rtualbox.pdf
335

FREE SOFTWARE TRIALS FROM MICROSOFT (continued)

Microsoft Office 2010 trial at http://www2.buyoffice.microsoft.co m/usa/?torb=4&WT.mc_id=ODC_ ENUS_GenTry_Control downloads as an .exe file that can be installed into any real computer or virtual machine program.
336

FREE SOFTWARE TRIALS FROM MICROSOFT (continued)

Internet Explorer Application Compatibility VHD Images at http://www.microsoft.com/downloads/ en/details.aspx?FamilyID=21eabb90 -958f-4b64-b5f1-73d0a413c8ef that can be used to create virtual machines in Windows Virtual PC, Microsoft Virtual PC 2007, or Oracle VM VirtualBox. 337

FREE SOFTWARE TRIALS FROM MICROSOFT (continued)

When any.VHD file is used to create a virtual machine in Oracle VM VirtualBox, you have to connect it to a virtual IDE hard drive controller (instead of the virtual SCSI hard drive controller that is provided by default by Oracle VM VirtualBox). See http://www.sysprobs.com/virtualboxp2v-disk2vhd-errors-fix 338

APPENDIX 9 SPEEDING UP A WINDOWS COMPUTER


When you run one or more virtual machine programs, you will be using more RAM and CPU cycles than when you run a single host computer by itself. There is a big payoff in terms of computer performance if you tweak Windows host computers and virtual machines for optimum performance when you run virtual machines. If you run any version of Windows in a host computer or in a virtual machine, you can speed up Windows by following our detailed directions. 339

APPENDIX 9 (continued)
SPEEDING UP A WINDOWS COMPUTER

To speed up a Windows 7 computer, follow our instructions at http://aztcs.org/meeting_notes/winhar dsig/speedupWindows/win7speedup. pdf


340

APPENDIX 9 (continued)
SPEEDING UP A WINDOWS COMPUTER

To speed up a Windows Vista computer, follow our instructions at http://aztcs.org/meeting_notes/winhar dsig/speedupWindows/vistaspeedup. pdf
341

APPENDIX 9 (continued)
SPEEDING UP A WINDOWS COMPUTER

To speed up a Windows XP computer, follow our instructions at http://aztcs.org/meeting_notes/winh ardsig/speedupWindows/xp_speed up.pdf


342

APPENDIX 11
WORKAROUND FOR LACK OF FIREWIRE SUPPORT BY VIRTUAL MACHINES

None of the free virtual machine programs have support for firewire devices. The workaround is to use the Shared Folders virtual network in "VMware Player" or "Oracle VM VirtualBox" or the "Network Switch" in "Windows 8.. to attach a virtual machine to a hostconnected firewire device.
343

APPENDIX 11
WORKAROUND FOR LACK OF FIREWIRE SUPPORT.. (continued)

See http://aztcs.org/meeting_notes/winhardsi g/virtualmachines/FirewireDevices/Firewi reDevices.pdf

344

APPENDIX 13 .VHD COMPLEXITIES When you use Windows.. installation media to create a new virtual machine in Windows Virtual PC, you will create a new .VHD virtual disk file.

345

APPENDIX 13 .VHD COMPLEXITIES When you use Windows.. installation media to create a new virtual machine in Microsoft Virtual PC 2007, you will create a new .VHD virtual disk file.

346

APPENDIX 13 .VHD COMPLEXITIES (continued) A .VHD file that has been created by Windows Virtual PC or Microsoft Virtual PC 2007 when you create a virtual machine using installation media or that has been created by Windows XP Mode cannot be used to create a virtual machine in Oracle VM VirtualBox.
347

APPENDIX 13 .VHD COMPLEXITIES (continued) A .VHD file that has been created by running the Disk2VHD program (to convert a real computer (P2V) or virtual machine (V2V)) can be used to create a virtual machine in Windows Virtual PC, Microsoft Virtual PC 2007, or Oracle VM VirtualBox BUT WITH TWO EXCEPTIONS: 348

APPENDIX 13 .VHD COMPLEXITIES (continued) A .VHD file that you download from Microsoft as a time-limited software trial can be used to create a virtual machine in Windows Virtual PC, Microsoft Virtual PC 2007, or Oracle VM VirtualBox BUT WITH TWO EXCEPTIONS:
349

Exception 1: You cannot run a 64-bit operating system in Windows Virtual PC or Microsoft Virtual PC 2007. This means that a .VHD virtual hard disk file that was created by Disk2VHD from a 64-bit version of Windows can only be installed into Oracle VM VirtualBox, into a server version of "Windows..", or "Hyper-V" running in "Windows 8..". 350

APPENDIX 13 .VHD COMPLEXITIES (continued)

Exception 2: When any.VHD file is used to create a virtual machine in Oracle VM VirtualBox, you have to connect it to a virtual IDE hard drive controller (instead of the virtual SCSI hard drive controller that is provided by default by Oracle VM VirtualBox). See http://www.sysprobs.com/virtualbox-p2v351 disk2vhd-errors-fix

APPENDIX 13 .VHD COMPLEXITIES (continued)

APPENDIX 14 UNABLE TO RUN SOME DISTROS OF LINUX INSIDE HYPER-V

We have been unable to run some distros of Linux inside Hyper-V in the Windows 8 Release Preview:
352

353

354

APPENDIX 15 MULTIPLE MONITORS IN "WINDOWS 8"

See http://www.itproportal.com/ 2012/07/17/how-to-utilisemultiple-displays-inwindows-8/


355

356

357

358

359

You might also like