Category Archives: Uncategorized

New angle from Microsoft Virtualisation camp

Microsoft is targeting system management as a way to differentiate itself from competitors in the virtualisation market. Anticipating that the market for virtualisation software, such as Microsoft’s Hyper-V, will eventually be commoditised, the company sees management as the key revenue opportunity, said Windows Enterprise and Management Division General Manager Larry Orecklin, speaking to reporters on Microsoft’s campus recently.

“Management becomes really the thing we believe is critical to ensuring customers can get full value from the virtualisation opportunity,” he said.

Orecklin said that for all the hype around virtualization, less than 10% of datacentres are virtualised today, according to research firm IDC. The reason for the slow adoption is that once companies began to virtualise their environments, they realised that the economics and logistics of managing them was quite difficult, he said.

Because of this, Microsoft aims to make easing management headaches the key to its virtualisation strategy rather than to battle competitors purely on the technology, Orecklin said. “Rather than either go fight for that 10%, [we’re] actually fighting for the 90%,” he said.

Microsoft has been slow to offer built-in virtualisation for its Windows Server platform, letting competitor VMware take a sizeable lead in the virtualisation market. The company had intended to release Hyper-V as part of Windows Server 2008 in February, but delayed it until six months after the OS came out because Microsoft opted to remove some originally planned features.

“I would love to have had this product out sooner,” Orecklin acknowledged about Hyper-V, which is currently available in beta as a feature of Windows Server 2008 and will be available in July in full release.

Microsoft is so keen on making management the linchpin of the virtualisation strategy that it plans to open up management for other virtualisation platforms, such as VMware and XenSource, with its Virtual Machine Manager tool, which it released last September. Virtual Machine Manager is part of Microsoft’s System Center set of datacentre management products.

The current release of Virtual Machine Manager supports only Virtual Server, Microsoft’s stand-alone virtualisation technology. Once it is released simultaneously with the full production release of Hyper-V in July, Virtual Machine Manager will support Hyper-V and VMware ESX virtualisation.

The following version of Virtual Machine Manager, the details of which have not yet been discussed publicly, will extend management to XenSource’s virtualisation product, he said.

Microsoft How-To Video – "Virtualization in Windows Server"

The session features a discussion of the virtualization technology roadmap and an outline of Microsoft's vision for how these technologies will combine with future capabilities in processors, chipsets, and I/O devices to enable unprecedented flexibility by the Windows Server platforms.

Presented by Mike Neil

Length: 51 minutes 59 seconds

 

To watch the above video please visit: Virtualization in Windows Server

Explanation of Virtual Center’s customization process

Original Article… http://www.blogit.nu/content-15.html

A while ago I was trying to work out how to change the preferences for sysprep outside the Vmware wizard so that I could put more complex items in there, the following explains the customisation process:

I was under the impression that the virtual center customisation part of the cloning process was done using Microsoft’s sysprep utility. My impression was correct with one exception … configuring the IP settings of the network cards.

On a thread there was an instance of whenever a client clone a virtual machine and tell it to join to the domain it fails ..!!
Having a look on the community it turns out that in order to make this work you need to have DHCP enabled on your network which was not the case for this client.
While most companies probably have DHCP enabled, I could not believe that vmware would make an assumption like this,
so I decided to dig a bit deeper and find out how it really works.

You may have already looked in the %program files%\Vmware\Virtual Center\Scripts directory, what you will find there are a bunch of visual basic scripts, when you open them they are encrypted using the vbscript encoder.
I decrypted the scripts, and here are my findings:

At a high level, the customisation process is as following:
Before the actual cloning of the disks start, Virtual Center will call the autoprep.wsf script. The first time it runs, it runs in a probe only mode. In Probe only mode it will validate the steps (which I will describe later) but it does not commit it any changes and deletes the files generated at the end of the process. When the validation passed succesully it will start cloning the disks and when this process is finished it will re-call the autoprep.wsf script:

  • re-creates the neccesary files (sysprep,inf, cmdlines.txt, …)
  • mounts the new disk
  • assigns a drive letter to the mounted disk
  • copies all files to the new disk
  • dismount the disk
  • and powers on the new virtual machine for the first time

