38
VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC 2007" Summary: "Microsoft Virtual PC 2007" provides four virtual networking configurations for the virtual machines of a "Windows 7" host computer: 1. a "Shared Folders" gateway/router 2. a "Shared Networking (NAT)" router with "Network Address Translation" 3. a "Bridged" bridge (with no internal LAN switching) and 4. a "Local Only" LAN switch

VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

  • Upload
    others

  • View
    27

  • Download
    0

Embed Size (px)

Citation preview

Page 1: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

VIRTUAL NETWORKING

WITH "MICROSOFT VIRTUAL PC 2007"

Summary: "Microsoft Virtual PC 2007" provides four virtual networking configurations for the virtual machines of a "Windows 7" host computer: 1. a "Shared Folders" gateway/router

2. a "Shared Networking (NAT)" router with "Network Address Translation"

3. a "Bridged" bridge (with no internal LAN switching) and

4. a "Local Only" LAN switch

Page 2: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

VIRTUAL NETWORK ADAPTERS

You can provide up to 4 network adapters for each virtual machine: Click on the Windows "Start" button of the host computer. Click on "All Programs". Click on "Microsoft Virtual PC".

*

Page 3: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

* The "Virtual PC Console" window will be displayed:

Click on the desired virtual machine to highlight it:

Click on the "Settings" button.

Page 4: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

Click on "Networking.." in the left pane to highlight it:

Page 5: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

Note (as shown in the right pane) that the virtual machine is allowed to have up to 4 network adapters. Click on the drop down list button at the right-most end of any of active network adapter:

Page 6: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

In this example: The virtual networks that you attach to each network adapter are: "Not connected" ( = No connection) "Local Only" "Shared Networking (NAT)" "Intel(R) PRO/1000 MT Network Connection" The " Intel(R) PRO/1000 MT Network Connection " is the network adapter of the host computer. If you select this option, you will be connecting the virtual adapter of the virtual machine to a virtual "Bridged" bridge that makes the virtual machine act like it is directly attached to the real, physical network. A description of each of the networking configuration options in the above-mentioned drop-down list can be found at http://support.microsoft.com/kb/833134

Page 7: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

The operating system of the virtual machine treats all of the virtual network adapters as if they were real items of hardware: For example, if you start up a "Windows XP Professional" virtual machine, go to the Windows "Control Panel", double-click on "Network Connections": In this example, the virtual machine detects that it is attached to a (virtual) "Intel 21140-Based PCI Fast Ethernet" network adapter:

*

Page 8: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

To change the virtual network configuration for any virtual machine while it is running, click on "Edit" in the menu bar of the virtual machine. Then click on "Settings". Then click :

Then click on "Networking".

Page 9: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

* Click on the drop-down list button to the right of the adapter field in the right-most pane:

Page 10: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

The drop-down list lets you select which virtual network to connect the virtual network adapter to. A description of each of the networking configuration options in the above-mentioned drop-down list can be found at http://technet.microsoft.com/en-us/library/ee449441(WS.10).aspx

Page 11: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

VIEW OF THE VIRTUAL NETWORK FROM THE HOST From a "Windows XP" or "Windows Vista" host, there is no indication that you have a virtual network that is provided by "Microsoft Virtual PC 2007". This can be considered to be one of the integration features of "Microsoft Virtual PC 2007". In comparison, in "VMware Player" and "Oracle VM VirtualBox", the virtual networks are shown as an "Unidentified Network" of type "Public network" in a "Windows" host:

Page 12: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

"SHARED FOLDERS" GATEWAY/ROUTER with designated target drives located on the host

with no accessible or visible network interfaces in the host or the virtual machine with no upstream routing to the Internet.

"Virtual Machine Additions" software must be installed into each virtual machine. In a Windows host, the "Virtual Machine Additions" software for a Windows virtual machine is

located in "VMAdditions.iso" C:\Program Files\Microsoft Virtual PC\Virtual Machine Additions\

or C:\Program Files (x86)\Microsoft Virtual PC\Virtual Machine Additions\

Multiple virtual machines can access the same target folder on the host. Host drive access must be configured for each virtual machine.

A "Windows" virtual machine sees a shared drive inside the "Other" phantom network. No indication in host file system that a folder is being shared.

Host computer Virtual Machine

"Other" shared drive "Other" Virtual machine sees a phantom = host drive access Gateway/Router network called "Other" from virtual machine Virtual network adapter is not used. File system of virtual machine does not indicate that the drive is shared. The host computer has no access to file system of virtual machine

Page 13: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

"SHARED FOLDERS" ROUTER/GATEWAY/NETWORK IS PART OF "VIRTUAL MACHINE ADDITIONS"

One of the features of "Virtual Machine Additions" is the provision of a virtual "Shared Folders" network that provides the "Microsoft Virtual PC 2007" virtual machine with access to "Shared Folders" on the drives of the host computer. The "Virtual Machine Additions" software program is not automatically installed into a virtual machine when you create a virtual machine. To install a "Virtual Machine Additions" into a virtual machine:

Press Right Ctrl + Right Alt + the "" key, if you need to release spring the mouse cursor out of the Desktop of the virtual machine. Click on "Action" in the Menu bar:

Page 14: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

Click on "Install or Update Virtual Machine Additions" in the pull-down menu.

Page 15: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

* Click on the "Continue" button:

Page 16: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

