Difference between revisions of "Ubuntu Xen System Boot Hangs After Setting System Clock Message"

From Virtuatopia
Jump to: navigation, search
Line 3: Line 3:
 
This is a problem related to the hwclock binary which is common to a number of different Linux distributions in addition to Ubuntu.
 
This is a problem related to the hwclock binary which is common to a number of different Linux distributions in addition to Ubuntu.
  
One way to prevent this problem from occurring on an Ubuntu system is to edit the following system initialization files:
+
One way to resolve this problem is to remove startup links to ''hwclock.sh'' and ''hwclockfirst.sh'':
 +
 
 +
<pre>
 +
update-rc.d -f hwclock.sh remove
 +
update-rc.d -f hwclockfirst.sh remove
 +
</pre>
 +
 
 +
Another option is to simply edit the two system initialization files:
  
 
<pre>
 
<pre>
Line 17: Line 24:
 
</pre>
 
</pre>
  
Once this change has been made to both the hwclockfirst.sh and hwclock.sh files simply reboot the system and Ubuntu should boot fully without hanging.
+
Once one of these sets of changes has been made to both the hwclockfirst.sh and hwclock.sh, files simply reboot the system and Ubuntu should boot fully without hanging.

Revision as of 13:42, 26 April 2008

After installing the Ubuntu xen-server packages and rebooting the operating system using the Xen kernel the boot process appears to hang after displaying the "Setting system clock..." message.

This is a problem related to the hwclock binary which is common to a number of different Linux distributions in addition to Ubuntu.

One way to resolve this problem is to remove startup links to hwclock.sh and hwclockfirst.sh:

update-rc.d -f hwclock.sh remove
update-rc.d -f hwclockfirst.sh remove

Another option is to simply edit the two system initialization files:

init.d/hwclockfirst.sh  
init.d/hwclock.sh

and place a exit 0 line immediately after the #!/bin/sh. For example:

#!/bin/sh
exit 0

Once one of these sets of changes has been made to both the hwclockfirst.sh and hwclock.sh, files simply reboot the system and Ubuntu should boot fully without hanging.