What happens next depends (I will explain later) but either way eventually it will start the sysprep mini wizard. The mini-wizard will use the sysprep.inf as the answer file and if you have requested a join to domain (vmware will use the sysprep.inf file to do this), the mini-wizard will join the new Virtual Machine to the domain or .. at least it tries. As I initially expected vmware does not use the sysprep.inf file to set the static IP addresses for the NICs, so unless you have DHCP enabled the join will fail. After you clicked the error away, the mini-wizard will continue and executes the commands specified in the cmdlines.txt, it reboots virtual machine, and runs its final script to set the IP address information for each NIC!!

The process the described above counts for windows XP and Windows 2003, for Windows 2000 it does not use the sysprep.inf file to join it to the domain, instead it running an extra script joindom.bat but either way it runs it before setting the IP addresses.

Now that we have a high level overview of the process let’s have a look at the scripts and see if we can alter the process so the customization will even work for an environment where DHCP is not allowed.

As I have mentioned above at some point in the process, Virtual Center calls the autprep.wsf script to start the its customization and as I explained, it will first validate the parameters given and next it will prepare the Windows system. This is the part where it all happens:

  • It will generate a custom sysprep.inf, cmdlines.txt, setnet.cmd (used to call the setnet.wsf in order to set the IP configuration on the NICs), ..
  • Next In order to start the sysprep mini-wizards it has to copy some files and modify the registry so the virtual machine will boot the mini-wizard.
    To do this, there are two different approaches possible (I do not really know which one is used in what situation).
    • The first approach it editing the registry by mounting the hives of the image.
    • The other approach is using a trojan horse vmprep.exe.

    In the last option the %systemroot%\autochk.exe will be renamed to vmprep.cfg and copy their own %systemroot%\vmprep.exe to autochk.exe, next they will mark the image volume as dirty to make sure on its first boot the autochk.exe will get executed. This provides the process the chance to make whatever modification on the new system, more specific it will read the vmprep.dat which describes what actions it should execute, by default:

    • reset the NIC to DHCP
    • process the %systemroot%\minisetup.inf file for the registry modifications required for sysprep.
    • reboot the virtual machine

  • Next it will mount the image as a disk volume and assign it a drive letter
  • Then it will copy the following files to the new disk:
    • vmprep.exedriveletter:\Windows\System32\autochk.exe
    • vmprep.datdriveletter:\Windows\system32
    • minisetup.infdriveletter:\Windows
    • vmprep.exedriveletter:\Windows\system32
    • setupcl.exedriveletter:\Windows\System32
    • setnet.wsf driveletter:\Windows\vmware_imc
    • imc_final.bat driveletter:\Windows
    • bootrun.exedriveletter:\Windows\vmware_imc
    • setnet.batdriveletter:\Windows\vmware_imc
    • sysprep.infdriveletter:\Sysprep
    • cmdlines.txtdriveletter:\Sysprep\i386\$oem$
    • setguestinfo.wsfdriveletter:\Windows\vmware_imc

  • Power on the Virtual machine

While this process can work perfectly, it does not work if you do not allow DHCP and you have specified that you would like to join the vm to the domain, because it uses the sysprep to join the vm domain, but it only sets the IP Addresses as a post action (setnet.cmd) when the new virtual machine it completely ready .. !!

Microsoft missing the point (Still)

OK, have just read HYPER-V QUICK MIGRATION & VMWARE LIVE MIGRATION PART 3, is it just me or is he really missing the point, I do not think that changing your working practices is a way of technically explaining how to do this.

And one big thing is surely that he is missing the 99.9% up time that many companies require for there 24hr running systems.  Not once does he actually say 'We cant do it' but its written all over the article.

Just my humble opinion, I would be interested in your comments.

Easily setup all portgroups and VLan IDs on all your ESX Servers

Flores Eken from ITQ Consultancy in the Netherlands is also an enthausiast VMware SDK programmer. He wrote this application in C# based on the new ESX3.x /VC2.x SDK. It allows you to easily setup all portgroups and VLan IDs on all your ESX Servers. You can first read out (use the export feature) the network settings of a single ESX Host. With that information you can then setup all your other servers.

The program also allows you to add or delete specific portgroups with the right VLan IDs and it had the option to execute a shell command thru an SSH connection to multiple servers at the same time.

Download ITQ VLan and Portgroup Manager
For more info about the program or about ITQ, contact Paul Geerlings (pgeerlings@itq.nl)