System Center - Virtual Machine Manager 2012: Rychlé použití
1 - Prezentace
SCVMM 2012 je nástroj od Microsoftu a jde o součást “System Center” řešení, které umožňuje správu Vašich virtuálních a fyzických IT infrastruktur. Celkově navýší využití serveru a dynamicky optimalizuje zdroje pomocí jiných virtualizačních platforem. Nezbytné funkce jsou zahrnuty pro správu, plánování, vývoj a optimalizaci Vašich virtuálních infrastruktur a to od začátku až do konce.
2 - Předpoklady
- SCVMM 2012 instalace musí být založena na systému Windows Server Standard 2008 R2 SP1 či vyšším.
- Je nezbytné mít na serveru nainstalovaný Windows Automated Installation Kit pro Windows 7.
- SCVMM 2012 vyžaduje použití alespoň SQL Standard 2008 SP2 či 2008 R2 SP1 server pro hostování VMM databází.
- Je doporučeno mít alespoň tvě síťová rozhraní pro oddělení jejich využití (jedno pro VM Management, jedno pro správu host serveru a jedno eventuálně pro živou migraci a jedno pro komunikaci v clusteru).
3 - Postup
Pro instalaci SCVMM 2012 se podívejte na instalační příručku http://prirucky.ovh.cz/SCVMM2012installation
Přidání Hyper-V server do SCVMM 2012 infrastruktury
Vytvoření knihovny pro VM
Vytvoření virtuální Vlan
Vytvoření šablon VM
Vytvoření VM z šablony
4 - Přidání Hyper-V server do SCVMM 2012 infrastruktury
To be integrated into your SCVMM 2012 structure, your Hyper-V server has to be updated via Windows Update, the TCP/IP parameters have to match your network infrastructure (VRACK, Ipfailover etc ..), your administrator accounts have to be authorized on each Hyper-V server.
- Update your Hyper-V servers with option 6
- Once updated, configure your IP if you are working in a VLAN with option 8 - 1
- Set as sole DNS your AD server
(only for the time during the addition to the domain, to avoid any kind of interference)
- Add your HV server to your domain with option 1
(It is sometimes necessary to wait a few moments before being able to reach to domain)
- Enter the password of the domain's administrator account
- Once the domain has been reached, you can choose to rename your server
- Reboot the server to apply changes
- Once the server has been rebooted, add your "sysadmin" account (and your other domain administrator accounts if necessary) as local administrators of the server. To do that follow option 3
- In SCVMM 2012 go to the "Fabric" section, then click right on "servers" and choose "add hyper-v hosts and clusters"
- select server "in a trusted Active Directory Domain"
- Enter the "sysadmin" account information
- Check the "Specify windows server computer by names" option and enter your server's name in the zone underneath
(before doing that make sure that your SCVMM/AD server pings your Hyper-V server with its name or its IP)
- Once it has been validated, the following window opens and displays the designated server(s). Check the server you want to add.
- Choose a group in which you want to place your server (or leave it where it is by default). Check "reassociate this host" if your server was part of a SCVMM structure before that.
- Click on "Finish"
- The progress bar displays the operation's status
- Once this is done, the server is added to your infrastructure.
- It appears on the main window next to your SCVMM 2012 server
5- Using SCVMM 2012
5a - Storage space
For each HV server in our infrastructure, it is possible with the SCVMM 2012 management console, to determine which local space will host the Virtual Disks of our VMs. It is possible to reserve a volume to store VMs and a volume to accommodate an operating system and applications or even additional sources.
- Refresh server status, click right on the machine + refresh
- General properties window
- In the "hardware" section, select a disk and check the "available for placement" box to authorise storage on it.
- If you want to reserve a disk for another use, uncheck the "available for placement" box.
- In the "placement" part we can see the default locations for VHD storage
- Click on "ADD" to add another placement location (for example d:)
- D: then appears in the possible placements
- You can click on "remove" to remove a location (for exemple c:)
- Click on "OK" to confirm changes.
5b - Libraries
Creating a library, makes it possible to share sources with your VMs. For example, you can share your ISOs to create your installations.
Before anything else, you have to create the sharing and give rights to your administrator and user accounts
On you hyper-V server, create a directory (where you will be leaving your ISO images, scripts, sources) and give full rights to your "sysadmin" account, to your domain administrator account and a read-only access to "Authenticated Users"
net share ISO-NS6856=c:\tools\iso /grant:plop\sysadmin,full /grant:"Authenticated Users",READ /grant:plop\root,full
The sharing process having been created, it is now possible to create a library
- In the "Librairy" section, click right and select "Add library server"
- Enter your "sysadmin" account
- enter the "computer name" on which is located the shared directory
- Check the box that matches the share that has the data that will be put in the library
- Click on "Add library servers"
- The addition process appears in the tasks in progress
- In the "Library" section your new library has been added and the shared data appears on the right side
5c - VLAN configuration
- In the "Fabric" section, select "Networking" then click on "Create Logical Network"
- Enter the name of your "Logical Network"
- Incidentally you can add sites that already exist, then click on "Next"
- Click on "Finish" to confirm the creation.
- Select your newly created site in the right side, then click right and select "create IP Pool"
- Enter the name and select "Logical Network" to be attached.
- Enter the name of the "Virtual Network", IP range, the VLAN, and authorised groups
- Enter the start IP and end IP
- If necessary, specify the gateway
- If necessary, specify the DNS.
- If necessary, specify the WINS
- Click on "Finish" to confirm creation
- The IP Pool now appears under your "Logical Network"
- To link a server to your "Logical Network", in the "Fabric" section, click right and select "Properties" on the appropriate server.
- In the "Hardware" section, look for the appropriate network card and check the box in connection with your "Logical Network"
- In the "Virtual Network" section, click on "Add" if no network is visible then enter the data of your "Logical Network". Click on "OK" to confirm all your changes.
- In your VM properties, in the "Hardware" section, you can now link your VM's virtual network card to your newly created "Virtual Network".
5d - VM Creation
- Place yourself in the "VMs and Services" section, then click on "Create Virtual Machine", and select "Create Virtual Machine"
- To use a template choose option 1, or otherwise option 2 for a new VM
- Specify a name for your VM
- Customise your VM, number of cores, RAM quantity, disk size, additional peripherals, network parameters.
- Select "place the virtual machine on a host"
- Select the hyper-V host that will receive your VM
- The VHD storage directory on the HV server appears in the right window
- If necessary, customise your automatic actions
- On the summary page, click on "Create" to launch your VM's creation
- Once your VM has been created, you can edit its properties, and add an ISO image to it, from your library.
Please note that if the "share image file ..." box isn't checked, the ISO image will be copied into the directory next to the VM's VHD image.
Beware: for the moment, it is preferable to uncheck the "share image file ..." box, as there are many "unsupported VM configuration" errors. This is a temporary measure pending a corrective patch.
- Once the ISO has been defined, launch your VM, then go to "Connect via console" to visualise the VM in action from SCVMM 2012.
- Installation of your VM is in progress.
5e - VM templates
- In the "VMs and Services" section, select the VM that you want to turn into a template the click right and select "Create" -> "Create VM template"
- The VM won't be used after it has been transformed into a, click on "Yes"
- Enter a name for the template
- If necessary, modify the characteristics
- Edit generalisation parameters
- Select the library server that will host your template
- Click on "Browse" to select the shared file
- Select the share location on the library server
- Click on "Next"
- Confirm the creation with "Create"
- Wait for the end of the creation task
5f - Create a VM from a template
- To create a VM from a template select the "Use an existing ..." option curing the VM creation
- Click on "Browse" and select the desired template
- Click on "Next"
- Give a name to your VM
- Check hardware configuration
- Check generalisation configuration
- Transfer the VM onto the Host
- Choose which host will receive the VM
- Check parameter configuration
- Click on "Next"
- Click on "Create"
- The task is in progress
- You can repeat it many times in a row
- Once these tasks are over, the VMs are ready!