SCVMM 2008 R2 – Virtual machine X could not be live migrated (Error 10698)

November 30th, 2009 admin Posted in Virtual Machine Manager No Comments »

You may get this error when you want to migrate a virtual machine with Live Migrate.

Error (10698)
Virtual machine X could not be live migrated to virtual machine host Y using this cluster configuration.
(Unspecified error (0×80004005))

Recommended Action
Check the cluster configuration and then try the operation again.

Check available memory (ram) on host Y. Maybe you have enough ram to pass SCVMM pre-checks but you don’t have enough to use Cluster service. Save state another virtual machine on host Y and retry migrate.

AddThis Social Bookmark Button

Hyper-V R2 virtualization on Dell Blade with Benchmark Results

November 27th, 2009 admin Posted in Virtual Machine Manager, Windows Server No Comments »

Dell Blade is a trusted virtualization solution for hosting companies. I did some benchmark tests on our Blade server (Dell PowerEdge M1000E). I used two different pyhsical servers, Dell PowerEdge M600 and Dell PowerEdge M610. Also I used two virtual machines to compare results. Server configurations:

DellM1000e

DELL M600:
OS: Windows Server 2008 R2 (64-bit)
CPU: Intel Xeon L5430 @ 2.66GHz
Ram: 32766 MB RAM
Disk: 136GB HDD

DELL M600 VM:
OS: Windows Server 2008 R2 (64-bit)
VM CPU: Intel Xeon L5430 @ 2.66GHz
VM Ram: 4095 MB RAM
VM Disk: 40 GB, DELL EqualLogic

DELL M610:
OS: Windows Server 2008 R2 (64-bit)
CPU: Intel Xeon E5530 @ 2.40GHz
Ram: 49142 MB RAM
Disk: 136GB HDD

DELL M610 VM:
OS: Windows Server 2008 R2 (64-bit)
VM CPU: Intel Xeon E5530 @ 2.40GHz
VM Ram: 4095 MB RAM
VM Disk: 40 GB, Dell EqualLogic

Results:
bench

I used Passmark PerformanceTest 7.0 for all benchmark tests. (http://www.passmark.com)

AddThis Social Bookmark Button

How can you find your attached iso image with Powershell using SCVMM?

November 27th, 2009 admin Posted in Virtual Machine Manager, Windows Powershell No Comments »

I got a question about ISO feature on Technet forums today.

Jan Marek:

Ok. But I have 200 virtual machines and I want to create a new one and use iso for virtual dvd rom. It is not working because I already use it for another server. How can I find from which one I should disconnect this iso?

Really good question I think. Because as I know, you can’t find it with SCVMM console. Also checking all virtual machines one by one is a way but it could be a nightmare, if you have so many virtual machines.

I wrote a Powershell script for Jan. I want to share:

1
2
3
4
5
6
7
8
9
$all = Get-VM *
foreach ($i in $all)
{
$iso = $i | Get-VirtualDVDDrive | Select-Object ISO
if ($iso -like "*test*")
{
write-host VM: $i
}
}

If your ISO name is “debian.iso”, just replace “test” with “debian”.

Also if you use just “Get-ISO”, you can see all iso images on all virtual machines.

You can reach that post from here:

If we can see them with SCVMM console, please let me know.

AddThis Social Bookmark Button

SCVMM 2008 R2 – Solution of Warning (13921)

November 23rd, 2009 admin Posted in Virtual Machine Manager No Comments »

You may get warning (13921) after migration of a virtual machine from a host to cluster:

Warning (13921)
Highly available virtual machine VX7526 is not supported by VMM because one or more of its network adapters is not configured correctly.

Recommended Action
Ensure that all of the virtual network adapters are either disconnected or connected to highly available virtual networks.

caps2

Let’s check virtual network adapters of the virtual machine:

caps1

As you see, I have 5 network tags. But the “Internal Network” exist in the Cluster? Let’s check it.

Right click to Cluster and click to Properties. Click “Networks” tab.

caps3

Now I see only 4 network cards. So where is the “Internal Network”?

caps4

That means I don’t have any network called “Internal Network”. So I have to create Internal Network in all Clustered Hosts or I have to choose another network. I simply choose Backup Network for my virtual machine.

caps5

Tadaaaa! We fixed it :) Remember, in order to assign a virtual network to virtual machine in a cluster environment, you need to create that virtual network in all hyper-v hosts. Good luck.

AddThis Social Bookmark Button

Adding file and secondary IP to remote host with Powershell

November 20th, 2009 admin Posted in Virtual Machine Manager, Windows Powershell, Windows Server No Comments »

