Hi guys,

I was wondering does anyone of you have experience with configuring static IPs for Windows XP guests during unattended installation? After researching for some hours now, the best I have come up is two methods:

1) using sysprep sections and parameters like the sample here: http://technet.microsoft.com/en-us/library/cc740059%28WS.10%29.aspx - does not work and the desired changes take no effect
2) using netsh during GuiRunOnce like this

Command5="cmd /c netsh interface ip set address local dhcp & netsh interface ip set address name='Local Area Connection' static 192.168.5.1 255.255.255.0 & netsh interface ip set address name='Local Area Connection 2' dhcp & netsh interface ip set address name='Local Area Connection 3' static 172.31.1.1 255.255.0.0"

The problem here is much more interesting, namely that the sysprep config needs the double quotes in its key="value with space" pairs but netsh needs it for specifying the ID of the connection (name=ID parameter) neither of which accepts single quotes as an alternative (so the command above will not work but at least there will be no syntax error during the early stages of the intallation). I have tried escaping the double quotes in the sysprep config l like

key="foo \" bar"
key="foo "" bar"
key="foo ^" bar"

and other forum suggestions to no avail. I tried to at least make netsh step back but the connection names remain of the kind "Local Arex Connection 42" which need the quotes and unfortunately specifically the double quotes. Do you know about a way to define those names to one word thing during installation? In the default winxp32.sif file of virt-test you make use of "netsh interface ip set address *local* dhcp" which is some kind of abbreviation but so far I couldn't find any clarification on how exactly does it relate to the connection names (in my case it corresponds to "Local Area Connection 2" for reason which is unknown to me).

Any help would be greatly appreciated!

Regards,
Plamen

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to