I'm installing ubuntu server 10.04 over kvm switch. I have no physical access to the server. The server has ubuntu installation cd inserted. How to prevent setup from ejecting it after completion?
This is actually documented in the 10.04 Installation Guide.
It's under "Ubuntu Installer Parameters." The relevant paragraphs:
By default, before rebooting, debian-installer automatically ejects the optical media used during the installation. This can be unnecessary if the system does not automatically boot off the CD. In some cases it may even be undesirable, for example if the optical drive cannot reinsert the media itself and the user is not there to do it manually. Many slot loading, slim-line, and caddy style drives cannot reload media automatically.
Set to false to disable automatic ejection, and be aware that you may need to ensure that the system does not automatically boot from the optical drive after the initial installation.
Why would you want it to not eject ? It will reboot to the CD.
At any rate, you will have to remaster the server CD
The modification is minor. Following that link, extract the iso.
You need to edit one file
/etc/rc0.d/S89casper comment out (add a # in the front) and/or modify the following lines:
# eject -p -m /cdrom >/dev/null 2>&1 # [ "$prompt" ] || return 0 ## Add the following line: return 0 # XXX - i18n # MSG="Please remove the disc and close the tray (if any) then press ENTER: " # Modify /sbin/usplash_write "TIMEOUT 86400" # To read /sbin/usplash_write "TIMEOUT 0"
I pulled that syntax from the ubuntu 10.04 desktop CD, there may be some variation with the server CD.
Then make your iso
So it should be extract the iso, edit a single file, wrap your iso. If you need hlep with the syntax, pastebin the relevant section of