All posts filed under: References

Book: Windows Server Virtualization

Here is the high level outline of the book I am planning. I have not decided on a title yet. Yeah, it is less important than the content so, let us keep it to the end. Chapter 1 Introduction to Virtualization – What is virtualization? – Historical overview – Microsoft Vitualization Solutions Chapter 2 Hyper-V: An architectural & feature overview Chapter 3 Hyper-V: Installation and configuration Chapter 4 Hyper-V: Virtual Storage Chapter 5 Hyper-V: Virtual Networks Chapter 6 Hyper-V: Advanced virtual networking concepts – Virtual Machine Queues – Virtual Machine Chimney Chapter 7 Hyper-V: Creating and Managing Virtual Machines Chapter 8 Hyper-V: Virtual Machine snapshots Chapter 9 Hyper-V: Quick Migration Chapter 10 Hyper-V: Live Migration Chapter 11 Hyper-V: Backup and restore Chapter 12 Hyper-V: Management using SCVMM 2008 R2 Chapter 13 Hyper-V: Tools and references I would like to focus only on Hyper-V v2 and SCVMM 2008 R2. I will, however, provide a note wherever the explained feature set does not apply to Hyper-V v1. This will help me avoid an update to the book …

writing a book..!

Yes, you read that right. I got this weird thought of writing my own book on Hyper-V configuration and management, purely from a IT Pro point-of-view. I was looking for a good book for MCTS: Windows Server Virtualization, configuring exam and did not find a Microsoft Press book. Of course, there are couple of e-learning offerrings. There is just one book which is a study guide for this exam. However, this is not available as an Indian edition. I have to shell out a few thousands to get the US copy. At the same time, looking at the exam objectives, I felt that this is something I do day-in and day-out. I have fair amount of knowledge to take the exam right away. However, I would still like to work on the whole subject a bit once again and then take the exam. In this same regard, I am thinking of putting together a book — only an online edition. BTW, anyone interested in printing this?!? :). This effort may help others in learning Hyper-V management concepts and at the …

Native VHD booting on a physical server

If you have been testing Windows 7 or Windows Server 2008 R2, you must have come across native VHD booting feature. This allows us to boot OS from VHD file residing on the hard drive. You don’t need a Hypervisor to boot from VHD. Windows 7 boot architecure changed a bit to accomodate this. In fact, Windows Server 2008 has the option to boot from a file. But that was with only WIM images. In a previous post, I had written about how you can capture a VHD from OS media. There is also a simple script to generate the VHDs without any manual effort. Now, in this post, let us look at how we can use one such VHDs to multi-boot with existing OS on a physical server. The procedure is straight forward. You just need to add a BCD entry. To do this, 1. At a command-prompt, Run diskpart 2. Within Diskpart, select vdisk file=C:\<VHDNAME>.VHD 3. Attach Vdisk 4. Assign Letter=R (If not already assigned; diskpart usually picks up whatever you had assigned during creation) …

Enabling a captured VHD to boot in a Hyper-V Virtual Machine

In an earlier post, I wrote about how you can use WAIK tools to capture OS image from install.WIM in to a VHD. However, when we connect this VHD directly to a VM in Hyper-V environment, it simply won’t boot because there is no Boot Configuration Data within the VHD. Now, to be able to use this VHD in a Hyper-V VM, we need complete a few more steps. We need to make the primary partition within the VHD “active”. To do this Open Diskpart Select vdisk file=C:\<VHDFILENAME>.VHD Attach Vdisk select part 1 active Assign letter=Z exit Now, at the command prompt, change to Z:\Windows\System32 Run, BCDboot.exe Z:\Windows /s Z:\ Run, BCDedit /store Z:\boot\BCD /set {bootmgr} device boot Run, BCDedit /store Z:\boot\BCD /set {default} device boot Run, BCDedit /store Z:\boot\BCD /set {default} osdevice boot Change directory to C:\ open Diskpart again and run Select vdisk file=C:\<VHDFILENAME>.VHD detach vDISK Exit Now, create a new virtual machine within Hyper-V and connect this VHD to it. When you start this virtual machine, Windows OS gets installed (or Configured …

Creating OS VHDs from Windows Server 2008 R2 OS media

Before we get started on this, here is a list of things you need, – Windows Automated Installation Kit (WAIK) for Widows 7. This is required to get tools like imagex, etc to create/capture OS image in to a VHD – Windows Server 2008 R2 Beta Once you have these builds, Install Windows Server 2008 R2 Beta & WAIK for Windows 7 on a test machine. WAIK, by default, gets installed at %programfiles%\Windows AIK folder. Steps to capture OS image as VHD Insert Windows Server 2008 R2 OS media in the drive Open Command-prompt and change to %programfiles%\Windows AIK\Tools\amd64 folder Run “imagex /info <CDdrive Letter>:\Sources\Install.WIM. Install.WIM contains more than one OS edition and this command displays a list of all available images within install.wim. Note down the image index number for the image you want to capture as a VHD Run “Diskpart.exe” and continue with the following commands Create vdisk file=c:\<VHDFILENAME>.VHD maximum=<SIZE in MB> Type=<TYPE of VHD; Fixed or Dynamic> select vdisk file = C:\<VHDFILENAME>.VHD Attach vdisk create partition primary format quick fs=ntfs assign letter=S exit Now, …

VBScript to change the default VHD / VM location

I have found numerous resources on the net to perform this using PowerShell scripting. However, doing the same in VBScript isn’t straight forward. I needed this piece of code for my HVS2008 UI project on Codeplex. I just worked on it and wanted to share the same here. You can download the script http://139.59.40.198/blog/wp-content/uploads/2008/10/changevmssdata1.vbs

Finding Network Adapter with an active link

Recently, I wrote a small batch script to configure a bunch of systems with similar settings. In this process, I had to find out a NIC with an active connection to assign it an IP address. However, I could not find a straight forward way to do that in a batch script. I started looking at WMIC for some help and found that the following command could be of some help WMIC NIC where “NetConnectionStatus=’2′ and NetConnectionID=’Local Area Connection’” GET NetConnectionID /VALUE’ This command would resturn something like NetConnectionID=Local Area Connection. This isn’t really helpful considering the fact that we will not be able to use the complete string anywhere in our script. We need only the Local Area Connection part of the string. The workaround was to place this command in a FOR statement and retrieve the required value. Here is how I did that FOR /F “tokens=2 delims==,” %%i in (‘WMIC NIC where “NetConnectionStatus=’2′ and NetConnectionID=’Local Area Connection’” GET NetConnectionID /VALUE’) DO @set Connect1=%%i In the above command, NetConnectionStatus=’2′ is used to find if the …