OWSUG.ca

Welcome to Ottawa's Windows Server User Group Community!
Welcome to OWSUG.ca Sign in | Join | Help
in Search

Canadian IT Pro Blog

Browse by Tags

All Tags » Windows Server ... » Hyper-V   (RSS)

  • Exam Prep for 70-659 Part 8: Create and Deploy Virtual Machines

    As I wrote in an earlier post, there is no better time to write your exam for 70-659 Windows Server 2008 R2, Server Virtualization, than now and particularly before May 31, 2012. So to aid in that endeavour, Joseph Yedid, an IT specialist with Enhansoft in Ottawa, has put together a series of posts focused on getting IT folk ready to pass this exam. Joseph writes his blog at www.josephyedid.com but has allowed me to repost this series here.

    signature2 (100x78)


    Create and Deploy Virtual Machines

    System Center Virtual Machine Manager (VMM) is the über-management software for virtual machine management. It has more options and capabilities than Hyper-V Manager. Creating VMs in VMM is done the same basic way as in Hyper-V Manager.

    What is cloning? Cloning is the process of creating a new VM from an existing one. The source VM can be in either the VMM library or on an existing host. When a new clone is created, it retains the source’s original information: AD info, SID, name, and MAC. The source VM isn’t deleted. For a VM to be cloned, it first must be powered off or in a saved state. Be careful of having both VMs running at the same time because they might try to communicate on the same network; if they reside on the same network. For the best outcome, place the clone in the library. The clone can then be used as a backup.

    Deploying VMs in VMM is a lot faster and easier than in Hyper-V Manager. Due to the fact that VMM is a datacenter level product, rapid deployment is essential. VMM makes use of host groups which are merely containers for quick provisioning. VMM also relies on an intelligent placement star rating system to help determine which hosts are best suited to host the desired VM. Since VMM can manage clusters, VMM can place VMs in clusters, making them highly available. In best practices, you would use the library to store templates, VHDs, scripts, etc. for quick deployment.

    Creating VMs in Hyper-V Manager is pretty straight forward. Under the Actions click New and then Virtual Machine. A wizard will launch. The wizard will have you choose all the settings needed to create a new VM such as: location to store the VM, disk type, disk size, network to connect to, load an ISO, etc. Any additional settings you wish to make will be available in the VM settings after the VM is created.

    The Self -Service Portal (SSP) is designed to allow an individual user the ability to manage and create their own VMs without involving the VMM admins too much. The VMs that self-service users create can be isolated to not impact a production environment. One of the best uses of the SSP is to allow developers to build their own VMs and to test software against them. There is no impact on the production in case something goes wrong with the software. VMM admins first setup the SSP, create the users or groups that have access to it, and set limits, if any, as to what the SSP user can do.

    SSP requires IIS to function as SSP is web-based.

    The IIS requirements are:

    • IIS 6 and above
    • IIS 6 Metabase Compatibility
    • IIS 6 WMI Compatibility
    • Static Content
    • Default Document
    • Directory Browsing
    • HTTP Errors
    • ASP.NET
    • .NET Extensibility
    • ISAPI Extensions
    • ISAPI Filters
    • Request Filtering

    VMM admins can grant SSP users the following VM permissions:

    Start Start VMs
    Stop Stop VMs
    Pause and Resume Pause and resume VMs
    Checkpoint Create and manage VM checkpoints
    Remove Remove VMs
    Local Administration Grant local admin rights on VMs
    Remote Connection Remotely connect to VMs
    Shutdown Shutdown VMs

    One other item to note, VMM can place quotas on SSP users. What this means is that SSP users can do only certain operations within the quota limit.

    Using Powershell is another method for creating and deploying VMs. Now, I am not a programmer, but I will give this section my best shot. First thing to note is that VMM runs on top of Powershell. Everything you do in the GUI has an associated Powershell script or action. With that said, when you create a new VM in VMM you will see an option at the end of the wizard to view the Powershell script that will run to create the new VM. Just about everything has something similar to this. Being able to view the Powershell script also gives you the capability to copy and store the code for reuse. You can then edit/modify the code for other purposes. Once VMM is installed, the associated Powershell scripts will be available. The best advice I can give for this topic is to get familiar with the commandlets, what they do and how they work.

    Read the full series >>


    Joseph-1Joseph Yedid is an IT specialist working at Enhansoft a company based in Ottawa, Canada, that develops products and services to extend the value of System Center Configuration Manager 2007 (SCCM) and System Center Configuration Manager 2012. He is an avid user of technology and is certified in many areas of Microsoft infrastructure technologies. He is MCTS and MCITP certifed - Windows Server 2008 and Microsoft Vista/Windows 7. Other interests revolve around virtualization technologies, System Center and Private Cloud. Joseph is a member and on the executive of the Ottawa Windows Server User Group.

  • Exam Prep for 70-659 Part 3: Configuring Virtual Networks and VLAN Security

    As I wrote ain an earlier post, there is no better time to write your exam for 70-659 Windows Server 2008 R2, Server Virtualization, than now and particularly before May 31, 2012. So to aid in that endeavour, Joseph Yedid, an IT specialist with Enhansoft in Ottawa, has put together a series of posts focused on getting IT folk ready to pass this exam. Joseph writes his blog at www.josephyedid.com but has allowed me to repost this series here.

    signature2 (100x78)


    Configuring Virtual Networks and VLAN Security

    In this section we will cover Virtual Networks and VLAN Security.

    Hyper-V Manager allows for MAC address ranges to be set to dynamically and be assigned to VMs. This can be found in the Virtual Networks page, Global Network Settings option.

    Network locations are usually determined by Network Location Awareness. However this can be overridden and needs to be done for ESX hosts. You will need to open the properties page of the host; choose the Hardware tab and choose a network adapter for which you want to configure. On the properties page, choose the Override discovered network location check box, then enter a new location in the text box. You can also set a network tag, under the Networking tab. Network tags help in distinguishing multiple virtual switches on the same logical network.

    When it comes to VLANS, there are 2 places that you can configure the VLAN settings. The first is in the settings of the VM in the properties of the VM’s network adapter. This is an individual VM setting.

    pic1

    The second place is in the Virtual Network Manager. This is a global VLAN setting for all VMs connected to the same virtual network.

    pic2

    VLAN Security can be achieved by isolating the host and VM networks’ physical network security; for example using a dedicated NIC for host management, and using VLAN tagging.

    The Virtual Network Manager is where you configure the network settings for VMs. There are 3 types of networks you can setup: External, Internal, or Private. External gives the VM access to everything. Internal restricts VM access to only the host and other VMs for internal communications. Private restricts VM access to private communications only with other VMs. For both Internal and Private settings there is no external communications outside the VMs.

    Previous Posts:


    Joseph-1Joseph Yedid is an IT specialist working at Enhansoft a company based in Ottawa, Canada, that develops products and services to extend the value of System Center Configuration Manager 2007 (SCCM) and System Center Configuration Manager 2012. He is an avid user of technology and is certified in many areas of Microsoft infrastructure technologies. He is MCTS and MCITP certifed - Windows Server 2008 and Microsoft Vista/Windows 7. Other interests revolve around virtualization technologies, System Center and Private Cloud. Joseph is a member and on the executive of the Ottawa Windows Server User Group.

  • Exam Prep for 70-659 Part 2: Remote Management

    As I wrote ain an earlier post, there is no better time to write your exam for 70-659 Windows Server 2008 R2, Server Virtualization, than now and particularly before May 31, 2012. So to aid in that endeavour, Joseph Yedid, an IT specialist with Enhansoft in Ottawa, has put together a series of posts focused on getting IT folk ready to pass this exam. Joseph writes his blog at www.josephyedid.com but has allowed me to repost this series here.

    signature2 (100x78)


    In this section, I will cover remote management.

    Remote Management

    VMM Agents are installed automatically on all hosts and library servers. The agents can also be installed manually or locally through the VMM setup or with the vmmAgent.msi file. When installing in a perimeter network, you must use the vmmAgent.msi file and provide additional information.

    Firewall rule settings also need to be applied to allow for remote management

    Firewall rules are added automatically when Hyper-V is installed and when a host is added from VMM.

    To enable remote management from the command line use the following:

    netsh advfirewall firewall set rule group="remote administration" new enable=yes

    Configuring Virtual Network Manager settings consists of 2 categories: Virtual Networks and Global Network Settings. Virtual Networks allow you to create External, Internal, or Private networks. It also allows you to configure LAN and cluster settings. The Global Network Settings allow you to configure MAC ranges to be assigned to VMs dynamically.

    Previous Posts:


    Joseph-1Joseph Yedid is an IT specialist working at Enhansoft a company based in Ottawa, Canada, that develops products and services to extend the value of System Center Configuration Manager 2007 (SCCM) and System Center Configuration Manager 2012. He is an avid user of technology and is certified in many areas of Microsoft infrastructure technologies. He is MCTS and MCITP certifed - Windows Server 2008 and Microsoft Vista/Windows 7. Other interests revolve around virtualization technologies, System Center and Private Cloud. Joseph is a member and on the executive of the Ottawa Windows Server User Group.

  • Exam Prep for 70-659 Part 1: Installing Hyper-V

    As I wrote ain an earlier post, there is no better time to write your exam for 70-659 Windows Server 2008 R2, Server Virtualization, than now and particularly before May 31, 2012. So to aid in that endeavour, Joseph Yedid, an IT specialist with Enhansoft in Ottawa, has put together a series of posts focused on getting IT folk ready to pass this exam. Joseph writes his blog at www.josephyedid.com but has allowed me to repost this series here.

    signature2 (100x78)


    In this series of blog posts, I will be trying to explain the requirements for the 70-659 exam.

    In mirroring the actual exam outline, I will start with Installing and Configuring Host and Parent Settings.

    Installing Hyper-V

    To start off, the required BIOS settings should be turned on to allow Hyper-V to work. The BIOS must support:

    1. Hardware Assisted Virtualization:  
        • Intel-VT   or   AMD-V
        • Data Execution Prevention (DEP):    

        The nomenclature for DEP can differ between Intel and AMD, or BIOS vendors. But the standards are below:

          • AMD CPUs – AMD No-Execute (NX) bit must be turned on.
          • Intel CPUs – Intel Execute Disable (XD) bit must be turned on.

        Once the BIOS settings are enabled, Hyper-V can be installed. There are a few ways that Hyper-V can be installed.

        • In Server Core:

        Use Start /w ocsetup Microsoft-Hyper-V command.

        • GUI:

        In the full GUI of Windows Server 2008 R2, you will have to add the role.

        • Virtual Machine Manager (VMM):

        A third method to install Hyper-V on a system is using VMM.

        In host systems without the Hyper-V role installed, VMM will install the Hyper-V role, as long as they are discoverable in AD. The host systems must be Windows Server 2008 or Windows Server 2008 R2. For Windows Server 2003 systems, VMM will install Virtual Server 2005.

        Hyper-V Server R2 is a standalone server that does only one thing; Hyper-V. It is the only role in the product. Configuring it is pretty straight forward. This is due to fact that it is configured with a menu type interface. The menu allows for quick configuration of the server, due to the fact that no GUI is present. The file name used to bring the menu back (if closed) is HVCONFIG. Don’t confuse HVCONFIG with SCONFIG. Although they look the same, SCONFIG is the menu for Server Core, whereas HVCONFIG is the menu for Hyper-V Server.


        Joseph-1Joseph Yedid is an IT specialist working at Enhansoft a company based in Ottawa, Canada, that develops products and services to extend the value of System Center Configuration Manager 2007 (SCCM) and System Center Configuration Manager 2012. He is an avid user of technology and is certified in many areas of Microsoft infrastructure technologies. He is MCTS and MCITP certifed - Windows Server 2008 and Microsoft Vista/Windows 7. Other interests revolve around virtualization technologies, System Center and Private Cloud. Joseph is a member and on the executive of the Ottawa Windows Server User Group.

      • Connecting to an iSCSI SAN Using Command Line Options on Hyper-V Server & Server Core

        Many of you (thousands, impressively!) read the three articles that Mitch Garvis wrote in April about Microsoft’s Software iSCSI Target 3.3. If you didn’t, you can read them all now by clicking below:

        In the months since, and more recently as both Mitch and I have been delivering IT Virtualization Boot Camps (register for Montreal, and Saskatoon now) a lot of people have asked us if this would work with Microsoft Hyper-V Server, and if so… how? The answer, of course, is YES it will work, but as with all things command-line, you cannot simply rely on the GUI and as such, there is another layer of complexity involved. Mitch outlines the steps you will need to follow to be able to configure your Hyper-V Servers (as well as your Windows Server Core boxes) as nodes in a failover cluster.

        DamirB-BlogSignature


        clip_image002

        In the Server Core and Hyper-V Server Server Configuration menu there is an option (number 11) to enable the Failover Clustering Feature. This takes a few seconds, and you are off to the races. You will also have to use Option 4 to Configure Remote Management; although I am sure it is all configurable by command line, I would much rather create my Failover Cluster using the Failover Cluster Manager. You can do this either from a server with the Failover Clustering feature enabled, or from a system with the Remote Server Administration Tools (RSAT) installed. That server does NOT need to be a node of the cluster.

        Unfortunately before you proceed with all of that great and simple GUI driven stuff, we have to present your iSCSI target to the Hyper-V Servers. This we will do locally from the command line:

        1) Start the Microsoft iSCSI Initiator Service:

        net start msiscsi

        2) Configure the Microsoft ISCSI Initiator to start automatically when you start up:

        sc config msiscsi start= auto

        (note the space after the = sign. that is intentional and required)

        3) Connect to the Target and set up a persistent login to same:

        iscsicli QAddTargetPortal 172.16.10.5

        (note the address I used is the IP address of the server that is running the iSCSI Software Target)

        iscsicli ListTargets

        clip_image004

        We see here that I have a single target available to me, with the IQN (Internet Qualified Name) of iqn.1991-05.com.microsoft:swmi-storage-target1-target – which shows that my SAN provider is Microsoft, that my server is called swmi-storage, and that my target (LUN) is called Target1 (I have a great imagination for names).

        iscsicli QloginTarget iqn.1991-05.com.microsoft:swmi-storage-target1-target

        This logs my server in to the target that was listed.

        iscsicli PersistentLoginTarget <target_iqn> T * * * * * * * * * * * * * * * 0

        This will make sure that the login is persistent – whenever you reboot.

        iscsicli ListPersistentTargets

        This will confirm that your target is persistent, and will list:

        • Target Name
        • Address and Socket
        • Session Type
        • Initiator Name
        • Port Number
        • Security Flags
        • Version
        • Information Specified
        • Login Flags
        • Username

        Admittedly, much of the information found therein will not be helpful. However it will determine that your target is persistent.

        iscsicli ReportTargetMappings

        clip_image006

        In this screenshot you can see the session ID, Target Name, Initiator, Initiator SCSI device, Initiator bus, target ID, and target LUNs – in this case, there are four LUNs.

        Now that you have presented your target (or targets) to the servers you are ready to continue remotely with the GUI… the easy part, which you can review in the blogs posted up top.

        Remember, managing your servers via command line may be daunting, but it pays off. Not only does it usually give us better control over what we are doing, but by using Server Core (or Hyper-V Server) you can take back a lot of resources that would otherwise be wasted on the GUI.

        Have fun and have a great week!

      This Blog

      Syndication

      Powered by Community Server, by Telligent Systems