Computer Technos

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Wednesday, 21 October 2009

Hyper-V Architecture - Virtual Machine

Posted on 15:11 by Unknown
A VM can have two different types of devices: emulated and synthetic. Although synthetic devices are encouraged due to their superior performance, they aren’t available for all operating systems. Emulated devices are present in Hyper-V mainly for backward compatibility with nonsupported operating systems. VMs running certain distributions of Linux have synthetic device support as well. Let’s examine each type of device.


Emulated Devices
Emulated devices in Hyper-V exist primarily for backward compatibility with older operating systems. In an ideal world, all applications would run on the latest version of the operating system they were designed for, but that’s far from reality. Many companies have systems in production that run on older copies of operating systems because one of their applications doesn’t run on anything newer. An older operating system may not be supported under Hyper-V, which means it can’t take advantage of the high-performance I/O. That’s not a total loss, however: If you consolidate those older systems onto a newer Hyper-V host, the advantages of moving to a more up-to-date hardware platform can provide a performance boost.

Emulated devices have another key role. During the installation of the VM, operating systems don’t have support for the synthetic devices that may be installed in the VM. For that reason, you must use emulated devices—otherwise, the operating-system installation can’t function. For Hyper-V, it’s easy to move from emulated to synthetic devices.

The emulated devices presented to a VM are chosen for their high degree of compatibility
across a wide range of operating systems and in-box driver support. The video card is based on an S3 video card, and the network card is an Intel 21140-based Ethernet adapter.

Emulated devices under Hyper-V don’t perform as well as the new synthetic devices. Thanks to part of the work that was done to harden the entire virtualization stack, emulated devices execute in the worker process—specifically, in user mode in the parent partition.

How does I/O happen with emulated devices?

The below are about how emulated storage requests are handled. Emulated networking is handled in a similar fashion. I want to point out a few specific items:

• Context switches are used. A context switch is a switch from executing a particular processor instruction in kernel mode to user mode. When paired with virtualization, a context switch is an “expensive” operation. There’s no money involved, but the CPU cost for such an operation is very high. That time could be spent doing other tasks.

• The path that the data packet traverses is long, especially compared to the synthetic case (which we’ll review next).

• The path illustrated in the figure is repeated hundreds of times for a 10 kilobyte write to disk. Imagine if you’re doing a large SQL transaction that involved writing hundreds of megabytes to disk, or running a popular website being served up from IIS running in the VM. You can see that it won’t scale well.


Synthetic Device Drivers
Synthetic devices provide much higher performance than their emulated counterparts. By taking advantage of VMBus, synthetic devices can execute I/O transactions at a much faster rate. Synthetic devices, such as the Microsoft Virtual Machine Bus Network Adapter, don’t have real-world counterparts. They are purely virtual devices that function only with Hyper-V—loading the drivers on a physical system does nothing. These new synthetic devices rely on VMBus.

Synthetic device drivers are available only for operating systems that are supported by Microsoft. (For reference, a list of supported operating systems for Hyper-V is available at www.microsoft.com/virtualization.) If you’re running an operating system in the VM that isn’t supported by Microsoft, you’ll need to use the emulated devices in the VM. Much like the emulated storage request chart presents a lot of data. Here are a few key differences:

• In the beginning, the data path is similar to the emulated data path. •u However, the synthetic storage device in Hyper-V is a SCSI-based device—so the last driver it hits before getting put on VMBus is the StorPort driver.

• When a packet makes it to the miniport driver, it’s put on VMBus for transport to the Storage VSP in the parent partition. Because VMBus is a kernel-mode driver, no context switches are necessary.

• After the data packet crosses over to the parent partition, the correct destination is determined by the VSP, which routes the packet to the correct device. The destination is a virtual hard disk (VHD) file.


Installing Synthetic Device Drivers
It’s easy to install synthetic device drivers in the VM. After you’ve installed the operating system, select Action -> Insert Integration Services Setup Disk. An installer launches and automatically installs the drivers for you. When you reboot, the VM can take advantage of the new architecture.

A special synthetic driver deals with the boot process: Optimized Note Boot Performance.
Because the synthetic drivers rely on VMBus, you can’t boot off hard drives that are connected to the SCSI controller. All isn’t lost—during the boot process, after the VMBus driver is loaded, all the IDE boot traffic is automatically routed through the same infrastructure that is used for SCSI traffic. This means the boot process and all disk traffic (reads and writes) perform at the same accelerated speed.


Linux Device Drivers
No, that’s not a typo—certain distributions of Linux are supported under Hyper-V. Not only is the operating system supported, but a full set of device drivers also enable synthetic device support under Linux. The drivers include the Hypercall adapter—a thin piece of software that runs in the Linux VM and increases performance by translating certain instructions to a format that Hyper-V can understand.

