Using UBCD With Headless Servers
Moderators: Icecube, StopSpazzing
-
- Posts: 1
- Joined: Tue Mar 08, 2011 6:37 am
Using UBCD With Headless Servers
I have a number of headless servers with no feasible way of getting monitors or keyboards attached. I customized UBCD with an image that automatically performs the desired commands, but I need to have UBCD either automatically run my custom image, or have UBCD output the menu to the serial port (I have a laptop with a serial port) so I can select the appropriate image to be run.
-
- Posts: 462
- Joined: Tue Sep 09, 2008 4:37 pm
- Location: California, USA
- Contact:
Re: Using UBCD With Headless Servers
Edit the file located in (for UBCD 5.x):
For ISOLINUX (CD):
For SYSLINUX (UFD [USB FLASH DRIVE]):
Change the options at below the 'LABEL main' line to boot what you want it to boot.
Other Options:
If using SYSLINUX, just add the timeout code of 1 sec and make it choose Ontimeout ...never tried it. Some testing I'm sure would be a good idea..
Icecube please feel free to correct me if I am wrong.
Let me know if you have any other questions.
For ISOLINUX (CD):
Code: Select all
ubcd-extract/boot/isolinux/isolinux.cfg
Code: Select all
ubcd-extract/boot/syslinux/syslinux.cfg
Other Options:
Code: Select all
TIMEOUT x - set timeout in 1/10 sec. If user don't type anything at boot prompt in time set by TIMEOUT, then DEFAULT or ONTIMEOUT will be executed ( see ONTIMEOUT for details).
ONTIMEOUT {label name or kernel options} - same as DEFAULT. If ONTIMEOUT option is set, then DEFAULT is used just if user hits ENTER without options at boot prompt.
Icecube please feel free to correct me if I am wrong.
Let me know if you have any other questions.
~Just StopSpazzing~
Visit the UBCD Wiki: http://wiki.ultimatebootcd.com
Please check your UBCD ISO MD5 Hash Sum; May prevent issues later on by not having an exact copy.
Currently Working on Common Issues and Repair Tips on the Wiki.
Visit the UBCD Wiki: http://wiki.ultimatebootcd.com
Please check your UBCD ISO MD5 Hash Sum; May prevent issues later on by not having an exact copy.
Currently Working on Common Issues and Repair Tips on the Wiki.
Re: Using UBCD With Headless Servers
If the only purpose/need is to automatically run a specific image, then StopSpazzing's suggestion should be enough.iwoloschin wrote:...have UBCD output the menu to the serial port (I have a laptop with a serial port) so I can select the appropriate image to be run.
There are additional syslinux parameters that COULD be useful, like TOTALTIMEOUT for example.
In addition, UBCD51a1 contains an updated ubcd2iso script that can run UBCD with grub4dos as default ("/g" parameter) instead of syslinux being the default.
If you need further control (besides automatically running a specific image), then both syslinux and grub4dos have "remote serial port console" related parameters. You could use some web search method to search for:
- syslinux remote serial port console
- grub4dos remote serial port console
to see which of the available menus is more suitable for your needs. But again, this is only worth if you need additional control besides automatically running a specific image.
The problem to find the complete info so to successfully make it work is that both, syslinux nor grub4dos, have ALL the info sorted and organized. You may need to find the specific parameters, and then search also for additional workarounds (like just for one example the TOTALTIMEOUT that I mentioned before, in relation to possible serial-port problems).