I didn’t figure out the reason but I figured out a workaround. If one wants to start a network service (or cron job), one can simply added a boot script to /etc/init.d or /etc/rc.local.
From: Joe Linoff
Sent: Monday, November 29, 2010 11:23 AM
Cc: Joe Linoff
Subject: XCP 0.5: noob: how can i access the network in the post-install-script?
Why can’t I access the network from the post-install-script?
I am trying to access the internal LAN in the post-install-script when the XCP hypervisor is initially installed. Here are some of the commands I tried:
1. ping –w 5 192.168.3.1
2. service network status
3. /sbin/service network status
4. /etc/init.d/network status
All of them failed with a return status that was not zero. My other post-install-script commands like wget http://192.168.3.1/post-install.sh worked. Furthermore, all of the above command worked when I logged into the command shell after the installation.