search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Virtual Machine Manager | 2 Comments | 15,156 views | 30/11/2009 02:15

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 (0x80004005))

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.


Posted in Exchange Server, Windows Powershell | 1 Comment | 14,499 views | 29/11/2009 21:01

I wrote a function for Hosted Exchange 2010 to create a new mailbox on Exchange Server 2010.

1
2
3
4
5
6
7
function Add-MailUser
{
Param ($UserID, $FirstName, $LastName, $CustomerOU)
    $ADDomain = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()
    $ADDomainName = $ADDomain.Name
    Enable-Mailbox -Identity "$ADDomainName/$CustomerOU/$FirstName $LastName" -Alias "$UserID"
}

Usage of function:

Add-MailUser –UserID “2452” –FirstName “Yusuf” –LastName “Ozturk” -CustomerOU “Users”

I used System.Directory.Services to get Active Directory domain. Lets see how does it work:

dservices

CustomerOU is the base of your user container. Just type your OU name like “Exchange” or “Users”.


Posted in Virtual Machine Manager, Windows Server | No Comment | 16,817 views | 27/11/2009 17:07

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)


Posted in Virtual Machine Manager, Windows Powershell | No Comment | 58,646 views | 27/11/2009 02:22

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.


Posted in Virtual Machine Manager | 2 Comments | 13,157 views | 23/11/2009 14:39

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.


Posted in Virtual Machine Manager, Windows Powershell, Windows Server | No Comment | 13,779 views | 20/11/2009 02:18

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.


Posted in Exchange Server | No Comment | 3,646 views | 14/11/2009 18:10

Exchange Server 2010 ile birlikte gelen yeni bir özellik sayesinde artık maillere otomatik imza eklenebildiğini söylemiş ve nasıl ekleyebileceğinizle ilgili örnek bir Powershell kodu eklemiştim. Şimdi o kodda kullanabileceğiniz diğer ADAttribute’ları ekliyorum.

%%DisplayName%%
%%FirstName%%
%%Initials%%
%%LastName%%
%%Office%%
%%PhoneNumber%%
%%OtherPhoneNumber%%
%%Email%%
%%Street%%
%%POBox%%
%%City%%
%%State%%
%%ZipCode%%
%%Country%%
%%UserLogonName%%
%%HomePhoneNumber%%
%%OtherHomePhoneNumber%%
%%PagerNumber%%
%%MobileNumber%%
%%FaxNumber%%
%%OtherFaxNumber%%
%%Notes%%
%%Title%%
%%Deparatment%%
%%Company%%
%%Manager%%
%%CustomAttribute1%%
%%CustomAttribute15%%

HTML kullanabildiğiniz için yukardaki Attribute’ları istediğiniz gibi yerleştirerek, güzel bir imza oluşturabilirsiniz.