کد:
http://social.technet.microsoft.com/wiki/contents/articles/hyper-v-how-to-run-hyper-v-on-a-laptop.aspx

This article is a stub. Please help correct and extend it. It is the Wiki way!
Hyper-V is an enterprise IT technology included in Windows Server 2008 and 2008 R2. As such the documentation on TechNet and MSDN is on enterprise IT use, on a server. However, some may wish to use Hyper-V on a laptop or a desktop computer. Perhaps to learn about Hyper-V, or create training material such as demos, for development purposes, or just for fun. Sometimes, because of company IT policy and management practice for servers, running Hyper-V on a laptop is the only way you can develop or document something.
This article is meant to assist those who are using Hyper-V in this "non-standard way". For example, a frequently occuring issue in this scenario is documented here: After you deploy a Sysprep prepared image, the Hypervisor layer service does not start automatically in Windows Server 2008
Ensure that your laptop will run Windows Server 2008 R2 with the Hyper-V role enabled. Hyper-V requires processor virtualization extensions (Intel-VT and AMD-V) and requires those features to be enabled along with the No-Execute (NX) feature. If your laptop CPU is from AMD download and run the AMD Virtualization Technology and Microsoft Hyper-V System Compatibility Check Utility. If your laptop CPU is from Intel download and run the Intel Processor Identification Utility. For moreCPU and other Hyper-V tools see Hyper-V: Tools - TechNet Articles - Home - TechNet Wiki.
If your constraint is organizational IT or licensing restrictions you can run the free Microsoft Hyper-V Server 2008 R2 on your laptop.
Hyper-V does not support wireless NICs, because Data Center servers typically do not use them. Likewise, Hyper-V does not treat power-saving features the same way was as laptops do. Running Hyper-V on your laptop with a wireless NIC is not supported by Microsoft, but you can do it following the instructions in this article.
To run Hyper-V on laptops, you must adress several issues, including:


  • Hyper-V does not allow you to bind a wireless network adapter to a virtual machine.
  • Power-saving features such as standby and hibernate are disabled when the Hyper-V role is enabled on the system. Other power management features, like changing the minimum and maximum processor speed while running on battery or plugged in, are still available. Since standby and hibernate features are not available, you cannot configure your laptop to go into a sleep state when you close the lid, nor to hibernate when the battery reaches a critical state.
  • The "user experience" for Windows Server 2008 is not the same as the "desktop experience" user's expect on a Windows Vista or 7 laptop. If you wish to change this see Using Windows Server 2008 as a SUPER workstation OS.
  • There's no solution for 64-bit virtual machines on your laptop as of this writing. (is this really correct?)

To bridge the Wireless Network Connection with the Virtual External Wireless Network.


  1. Log on to the system using an account with administrative privileges.
  2. From the Control Panel, open the Network and Sharing Center applet.
  3. Click on Manage network connections.
  4. Select both Wireless Network Connection and Virtual External Wireless Network
    1. On the menu Advanced, select Bridge Connections. Note: If the Bridge Connections option is grayed out, it is possible that it has been disabled by a group policy. If this is the case, you can temporarily re-enable it by configuring the following registry value
    2. On the User Account Control dialog click Continue.
    3. A new Network Bridge network connection will be created. Each time you create a virtual machine that needs to access the external network using your laptop’s wireless network adapter, ensure you configure the virtual machine’s network adapter to use the Virtual External Wireless Network.






To enable the power-saving features on a laptop running Windows Server 2008 Hyper-V.


  1. After enabling the Hyper-V role, you will notice that hibernate and standby (sleep) features are not available on Control Panel / Power Options / Change plan settings / Change advanced power settings for your laptop. Hvboot.sys is a Hyper-V device driver that starts early in the boot process and prepares the system for virtualization. It loads the appropriate hypervisor, either Hvax64.exe or Hvix64.exe into memory, depending on whether the system implements AMD-V or Intel VT hardware virtualization extensions, respectively.
  2. Change the Start parameter of the hvboot.sys device driver to Manual and restart the system. Hibernate and sleep features will be enabled until you manually start the hvboot.sys device driver.
  3. Check the Control Panel / Power Options / Change plan settings / Change advanced power settings to make sure they are enabled.
  4. Now, if you try to start a virtual machine from the Hyper-V Manager, The following error appears on the screen and in the System event log: “The virtual machine could not be started because the hypervisor is not running.”
  5. To run the virtual machine on your laptop, disable the hibernate and standby features until the system is restarte by manually starting the hvboot.sys device driver. Run the following command frorm an elevated Command Prompt: net start hvboot
  6. To set hvboot.sys to be disabled by default, and consequently enable power-saving features every time you boot the system, chane the Start parameter of the hvboot.sys driver to Manual:

    1. Run the Registry Editor (regedit.exe) and configure the following registry value:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\hvboot\