You need to add secondary ip to external host? You only need to Powershell and Psexec. Psexec is a small and free program. You can download Psexec from Microsoft Technet. It works great!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# VM Config Tool
# Created By Yusuf Ozturk
# In God We Trust, All Others We Use Powershell
 
# PsTools: http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
 
$VMName = Get-VM VDS*
 
foreach ($VM in $VMName)
{
    $IP = ($VM.Name).TrimStart('VDS00')
 
    $Server = "10.10.10." + $IP
 
    $IP1 = "10.10.11." + $IP
    $IP2 = "10.10.12." + $IP
    $IP3 = "10.10.13." + $IP
 
    $PSExecPath = "\\10.10.10.2\yusufozturk$\PsTools\psexec.exe"
 
    $Command1 = "netsh interface ipv4 add address ""Local Area Connection"" $IP1 255.255.255.0"
    $Command2 = "netsh interface ipv4 add address ""Local Area Connection"" $IP2 255.255.255.0"
    $Command3 = "netsh interface ipv4 add address ""Local Area Connection"" $IP3 255.255.255.0"
    $Command4 = "xcopy \\10.10.10.2\yusufozturk$\IIS\default.asp C:\inetpub\wwwroot\"
 
    $Shell1 = $PSExecPath + " \\" + $Server + " -u Administrator -p Password123 " + $Command1
    $Shell2 = $PSExecPath + " \\" + $Server + " -u Administrator -p Password123 " + $Command2
    $Shell3 = $PSExecPath + " \\" + $Server + " -u Administrator -p Password123 " + $Command3
    $Shell4 = $PSExecPath + " \\" + $Server + " -u Administrator -p Password123 " + $Command4
 
    cmd.exe /c $Shell1
    cmd.exe /c $Shell2
    cmd.exe /c $Shell3
    cmd.exe /c $Shell4
 
}

You need to add /c switch for cmd.exe to execute scripts in a script. You need to accept Eula of Psexec first.

AddThis Social Bookmark Button

Reassociating a VMHost in a Cluster on SCVMM 2008 R2 with Powershell

November 14th, 2009 admin Posted in Virtual Machine Manager, Windows Powershell 1 Comment »

You can’t remove or update vmhosts if they are in Cluster on SCVMM 2008 R2. For that reason, you have to update hosts with Powershell. If you are getting “Access Denied” message from your hosts, you can reassociate them with Powershell:

1
2
$Credential = Get-Credential
Get-VMMManagedComputer | where {$_.State -eq "AccessDenied"} | Reassociate-VMMManagedComputer -Credential $Credential

After that, just update vmhost using SCVMM. Host will be ready.

AddThis Social Bookmark Button

Centos hangs at “IBM TrackPoint firmware” on Hyper-V R2!

November 3rd, 2009 admin Posted in Virtual Machine Manager 2 Comments »

If you install Centos 5.4 on Hyper-V R2 with Linux IC, it could hangs on reboots. We installed Linux Integration Components v2 and Linux Mouse Driver from Citrix. But we couldn’t solve the problem at the beginning.

VMBus: SynIC version: 1
IBM TrackPoint firmware: 0×01, buttons: 0/0
input: TPPS/2 IBM TrackPoint as /class/input/input1

part1

Then I realized something, Hyper-V doesn’t support 4 CPU in Linux Machines. So I switched the CPUs 4 to 1:

part2

And Wolaaaaa!

part3

This solved all problems. Have fun!

AddThis Social Bookmark Button

I’m very proud to show my PS script for SCVMM R2: VMDetails.ps1

November 3rd, 2009 admin Posted in Virtual Machine Manager, Windows Powershell No Comments »

You don’t need any storage server to use Hyper-V. We have Dell Blade servers and also Core i7 OEM servers. So if you have OEM servers, you have to choose VM locations carefully. Because your SATA disks will effect your virtual machines performance directly. So you have to check all SATA disks and find the best disk for the best performance. For that reason, i made this script. With VMDetails.ps1, you will always find the best SATA disk to deploy your Virtual Machine.

Also with VMDetails.PS1, you don’t need to know “Virtual Network Name” of your Hyper-V Host. If you just type “Auto”, it looks for Virtual Networks and choose the best Virtual Network Name. Also you can exclude any Virtual Network like “Backup Network”.

How about Best Hyper-V Host? Just type “Auto” for Hyper-V host name and you will get the Best Hyper-V host to deploy your virtual machines. This script looks all your hyper-v hosts and choose the best one for the best performance.

VMDetails.ps1 Preview:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
##########################
####   VMDETAILS.PS1  ####
##########################
 
