Four new video demos are available for System Center Virtual Machine Manager on the TechNet TechCenter at: http://technet.microsoft.com/en-us/scvmm/bb688094.aspx.
Introduction to Scripting in VMM
Scheduling Virtual Machine Migrations
Creating Backups with Checkpoints
Viewing Job Information
Leave comments here letting us know what videos you'd like from us next.
The free (120 day) evaluation version of VMM is now live on the TechNet TechCenter. You can also try the eval version as a VHD and run it on a VM!
Download the 120-day trial softwareSystem Center Virtual Machine Manager (VMM) 2007 provides a comprehensive management solution for the virtualized data center that enables increased physical server utilization and centralized management of virtual machine infrastructure.
Download the VHDThe preconfigured files come with all the necessary components to get VMM up and running quickly as a virtual machine. Once the VHD is downloaded and joined to a domain, you can begin testing all the functions of VMM including the Self Service Administration Portal and Intelligent Placement capabilities.
When it is time to move to the full version, all you have to do is uninstall the eval version using the "Retain data" option, then install the full version.
The Windows PowerShell Virtual Machine Manager Cmdlet Reference is now available in the download center. This doc presents the contents of the help available on the command line: Windows PowerShell Virtual Machine Manager command shell.
Leave feedback on how useful you find this doc on this blog - it'll help us detrmine whether to post the next version. Thanks in advance.
Check out the new Windows Live Translation beta on the new VMM TechCenter, and let us know the results for your language by leaving comments here.
Thanks in advance. Dank im Voraus. Merci à l'avance. Gracias por adelantado. Ringraziamenti in anticipo. 前もってありがとう。事先感谢。事先感謝。미리 감사합니다. Спасибо заранее. Dank vooraf. شكور مقدّما. Agradecimentos adiantado.
Rakeshm has recorded an excellet getting started with VMM video available here: http://technet.microsoft.com/scvmm/bb688094.aspx.
Check it out, leave feedback. Want to see more like this? Let us know if the next area of the product we should you'd like to see in this kind of format.
Also check out Keith's http://blogs.technet.com/keithcombs/archive/2007/09/06/everything-you-need-to-know-about-scvmm-in-15-minutes.aspx
One of our Beta users recently asked about programmatically setting some of the 10 custom properties for VMs so that it displays some useful information about the VM in the Host view of the VMM Administrator Console. For example:
One of the sample scripts in the soon-to-be-released Scripting Guide shows how to set a custom property on your VM, in this case, whether it needs VM additions
##################################################################################
# Connect to VMM server
# Substitute the name of your VMM server and domain in this command:
$VMMServer = Get-VMMServer -ComputerName "VMMServer1.Contoso.com"
# Find all the virtual machines without additions and update their custom property ##################################################################################
$VMs = @(Get-VM)
$VMsWithoutAdditions = @($VMs | where {$_.HasVMAdditions -eq $false})
if ($VMsWithoutAdditions -ne 0)
{
Write-Host -ForegroundColor Yellow "UPDATE CUSTOM PROPERTY"
}
foreach ($VM in $VMsWithoutAdditions)
Write-Host "Setting Custom10 property as `"Needs VM additions`" on VM", $VM.Name, "..."
$UpdatedVM = Set-VM -VM $VM -Custom10 "Needs VM additions"
Here is how you would populate Custom1 and Custom2 with the location of the VHD on channel 0 and the Virtual Network on NIC adapter 0:$vm = get-vm -Name "My VM"$vm | set-vm -Custom1 $vm.VirtualHardDisks[0].Location -Custom2 $vm.VirtualNetworkAdapters[0].VirtualNetwork }The following script would populate these properties for all VMs managed by SCVMM:$vms = get-vmforeach ($vm in $vms) $vm | set-vm -Custom1 $vm.VirtualHardDisks[0].Location -Custom2 $vm.VirtualNetworkAdapters[0].VirtualNetwork }
You can find the full instructions in the upgrade guide, and the upgrade.exe on the Microsoft Connect site (Windows Live ID required) at: https://connect.microsoft.com/vmm/Downloads/DownloadDetails.aspx?DownloadID=8384
Before you upgrade, you must:
1. Back up the VMM database.
2. Uninstall the VMM agent using Add or Remove Programs for each managed host that is in a perimeter network.
3. Uninstall the VMM Beta 2 server by using the "Retain data" option.
4. Uninstall the Windows Remote Management (WinRM) component on the VMM server, library servers, and all hosts. To uninstall WinRM it by using Add or Remove Programs, you might have to select the Show updates box. Uninstall the component named "Windows Remote Management (KBHWMGMT)."
5. Restart the computer and then install the version of WinRM available at http://go.microsoft.com/fwlink/?LinkId=84599.
Upgrade
To upgrade to the released version of Virtual Machine Manager, you must perform the following actions:
1. Update the VMM database. Download and run upgrade.exe locally on the database server using an account that has DB Admin permission. Upgrade.exe is available at http://go.microsoft.com/fwlink/?LinkId=98304.
For example:
upgrade.exe –server localhost\MICROSOFT$VMM$ -database VirtualManagerDB
1. Install the released version of Virtual Machine Manager 2007 server.
2. Add back to the following three local user groups, any account you previously had:
a. Virtual Machine Manager Administrators
b. Virtual Machine Manager Self-Service Portals
c. Virtual Machine Manager Servers
3. Uninstall the Beta 2 version of the VMM Administrator Console, and then install the released version.
4. Uninstall the Beta 2 version of the Self-Service Portal, and then install the released version of the Self-Service Portal.
5. For each managed host that is in a trusted Active Directory domain with the VMM server, update the WinRM version. You must also update the agents. You can use the Update action in the VMM Administrator Console to update the VMM agent on the host. For instructions, see "How to Update an Agent on a Host" in Virtual Machine Manager Help. Alternatively, you can update the agent using Windows PowerShell -- Virtual Machine Manager command shell with the following commands:
Get-VMMServer <servername>$credential = Get-CredentialGet-VMMManagedComputer | where {$_.VersionState -eq "NotSupported" } | Update-VMMManagedComputer -Credential $credential
6. For each managed host that is on a perimeter network, perform the following actions:
a. Re-install the agent locally, and create a new certificate.
b. Add hosts to Virtual Machine Manager by using the new certificate you created. Be sure to destroy the credential after you add the host.
To find the server, SQL instance and DB name
· Open the registry and navigate to the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft System Center Virtual Machine Manager 2007 Server\Settings\Sql.
· The database name can be found at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft System Center Virtual Machine Manager 2007 Server\Settings\Sql\DatabaseName
· If the database is remote the following key value is non-zero
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft System Center Virtual Machine Manager 2007 Server\Settings\Sql\OnRemoteServer
· The DB server name can be found at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft System Center Virtual Machine Manager 2007 Server\Settings\Sql\MachineName
· The instance name for the database can be found at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft System Center Virtual Machine Manager 2007 Server\Settings\Sql\InstanceName
If upgrade.exe fails to complete the upgrade, run the tool again. In an un-repairable situation, you can restore the database from a backup and then run upgrade.exe again.
Ensure that you are using credentials that have DB Owner permissions on the SQL database server.
Issue
Possible cause
Solution
Upgrade fails with a SQL server connection exception.
This error can occur for several reasons:
· Incorrect server name
· Incorrect instance name
· Incorrect database name
· Incorrect credentials
Try the upgrade again. For the default settings, run
upgrade.exe -server <machinename>\MICROSOFT$VMM$ -database VirtualManagerDB
If the upgrade still fails, contact product support.
Upgrade fails with the error: " Unable to access registry Software\Microsoft\Microsoft SQL Server\90\Tools\ClientSetup"
OR
"Could not find the location of SQL Tools: Unable to access registry Software\Microsoft\Microsoft SQL Server\90\Tools\ClientSetup."
SQL Server tools are not installed.
Install SQL Server tools from your VMM CD.
1. Navigate to Prerequisites\SQLEXPR\1033 folder download the SQL Express Edition package at http://go.microsoft.com/fwlink/?LinkId=95583
2. Restart your computer and run Upgrade.exe again.
Agent installation fails with error 441: "Agent communication is blocked since the version of Virtual Machine Manager agent on <computer name> is unsupported>. Or if <computer name> is a host then the version of Virtual Server is unsupported."
The version of WinRM that VMM uses has changed from Beta 2 to RTM. You must uninstall the old version and install the supported version before installing the agent (library, host or in converting a physical server).
1. Using Add or Remove Programs, uninstall the WinRM component on the VMM server, any remote SQL database server, library servers and all hosts.
2. Restart the computer and then install the version of WinRM that is available at http://go.microsoft.com/fwlink/?LinkId=84599
Administrator Console fails with error 1612: "The connection to the Virtual Machine Manager server <server name> was lost."
You are using a Beta 2 version of the Administrator Console with a released version VMM server.
Upgrade the Administrator Console to the released version.
Unexpected Virtual Server service error after SQL Express SP2 was uninstalled.
Uninstalling SQL Express SP2 MSXML 6.0 Parser. Virtual Server has a dependency on MSXML 6.0 Parser.
1. Stop the Virtual Server service.
2. Download and install the version of MSXML 6.0 Parser that is supported by VMM at http://go.microsoft.com/fwlink/?LinkId=86867
3. Start the Virtual Server service.
Now that VMM has RTMd, if you are a Beta 2 user, you may have some questions about the upgrade to RTM, assuming you want to retain your data? If you do not want to retain your data, uninstall the Beta 2 version and perform a clean installation of the released version of VMM.
Virtual machines (VM), checkpoints and host associations are preserved. Your hosts that are joined to a domain, and the VMs and checkpoints on them, are discovered after you perform the upgrade and are displayed in the Administrator Console. Any hosts that are on a perimeter network are also displayed after you remove and then add the agent locally. Agents on hosts that are not on a perimeter network are displayed in the Administrator Console as requiring an update.
Jobs, Self-Service Trusted Web Server accounts and Virtual Machine Administrator accounts are deleted. You must add the Self-Service and Virtual Machine Administrator accounts after you perform the upgrade.
Library servers and library resources, such as hardware configurations and operating system profiles, are preserved and appear in the Administrator Console after you perform the upgrade.
Self-Service policies are preserved. Tags and custom properties on VMs that you have created are preserved. After you add the hosts, the VMs, with their custom properties and tags, are displayed in the Administrator Console.
The information that is used for the reports is preserved, but you must uninstall the Beta 2 Management Pack and install the Operations Manager 2007 Management Pack.
SQL Server tools must be installed. If you plan to run the upgrade.exe on a server other than the VMM server, you must first install SQL Server Native Client and tools (SQL Server Tools). You can install the SQL Server Native Client and SQL Server Tools from your VMM CD under the Prerequisites\SQLEXPR\1033 folder, or you can download the SQL Express Edition package at http://go.microsoft.com/fwlink/?LinkId=95583.
The command-line upgrade tool, upgrade.exe, uses the Security Support Provider Interface (SSPI) to connect to the VMM database. The account that is used to run Upgrade.exe must have DB Owner permission on the database.
· You must use an account with appropriate permissions to the VMM database in SQL Server, whether the database is installed locally on the VMM server or accessed remotely, to retain your data when you uninstall Beta 2.
· You must locally uninstall the agents on hosts that are on a perimeter network before you upgrade the VMM server.
· You should perform a clean install of all agent certificates.
· Self-Service Portal associations are lost. After you upgrade, you must re-associate any Self-Service Portal in the Administrator Console.
If you have a large number of Beta 2 Self-Service Web Portals, you can run the following Windows PowerShell commands on the VMM server before you perform the upgrade to export the computer names to a text file:
Get-VMMServer <Server Name>
Get-SelfServiceWebServer | Out-File -FilePath <Text File Name>
After you perform the upgrade, run the following Windows PowerShell commands on the VMM server to import the computer names that you saved before the upgrade:
Get-Content <Text File Name> | ForEach-Object -Process {Add-SelfServiceWebServer -ComputerName $_}
· During the upgrade, members of the following local user groups are deleted:
· Virtual Machine Manager Administrators
· Virtual Machine Manager Self-Service Portals
· Virtual Machine Manager Servers
After upgrade you must add the members of these groups back if you want them to be the same as they were before the upgrade.
· Any firewall port exceptions that you entered during setup remain when you upgrade Virtual Machine Manager.
· If you used the default SQL Server instance name (MSSQLSERVER) when you installed Beta 2, you must not specify the instance name when you run the upgrade tool. For example,
upgrade.exe -server <computer name> -database VirtualManagerDB
Help is on the way for IT Pros that manage IT environments with fewer thatn enterprise numbers of machines. Today it was announced that:
System Center Virtual Machine Manager 2007 Workgroup Edition will be available in January 2008, targeted at the Mid-market Virtual Machine management market. VMM Workgroup Edition will manage unlimited number of VMs on up to five Virtual Server hosts at a price of $499 per license.
View the Virtual Machine Manager How To Videos here:http://technet.microsoft.com/en-us/scvmm/bb688094.aspx.
More to come in the near future, watch that page.
The Troubleshooting Guide for SCVMM is live a http://go.microsoft.com/fwlink/?LinkId=83589
Here are some general troubleshooting tips:
Q: Does SCVMM replace VSMT? A: Pretty much yes. VSMT still works, but is not going to get an update. Now is a good time to switch to SCVMM :-)
Q: Is P2V in SCVMM "fire and forget"? A: Most Beta customers found that the convert-physical-server wizard yielded VMs that didn't need any "fixup" and did not require downtime. As a best practice, many go through the VM post-conversion and remove vendor-specific (no longer needed) hardware utilities and drivers. In the Beta, most customers who had any issues with P2V conversion fixed them by updating the source machine so that it had all current updates and patches, then retrying P2V. So, best practice reccomendation: ensure your source machine is up-to-date before P2V. Bad sectors on disk cannot be transferred during a P2V conversion. To avoid data loss, it is recommended that you run a disk maintenance tool such as Chkdsk on the source machine to detect and correct any file system errors before initiating the P2V process.If you are going to do an offline conversion (the source machine is restarted into WinPE to image the hard disks), WAIK must be installed on the VMM server. To download the WAIK, go to http://go.microsoft.com/fwlink/?LinkId=86477.
Q: How much does it cost to P2V? A: Most P2V solutions charge a license fee per conversion. SCVMM allows you to convert an unlimited number of source machines that are running Windows 2000, 2003, and Windows XP. You can find the evaluation version here:http://www.microsoft.com/downloads/details.aspx?familyid=d4e8bc52-3c3b-4bae-b937-987da892fad7&displaylang=en. How many machines can you convert in 120 days?
Q: Does SCVMM convert VMware virtual machines (V2V)? A: Yes. See Virtualization Nation: How to V2V
Q: Can I convert a server that is not domain-joined? A: No, SCVMM P2V requires that the source machine is a member of a domain.
Q: What are the source machine requirements? A: Minimum 512 MB of RAM, and one of the following supported operating systems:
If you are going to do an offline conversion (the source machine is restarted into WinPE to image the hard disks), WAIK must be installed on the VMM server. To download the WAIK, go to http://go.microsoft.com/fwlink/?LinkId=86477.
Q: Um, how do I do a P2V? A: See How to P2V
Q: One last thing, what happens if I get into trouble with P2V? A: Check the troubleshoting guide here: http://go.microsoft.com/fwlink/?LinkId=83589
A general TS tip is: find the source of the error using the Jobs view. Open the Jobs view, select a job, and click on the Change Tracking tab in the details pane. Then navigate down the jobs until you find the job where the Status property changed from the Thing You Want, such changing from "Responding" to 'Not Responding'. Once you find this job, click on the Summary tab of the details pane to understand the soruce of the trouble. If we have done our job reasonably well, once you see the source, the fix should be pretty self-evident and easy.
Q: Does SCVMM convert VMware virtual machines (V2V)? A: Yes. You must put the following files from the source VMware virtual machine in the Virtual Machine Manager library:
During the conversion process, the Convert Virtual Machine Wizard converts the .vmdk files to .vhd files and makes the operating system on the virtual machine compatible with Microsoft virtualization technologies. The virtual machine created by the wizard matches VMware virtual machine properties, including name, description, memory, disk-to-bus assignment, CD and DVD settings, network adapter settings and parameters, and so on.
The Convert Virtual Machine Wizard supports the conversion of VMware virtual machines that are running any of the following guest operating systems:
If you use the Convert Virtual Machine Wizard to convert a VMWare-based virtual machine running any operating system not in the preceding list, the virtual machine might not start up or might not function correctly. To ensure a successful conversion, you must first modify the guest operating system to one of the listed supported operating systems.
Some conversions of a VMWare-based virtual machine whose guest operating system is Windows might require that additional system files and drivers be added to the internal cache. In this case, when you run the Convert Virtual Machine Wizard, if additional files or drivers are required, do the following:
Depending on the configurations of the source and destination machines, this process may take some time to complete. To review the progress and results of the conversion, open the Jobs window. By default, the Jobs window opens when the wizard closes. To open the Jobs window at any time, click the Jobs button on the toolbar in the VMM Administrator Console.
And, of course, since everything in VMM can be done in PowerShell (get-command | where {$_.implementingtype -like "*VirtualMachineManager*"}), here you go:
$c = get-VMMserver localhost$vmhost = get-vmhost -VMMServer $c -ComputerName hostname$vm = $c | new-V2V -vmxpath \\machine\share\vmx_path -VMHost $vmhost -Path d:\vm\ [-Name vmname]or$vmx = $c | new-VMXMachineConfig -vmxpath \\machine\share\vmx_path$vm = $c | new-V2V -MachineConfig $vmx -VMHost $vmhost -Path d:\vm\ [-Name vmname]or$vhd = $c | copy-VMDK -Path d:\vm\ -VMHost $vmhost -vmdkpath \\machine\share\vmdk_pathfor more details:help <cmdlet>, e.g. help new-v2vorget-command new-v2v| format-list(get-command new-v2v).definition
You can read a little background on Virtual Machine Manager Self-Service here. There are several steps for setting it up. Some early adopter customers have had some trouble once they have installed the Self-Service portal. Often, the admin will go to the portal, and try to login to check out how the web-page works.
System Center Virtual Machine Manager 2007 is Gold - see you at launch.
:-)
Check out the new TechCenter.
Meet some of the virtualization MVP bloggers:
Andrew Dugdell's blog
Genta Watanabe's blog
Guilherme Antonio Whitaker Carnevale's blog
Peter Mathias Forster's blog (in German)