1 Reply Latest reply: May 17, 2012 8:08 AM by Bill Robinson RSS

BSA 8.2 Provisioning ESXi 4.1 Fails: Error connecting to network

DCHAN

Running into a problem after the OS partially installs with ESXi 4.1.

 

The error occurs at the end of provisioning after the OS starts to install.  The Package is set to set a static IP however at a later portion it looks like it has not taken the changes and comes up with the following error:

 

Error connecting to the network.  Did not get an IP address from DHCP Server.  A network connection cannot be made to fetch: 20.5.204.10/pxe

 

The following is the results of the kickstart file that is generated:

 

accepteula

keyboard Default

network --bootproto=static --device=??MAC_ADDRESS_CD?? --ip=20.5.207.21 --netmask=255.255.255.0 --gateway=20.5.207.254 --nameserver=20.5.204.122 --hostname=??HOST_NAME??

clearpart --firstdisk=local --overwritevmfs

autopart --firstdisk=local --overwritevmfs

rootpw --iscrypted ??ROOT_PASSWORD??

install url http://??DATA_STORE_IP??/??DATA_STORE.VIRTUAL_DIR??/VMware/ESXi_4.1u2

reboot

%firstboot --unsupported --interpreter=busybox

cd /

touch provscript

echo "cd /" >> provscript

echo "connected=1" >> provscript

echo "cnt=0" >> provscript

echo "echo \$cnt" >> provscript

echo "while [ \$cnt -lt 5 ]" >> provscript

echo "do" >> provscript

echo "cnt=\$((cnt+1))" >> provscript

echo "echo "Trying to connect PROV_APP_SERVER_IP Retry count is \$cnt"" >> provscript

echo "ping -c 3 PROV_APP_SERVER_IP >> /dev/null" >> provscript

echo "if [ \$? -eq 0 ]" >> provscript

echo "then" >> provscript

echo "echo 'breaking'" >> provscript

echo "connected=0" >> provscript

echo "break" >> provscript echo "fi" >> provscript

echo "sleep 10" >> provscript echo "done" >> provscript

echo "echo 'checking if'" >> provscript

echo "echo "Ping result \$connected"" >> provscript

echo "if [ \$connected -eq 0 ]" >> provscript

echo "then" >> provscript

echo "echo 'App server connected'" >> provscript

echo "wget http://??DATA_STORE_IP??/??DATA_STORE.VIRTUAL_DIR??/bmilinux.tar bmilinux.tar" >> provscript

echo "tar -xvf bmilinux.tar">> provscript

echo "chmod +x bmilinux">> provscript

echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/">> provscript

echo "./bmilinux PROV_SOCKET_APP_SERVER_IP ??MAC_ADDRESS?? >> /root/bmilinux.log" >> provscript

echo "rm -f bmilinux" >> provscript

echo "rm -f bmilinux.tar" >> provscript

echo "rm -f libblssl.so.0.9.8" >> provscript

echo "rm -f libblcrypto.so.0.9.8" >> provscript

echo "rm -f random.byt" >> provscript

echo "else" >> provscript

echo "Could not connect to app server PROV_SOCKET_APP_SERVER_IP" >> provscript

echo "fi" >> provscript

chmod +x provscript

./provscript >> ProvScript.log

rm -f provscript