Start = DWORD 3
Note: Setting the value to 3 allows you to mabually start the service when you want. The value 0 is not supported by hvboot.sys. Values 0 and 1 are not supported by services, just by device drivers.
2.Restart the system.
Hibernate and sleep features should now be enabled until you start the hvboot.sys device driver.
NOTE: You can use the sc.exe utility to get the same result:
1.Open an elevated Command Prompt (by using Run as administrator).
2.Run the following command:
sc config hvboot start= demand
Important
Make sure you type the space between “start=” and “disabled”.
3.Restart the system.
Note: To return hvboot.sys to its default behavior and automatically get started when the system boots, just change the registry to its original value:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\hvboot
Start = DWORD 1
Or open an elevated Command Prompt and run the following command:
sc config hvboot start= system

Hyper-V or Windows 7?

If you choose your laptop carefully, you do not have to choose between Windows 7 and Hyper-V. It is possible to have both, though not at the same time as physical machines. Using a laptop with an eSATA socket, you can boot from a supported disk in an eSATA caddy. For example, the laptop's internal disk will boot with Windows 7. For demonstrations and labs, you can attach an eSATA disk and install Windows Server 2008 R2 with Hyper-V or Hyper-V Server 2008 R2 on that. Your laptop's POST boot menu will allow you to choose which disk to boot from.
To install Hyper-V on your laptop, choose between:


  • As a role of the Microsoft Windows Server 2008 R2 x64: Server virtualization can be enabled by the installation of the Hyper-V role on the Windows Server 2008 x64 Standard, Enterprise and Datacenter Editions. It can be enabled on a Full or on a Server Core installation of the Windows Server 2008 x64.
  • As the free standalone Microsoft Hyper-V Server 2008 R2: Hyper-V Server is a dedicated stand-alone product. It is based on the Server Core installation of the Windows Server 2008, and contains only the Windows Hypervisor, Windows Server driver model and virtualization components, providing a small footprint and a minimal overhead for server virtualization solutions.

This example will use enabling Hyper-V as a role on a Windows Server 2008 R2 x64 full installation. Before installation, ensure your latpiop satisfies the minimum/recommended requirements.

  1. Log on to the system using an account with administrative privileges.
  2. From the Start / Administrative Tools, run the Server Manager snap-in.
  3. On the User Account Control dialog click Continue.
  4. Navigate to the Roles node and click Add Roles.
  5. On the Before You Begin page, click Next.
  6. On the Select Server Roles page, select Hyper-V and click Next.
  7. On the Create Virtual Networks page, click on the wired network adapters you want to make available to virtual machines and click Next.
  8. On the Confirm Installation Selections page, click Install.
  9. Click Close to finish the wizard, and then click Yes to restart the computer.
  10. After you restart the system and log on with the same account you used to install the role.
  11. After the Resume Configuration Wizard completes the installation, click Close to finish the wizard.
  12. Install required updates listed at http://technet.microsoft.com/en-us/library/dd430893(WS.10).aspx
  13. Restart the system.

To enable a virtual machine to be linked to a wireless adapter, create a bridge between a virtual “internal only” network and the actual physical wireless adapter, if your IT environment allows this (often if you are not joined to the domain).
For example, the physical wireless adapter installed on the system is named Wireless Network Connection:

  1. On the Hyper-V Virtual Network manager, create a virtual network adapter named Virtual External Wireless Network and configure it as an Internal only network.
  2. On the Windows Server 2008 Network Connections, create a bridge between the Wireless Network Connection and the Virtual External Wireless Network you created in step 2 above. The “internal only” virtual network is named as “External”because it is bridged to a physical wireless network adapter, which provides "external" access to the virtual machines.
  3. Link the virtual machine’s virtual network adapter to the Virtual External Wireless Network.

Other Issues

Certificates and VMs starting errors: Fixing Hyper-V Virtual Machines sticking at 6% starting - Virtual PC Guy's WebLog - Site Home - MSDN Blogs
Resources

Hyper-V on the TechNet Libraryhttp://technet.microsoft.com/en-us/library/cc753637(WS.10).aspx





موضوعات مشابه: