Archive for the ‘SCVMM’ Category

Speaking on Wednesday 28/9 at Microsoft about VDI building blocks with #Microsoft,#Citrix & #Netapp #mvpbuzz #xendesktop

September 11, 2011 Leave a comment

next Wednesday I will speak at Microsoft hero event about VDI building blocks with Microsoft, Citrix and Netapp solutions.

the session will be level 300-350 going from design to implementation, the session content will be:

No Marketing stuff , it is All Hot technical materials. so Drink a lot of Coffee :), The session is for Arabic language speakers

 book your calendar, you can confirm your registration and share it on linedin or facebook:



– Introduction to Desktop Virtualization and what does it mean.

– Benefits of VDI for corporates

– Building Blocks for VDI:

    • Understand Hypervisor Requirements, Hyper-v, SCVMM
    • Understand Connection Broker Requirements Xendesktop
    • Understand application delivery requirements (Terminal Services and Xenapp)
    • Understand VDI Type and OS Delivery Types.

– Get your VDI on the right track:

  • Sizing your Hypervisor correctly Including Memory, Processor and Storage.
  • Designing Operating System Delivery
  • Sizing your application delivery infrastructure
  • Sizing remote access and network
  • Storage optimization matrix for VDI deployments (De-duplication, Thin Provisioning and Snapshots)
  • Design backup and restore

– Lab for end to end solution implementation

See you there,


Automating #Linux Machines #provisioning on #Microsoft Hyper-v #Cloud using #opalis #hyperv

April 23, 2011 4 comments

I was assigned the task by one of my customers to automate their Linux machines provisioning on their Hyper-v cloud they are running, they still evaluating the Hyper-v Cloud capabilities, and they were wondering if they can automate the Linux machines provisioning into Hyper-v Servers.

They currently still evaluating it, so the process for the request and automation still not clear in their mind, but the question and request was simple, we want to automate the process of copying and configuring the machine, specially that they are running lots of Linux virtual machines.

the setup:

– 2 Hyper-v nodes running in cluster, each with 128 GB of memory, SCCM,SCOM, SCVMM 2008 R2 SP1, DPM 2010.

– request will come from a help desk or purchasing system, this is not clear yet.

before we start here is some notes for Microsoft guys working on that:

– I spent couple of days trying to figure out how sysprep can be done on the Linux machines and how to script it, the important note that Linux doesn’t has SID related information bounded to the machine, so copying the machine and renaming it will bring a totally new machine to the cloud. reference here.

– the machine name for Linux can be placed and configured in several places, keep in mind that if you used the command hostname to set the Linux machine host name it will be changed to the default name after the restart, to set it permanently, you will need to set the host name on /etc/sysconfig/network file.

– to execute commands remotely you will need to SSH on the machine.

now let us rock n roll:

I have no experience on Linux scripting so steps mentioned here are just guidelines and placeholders for others to use and kick off their implementations, however I don’t claim that those are the best way to do it.

the workflow you will configure will require the following:

– Create a template Linux virtual machine by creating a normal machine on any hyper-v Host.

– Install the Linux Integration components for Hyper-v, the main factor to note that you will need to install the development tools on the machine so it can successfully compile the source.

– after the integration tools installation you will need to assign a static IP to the machine (this will be used by Opalis later to SSH to the machine and run the configuration commands).

– Shut down the machine, from the SCVMM 2008 R2 admin console, copy the virtual machine to the library (if the hyper-v hosts located in different forest or DMZ this can be done by copying it).

now let us start:

– Install Opalis, best video can be found here.

– Import the SCVMM 2008 R2 Integration pack.

– Create the provisioning work flow as following:


the work flow will do the following:

– Create a random name that will be assigned to the machine, this is just a placeholder, the machine can be retrieved from text file, SQL DB..etc


– Create a VM from the VM template from the SCVMM 2008 R2 Server, and assign the name generated by the previous task to it, the name will be Linux-randomtextvalue


to assign the name linux-randometextname, in the vmname field you can pass the results of the previous task by typing, linux- then right click in the field and choose subscribe and choose published data and choose random text results from the previous step.

– the next step will get the vm, make the name as the name linux-randometextname same as previous step.

-the next step will start the vm, and pass the VM ID retrieved by the “Get VM” task, since this task requires VM ID, use the subscribe and published data to pass the VM ID from the “Get VM” Task.

– the link between the “start VM” and next SSH command will wait for 300 seconds or 5 minutes to allow the machine to fully start.

– the next ssh command will ssh to the static IP of the machine, and change the name by altering the file /etc/sysconfig/network and searching it for the default name “localhost.localdomain” and change it with the random text results:


the command will be : sed -i ‘s/localhost.localdomain/Linux-{Randome Text from “Generate VM name”}/g’ /etc/sysconfig/network

– the next step will configure the machine to use DHCP commands, same SSH step the command will be: sed -i ‘s/none/dhcp/g’ /etc/sysconfig/network-scripts/ifcfg-eth0

– the next SSH command will restart the VM to apply the settings.

and you are done.

again you can play with the workflow and create you own flow, there is some guides on the internet to automate the request that came from SCSM into Opalis..etc but this article to give you an idea about how generally the Linux machine configuration will be done.

How to Resize the VHD harddisk in Hyper-v

August 16, 2010 Leave a comment

have you ever wanted to reduce the VHD size or resize it to a newer size, here is a step by step on how to resize the VHD disk size:

1- you need to shrink the VHD disk first:

a: If your Host is running Windows 2008 R2, then you can attach the VHD directly to the host and then use disk management to shrink the VM. Once done detach and run resizer. This attach VHD option is also available in Windows 7.
How to attach a VHD

b: If you don’t have a Vista/2008/Win7/2008 R2 VM and you host is Windows 2008 (not R2), you can install VHDmount tool available in Virtual Server 2005 R2 SP1 setup and use it to mount the VHD and then use the disk management tools to shrink the VHD.
Mount a VHD file with VHDMount

Once you did shrink to the VM, do resize using VHD sizer :

the above steps will allow you to resize the VHD and also reduce its size as well

Categories: Hyper-v, SCVMM Tags: , ,

Changing SCVMM 2008 R2 Communication Ports

August 10, 2010 Leave a comment

1. Stop the Virtual Machine Manager Windows Service.
2. OpenWindows Registry.
3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft System Center Virtual Machine Manager Server\Settings.
4. Change the value of IndigoTcpPort (for WCF), WSManTcpPort (for WinRM), or BITSTcpPort (for BITS).
5. Ensure that the proper firewall rules exist for communication on the changed ports. If both a hardware and a software firewall are in place in your environment, consult with the system administrator to enable these firewall rules on both types of firewall.
6. Start the Virtual Machine ManagerWindows Service.
Categories: Hyper-v, SCVMM
%d bloggers like this: