VMware Communities > VMTN > VMware vCenter™ > Lab Manager > Discussions

This Question is Not Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
9 Replies Last post: Feb 12, 2009 8:01 AM by theimann
Reply

Static IP won't be assigned to the virtual machine

Jan 2, 2009 7:27 AM

Click to view theimann's profile Novice theimann 6 posts since
Jan 2, 2009

Hello,

I'm from germany and I hope my english is good enough to explain my problem http://communities.vmware.com/images/emoticons/happy.gif

My goal: a normal virtual machine with Windows 2000, upgrade to Win XP, import to Lab Manager V3.0, create template and work with workspace!

My Problem:

There is a virtual machine with Windows 2000. Cause the labmanager doesn't support Windows 2000 I have to upgrade the virtual machine to Windows XP Prof. SP2! Before I upgraded the virtual machine, I deinstalled the VMWare Tools(!). Then I imported the virtual machine to the Lab Manager and I created a template. After powering on the virtual machine I installed the VMWare tools brought by the Lab Manager. I saved the state of the template and published it for creating a new workspace. So far there is no problem. The customization (sysprep by Microsoft) of the machine starts after powering on. But when I look into the IP configuration after the customization there is not the IP adress assigned to the virtual machine which lab manager provided for (IP pool of 1000 adresses was created some time ago)! So, where is my mistake?

Additionally I must say that on the Windows 2000 system several VPN connections were configured. But in general it's not a problem. I did this action some times ago and it wasn't a problem since now!

I hope you can give me some advices!

Kind Regards!


Reply Re: Static IP won't be assigned to the virtual machine Jan 2, 2009 12:28 PM
Click to view limeylimey's profile Novice limeylimey 17 posts since
Jul 22, 2008
not sure why you would want to go from w2k -> xp as the base OS, w2k is listed in LM as a valid OS for a "new template".

The customization (sysprep by Microsoft) of the machine starts after powering on

After this is complete do you see a separate DOS box with "customizing guest" ?
(bginfo.exe from sysinternals is a good app to show on desktop IP's after start-up)
http://technet.microsoft.com/en-us/sysinternals/bb897557.aspx

Your steps:
1. w2k vm
2. remove vm tools
3. upgrade vm to xp
4. import xp vm into LM
5. deploy template
6. install vm tools
7. save xp vm template
8. publish xp vm template
9. workspace new config
10. add xp vm into workspace
11. deploy xp vm

result: vm deployed with no IP from pool

What do you have for your template config (properties) at step 7 ?
Perform customization - yes
network interfaces - labmanager VM net (network of pooled IP's)
Does the template have DHCP or static address before you publish it ?
Does LM GUI Monitor->deployed machines show your VM has been assigned an IP from the pool by LM ?


Additionally I must say that on the Windows 2000 system several VPN connections were configured. But in general it's not a problem. I did this action some times ago and it wasn't a problem since now!
What network ranges are your VPN and LM network on ?
ipconfig
netstat -rn
Disable the VPN interfaces and then try again.

Reply Re: Static IP won't be assigned to the virtual machine Jan 5, 2009 3:12 AM
in response to: limeylimey
Click to view theimann's profile Novice theimann 6 posts since
Jan 2, 2009

I want to go from w2k to XP cause the VMWare Tools can't be installed in Lab Manager. And also it's not recommended to use w2k in Lab Manager 3.5 (see release notes).

After this is complete do you see a separate DOS box with "customizing guest" ?

You mean after the completion of sysprep? These are the steps of the customization:

  1. Powering on virtual machine
  2. windows starts, a DOS box is coming up with the information that the virtual machine will be customized
  3. virtual machine restarts
  4. sysprep starts
  5. after sysprep the system reboot again
  6. Now I can use the virtual machine ... but with a wrong IP

You may need the config of the sysprep.ini? Don't know if this is of interest?

Does the template have DHCP or static address before you publish it ?
The template has a static address before publishing. But I think this is not of interest in this case. I've assigned in another virtual machine a static address too.

Does LM GUI Monitor->deployed machines show your VM has been assigned an IP from the pool by LM?

Yes, the Monitor shows me a IP from the IP Pool!

What network ranges are your VPN and LM network on ?
ipconfig
netstat -rn
Disable the VPN interfaces and then try again.

The VPN interfaces aren't connected. They are just configured, but the connection isn't available. So i won't see anything at netstat. In comparison to another machine there is no difference, the routes are the same only with another ip address.

And thanks for help so far!!!


Reply Re: Static IP won't be assigned to the virtual machine Jan 5, 2009 10:43 AM
in response to: theimann
Click to view limeylimey's profile Novice limeylimey 17 posts since
Jul 22, 2008
And also it's not recommended to use w2k in Lab Manager 3.5 (see release notes).

w2k has sysprep folder in LM - the HTML help lists w2k sp3 as supported

I have XP SP2 working - unfenced mode

if LM says you have an IP for that deployed machine, the issue is downstream.

I did not modify my sysprep.inf from the default that came with LM
+Directory of C:\Program Files\VMware\VMware Lab Manager\Tools\CustomizeGuest+
dows\Sysprep\WinXP
2/03/2008 03:00 PM <DIR> .
2/03/2008 03:00 PM <DIR> ..
2/29/2006 06:47 PM 27,357 cvtarea.exe
1/25/2008 12:18 AM 1,732,647 DEPLOY.CAB
2/29/2006 06:47 PM 531,624 deploy.chm
4/14/2008 12:06 AM 136,192 factory.exe
8/23/2008 01:02 AM <DIR> i386
2/29/2006 06:50 PM 50,055 oformat.com
2/29/2006 06:48 PM 11,260 readme.txt
2/29/2006 06:49 PM 929,677 ref.chm
4/14/2008 12:06 AM 26,112 setupcl.exe
4/14/2008 12:06 AM 544,768 setupmgr.exe
4/14/2008 12:06 AM 93,184 sysprep.exe
7/28/2008 09:23 AM 512 sysprep.inf
4/14/2008 12:06 AM 93,184 sysprep.old
2/29/2006 06:49 PM 130,048 wfinf_guide.doc
13 File(s) 4,306,620 bytes

C:\Program Files\VMware\VMware Tools
VMip.exe -get ?? does it show the LM assigned IP or the previous IP ?

C:\WINDOWS\Temp\customize-guest.log
Will show you the process where the IP is configured and sysprep bundle is given to the VM, check this to make sure you make it all the way through.

I did have similar issues with w2k03 but that is because i had a "PEBKAC" and did not pay enough attention to the sysprep process in LM.
(i ended up using an updated sysprep.exe from the MS site for w2k03 and then using LM to create the new sysprep package in the LM GUI.

There is also a "marker" file inside the VM that if you remove will force it back through the process next time you start the VM, but i cant remember what that was :(

What happens if you build a new XP template guest from scratch ?
Reply Re: Static IP won't be assigned to the virtual machine Jan 6, 2009 1:37 AM
in response to: limeylimey
Click to view theimann's profile Novice theimann 6 posts since
Jan 2, 2009
I think we are on a good way :)


VMip.exe -get ?? does it show the LM assigned IP or the previous IP ?


It sounds funny, but there is no IP assigned. It shows 0.0.0.0!


C:\WINDOWS\Temp\customize-guest.log
+Will show you the process where the IP is configured and sysprep bundle
is given to the VM, check this to make sure you make it all the way
through.+


Here an excerpt of the customize-guest.log:


01/06/2009 08:28:11 Executing command="C:\Programme\VMware Tools\VMwareService.exe" --cmd machine.id.get
01/06/2009 08:28:13 Command execution succeeded, command output: numnics=1&macaddr_0=00:50:56:28:06:9e&bootproto_0=static&ip_0=10.100.10.113&netmask_0=255.255.0.0&gateway_0=10.100.255.254&dns1_0=10.0.1.103&dns2_0=10.0.1.101&suffix_0=qs.domain.de&primaryNic=0&computerName=Config1336VM0&UseSysPrep=Yes&bitMask=1&markerid=310870941&reconfigToken=754988307
01/06/2009 08:28:13 ProductKey=Not shown but its assigned
01/06/2009 08:28:13 Number of NICS=1
01/06/2009 08:28:13 m_primarynicindex=0

01/06/2009 08:28:13 Current computer name=FW_NORTEL03, New computer name=Config1336VM0
01/06/2009 08:28:13 Setting computer name to Config1336VM0
01/06/2009 08:28:15 Current primary DNS suffix=domain.de, New primary DNS suffix=qs.domain.de
01/06/2009 08:28:15 Setting primary DNS suffix to qs.domain.de
01/06/2009 08:28:15 Checking if marker file C:\WINNT\autoconfig-310870941 exist
01/06/2009 08:28:15 Marker file does not exist
01/06/2009 08:28:15 Executing command="C:\Programme\VMware Tools\VMwareService.exe" --cmd "info-get guestinfo.vsla.customizationscript"
01/06/2009 08:28:18 Command execution failed, command output:No value found exitcode:1
01/06/2009 08:28:18 Executing command=xcopy "sysprep\WinXP" "C:\sysprep" /S/E/Y
01/06/2009 08:28:19 Command execution succeeded, command output: sysprep\WinXP\cvtarea.exe

sysprep\WinXP\deploy.chm

sysprep\WinXP\factory.exe

sysprep\WinXP\oformat.com

sysprep\WinXP\readme.txt

sysprep\WinXP\ref.chm

sysprep\WinXP\setupcl.exe

sysprep\WinXP\setupmgr.exe

sysprep\WinXP\sysprep.exe

sysprep\WinXP\sysprep.inf

sysprep\WinXP\wfinf_guide.doc

sysprep\WinXP\i386\$OEM$\cmdlines.txt

12 Datei(en) kopiert


01/06/2009 08:28:19 Executing command=cmd /c copy "customize-guest.exe" "C:\sysprep\i386\$OEM$" /Y
01/06/2009 08:28:20 Command execution succeeded, command output: 1 Datei(en) kopiert.


01/06/2009 08:28:20 Executing command=C:\sysprep\sysprep.exe -quiet -reboot -reseal -mini
01/06/2009 08:28:20 Creating marker file C:\WINNT\autoconfig-310870941
01/06/2009 08:28:20 Guest operating system customization completed successfully


In sysprep the right IP is shown. The right computer name und suffixes are applied to the virtual machine, only the ip doesn't work.


I hope, these are helpful informations for you :8}


Kind regards

Reply Re: Static IP won't be assigned to the virtual machine Jan 6, 2009 11:51 AM
Click to view limeylimey's profile Novice limeylimey 17 posts since
Jul 22, 2008
01/06/2009 11:17:49 Executing command=cmd /c copy "customize-guest.exe" "C:\sysprep\i386\$OEM$" /Y
01/06/2009 11:17:50 Command execution succeeded, command output: 1 file(s) copied.
01/06/2009 11:17:50 Executing command=C:\sysprep\sysprep.exe -quiet -reboot -reseal -mini
01/06/2009 11:17:50 Creating marker file C:\WINDOWS\autoconfig-300858554
01/06/2009 11:17:50 Guest operating system customization completed successfully
01/06/2009 11:20:35 Executing command="C:\Program Files\VMware\VMware Tools\VMwareService.exe" --cmd machine.id.get
01/06/2009 11:20:35 Command execution succeeded, command output: numnics=1&macaddr_0=00:50:56:0e:01:1a&bootproto_0=static&ip_0=10.22.50.123&netmask_0=255.255.255.0&gateway_0=10.22.50.1&dns1_0=10.22.50.10&dns2_0=&suffix_0=&primaryNic=0&computerName=Config191VM0&UseSysPrep=Yes&bitMask=1&markerid=300858554&reconfigToken=489650084
01/06/2009 11:20:35 ProductKey=xxxxxxxxx
01/06/2009 11:20:35 Number of NICS=1
01/06/2009 11:20:35 m_primarynicindex=0
01/06/2009 11:20:35 Checking if marker file C:\WINDOWS\autoconfig-300858554 exist
01/06/2009 11:20:35 Marker file exist
01/06/2009 11:20:35 Executing command=netsh interface ip set address {5AC6033D-2DC0-40CA-B8F9-9506AB5AEC3C} static 10.22.50.123 255.255.255.0 10.22.50.1 1
01/06/2009 11:20:46 Command execution succeeded, command output: WARNING: Could not obtain host information from machine: CONFIG191VM0. Some commands may not be available.
Ok.
01/06/2009 11:20:46 Executing command=netsh interface ip set dns {5AC6033D-2DC0-40CA-B8F9-9506AB5AEC3C} static 10.22.50.10
01/06/2009 11:20:47 Command execution succeeded, command output:
WARNING: Could not obtain host information from machine: CONFIG191VM0. Some commands may not be available.
Ok.
01/06/2009 11:20:47 Executing command="C:\Program Files\VMware\VMware Tools\VMwareService.exe" --cmd "info-get guestinfo.vsla.customizationscript"
01/06/2009 11:20:47 Command execution failed, command output:No value found exitcode:1
01/06/2009 11:20:47 Guest operating system customization completed successfully

Try and manually set the IP address etc with netsh from the cmd prompt:
"netsh interface show interface"
"netsh interface ip set address "Local Area Connection" static 10.100.10.133 255.255.0.0 10.100.255.254 1*"

At that point LM has done all it needs, and the cmd has to complete for the IP address to become active.
Reply Re: Static IP won't be assigned to the virtual machine Jan 7, 2009 11:51 PM
in response to: limeylimey
Click to view theimann's profile Novice theimann 6 posts since
Jan 2, 2009

Hello,

for sure with the netsh prompt it works. But how can I say the virtual machine that the netsh prompt will be executed automatically? How should the machine know where to relate to which ip address?

Kind Regards


Reply Re: Static IP won't be assigned to the virtual machine Jan 13, 2009 11:50 AM
in response to: theimann
Click to view limeylimey's profile Novice limeylimey 17 posts since
Jul 22, 2008
01/06/2009 08:28:20 Executing command=C:\sysprep\sysprep.exe -quiet -reboot -reseal -mini
01/06/2009 08:28:20 Creating marker file C:\WINNT\autoconfig-310870941
01/06/2009 08:28:20 Guest operating system customization completed successfully

that is only the first part after sysprep, the log should continue after that and on that next boot it should config the IP, I dont think you are getting to that point.
But this is an "upgraded" w2k -> XP box - i would create a vanilla XP template and make sure that works on its own, cut the problem in half
Reply Re: Static IP won't be assigned to the virtual machine Feb 12, 2009 8:01 AM
in response to: limeylimey
Click to view theimann's profile Novice theimann 6 posts since
Jan 2, 2009
...
Reply Re: Static IP won't be assigned to the virtual machine Feb 6, 2009 5:50 AM
in response to: theimann
Click to view theimann's profile Novice theimann 6 posts since
Jan 2, 2009

Hey again,

I will be back again soon for a solution of my virtual machine problem :)

Greets

Actions