نمایش نتایج: از شماره 1 تا 2 از مجموع 2

موضوع: Managing Hyper-V with SystemCenter Virtual Machine Manager 2008

  
  1. #1
    نام حقيقي: 1234

    مدیر بازنشسته
    تاریخ عضویت
    Jul 2009
    محل سکونت
    5678
    نوشته
    5,634
    سپاسگزاری شده
    2513
    سپاسگزاری کرده
    272

    Managing Hyper-V with SystemCenter Virtual Machine Manager 2008

    کد:
    http://www.virtualizationadmin.com/articles-tutorials/microsoft-hyper-v-articles/general/managing-hyper-v-systemcenter-virtual-machine-manager-2008-part1.html

    PART-1


    An important aspect of virtualization is the actual management: as an administrator, you want to have a single console for managing all your virtual machines and hosts. With software such as VMware’s VirtualCenter, you can manage a complete ESX environment and add a ton of extra features (such as DRS, HA, intelligent placement, templates, etc). Microsoft’s answer to the management question is System Center Virtual Machine Manager (also known as VMM).
    This piece of software is your one-stop shop to all your Virtual Server 2005 R2 (and in the 2008 release) Hyper-V hosts and even your VI3 infrastructure. VMware’s VirtualCenter can be added and so ESX hosts can be managed from within VMM. Virtual Machine Manager 2008 provides most VirtualCenter Server functionality including VMotion. More complex tasks such as adding hosts to an ESX cluster must be done using VirtualCenter itself.
    It is also tightly integrated with other System Center products (such as integration with System Center Operations Manager 2007) and PowerShell. A very interesting feature is Performance and Resource Optimization (or PRO). PRO is a feature of VMM which can dynamically respond to failure scenarios or poorly configured components that are identified in hardware, operating systems or applications. VMM 2008 also integrates with the new clustering support in Windows Server 2008 to allow for fault-tolerant and cluster aware virtual machines to be created. It leverages the much talked about Quick Migration technique.
    In this article, we will install and explore the basics of System Center Virtual Machine Manager 2008.
    Installing System Center Virtual Machine Manager 2008

    System Center Virtual Machine Manager must be installed on a Windows Server 2008 x64 edition. Yes, that is right: no support for Windows 2000 or 2003 Editions!
    The prerequisites for our setup:


    • One Windows Server 2008 x64 Edition host with Hyper-V installed (hint: it runs without problems on a recent desktop) and enough free RAM. We called it HYPERV1
    • An Active Directory environment (in our case using a domain controller called DC1 on our Hyper-V machine. A default installation will do fine).
    • A VMM virtual machine called VMM1 running on our host. Make sure it has enough RAM assigned.

    What do you need?



    First step: installing the Windows Automated Installation Toolkit

    We need to install the WAIK toolkit ourselves. Why? Because we noticed that the WAIK kit installation provided on the VMM DVD does not install correctly and throws an error during installation. Anyway, launch the startCD executable on the WAIK DVD. Click the Windows AIK setup link and install the product.

    Figure 1: Launching the WAIK setup
    Installing the VMM server components

    After WAIK is installed, download and install System Center Virtual Machine Manager Beta version. As we expect from a Microsoft installation, this is a Next => Next => Finish installation. Click the SETUP => Server link on the right to start the server components installation.


    Figure 2: Launching the VMM server setup
    Once the setup wizard has launched, you can choose to use an existing (SQL Server 2005 or better) or install SQL Express. For demo purposes, we will use the express edition. We would suggest using a dedicated SQL Server 2005 in production environments.

    Figure 3: Using an SQL Server Express Edition for demo purposes
    Another step in the wizard lets you create a VMM library. A VMM library is a shared folder that stores all items related to a VM: ISOs, VHD files, Virtual Machine templates and answer files for sysprep. You can create a new one or use an existing library or even combine different libraries (shares). We changed the share location to c:\VMMLib. Typically, this would be an E:\ drive on a SAN volume!

    Figure 4: Creating your first VMM library
    You will get a final summary of your settings and the installation will begin. Note that the WAIK kit is already installed on the server.
    Installing the administrator console

    The administrator console is an MMC 3.0 console used as the GUI to manage your virtual infrastructure (remember, both VirtualCenter/ESX and Hyper-V!). The console enables you to work with hosts, virtual machines, library resources and reports; monitor jobs; and perform administrative tasks for Virtual Machine Manager. It can be installed on almost any recent server or workstation OS version (XP, Vista, 2003 & 2008). Back in the initial window; click the Setup => Administrator Console link in the right pane.
    This is (again) a “Next->Next->Finish” installation. Note that the Administrator console needs PowerShell to execute its commands.

    Figure 5: PowerShell is used
    As we are using Hyper-V RC1, we must update our current version with an update for RC1 downloadable from the connect website. Double-click the file called VMM2008_Beta_ServerUpdate.exe and install it.
    Using the VMM Administrator Console

    So far so good. We have installed our software. Now is the time to launch our management console and see what we can do with it. Go to Microsoft System Center => Virtual Machine Manager 2008 and launch the virtual machine administrator console. You will need to input your FQDN:8100 in the input box and make it your default server (or use localhost:8100 when you installed the admin console on the VMM server itself). Make sure your console is installed on a workstation or server that is joined to the domain as credentials are passed by default!

    Figure 6: Connecting to the VMM Server
    Adding a host in VMM

    The very first step when using VMM is adding a host. This can be a Hyper-V, Virtual Server 2005 R2 or ESX host. Before we start adding the actual host, we will create a host group. By creating host groups, you can customize your views of virtual machine hosts and the virtual machines deployed on them. They can be used to adjust the amount of resources reserved for the host operating system on hosts within the host group. You can compare it more or less with resource pools in VMware’s VirtualCenter.

    Figure 7: Resource pools anyone?
    Create a new group called HyperV by right-clicking All Hosts and selecting New host group.

    Figure 8: Creating a host group
    Click on the Hosts button in the left pane and click the Add Hosts link on the right. Notice the Add VMware VirtualCenter Server link. This feature is used to add your VitrtualCenter server to VMM and will be explored in an upcoming article!

    Figure 9: Adding a host
    A new wizard will start to guide you through the process. You will need to specify a hostname (in our case HYPERV1). The same process is used as in VirtualCenter: VMM will actually push an agent on the target and will request all necessary information (like Virtual Machines, network and storage configuration, etc). Note that Hyper-V does not have to be installed on a Windows x64 2998 host. If the Hyper-V role is not enabled it can be activated by VMM.

    Figure 10: The add host wizard
    Make sure you add the host to our freshly created HyperV hosts folder. Another thing to note here is the View Script button with the PowerShell icon. You guessed it! Clicking the button reveals all underlying PowerShell code executed. Interesting! Every task performed in VMM can be scripted in PowerShell. Looking at the code generated by the GUI is without doubt a good place to start. We will explore its real power in an upcoming article using PowerShell to manage your VI3.5 and Hyper-V environment.

    Figure 11: PowerShell all the way
    The host will be added to the VMM and all virtual machines currently running on it will be added to the VMM inventory. Important note: we experienced a problem during host refresh. If you get a refresh error during host connection, make sure there are no USB devices connected! To view all virtual machines running on the host, click on the Virtual Machines link in the left pane.


    Figure 12: Your new Hyper-V host is up and running
    Conclusion

    System Center Virtual Machine Manager 2008 is still in beta now but looks promising. However, it still lacks some (advanced) features like DRS and HA when compared to VMware’s VirtualCenter. In fact, if you want to manage your VI 3.x environment with VMM you will need to have a VirtualCenter up and running. This means 2 management servers...
    In Part 2 we will discuss how to create new virtual machines, using the VMM library (templates and guest OS profiles), end-user VM provisioning and physical-to-virtual P2V





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

  2. #2
    نام حقيقي: 1234

    مدیر بازنشسته
    تاریخ عضویت
    Jul 2009
    محل سکونت
    5678
    نوشته
    5,634
    سپاسگزاری شده
    2513
    سپاسگزاری کرده
    272
    کد:
    http://www.virtualizationadmin.com/articles-tutorials/microsoft-hyper-v-articles/general/managing-hyper-v-systemcenter-virtual-machine-manager-2008-part2.html
    PART-2

    Introduction

    In part 1 of this article, we installed and configured System Center Virtual Machine Manager 2008. Now it is time to start using it! In this article we will look at creating virtual machines and templates using VMM. Another important feature of a virtual infrastructure is the possibility to do a P2V (physical to virtual) conversion. We will compare certain features in VMM with features we find in VMware’s VirtualCenter.
    Your first Virtual machine via the SCVMM management console

    Creating a new virtual machine is very straightforward. Log on with the SCMM Admin Console and connect to your SCVMM server. On the right side, click the Actions=> New Virtual Machine link.

    Figure 1: The new virtual machine actions icon
    You can use an existing template or create a new virtual machine. Note the owner field: this becomes important when using the self-service portal, a feature that enables the Virtual Machine Manager (VMM) administrator to grant users permission to create and operate their own virtual machines within a controlled environment on a limited group of virtual machine hosts. The hardware profile is also something you can create and put in your library. A virtual machine is a combination of (at least) 2 components:

    1. The hardware profile (we compare it to the .vmx file as seen in VMware products).
    2. One or more hard disk or .vhd files(comparable to .vmdk files in VMware).
    3. The extra: a guest OS profile (compare it to the sysprep/template customization files generated and stored in VirtualCenter).

    You can add/remove/edit all sorts of hardware components such as floppy drives, COM ports, extra hard disks, etc. One nice feature (and something that is missing in VMware’s VirtualCenter) is the ability to set the startup order of your Virtual Machine.

    Figure 2: BIOS boot order is a very handy feature
    By default, the virtual disk will be set to Dynamic. This is not ideal from a performance point of view as the disk continues to grow. We would suggest using the Fixed setting for production servers. When we look at a disk in the VMware ESX solution, this disk is by default fixed (this can, however, be changed on a per disk basis using the service console). By default, a hard disk is also an IDE device, not a SCSI device.


    Figure 3: Make sure to select Fixed in a production environment
    Note that a new virtual machine can be deployed to a host immediately or be saved in your library for future use. A concept that we know from VMware’s VirtualCenter, is the rating a hosts gets (in number of stars).

    Figure 4: Star rating depending on (customizable) rating parameters
    It is possible, by clicking on the Customize Ratings button, to tell your VMM how a Hyper-V host gets its rating. You can change what you think are important parameters.

    • Load balancing - Host suitability is rated based on the intent to minimize the processing load on any one host.
    • Resource maximization - Host suitability is rated based on the intent to consolidate multiple low-utilization workloads on a single host. Virtual machine placement in these cases involves determining the capacity limits for a particular host and placing virtual machines on that host until the limits are reached.


    Figure 5: Placement options can be changed as you desire
    Creating a Template

    One of the nicer features of VMM is the ability to create a template or guest/hardware profile. You can create your “golden” Windows version and convert it to a template. There are two ways to create a Virtual Machine template. The first one is going to the library and clicking the New Template link on the right side to launch the template wizard. The other way to create a template is from an existing VHD that is already stored in the Library. Let’s see how it works!
    Ok, first thing first: we need to create a Virtual Machine that can be used as template (our so called “golden image”). We decided to install a Windows Server 2008 x64 edition called “TemplW2K8x64” as a new guest.
    Once this is done, it is time to run the new template wizard. The first step is selecting the source for the new template. In our example, we use “From an existing virtual machine currently located on a host” and we select the TemplW2K8x64 we just created.

    Figure 6: Select your source virtual machine
    After configuring the hardware profile comes the interesting part: this is the guest operating system profile where you specify all OS relevant information such as product key, computer name, default password and domain joining rules. You can even insert your own custom sysprep file!
    The template will be moved to the library once the wizard is completed. You will notice that our TemplW2K8x64 is “syspreping”

    Figure 7: our template being “sysprepped”
    The create template job will look similar to the one below:


    Figure 8: Create template job overview
    The new template will be ready for deployment and stored under VMs and Templates (which sounds reasonable enough)

    Figure 9: Your golden image is now a template
    Important note:
    It is possible that the sysprep will fail if the local password policy on your golden image is enabled. Make sure the policy is set as seen in the screenshot below (no minimum password length and no complexity requirements):

    Figure 10: Local password policy disabled on Windows 2008
    Creating a Virtual Machine based on a template

    Let’s create a brand new virtual machine based on the template we created in the previous steps. Navigate to VMs and templates in the library view, right-click the template and select new virtual machine.

    Figure 11: VMs and templates location
    A wizard will guide you through the process. It looks essentially the same as the “normal” new virtual machine wizard with one exception: you now have the Guest Operating System step where you have to specify the computer name, the license keys, etc. This is only necessary if you want to change it, because the configuration is the same as when creating the template. A new virtual machine with a new SID (Security Identifier) and computer name will be deployed “automagically”. This process looks very similar to the way VMware’s VirtualCenter uses sysprep in the background to deploy virtual machine templates.
    We did notice the same problem as when deploying templates in VirtualCenter: although our regional and keyboard settings in the template and in the Guest Operating System profile are set to Belgium (Dutch), the machine will use by default the English (US) default when booting. This is very annoying, especially when you entered a complex password with a different keyboard set.
    P2V (Physical to Virtual conversions)

    Built in to SCVMM is the ability to convert existing physical computers into virtual machines (called P2V or physical to virtual). This implies changing hardware from HP, Dell, IBM and other vendors to a uniform hardware platform (the virtual abstraction layer). Keep in mind that a P2V conversion is not that simple: some vendors like HP use custom software (Proliant Support Pack or PSP) and custom drivers (like HP software NIC teaming for example) that can impact your conversion. Other things to note is that you need the necessary rights to do a conversion and the (long) downtime (mind the software firewalls and AD Group Policies!).
    You have two possibilities: performing an online or offline P2V conversion. In both cases, VMM temporarily installs an agent on the physical source computer that you want to convert.

    • By using online P2V, VMM uses Volume Shadow Copy Service to copy data while the server continues to service user requests. The source computer is not restarted during the conversion.
    • By using offline P2V, the source computer restarts into the Windows Preinstallation Environment (Windows PE) before VMM converts the physical disks to Virtual Hard Disks (VHDs).

    Note that you can convert almost all versions of Windows (2000, XP, 2003, 2008) except Windows NT 4.0.
    OK, let’s test the conversion wizard. In the right-pane you will notice a link/icon called Convert physical server. Click it, and a new wizard will appear. The process itself is very straightforward: just fill out the computer name and administrator user account. In our example, we will convert a management Windows 2008 server called MGMT1 that is a member of our domain tg.local.

    Figure 12: Selecting the soon to be converted physical machine
    Note:
    It is possible that you get the error in the screenshot below. There is a small bug that still needs to be fixed concerning DNS and FQDN. Just use the IP address instead of the DNS name.

    Figure 13: DNS bug error in VMM
    Once the credentials are confirmed, SCVMM will try to install the agent (located in the folder c:\Program Files\Microsoft System Center Virtual Machine Manager 2008\agents) on the source system, so make sure your Windows firewall is not blocking it or you will get the error message in the screenshot below:

    Figure 14: Windows firewall will prevent VMM from installing the P2V agent
    Once this is done, you will get a nice overview of your OS, hard disks and network adapters. Then, in the next window, the P2V agent will check if it can find any problems (multiple NICs, etc.). In the next window you can select which volumes you want to convert, resize them and select the type and channel to be used. You also need to assign the number of vCPU’s to be used and the amount of memory. Finish the wizard and the P2V conversion will begin. Et voila! A new virtual machine is born.

    Figure 15: Very important: hard disk options during the P2V process
    VMware has its own P2V tool called VMware Converter (now integrated in VirtualCenter). This tool is very similar to Microsoft’s solution. But if you need real P2V power and advanced scheduling, 3rd party tools such as PlateSpin PowerConvert are highly recommended!
    Conclusion

    In part 2, we looked at how to manage virtual machines with VMM. Creating new virtual machines and using templates to deploy multiple virtual machines is very straightforward. P2V is another great feature, especially with both off- and online choices available





کلمات کلیدی در جستجوها:

scvmm template regional settings

System Center Virtual Machine Manager

1

hyperv Resource maximization

system center virtual machine manager 2008

convert 2008 to r2

hyperv cluster credentials

VMM current setting

scvmm 2008 regional settings

p2v

hyper-v آموزش

supported operating systems for vmm

system center virtual machine management

در مورد virtual machine manitor

waik

error during of the configuration of the host در vmware

error during of the configuration of the host

virtual machine manager

regional settings scvmm template

vmm 2008 r2 template regional settings

برچسب برای این موضوع

مجوز های ارسال و ویرایش

  • شما نمی توانید موضوع جدید ارسال کنید
  • شما نمی توانید به پست ها پاسخ دهید
  • شما نمی توانید فایل پیوست ضمیمه کنید
  • شما نمی توانید پست های خود را ویرایش کنید
  •