* Click on the "Next" button:

Page 17: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

*

Page 18: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

* Click on the "Finish" button:

Page 19: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

* Click on the "Yes" button to reboot the virtual machine:

Page 20: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

CREATING "SHARED FOLDERS"

The "Shared Folders" virtual network feature is similar to the "Shared Folders" virtual network of "VMware Player" and "Oracle VM VirualBox". The "Shared Folders" virtual network feature does not depend on communications through any virtual network cards. Like other "Integration Features", the "Other" virtual network can be controlled with the "Settings" dialog box of the virtual machine: If the virtual machine is running, click on "Edit" on the top menu bar:

Page 21: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

Then click on "Settings" in the pull-down menu. Click on the "OK" button if a warning box is displayed:

A "Settings.." box will be displayed:

Page 22: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

Click on "Shared Folders" in order to highlight it:

* Click on "Share Folder" in the right-most pane.

Page 23: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

A "Browse for folder" box will be displayed. Navigate to and then click on the folder on the host computer that you wish to share with the virtual machine:

Page 24: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

Click on the "OK" button. Note that the host folder that you selected is now listed under "Shared Folders".

Page 25: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

Click on the "OK" button:

Page 26: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

Go to the "Windows Explorer", "My Computer", or "Computer": Your virtual machine now has a new drive under "Network Drives" folder that represents the newly-created "Shared Folder" that is located on the host computer:

*

Page 27: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

"Shared Networking (NAT)" router with NAT service, DHCP server, and upstream routing to the Internet,

Host computer Virtual Machine

Internet access "NAT" router from virtual machine with NAT service with DHCP server with upstream routing to the Internet (with no LAN switching between virtual machines) (with no LAN switching between the host and virtual machines)

Page 28: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

CONNECTING A VIRTUAL NETWORK ADAPTER TO THE "NETWORK ADDRSS TRANSLATION" VIRTUAL ROUTER/NETWORK: If the virtual machine is running, click on "Edit" on the top menu bar:

Then click on "Settings" in the pull-down menu. Click on the "OK" button if a warning box is displayed:

A "Settings.." box will be displayed:

Page 29: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

Click on "Networking" in order to highlight it:

Page 30: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

* Click on the drop-down list button to the right of the active adapter in the right pane:

*

Page 31: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

Click on "Shared Networking (NAT)":

Page 32: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

"Bridged" bridge with mandatory "TEE" connection to either an upstream, real network adapter

(or to an operating system-provided virtual bridge on the host such as the "Windows Network Bridge")

with no internal LAN switching (with LAN switching between virtual machines performed by the real physical network)

(with LAN switching between the host and virtual machines performed by the real physical network)

(with NAT server and DHCP server provided by the real physical network) With this virtual network option, the virtual machine(s) participate on the real physical

network as "peers" with the host. This is the default virtual network that is selected when you create a new virtual machine in

"Microsoft Virtual PC 2007".

Host computer Virtual Machine

Internet access "Bridged" bridge from virtual machine provides "TEE" Optional host folder access to a real physical from virtual machine physical network by means of adapter but does not Windows "File Sharing" switch between or "Homegroups" virtual machines

Page 33: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

VIEW OF THE "BRIDGED BRIDGE" FROM THE "NETWORK ADAPTER" SCREENS OF THE HOST COMPUTER: The "TEE" connection between the virtual "Bridged" bridge and the physical network adapter is performed by a "Virtual PC Network Filter Driver" which is configured in the "..Properties" box of the real, physical network adapter in the "Control Panel" of the host operating system:

Page 34: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

The checkmark for "Virtual PC Network Filter Driver" means that the real upstream network adapter of the host computer is connected to the virtual "Bridged" bridge of the "Windows Virtual PC" system.

VIEW OF THE "BRIDGED BRIDGE" VIRTUAL NETWORK FROM THE "NETWORK ADAPTER" SCREENS IN THE "SETTINGS" SCREENS OF THE SPECIFIC VIRTUAL MACHINE: The real physical network provides DHCP services, upstream routing to the Internet, NAT services, LAN switching between the host and virtual machines, and LAN switching between virtual machines.

When you use the configuration screens that are provided by "Microsoft Virtual PC 2007" to select the "virtual network" that a "virtual network adapter" is connected to, you will find that that the term "bridged" is not available as an option. Unlike "VMware Player" or "Oracle VM VirtualBox", you get an option that is the name of of a real, physical network adapter that is part of the host computer. In "Microsoft Virtual PC 2007", if you select this real network adapter, you are then connecting the "virtual network adapter" to the virtual "bridged bridge" network that is provided by "Microsoft Virtual PC 2007".

Page 35: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

*

Page 36: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

"Local Only" switch with LAN switching between virtual machines

with no LAN switching or routing between virtual machines and the host with no DHCP server

with no NAT server, and no upstream routing to the Internet

Host computer Virtual Machine

No host folder access "intnet" from virtual machine switch No internet access with LAN switching from virtual machine between virtual machines

Page 37: VIRTUAL NETWORKING WITH MICROSOFT VIRTUAL PC 2007aztcs.org/meeting_notes/winhardsig/virtualmachines/WindowsVirtualPC/Virtual_Networks...VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC

To connect a virtual network adapter to the virtual "Local only" switch, use the drop-down list button to bring up a list of virtual networks. Then select "Local only" from the drop-down list:

*