Jumpstart: Automating Solaris Installations Without Networks
Introduction
For my job, I had to automate Solaris installations. Jumpstart exists for this purpose. The problem is that in a new datacenter, you don’t always have what you need. That’s the real issue. That’s why I researched documentation on the internet, which often doesn’t work properly, and I’ll try to create a comprehensible guide that works (hopefully).
Prerequisites
You’ll need a fresh Solaris installation on which you’ll do minimal configuration. Also install anything else you’re interested in.
Note: For now, forget about the ZFS root version and use UFS. There is no clean method for doing a flash install with ZFS.
You’ll also need the SUNWmkcd package to have the mkisofs command.
Creating the Flar
We’ll create a flar image which will make an archive of the current system:
|
|
Copying the DVD
We’ll copy the DVD content to make necessary modifications:
|
|
x86.miniroot
Unpack
Here we’ll unpack x86.miniroot to modify its content:
|
|
Jumpstart CDROM
Now, to address a small issue, we’ll edit this file and you should comment out these 2 lines:
(/var/tmp/miniroot/usr/sbin/install.d/profind
)
|
|
sysidcfg
Here’s probably the most interesting file for setting up your jumpstart. But first, we need to remove the existing symbolic link that would prevent jumpstart from working properly:
|
|
Now, let’s create a new file with this content:
(/var/tmp/miniroot/etc/sysidcfg
)
|
|
For the password, you need to get the encrypted version from /etc/shadow for example. Here’s another example:
(/var/tmp/miniroot/etc/sysidcfg
)
|
|
And here’s another example:
(/var/tmp/miniroot/etc/sysidcfg
)
|
|
Pack
Now we’ll repackage everything:
|
|
Moving the flar
Let’s move the flar to the folder containing the Solaris DVD with the latest modifications we’ve made:
|
|
Customizing the Jumpstart
We’ll now choose the automations we want to implement:
|
|
any_profile
(any_profile
)
|
|
begin
(begin
)
|
|
finish
(finish
)
|
|
rules
(rules
)
|
|
Then, we need to verify the entire configuration. Fortunately, a small tool exists (this command is required):
|
|
Grub
We’ll edit the boot menu. Add these lines (they should be placed at the beginning of the title section):
(/export/home/dvd/boot/grub/menu.lst
)
|
|
Creating the ISO File
All that’s left is to create the ISO file with everything we’ve done:
|
|
Now all you need to do is burn it and boot from it :-)
FAQ
/export/home/dvd/boot/x86.miniroot: override protection 444
If you get this error, copy the DVD content to a folder and try your command again (generally):
|
|
References
- http://wikis.sun.com/display/BigAdmin/Creating+a+bootable+ISO+image
- http://run.tournament.org.il/tag/flar/
- http://docs.sun.com/app/docs/doc/819-5776/6n7r9js2j?a=view
- http://www.sun.com/bigadmin/features/articles/jumpstart_x86_x64.jsp
- http://forums.sun.com/thread.jspa?threadID=5372582&tstart=0
- http://amorin.org/professional/jumpstart.php
- http://docs.sun.com/app/docs/doc/820-2315/ggsez?l=fr&a=view
- http://www.eng.auburn.edu/~doug/howtos/multipathing.html
Last updated 21 Aug 2009, 15:17 CEST.