Rob 的个人资料Virtually Aware日志列表 工具 帮助

日志


Twitter?…..Why Not

My random thoughts on virtualization can be found here.  Add to the conversation.

Update - Virtual Server 2005 R2 SP1 Hang Issues Continue, but with hope.

The troubleshooting continues from the problems I have been having with Virtual Server 2005 SP1 (see http://virtuallyaware.spaces.live.com/blog/cns!549C424F228D6040!125.entry for the background). 

It looks like the root cause to the "Hang" problem is the hypervisor.  Not sure who's fault it is, Microsoft or HP, but if I uncheck ALL the "Enable hardware-assisted virtualization if available" check boxes from the general properties of each guest, the "Hanging" of the guest during startups and save state restores goes away.  I also do not get the "Hang" if I disable processor virtualization on the processor in the BIOS.  I have a ticket open with MS at the moment and hopefully will get a fix.  When I do i will pass it on.  I know there is a growing number of you that are seeing similar problems.

image

 

-Rob

Expand your System Drive With VMToolKits VHD Resizer

I was looking through the Microsoft new groups today and answered a question that I have done a few times so I thought it would be a good time to blog about it here.  The task is how to expand a system drive that is running out of space.  I used to do this by creating a second VHD that was larger than my original then mount up both to the guest and boot  up a BartPE disk and then use ghost to image one disk to the larger disk.  This was slow and painful, especially since BartPE didn't really have any knowledge of virtual machine additions.  As more tools for virtual servers came about, this task became easier.  Below I outline different ways that I do this.

VMtoolkit VHD Resizer is your friend.  All of the techniques below use this utility

The problem with increasing the size of a System partition is that using the built in Windows Server 2003 utility diskpart, will not work for an "active" system drive.  This is how it can be done.  The trick is to make the system drive a non-active drive or secondary drive.

Option #1

Use the VMToolkit VHD Resizer utility to increase the VHD file to what you want. This actually creates a secondary VHD file and moves the data over to it. Then mount this VHD file to a drive letter using the VHDMount utility in VS 2005 SP1.  Then go to a command prompt, and using the diskpart utility, select the mounted volume and use the diskpart /extend command.  This assumes you are using Windows Server 2003 however. Then unmount the vhd, make sure it is attach to the correct virtual guest, and boot it up.  You should have an expanded system drive.

Option #2
Another way to do it would be to use the VMToolkit Resizer and then attach the new VHD to another virtual guest as a secondary drive.  Boot the other virtual guest.  Once it is booted, go to a command prompt and use the same diskpart routine on the secondary drive as above.  Then shut down this secondary guest, detach the drive, reattach it to the right guest and boot.  Your system drive should now be expanded.

Option #3

Still using ghost but faster:  Like the old way  of creating a secondary VHD file, but instead of booting BartPE in the virtual guest, you will mount both VHDs with the vhdmount utility of VS 2005 SP1 on the virtual host system.  Then you will put your BartPE CD that has ghost as an application into the host.  Then use ghost to do a disk to disk transfer.  The benefits of this is that you use the native speed of the host system drives to do the image from one disk to the expanded disk.  I don't use this option all that often, but it is a viable option for expanding a vhd system disk. 

 

If you have methods of expanding virtual system disks, please drop me a line and let me know.

 

-Rob

Update - KB941125 - The Virtual Server service may stop responding when the service is starting if one or more of the virtual machines are configured to automatically start when the Virtual Server service starts

*****************************************************************************************************************************************************

Update 12/24/2007

After some further testing, the problem with Virtual Server 2005 SP1 continues. 

Notes:

KB941125 did help some.  It eliminated the complete freezing of the web console, but the guests still get hung up and are unresponsive to any commands.

Setting the resource allocation to the default 100 does not seem to be any help.  All of my guests have been at the default 100 and I have seen the re-occurrence of the guest freezing. 

We continue to test one of our HP DL585 G2 systems with VS 2005 R2 SP1, but have returned the other one back to VS 2005 R2 without SP1.  That server has not skipped a beat since the switch.  Since the older version knows nothing about hardware virtualization, that might be the road to look at in troubleshooting the VS 2005 R2 SP1 system. 

Other options tried:

AMD Opteron™ Processor with AMD PowerNow!™ Technology Driver Version 1.3.2.0053 for Windows XP and Windows Server 2003 (x86 and x64) -  This was to solve the problem with time shift between processor cores that would give negative ping times and would show event id 1054.  Below are some articles that outline this.

http://www.amd.com/us-en/Processors/TechnicalResources/0,,30_182_871_9033,00.html

http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=110&prodSeriesId=463637&prodTypeId=12169&objectID=c01075682

http://support.microsoft.com/kb/938448/en-us

*********************************************************************************************************************************************************

Let me start out by saying that my experience with Virtual Server and all the subsequent versions that followed have been relatively bug free.  This is the first one that really stopped me from progressing to Virtual Server 2005 R2 SP1.  At first I thought what I had was a corrupt install, but after a few rebuilds of the systems and looking at firmware and drivers everything looked fine.  The main symptom I saw was that every time I put the servers into saved state either manually or with a script, when restoring to running state, the web interface would not be accessible nor would the VMRC or VMRCplus or any type of communication.  The guest servers would not ping or be able to be shutdown with a script.  The whole Virtual Server COM API was not accessible.  The only way to fix this would be to kill the vssrvc.exe process, restart the virtual server service and then discard the saved states of the guests.  If you tried to restore the saved state of the guests, you would go into the inaccessibility again.  Upon starting the guest servers back up from an off state, everything would work just fine, until the next saved state which in our case is sometimes during our scripted backups or on a shutdown script we have in place or when I felt like save stating any guest.  We do have 2 other virtual hosts running Virtual Server 2005 R2 SP1 that seem to be working just fine.  The 2  hosts that were showing this problem are DL585G2 systems with AMD-V.  Not sure if this is linked to the overall problem, but the DL585G1(AMD without AMD-V) and DL380G4 (Intel Xeon without VT) have not experienced this problem at all.  Lets hope this is the last of the bugs for now.  At least until Hyper-V.

 

*****************************************************************

Attached is the news group string.

So, do you have to install the patch and do one of the workarounds or
"should" the patch be all that is necessary?  Do you have any experience
with the effectiveness of KB941125?
Rob McShinsky
"Benjamin Armstrong [MSFT]" <benarm@online.microsoft.com> wrote in message
news:uMg6X8eNIHA.3516@TK2MSFTNGP02.phx.gbl...
> Yup.
>
> Cheers,
> Benjamin Armstrong
> ============================
> Windows Virtualization Program Manager
> Blog: http://blogs.msdn.com/Virtual_PC_Guy
> Book: http://tinyurl.com/ysxcbm
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights. You assume all risk for your use.
>
> Microsoft News Groups wrote:
>> Do you know anything about KB941125?  Sounds alot like what you are
>> outlining.
>>
>> Rob McShinsky.
>>
>> "Benjamin Armstrong [MSFT]" <benarm@online.microsoft.com> wrote in
>> message news:O8tUZheNIHA.484@TK2MSFTNGP06.phx.gbl...
>>> First:  I would recommend that you contact Microsoft Product Support so
>>> that we can get formal cases open against this.
>>>
>>> Second:  Try creating a blank virtual machine (with no VHD) and connect
>>> it to all of your virtual networks.  Configure that virtual machine to
>>> start first, and then have the other virtual machines start with a delay
>>> after that.
>>>
>>> Cheers,
>>> Benjamin Armstrong
>>> ============================
>>> Windows Virtualization Program Manager
>>> Blog: http://blogs.msdn.com/Virtual_PC_Guy
>>> Book: http://tinyurl.com/ysxcbm
>>>
>>> This posting is provided "AS IS" with no warranties, and confers no
>>> rights. You assume all risk for your use.
>>>
>>> Microsoft News Groups wrote:
>>>> Hey Ben;  I am seeing that you are also seeing this from other people
>>>> as well 9/5/2007 "CGI Timeout - VS 2005 SP1 Admin Site".  We are seeing
>>>> this also when we do a startup script to restore saved guests to a
>>>> running state (We do a shutdown script prior to put them in saved state
>>>> and create a log file the startup script reads).  Seems as more and
>>>> more people are popping up with this issue with VS 2005 R2 SP1.  What
>>>> is your recommendation?
>>>>
>>>> Thanks
>>>>
>>>> Rob McShinsky
>>>>
>>>>
>>>> "Microsoft News Groups" <Please@UseGroup.com> wrote in message
>>>> news:eb7zYe8MIHA.1188@TK2MSFTNGP04.phx.gbl...
>>>>> I will certainly check this out on my system.  I made another
>>>>> adjustment today after I say a single server "freeze" today.  I still
>>>>> had to shutdown the other guests and then kill the vssrc services to
>>>>> get control again. This was with all the guests with the same, default,
>>>>> values.  So what I did was remove all guests from the console, then
>>>>> delete the VMC files for all of guests, and then did a Create again to
>>>>> re-establish the vmc again.  I did this because I was doing a little
>>>>> comparison between VMC files that were created for guests native on
>>>>> box, vs. guest that were migrated over from another SP1 box  but
>>>>> without  AMD-V or from a machine that is not running SP1 or AMD-V.  It
>>>>> seemed that the VMC (xml) files were structured different. They have
>>>>> not been running long enough to determine if this will help, but it
>>>>> seems a little strange.  Maybe Ben might have an idea on if this could
>>>>> potentially be causing the problem.
>>>>>
>>>>> Here's to more testing.  Let me know if you have any further progress
>>>>> or want to try some different testing scenarios.  I have 2 DL585 G2
>>>>> systems to test on. 1 built an the other not.  I moved to the current
>>>>> testing host because I experienced the same problem on the other host.
>>>>> I thought it was a corrupt install.  The same guests that were on that
>>>>> guest are now on the new problematic host.  My hopes is that one of
>>>>> the guests is just messed.
>>>>>
>>>>> Rob McShinsky
>>>>> Dartmouth Hitchcock Medical Center
>>>>> Lebanon, NH
>>>>>
>>>>>
>>>>> "Stephan Kaufmann" <StephanKaufmann@discussions.microsoft.com> wrote
>>>>> in message news:791DF571-457B-4089-8CF0-519AFDE173ED@microsoft.com...
>>>>>> Hi Rob
>>>>>>
>>>>>> Very intresting!
>>>>>>
>>>>>> I have 6 VMs (2 Windows Server 2003 =SV000x  and 4 Win XP=VP000x) on
>>>>>> my
>>>>>> DL385 G2 with 10GB RAM. If I set the following values for "Resource
>>>>>> Allocation", I always get the freezing problem as soon as one of the
>>>>>> VMs with
>>>>>> lower priority boots:
>>>>>>
>>>>>> 1st value: Relative Weight
>>>>>> 2nd value: Reserved Capacity (% of one CPU)
>>>>>> 3rd value: Maximum Capacity (% of one CPU)
>>>>>>
>>>>>> SV0001: 100, 5%, 100%
>>>>>> SV0002: 100, 5%, 100%
>>>>>> VP0001: 50, 0%, 80%
>>>>>> VP0002: 50, 0%, 80%
>>>>>> VP0003: 50, 0%, 80%
>>>>>> VP0004: 50, 0%, 80%
>>>>>>
>>>>>> All VMs have the hardware-assisted virtualization active. As nearer
>>>>>> the
>>>>>> values are on the default, the problem appears seldom.
>>>>>>
>>>>>> It would be great, if  you can try it on your machine with these
>>>>>> values!
>>>>>>
>>>>>> Stephan
>>>>>>
>>>>>> "Microsoft News Groups" wrote:
>>>>>>
>>>>>>> I am trying this now.  I have 7 guests (all with additions 13.813)
>>>>>>> on this
>>>>>>> host for testing.  Before I saw this post, I had three of them with
>>>>>>> a
>>>>>>> relative weight of 99 and the other 4 with a relative weight of 100.
>>>>>>> All of
>>>>>>> them had the default maximum capacity of 100% and no reserve.  This
>>>>>>> is
>>>>>>> usually our default.  development or test servers get a relative
>>>>>>> weight of
>>>>>>> 99 or less and production servers all get 100.  Since I have changed
>>>>>>> all of
>>>>>>> the guests over to a relative weight of 100, 2 days ago, I have not
>>>>>>> seen the
>>>>>>> problem, but I have seen the machine go days without experiencing
>>>>>>> the
>>>>>>> problem.  I used to think it had something to do with our backup
>>>>>>> scripts
>>>>>>> that happen everynight, but the combination of the "freezing" not
>>>>>>> lining up
>>>>>>> with backup time period and this only happening with the new DL585
>>>>>>> G2
>>>>>>> systems with AMD-V makes me think the problem is somewhere else.  We
>>>>>>> have 3
>>>>>>> other DL585 G1 systems without AMD-V technology that are running
>>>>>>> 2005 R2 SP1
>>>>>>> and the same scripting options that have never had any problems.
>>>>>>>
>>>>>>> I will keep you up to date on any future freezing.  I am relectant
>>>>>>> to load
>>>>>>> the hosts with any more guests since the remediation of the
>>>>>>> "freezing"
>>>>>>> problem is to basically crash the guests.   If you want or need any
>>>>>>> information offline, please let me know.  I have 3 of the DL585 G2
>>>>>>> systems
>>>>>>> that I am eager to get stable so will try just about anything to get
>>>>>>> the
>>>>>>> service level to the same as the other 8 hosts I have.
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Rob McShinsky
>>>>>>>
>>>>>>>
>>>>>>> "Benjamin Armstrong [MSFT]" <benarm@online.microsoft.com> wrote in
>>>>>>> message
>>>>>>> news:O%23k8WNhMIHA.5988@TK2MSFTNGP02.phx.gbl...
>>>>>>>> Rob -
>>>>>>>>
>>>>>>>> Can you try this and see if it affects your system?
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> Benjamin Armstrong
>>>>>>>> ============================
>>>>>>>> Windows Virtualization Program Manager
>>>>>>>> Blog: http://blogs.msdn.com/Virtual_PC_Guy
>>>>>>>> Book: http://tinyurl.com/ysxcbm
>>>>>>>>
>>>>>>>> This posting is provided "AS IS" with no warranties, and confers no
>>>>>>>> rights. You assume all risk for your use.
>>>>>>>>
>>>>>>>> Stephan Kaufmann wrote:
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I also have a HP DL385 G2 with 2 CPUs and Virtual Server 2005 R2
>>>>>>>>> SP1 x64
>>>>>>>>> installed on Win Server 2003 Enterprise x64. I have the same
>>>>>>>>> problem and
>>>>>>>>> found a solution with active AMD-V!
>>>>>>>>>
>>>>>>>>> All VMs must have the default values in the "Resource Allocation"
>>>>>>>>> config.
>>>>>>>>> As soon as one or more VMs have other values and the first VM
>>>>>>>>> boots up,
>>>>>>>>> it freezes. If you set all VMs to the default values, all VMs work
>>>>>>>>> fine
>>>>>>>>> with AMD-V active in BIOS and also "Enable hardware-assisted
>>>>>>>>> virtualization if available" active in the "General Properties" of
>>>>>>>>> the
>>>>>>>>> VM.
>>>>>>>>>
>>>>>>>>> If you really want a VM with other "Resource Allocation" config,
>>>>>>>>> you have
>>>>>>>>> to disable "Enable hardware-assisted virtualization if available"
>>>>>>>>> of this
>>>>>>>>> single VM and it works too.
>>>>>>>>>
>>>>>>>>> Can anyone confirm this?
>>>>>>>>>
>>>>>>>>> Thanks.
>>>>>>>>>
>>>>>>>>> "Microsoft News Groups" wrote:
>>>>>>>>>
>>>>>>>>>> Ben;  From what I am seeing, since this happened again last
>>>>>>>>>> night, all
>>>>>>>>>> systems become unresponsive through what ever remote capabilities
>>>>>>>>>> are
>>>>>>>>>> out there.  Looking at the event log, all systems went into a
>>>>>>>>>> saved
>>>>>>>>>> state right before t his happened.  The website is inaccessable,
>>>>>>>>>> and it
>>>>>>>>>> cannot be reached with the VMRC client to go to the
>>>>>>>>>> administrative
>>>>>>>>>> display.    We have 8 other hosts running the same set of scripts
>>>>>>>>>> with a
>>>>>>>>>> mix of SP1 and non-SP1 VS 2005 R2.  All of those are working
>>>>>>>>>> perfectly.
>>>>>>>>>> The only difference is that these are DL585 G2 servers with the
>>>>>>>>>> AMD-V
>>>>>>>>>> technology.  We  have some DL585 G1 systems that are running very
>>>>>>>>>> well.with no problems.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> This is a snipit right before the Host went out to lunch.
>>>>>>>>>>
>>>>>>>>>>  11/20/2007
>>>>>>>>>> 5:28:25 PM Virtual Machine "DH350" was saved.
>>>>>>>>>>  11/20/2007
>>>>>>>>>> 5:28:25 PM Setting Change The setting "hardware/bios/time_bytes"
>>>>>>>>>> for the
>>>>>>>>>> virtual machine configuration "DH350" was changed.
>>>>>>>>>>  11/20/2007
>>>>>>>>>> 5:28:25 PM Setting Change The setting
>>>>>>>>>> "settings/configuration/saved_state/path/absolute" for the
>>>>>>>>>> virtual
>>>>>>>>>> machine configuration "DH350" was changed from NULL to
>>>>>>>>>> "D:\B\ServersE\DH350\DH350.vsv".
>>>>>>>>>>  11/20/2007
>>>>>>>>>> 5:28:25 PM Setting Change The setting
>>>>>>>>>> "settings/configuration/saved_state/path/relative" for the
>>>>>>>>>> virtual
>>>>>>>>>> machine configuration "DH350" was changed from NULL to
>>>>>>>>>> ".\DH350.vsv".
>>>>>>>>>>  11/20/2007
>>>>>>>>>> 5:28:13 PM Setting Change The setting
>>>>>>>>>> "settings/shutdown/quit/was_running" for the virtual machine
>>>>>>>>>> configuration "DH344" was changed from true to false.
>>>>>>>>>>  11/20/2007
>>>>>>>>>> 5:28:13 PM Virtual Machine "DH344" was saved.
>>>>>>>>>>  11/20/2007
>>>>>>>>>> 5:28:13 PM Setting Change The setting "hardware/bios/time_bytes"
>>>>>>>>>> for the
>>>>>>>>>> virtual machine configuration "DH344" was changed.
>>>>>>>>>>  11/20/2007
>>>>>>>>>> 5:28:13 PM Setting Change The setting
>>>>>>>>>> "settings/configuration/saved_state/path/absolute" for the
>>>>>>>>>> virtual
>>>>>>>>>> machine configuration "DH344" was changed from NULL to
>>>>>>>>>> "D:\A\ServersD\DH344\DH344.vsv".
>>>>>>>>>>  11/20/2007
>>>>>>>>>> 5:28:13 PM Setting Change The setting
>>>>>>>>>> "settings/configuration/saved_state/path/relative" for the
>>>>>>>>>> virtual
>>>>>>>>>> machine configuration "DH344" was changed from NULL to
>>>>>>>>>> ".\DH344.vsv".
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Looks liike it  protected the guests well before it died.  A
>>>>>>>>>> funny thing
>>>>>>>>>> is however, after a reboot I can get to all consoles and all
>>>>>>>>>> looks fine.
>>>>>>>>>> I can see the systems in saved state.  When I try to restore one
>>>>>>>>>> of
>>>>>>>>>> those systems from saved state, the server hangs again and does
>>>>>>>>>> not
>>>>>>>>>> allow me any access to the web or vmrc.  The server allocates RAM
>>>>>>>>>> which
>>>>>>>>>> I can see in task manager, but the guest never truely comes
>>>>>>>>>> online. The
>>>>>>>>>> only way to get the system to come back it to reboot one more
>>>>>>>>>> time or
>>>>>>>>>> kill the vssrvc.exe process, restart the service and discard all
>>>>>>>>>> previous save states for those systems that were saved during the
>>>>>>>>>> hang
>>>>>>>>>> time.
>>>>>>>>>>
>>>>>>>>>> Anythoughts
>>>>>>>>>>
>>>>>>>>>> Rob McShinsky.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> "Benjamin Armstrong [MSFT]" <benarm@online.microsoft.com> wrote
>>>>>>>>>> in
>>>>>>>>>> message news:%239qN2JWJIHA.5468@TK2MSFTNGP05.phx.gbl...
>>>>>>>>>>> For number 1 - are there any entries in the event log that might
>>>>>>>>>>> indicate what is happening here?
>>>>>>>>>>>
>>>>>>>>>>> For number 3 - are they using the web site or the VMRC client?
>>>>>>>>>>>
>>>>>>>>>>> Cheers,
>>>>>>>>>>> Benjamin Armstrong
>>>>>>>>>>> ============================
>>>>>>>>>>> Windows Virtualization Program Manager
>>>>>>>>>>> Blog: http://blogs.msdn.com/Virtual_PC_Guy
>>>>>>>>>>> Book: http://tinyurl.com/ysxcbm
>>>>>>>>>>>
>>>>>>>>>>> This posting is provided "AS IS" with no warranties, and confers
>>>>>>>>>>> no
>>>>>>>>>>> rights. You assume all risk for your use.
>>>>>>>>>>>
>>>>>>>>>>> TheWall wrote:
>>>>>>>>>>>> Hi, 1.When i click on reset nothing happens. Doesnt reset, just
>>>>>>>>>>>> keep
>>>>>>>>>>>> on running.
>>>>>>>>>>>> 2. Connection to the server has been lost
>>>>>>>>>>>> 3. Client being the platform being logged onto when we need to
>>>>>>>>>>>> do
>>>>>>>>>>>> testing (Virtual Machine) Thanks
>>>>>>>>>>>>
>>>>>>>>>>>> "Benjamin Armstrong [MSFT]" wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Some questions:
>>>>>>>>>>>>>
>>>>>>>>>>>>> 1. After reseting a virtual machine what do you have to do to
>>>>>>>>>>>>> get the
>>>>>>>>>>>>> website back?
>>>>>>>>>>>>> 2. What problems / errors do you see from the 32-bit client.
>>>>>>>>>>>>> 3.  What do you mean by 'client' in this context?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>> Benjamin Armstrong
>>>>>>>>>>>>> ============================
>>>>>>>>>>>>> Windows Virtualization Program Manager
>>>>>>>>>>>>> Blog: http://blogs.msdn.com/Virtual_PC_Guy
>>>>>>>>>>>>> Book: http://tinyurl.com/ysxcbm
>>>>>>>>>>>>>
>>>>>>>>>>>>> This posting is provided "AS IS" with no warranties, and
>>>>>>>>>>>>> confers no
>>>>>>>>>>>>> rights. You assume all risk for your use.
>>>>>>>>>>>>>
>>>>>>>>>>>>> TheWall wrote:
>>>>>>>>>>>>>> I am running a 64Bit virtual Server.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I have a few issues: 1. In the server admin Website it does
>>>>>>>>>>>>>> not
>>>>>>>>>>>>>> respond if i try to reset or save Machines
>>>>>>>>>>>>>> 2. Cant connect to server from 32 bit client
>>>>>>>>>>>>>> 3. Cant add excisting clients created in Virtual server
>>>>>>>>>>>>>> 32bit.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>
>>

VSMT Speed Tweak Part 1

This is part one of the various VSMT Speed Tweaks that I have found in my experiences with the Virtual Server Migration Toolkit. Each one will save you a little time from beginning to end that adds up to significant time savings. This not only allows you to mitigate the application downtime necessary to migrate a system into your virtual environment, but also allows you to get home to your wife and kids at a reasonable hour and may even keep you out of the dog house.

Before running the GatherHW command on a system, disable or set to manual non-essential and application specific services. Once the server has been deployed into the virtual environment install virtual machine additions and uninstall apps that are not needed anymore i.e. various HP Management Agents or other hardware based software. Then, re-enabled the application specific services again. Leaving these set to automatic, especially during the first boot into the new virtual environment after the deploy process, can significant increase the amount of time it takes for the system to rediscover hardware and allow access to the system. Below is the documentation section we use to record these steps.

 

Services Inventory: Services to be set to Manual or to Disabled before the P2V migration. This allows for quicker response times of the server on its first reboot in the virtual environment. Services that are Disabled are those that are associated with applications that will be uninstalled once the server has been migrated (i.e. HP/Compaq Management Agents, Backup Agents, etc…) Services that you set to Manual are those that will be set back to Automatic once the migration is complete. (i.e. Symantec , LANDesk, IIS, SQL etc…)

Set to Manual

Set to Disabled

IIS Admin Service

Compaq Foundation Agents

Intel Local Scheduler Service

Compaq NIC Agents

LANDesk (R) SDMCache Cleanup Service

Compaq Remote Monitor Service

LANDesk(R) Management Agent

Compaq Server Agents

LANDesk(R) Software Monitoring Service

Compaq Storage Agents

pcAnywhere Host Service

Compaq Web Agent

Symantec AntiVirus

Compaq WMI WEB Agent

Symantec AntiVirus Definition Watcher

Data Protector Inet

Symantec Event Manager

HP ProLiant System Shutdown Service

Symantec Settings Manager

Surveyor

World Wide Web Publishing Service

Version Control Agent

  
  

 

 

 

Not Able To Migrate Dynamic Disks With VSMT? I Think Not.

While tinkering around with a recent migration that of an older production server running Windows 2000 server on a Compaq DL320 G1 server, I discovered that it was configured with software RAID 1 with Dynamic Disks.  Once I saw this I immediately thought that I was in for a long night of potentially ghosting and then manually stripping out the HAL and potentially a repair install.  When I ran the hardware validate on my XML file, my fears were confirmed where it stated that no drives were available for migration. 
Microsoft (R) Virtual Server Migration Toolkit - VmScript Tool ver.5.2.5149.0
Copyright (C) 2004 Microsoft Corporation. All rights reserved.
 
Parsing file: C:\Program Files\Microsoft VSMT\DH517.xml
WARNING: Found a partition of "Unknown" type.
         The partition will be skipped from imaging.
         Details: (Disk:0 Partition:1 Type:255 Hosted Logical Drives:)
 
WARNING: Dynamic disks are not supported.
         The disk/partition will be skipped from imaging.
         Details: (Disk:0 Partition:2 Type:66 Hosted Logical Drives:C:)
 
WARNING: Dynamic disks are not supported.
         The disk/partition will be skipped from imaging.
         Details: (Disk:0 Partition:3 Type:66 Hosted Logical Drives:D:)
 
WARNING: Found a partition of "Unknown" type.
         The partition will be skipped from imaging.
         Details: (Disk:1 Partition:1 Type:255 Hosted Logical Drives:C:)
 
WARNING: Dynamic disks are not supported.
         The disk/partition will be skipped from imaging.
         Details: (Disk:1 Partition:2 Type:66 Hosted Logical Drives:)
 
WARNING: Dynamic disks are not supported.
         The disk/partition will be skipped from imaging.
         Details: (Disk:1 Partition:3 Type:66 Hosted Logical Drives:D:)
 
WARNING: Dynamic disks are not supported.
         The disk/partition will be skipped from imaging.
         Details: (Disk:1 Partition:4 Type:66 Hosted Logical Drives:)
 
Checking configuration for incompatibilities.
 
ERROR: Could not find a supported partition type that hosts the windows directory.
ERROR: Configuration is not compatible.
Warning: Incompatibilities found in hardware config.
Error: Result Code:10
 
The only good thing I could think of coming out of this night was that the 24 hour AuBon Pan gives reduced price pastries starting at midnight.   Even with this late night temptation in mind, I started to think about alternate options.
From what I tried with WinImage v8.0 on a previous migration (See this post), changing the drive type within the XML file so that it would not migrate a specific drive, I thought that I would try to modify the XML file in this case to try to see if for some strange reason the dynamic drives would migrate.  Below are the lines that I changed to make the process work. 
 

<SystemComponent name="Partition">

                        <Data item="Index"><![CDATA[1]]></Data>

                        <Data item="Caption"><![CDATA[Disk #0, Partition #1]]></Data>

                        <Data item="Size"><![CDATA[6292339200]]></Data>

                        <Data item="NumberOfBlocks"><![CDATA[12289725]]></Data>

                        <Data item="StartingOffset"><![CDATA[41126400]]></Data>

                        <Data item="DiskIndex"><![CDATA[0]]></Data>

                        <Data item="Bootable"><![CDATA[-1]]></Data>

                        <Data item="PrimaryPartition"><![CDATA[-1]]></Data>

                        <Data item="Type"><![CDATA[Logical Disk Manager]]></Data>

                                    <SystemComponent name="PartitionLogicalDrive">

                                                <Data item="LogicalDrive"><![CDATA[C:]]></Data>

                                                <Data item="StartAddress"><![CDATA[41126400]]></Data>

                                                <Data item="EndAddress"><![CDATA[6333465599]]></Data>

                                                <Data item="BootINI"><![CDATA[[boot loader]

timeout=5

default=multi(0)disk(0)rdisk(0)partition(2)\WINNT

[operating systems]

multi(0)disk(0)rdisk(0)partition(2)\WINNT="Microsoft Windows 2000 Server" /fastdetect

]]></Data>

            </SystemComponent>

            </SystemComponent>

            <SystemComponent name="Partition">

                        <Data item="Index"><![CDATA[2]]></Data>

                        <Data item="Caption"><![CDATA[Disk #0, Partition #2]]></Data>

                        <Data item="Size"><![CDATA[11869079040]]></Data>

                        <Data item="NumberOfBlocks"><![CDATA[23181795]]></Data>

                        <Data item="StartingOffset"><![CDATA[6333465600]]></Data>

                        <Data item="DiskIndex"><![CDATA[0]]></Data>

                        <Data item="PrimaryPartition"><![CDATA[0]]></Data>

                        <Data item="Type"><![CDATA[Logical Disk Manager]]></Data>

                                    <SystemComponent name="PartitionLogicalDrive">

                                                <Data item="LogicalDrive"><![CDATA[D:]]></Data>

                                                <Data item="StartAddress"><![CDATA[6333465600]]></Data>

                                                <Data item="EndAddress"><![CDATA[18202544639]]></Data>

                                    </SystemComponent>

 

 

I changed the lines above that are in bold and underlined to the following:

<Data item="Type"><![CDATA[Installable File System]]></Data>

 

Note: Since this was a software mirror with dynamic disk,  I only changed the first references to C: and D: in the XML file that resided on the first SCSI disk.

The end result, the process worked.  I expected it to quit during the capture stage, but it finished.  Then I figured that it would fail on the deploy stage, but it proceeded as normal.  I would certainly be faced with a blue screen on boot, but all was well with the first boot.   So what did it look like when I finished?  It migrated all data drives from the first SCSI disk flawlessly and made them Basic disks on deployment into virtual.  Since I did not change the XML entries for the Second SCSI disk in the XML file, it did not migrate them at all.  Strange, but it worked.   Give it a try and let me know what you get for results.

WinImage to speed up VSMT Migrations.

I purchased WinImage, from Gilles Vollant Software, a while back in the versions 6 or 7 days do make self-extracting executables of some of our boot floppies when we were doing automated installs of server hardware. In version 8 however, they came out with an excellent feature that works in 2 different ways for us here at Dartmouth Hitchcock Medical Center. The first use was to provide a way to do individual file restores from .VHD files that had been committed to tape or disk as part of our nightly backup routine. It was very nice with the ability view and extract individual files from a remote, non-mounted .VHD file over the network and to restore individual files instead of large .VHD files. The sweeter feature that we have used a few times during P2V migrations is the "Create Virtual Hard Disk image from physical drive" option. For those systems that have a second C: and D: drive, where the D: drive is just data, we have installed WinImage on the physical server to be migrated and then used the "Create Virtual Hard Disk image from physical drive" option and had it dump the file to a virtual host system. This left me with a nice .VHD file of my data drive waiting for the rest of the server to go through the P2V process. Then within the XML file created from the gatherHW.exe command I just change the line (SERVERNAME.XML):

<Data item="Type"><![CDATA[Installable File System]]></Data>

To

<Data item="Type"><![CDATA[Unknown]]></Data>

For the D: drive reference. This tells the Hardware Validate option in the P2V step to not try to capture the D: drive during the capture phase of the migration. This works pretty slick, and once the C: drive has been Captured and Deployed to its new virtual home, adding the D: drive .VHD file to the guest configuration is all you have to do before you boot the new guest up for the first time. It save me quite a bit of time on P2V migrations since the file copy is only happening once and not twice as the normal Capture and Deploy of VSMT. I will give the full list of VSMT speed tweaks I have found in an upcoming blog. Until then, give WinImage a try and feel free to post any questions.

http://www.winimage.com