Etiket arşivi: Virtual Machine Manager

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

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.

Hyper-V R2 virtualization on Dell Blade with Benchmark Results

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)

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

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.

SCVMM 2008 R2 – Solution of Warning (13921)

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.

Adding file and secondary IP to remote host with Powershell

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.

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

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.