Source of Information : Sybex Windows Server 2008 Hyper-V Insiders Guide to Microsofts Hypervisor
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Windows Server 2008 Hyper-V | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Windows 7 Shortcut Keys
    Longtime users of Windows have probably grown accustomed to navigating around the Windows user interface using the keyboard. This especially...
  • Windows on Mac: Virtualization Solutions
    If you’d prefer to join the ever-increasing ranks of Mac switchers—you traitor, you—you can still run Windows and, more important, Windows a...
  • Customizing Library Folders in Windows 7
    In your library folders, you can customize view options based on the contents. In the toolbar of the Pictures and Music library folders, Win...
  • Windows 7 BitLocker Drive Encryption
    In Windows Vista, you had the BitLocker Drive Encryption feature that allowed you to encrypt the content of entire volumes. In Windows 7, Mi...
  • Using Windows 7’s Performance Options
    While all the performance tools are available individually throughout the system, Windows 7 introduces a nice list of available tools, if yo...
  • Windows 7 - Installing and Configuring a Printer
    If your printer is already installed and operational at this point, you can skip this section and skim ahead for others that may be of inter...
  • Considering Centralized versus Group Sharing
    One of the most important preparation steps for your server is determining how to store the data you create. The two common methods are cent...
  • Berkeley Motes
    The Berkeley motes are a family of embedded sensor nodes sharing roughly the same architecture. Let us take the MICA mote as an example. The...
  • Using Windows 7 Ease of Access Tools
    If you have difficulty using a mouse or typing, have slightly impaired vision, or are deaf or hard of hearing, you can adjust the appearance...
  • Troubleshooting Boot and Startup Problems - Driver Loading in Safe Mode
    How does Windows know which device drivers and services are part of standard and networking-enabled safe mode? The answer lies in the HKLM\S...

Categories

  • Access 2010
  • BlackBerr
  • BlackBerry
  • Computer Science
  • Cyber Security
  • Exchange Server 2010
  • File Utilities
  • Foursquare
  • Google
  • Hardware
  • Internet
  • iPad
  • Linux
  • Lync Server
  • Microsoft Virtualization
  • Mobile Web
  • Networking
  • News
  • Security
  • Server Architectures
  • Smartphone
  • Ubuntu Linux
  • Windows
  • Windows 7
  • Windows Home Server
  • Windows Security
  • Windows Server 2008
  • Windows Server 2008 Hyper-V
  • Windows XP
  • Wireless

Blog Archive

  • ►  2012 (66)
    • ►  August (5)
    • ►  July (9)
    • ►  June (9)
    • ►  May (8)
    • ►  April (9)
    • ►  March (9)
    • ►  February (8)
    • ►  January (9)
  • ►  2011 (85)
    • ►  December (5)
    • ►  November (6)
    • ►  October (7)
    • ►  September (8)
    • ►  August (9)
    • ►  July (9)
    • ►  June (7)
    • ►  May (7)
    • ►  April (4)
    • ►  March (6)
    • ►  February (8)
    • ►  January (9)
  • ►  2010 (230)
    • ►  December (13)
    • ►  November (3)
    • ►  October (2)
    • ►  September (10)
    • ►  August (31)
    • ►  July (32)
    • ►  June (23)
    • ►  May (2)
    • ►  April (21)
    • ►  March (32)
    • ►  February (28)
    • ►  January (33)
  • ▼  2009 (119)
    • ►  December (33)
    • ►  November (31)
    • ▼  October (35)
      • Virtualization Best Practices - Storage: How Many ...
      • Virtualization Best Practices - How Much Memory Is...
      • Virtualization Best Practices - Faster Processors ...
      • Virtualization Best Practices - Choosing a Processor
      • Virtual Machine Settings
      • Managing Windows Server Core
      • Windows Server Core Architecture
      • Hyper-V Software Requirements
      • Hyper-V Requirements
      • Hyper-V Features
      • Hyper-V Architecture - Virtual Machine
      • Hyper-V Architecture - Parent Partition
      • Scenarios for Hyper-V
      • Microsoft’s Approach to Virtualization
      • Working with Windows XP Mode
      • Using Windows XP Applications in the Virtual Envir...
      • Getting Started with Windows XP Mode
      • Introduction to Windows XP Mode for Windows 7
      • Windows 7 Internet Explorer 8 Usability
      • Reading and Subscribing to Feeds in IE8
      • Viewing and Maintaining a History List With Intern...
      • Windows 7 Action Center
      • Using Compatibility View in Internet Explorer 8
      • Getting a Better Understanding of Windows 7 Libraries
      • Browsing Privately in Windows 7
      • Browsing the Web in Windows 7
      • Starting Internet Explorer in Windows 7
      • Using the Windows 7 Ease of Access Center
      • Using Windows 7 Ease of Access Tools
      • Working with Fonts in Windows 7
      • Changing Text Size on the Screen in Windows 7
      • Customizing the Desktop in Windows 7
      • Changing the Desktop Background in Windows 7
      • Sharing Folders or Files with Others in Windows 7
      • Customizing Library Folders in Windows 7
    • ►  September (20)
Powered by Blogger.

About Me

Unknown
View my complete profile