Solved

vSphere Cloning Windows 7 Guest Customisation vSphere 5

Posted on 2012-04-05
8
1,278 Views
Last Modified: 2012-05-09
I am trying to clone a windows 7 VM and configure the guest using a script specified in the guest specification manager. I am trying to set the name of the computer to be the same as the VM (works fine) and add the computer to our internal network domain. I have filled in the domain Administrator username and password [and I have set the username to be Administrator @XXXX.com (fully qualified domain Name) and the domain login to be <user>@domain_FQDN].
Once the cloning processes completes,  I turn on the network adapter and start the VM and then windows goes through a setup process (windows shows Setup is Applying System Settings) at the end of which I am logged into the system automatically (presumably this uses the Administrator account details that i supplied in the Guest Specification manager script) . I can see that the computer name has been changed to match the VM, but the domain hasn't been changed, its still on the default workgroup WORKGROUP.  I can go in and add the computer manually to the domain but of course this is what I am trying to avoid. Any ideas what I am doing wrong or where I could start looking? I dont see any errors in the C:/windows/TEMP/vmware-imc/guestcust file. The vSphere logs dont show up anything either.

For a start, should the first restart post cloning be connected to the network or not?
0
Comment
Question by:johnwryan
  • 3
  • 3
8 Comments
 
LVL 119
ID: 37810277
Have you made sure that you are specifify the domain credentials correctly, with an account that has access, to join the computer to the domain.

there is no need to specify Admin username and password to login automatically, unless you have a requirement to do so.
0
 

Author Comment

by:johnwryan
ID: 37810393
Hi, the Account I am using is the domain Administration account. I can go in manually after the cloning process is complete and manually add the VM to the domain. I am supplying the domain administration account in the format Administrator@XXX.com i.e. the fully qualified name. I will remove that auto login.
Is there any place that I can see some sort of log that would tell me what is going wrong?
0
 
LVL 119
ID: 37810598
guest customization log, should provide information.

use <domainname>\username format
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:johnwryan
ID: 37810778
ok I did change to <domain>\Administrator. Performed a clone. Started the VM up, was able to login with localhost Administrator and I could see that the Computer name was an automatically generated Computer Name. I rebooted and Windows setup went through a customisation process. When that was complete I could not login with either <Domain>\Administrator or with the local Administrator account, in other words the VM was useless to me as there was no way of logging in. (and of course I cant get to see the customisation file). Should I be connecting to the network at the first reboot after cloning or should I be waiting until the second or does it matter?
0
 
LVL 119
ID: 37812512
You need to wait for the process to complete.

When the Server Boots, it will execute a schedule task script, and run the process to change VM name, and then join domain.
0
 

Accepted Solution

by:
johnwryan earned 0 total points
ID: 37831525
I have resolved this issue. The process had completed alright. I found a log file in C:/windows/Debug called NetSetup. This file seems to log all the attempts made connecting to the Domain etc. In this file, you can see that it was failing to join the domain because of the domain name and/or login credentials. In the case of the domain name I was using the fully qualified domain name. For anyone looking at this sort of problem in the future, I suggest the following 2 links -

http://social.technet.microsoft.com/Forums/sa/mdt/thread/6b634900-78d6-418d-86c6-c369a01e373e

http://communities.vmware.com/thread/230610 - This  gives a good overview I think of the process that is gone through under the hood by vSphere when it is performing the guest customization

I notice that in a number of places including a vmware KB article that its stated that the FQDN should be used for the  account used to add the computer to the domain for Windows 2008 but also tits states that this applies to Windows 7 . I found this not to be the case for me but then perhaps this has something to do with the network setup. In our case I was connecting a Windows 7 computer to a windows 2003 domain.

Thanks for your assistance.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question