# Gets Template and Hardware Details
 
function Get-VMDetails
{
param ($VMHost, $Template, $HardwareProfile, $HDDPart, $Network, $ExcludedHDD, $ExcludedNetwork)
 
    $Temp = Get-Template | Where { $_.Name -eq "$Template" }
    $OperatingSystem = $Temp.OperatingSystem.Name
    $SysprepScript = $Temp.SysprepScript.SharePath
 
    $Hardware = Get-HardwareProfile | Where { $_.Name -eq "$HardwareProfile" }
    $CpuType = $Hardware.CPUType.Name
 
    If ($VMHost -eq "Auto")
    {
        $BestServer = Get-VMHost * | Select-Object -Property Name,AvailableMemory | Sort-object AvailableMemory | Select-Object -Last 1
        $VMHostName = $BestServer.Name
        $HDDPart = $HDDPart
 
        If ($HDDPart -eq "Auto:")
        {
            $BestDisk = (Get-VMHost $VMHostName).DiskVolumes
 
            Foreach ($i in $BestDisk)
            {
                If ($i -like "$ExcludedHDD*")

You can download from here: VMDetails.ps1

Usage:

Get-VMDetails -VMHost $VMHost -Template $Template -HardwareProfile $HardwareProfile -HDDPart $HDDPart -Network $Network -ExcludedHDD $ExcludedHDD -ExcludedNetwork $ExcludedNetwork

Params:

$Template: Virtual Machine Template for Deploy
$HardwareProfile: Hardware Profile for Template
$VMHost: One of your Hyper-V Servers’ Name in VMHosts (like hyperv02 or Auto)
$HDDPart: Hard Disk Partition (like C:, D:, E: or Auto)

Example:

Get-VMDetails -VMHost hyperv02 -Template W2K8R2STDT1 -HardwareProfile TEMP2GB -HDDPart Auto -Network Auto -ExcludedHDD "C:" -ExcludedNetwork "Backup Network"

How can you use results?

1
2
3
4
5
6
7
8
$VMDetails = Get-VMDetails -VMHost "$VMHost" -Template "$VMTemplate" -HardwareProfile "$HardwareProfile" -HDDPart "$HDDPart" -Network "$NetworkName" -ExcludedHDD "$ExcludedHDDPart" -ExcludedNetwork "$ExcludedNetwork"
 
$CpuType = $VMDetails.CpuType
$OperatingSystem = $VMDetails.OperatingSystem
$SysprepScript = $VMDetails.SysprepScript
$VMHostName = $VMDetails.VMHostName
$HDDPart = $VMDetails.HDDPart
$NetworkName = $VMDetails.NetworkName

Also I updated the script. Now If you use Windows Server 2008 R2, the “Reserved System Partition” is auto excluded.

Have Fun!

AddThis Social Bookmark Button

DELL R200 vs Hyper-V R2 VM Performance Test

November 2nd, 2009 admin Posted in Virtual Machine Manager, Windows Server No Comments »

Today, I tested a DELL R200 server with two different Hyper-V R2 VMs. Results are unexpectable. Hyper-V R2 beats R200 on performance test. Server configurations:

Dell R200:
OS: Windows Server 2008 R2 (64-bit)
CPU: Intel Xeon X3320 @ 2.50GHz
Ram: 4094 MB RAM
Disk Size: 232 GB, Raid1

Dell M600:
OS: Windows Server 2008 R2 (64-bit)
VM CPU: Intel Xeon L5430 @ 2.66GHz
VM Ram: 4095 MB RAM
VM Disk: 40 GB, Dell EqualLogic

Dell M610:
OS: Windows Server 2008 R2 (64-bit)
VM CPU: Intel Xeon E5530 @ 2.40GHz
VM Ram: 4095 MB RAM
VM Disk: 40 GB, Dell EqualLogic

Results:
performance test

So choosing Radore vXeon servers is a smart play for your needs :)

AddThis Social Bookmark Button

Removing Hyper-V host that you can no longer access from SCVMM 2008

October 28th, 2009 admin Posted in Virtual Machine Manager, Windows Powershell No Comments »

You may need to remove Hyper-V Host without using Credentials if you can no longer access that host. But using SCVMM panel is not a right way sometimes if that host have a associate with another SCVMM server.

1
Remove-VMHost -VMHost RH-VOEM01 -Force -Confirm

With using Force switch, you can remove VMHost directly from SCVMM SQL database. So you don’t need credentials because this operation doesn’t remove SCVMM agent on target host. This command saved my life :)

AddThis Social Bookmark Button