Commit 41e88087 authored by Russ Fish's avatar Russ Fish

Add support for hardware-independent image using Sysprep/Mini-Setup.

Also ensure DHCP is enabled on all connected interfaces.  Otherwise tmcc will fail.
parent cc7d19d8
......@@ -167,7 +167,11 @@ Intel PRO/1000 gigabit ether drivers, installed on the pc3000's.
Intel9.1/PRO1000/WS03XP2K -> xpsp2_support_tools_deploy/pro1000
LSI Logic Ultra320 SCSI 2000 drivers, installed on the pc3000's.
symmpi_xp_1.20.18.zip
symmpi_xp_1.20.18 -> xpsp2_support_tools_deploy/symmpi_xp_1.20.18
symmpi_xp_1.20.18.zip - Unsigned, but newer driver.
LSI21320_50700IO_01016100IO_1090200_676995.zip and
symmpi_xp_10902.zip - Older, but signed, driver.
Need to use the unsigned driver with Sysprep/Mini-Setup for
hardware-independent images.
symmpi_xp_10902 -> xpsp2_support_tools_deploy/symmpi
================================================================
This diff is collapsed.
......@@ -49,7 +49,7 @@ logit "nodeid = $nodeid"
# status on the interfaces than 'netsh interface show interface'. This might help.
netsh interface reset all
# Windows DHCP doesn't make a /etc/resolv.h, which tmcc needs for bossinfo.
# Windows DHCP doesn't make an /etc/resolv.conf, which tmcc needs for bossinfo.
# Make one from ipconfig output.
ipconfig /all | tr -d '\r' | awk \
'/^ *Connection-specific DNS Suffix.*: ./{print "search", $NF} \
......@@ -63,8 +63,6 @@ tp=$svcs/Tcpip/Parameters
regtool set -s $tp/Domain $domain
logit "domain = $domain"
# Make sure all NIC's are up at the start, so they show up on ifconfig.
devcon enable =net 'PCI*'
# Cache getmac output while all interfaces are still enabled. Used by rc.ifconfig .
bootdir=/var/emulab/boot
getmac /nh /v /fo csv > $bootdir/getmac-cache
......
......@@ -37,6 +37,15 @@ chmod -f g-w /etc/emulab
# by the cached info from tmcd. Clean up like bootsetup()/tmccclrconfig().
rm -rf /var/emulab/boot/tmcc
# Make sure all NIC's are up at the start, so they show up on ipconfig.
devcon enable =net 'PCI*'
# Make sure DHCP is enabled on all connected interfaces. Otherwise tmcc will fail.
ipconfig /all | tr -d '\r' | awk \
'/^Ethernet adapter/{ ifc = gensub("Ethernet adapter (.*):", "\\1", 1); next }\
/Dhcp Enabled.*No/{ stat = system("netsh interface ip set address \"$ifc\" dhcp");\
printf("Enabled DHCP on %s, status %d.\n", ifc, stat) }'
# Get the desired node name from tmcc, and make sure we have a connection.
# There is a swap-in race condition where tmcc nodeid at first returns nothing.
nodeid=
......@@ -81,6 +90,14 @@ else
fi
logit "IPEnableRouter set to `regtool get $tp/IPEnableRouter`."
# I'd rather not have it put MSN and Windows Media Player icons on my desktop...
logit "Clearing the MSN and WMP Desktop shortcuts."
rm -f /cygdrive/c/"Documents and Settings/All Users/Desktop/MSN Explorer.lnk"
rm -f /cygdrive/c/"Documents and Settings/Default User/Desktop"/*.lnk
regtool -s set /HKLM/SOFTWARE/Microsoft/Windows/CurrentVersion/Run/CleanWMP \
'DEL "%USERPROFILE%\Desktop\Windows Media Player.lnk"'
# Reset the host name if it hasn't been done yet. Requires a reboot.
hostname=`/bin/hostname`
host="Host name '$hostname'"
if [ $nodeid = $hostname ]; then
......@@ -88,7 +105,7 @@ if [ $nodeid = $hostname ]; then
else
logit "$host differs from nodeid '$nodeid'."
# A reboot will be required.
tmcd state SHUTDOWN
tmcc state SHUTDOWN
logit "Remove a redirect switch to make sure we come back with a serial console."
bootcfg /ems OFF /id 1
......
......@@ -265,6 +265,6 @@ Log of XP images produced (most recent first.)
- Need to install pro2kxp.exe drivers.
- Install Cygwin rpm package.
. WINXP-10-24 - Windows XP SP1, host rename at boot, user dir mounts.
. WINXP-10-24 - Windows XP SP1, host rename at boot, /users NFS mounts.
prtn 1, whole disk, OS other, 5.1.2, node pc174, ping/ssh, MINIMAL, pc2000.
Leave shared and global bits off until production images are being done.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment