perkin.org.uk - Jumpstart from OSX









Search Preview

Jumpstart from OSX

perkin.org.uk
Jonathan Perkin about me · rss · twitter · github
.org.uk > perkin.org.uk

SEO audit: Content analysis

Language Error! No language localisation is found.
Title Jumpstart from OSX
Text / HTML ratio 55 %
Frame Excellent! The website does not use iFrame solutions.
Flash Excellent! The website does not have any flash contents.
Keywords cloud » install SmartOS file Solaris packages OSX Dec Jan pkgsrc sudo Step DHCP Jun PXE jumpstart kernel vi configuration Jul
Keywords consistency
Keyword Content Title Description Headings
» 52
install 16
SmartOS 13
file 13
Solaris 12
packages 11
Headings
H1 H2 H3 H4 H5 H6
2 7 0 0 0 0
Images We found 0 images on this web page.

SEO Keywords (Single)

Keyword Occurrence Density
» 52 2.60 %
install 16 0.80 %
SmartOS 13 0.65 %
file 13 0.65 %
Solaris 12 0.60 %
packages 11 0.55 %
OSX 10 0.50 %
Dec 9 0.45 %
Jan 9 0.45 %
pkgsrc 7 0.35 %
sudo 7 0.35 %
Step 7 0.35 %
DHCP 7 0.35 %
Jun 7 0.35 %
PXE 7 0.35 %
jumpstart 6 0.30 %
kernel 6 0.30 %
vi 6 0.30 %
configuration 6 0.30 %
Jul 5 0.25 %

SEO Keywords (Two Word)

Keyword Occurrence Density
2013 » 18 0.90 %
2012 » 14 0.70 %
2011 » 11 0.55 %
Jun 2011 6 0.30 %
Jan 2013 6 0.30 %
on SmartOS 5 0.25 %
file system 4 0.20 %
» A 4 0.20 %
» SmartOS 4 0.20 %
» pkgsrc 4 0.20 %
Dec 2013 4 0.20 %
packages for 4 0.20 %
pkgsrc on 4 0.20 %
8bit CPU 4 0.20 %
A nodejspowered 4 0.20 %
nodejspowered 8bit 4 0.20 %
CPU part 4 0.20 %
need to 4 0.20 %
you may 3 0.15 %
Jan 2012 3 0.15 %

SEO Keywords (Three Word)

Keyword Occurrence Density Possible Spam
Jun 2011 » 6 0.30 % No
Jan 2013 » 6 0.30 % No
» A nodejspowered 4 0.20 % No
Dec 2013 » 4 0.20 % No
2013 » A 4 0.20 % No
nodejspowered 8bit CPU 4 0.20 % No
8bit CPU part 4 0.20 % No
» pkgsrc on 4 0.20 % No
A nodejspowered 8bit 4 0.20 % No
pkgsrc on SmartOS 3 0.15 % No
title Solaris PXE 3 0.15 % No
kernel sol10u8xmultiboot kernelunix 3 0.15 % No
Jan 2012 » 3 0.15 % No
2013 » pkgsrc 3 0.15 % No
» How to 3 0.15 % No
2011 » How 2 0.10 % No
the tftpboot directory 2 0.10 % No
2012 » SmartOS 2 0.10 % No
the local network 2 0.10 % No
Jul 2013 » 2 0.10 % No

SEO Keywords (Four Word)

Keyword Occurrence Density Possible Spam
A nodejspowered 8bit CPU 4 0.20 % No
nodejspowered 8bit CPU part 4 0.20 % No
» A nodejspowered 8bit 4 0.20 % No
2013 » A nodejspowered 4 0.20 % No
Dec 2013 » A 4 0.20 % No
2013 » pkgsrc on 3 0.15 % No
» pkgsrc on SmartOS 3 0.15 % No
2013 » Solaris portability 2 0.10 % No
09 Jan 2012 » 2 0.10 % No
B \ install_media=192168130VolumesSOL_10_1009_X86\ sysid_config=192168130installjumpstart\ 2 0.10 % No
» What's new in 2 0.10 % No
kernel sol10u8xmultiboot kernelunix install 2 0.10 % No
Install kernel sol10u8xmultiboot kernelunix 2 0.10 % No
Solaris PXE Unattended Install 2 0.10 % No
title Solaris PXE Unattended 2 0.10 % No
» Kickstart Oracle Linux 2 0.10 % No
Jan 2013 » Solaris 2 0.10 % No
2012 » Kickstart Oracle 2 0.10 % No
install_media=192168130VolumesSOL_10_1009_X86\ sysid_config=192168130installjumpstart\ install_config=192168130installjumpstart module 2 0.10 % No
Feb 2013 » SmartOS 2 0.10 % No

Internal links in - perkin.org.uk

about me
About Me
rss
Jonathan Perkin
Reducing RAM usage in pkgin
Reducing RAM usage in pkgin
Building packages at scale
Building packages at scale
A node.js-powered 8-bit CPU - part four
A node.js-powered 8-bit CPU - part four
A node.js-powered 8-bit CPU - part three
A node.js-powered 8-bit CPU - part three
A node.js-powered 8-bit CPU - part two
A node.js-powered 8-bit CPU - part two
A node.js-powered 8-bit CPU - part one
A node.js-powered 8-bit CPU - part one
MDB support for Go
MDB support for Go
Distributed chrooted pkgsrc bulk builds
Distributed chrooted pkgsrc bulk builds
pkgsrc on SmartOS - creating new packages
pkgsrc on SmartOS - creating new packages
Installing SVR4 packages on SmartOS
Installing SVR4 packages on SmartOS
SmartOS is Not GNU/Linux
SmartOS is Not GNU/Linux
SmartOS development preview dataset
SmartOS development preview dataset
pkgsrc on SmartOS - fixing broken builds
pkgsrc on SmartOS - fixing broken builds
pkgsrc on SmartOS - zone creation and basic builds
pkgsrc on SmartOS - zone creation and basic builds
Multi-architecture package support in SmartOS
Multi-architecture package support in SmartOS
Solaris portability - cfmakeraw()
Solaris portability - cfmakeraw()
Solaris portability - flock()
Solaris portability - flock()
SmartOS and the global zone
SmartOS and the global zone
Setting up Samba on SmartOS
Setting up Samba on SmartOS
Creating local SmartOS packages
Creating local SmartOS packages
7,000 binary packages for OSX Lion
7,000 binary packages for OSX Lion
9,000 packages for SmartOS and illumos
9,000 packages for SmartOS and illumos
Goodbye Oracle, Hello Joyent!
Goodbye Oracle, Hello Joyent!
SmartOS global zone tweaks
SmartOS global zone tweaks
Automated VirtualBox SmartOS installs
Automated VirtualBox SmartOS installs
iptables script for Debian / Ubuntu
iptables script for Debian / Ubuntu
New site design
New site design
Set up anonymous FTP upload on Oracle Linux
Set up anonymous FTP upload on Oracle Linux
Kickstart Oracle Linux in VirtualBox
Kickstart Oracle Linux in VirtualBox
Kickstart Oracle Linux from Ubuntu
Kickstart Oracle Linux from Ubuntu
Last day at MySQL
Last day at MySQL
Installing OpenBSD with softraid
Installing OpenBSD with softraid
Create VirtualBox VM from the command line
Create VirtualBox VM from the command line
Creating chroots for fun and MySQL testing
Creating chroots for fun and MySQL testing
Graphing memory usage during an MTR run
Graphing memory usage during an MTR run
Fix input box keybindings in Firefox
Fix input box keybindings in Firefox
How to lose weight
How to lose weight
How to fix stdio buffering
How to fix stdio buffering
Fix Firefox URL double click behaviour
Fix Firefox URL double click behaviour
SSH via HTTP proxy in OSX
SSH via HTTP proxy in OSX
How to build MySQL releases
How to build MySQL releases
ZFS and NFS vs OSX
ZFS and NFS vs OSX
pkgsrc on Solaris
pkgsrc on Solaris
Jumpstart from OSX
Jumpstart from OSX
Set up local caching DNS server on OSX 10.4
Set up local caching DNS server on OSX 10.4

Perkin.org.uk Spined HTML


Jumpstart from OSX Jonathan Perkin well-nigh me · rss · twitter · github Jumpstart from OSX Dec 09, 2008 tags: dhcp, grub, jumpstart, osx, solaris, tftp I recently built a new file server on which I planned to install Solaris 10 10/08. I’m not a fan of CD/DVD installs, so wanted to jumpstart via PXE, though I only had OSX handy. Here’s how I installed my new machine (gromit.adsl.perkin.org.uk/192.168.1.10) from my iMac (192.168.1.30) over the local network. Note that since writing this piece I’ve updated to Solaris 10 10/09, and have reverted the examples to use that instead. Step 1, Prepare File System First off, create a defended file system which we can export our jumpstart configuration from. You can probably skip this and just use any existing file system but this way everything is self-contained and we stave NFS exporting increasingly than we need. We use HFSX to ensure that the file system is specimen sensitive, HFS+ can rationalization problems with pkgadd(1M). $ hdiutil create -size 1g -type SPARSE -fs HFSX -volname "install" install $ hdiutil nail install.sparseimage -mountpoint /install Next up, download and mount sol-10-u8-ga-x86-dvd.iso. $ unshut sol-10-u8-ga-x86-dvd.iso Step 2, NFS Share /install and the DVD via NFS with the correct options. -alldirs allows clients to mount from any point within that file system (which jumpstart requires), and -maproot=root is moreover required by jumpstart. As this allows root-owned files to be created, make sure you understand the security risks. $ sudo vi /etc/exports /install -alldirs -maproot=root /Volumes/SOL_10_1009_X86 -alldirs -maproot=root $ sudo nfsd checkexports && sudo nfsd enable Step 3, DHCP For DHCP I happen to once use my Cisco router as a DHCP server on the local network, so widow the pursuit configuration: ip dhcp pool gromit.adsl.perkin.org.uk host 192.168.1.10 255.255.255.0 hardware-address xxxx.xxxx.xxxx bootfile /boot/grub/pxegrub next-server 192.168.1.30 client-name gromit domain-name adsl.perkin.org.uk dns-server xxx.xxx.xxx.xxx default-router 192.168.1.1 however, given this is a guide for setting everything up under OSX I moreover tried using ISC DHCP on OSX to prove it can be washed-up that way too. I used pkgsrc to install it (I’ll add flipside blog some time showing how to set up pkgsrc) $ cd /usr/pkgsrc/net/isc-dhcpd $ sudo bmake package And here is my DHCP configuration file in full: option domain-name "adsl.perkin.org.uk"; option domain-name-servers xxx.xxx.xxx.xxx; ddns-update-style none; authoritative; log-facility local7; subnet 192.168.1.0 netmask 255.255.255.0 { option routers 192.168.1.1; } group { filename "/boot/grub/pxegrub"; next-server 192.168.1.30; host gromit { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.1.10; option host-name "gromit.adsl.perkin.org.uk"; } } Finally, start DHCP with: $ sudo /usr/pkg/sbin/dhcpd Most parts of these configurations should be self-explanatory. The /boot/grub/pxegrub entry is important for our next step, and I’d recommend using that word-for-word pathname for reasons explained later. Step 4, TFTP Now, enable the TFTP server which comes with OSX. I widow the -s option so tftpd would chroot to the tftpboot directory, both for security reasons and moreover to ensure that paths specified as /path/to/file would work correctly (relative to /install/tftpboot). I moreover reverted the location of the tftpboot directory so that everything was self-contained within the UFS image. In previous attempts I didn’t do this and ran into problems with GRUB which I think are then caused by case-insensitive file systems. $ sudo vi /System/Library/LaunchDaemons/tftp.plist [...] <key>ProgramArguments</key> <array> <string>/usr/libexec/tftpd</string> <string>-i</string> <string>-s</string> <string>/install/tftpboot</string> </array> [...] $ mkdir /install/tftpboot $ sudo launchctl load -w /System/Library/LaunchDaemons/tftp.plist You can then create a test file and trammels that it’s working as you expect, using: $ reverberate "testing" >/install/tftpboot/testfile $ printf "verbose\ntrace\nget testfile\n" | tftp localhost $ rm /install/tftpboot/testfile Step 5, GRUB Next up, configure PXE booting using GRUB. We need to reprinting the GRUB images and configuration from the Solaris install DVD then modify it for our environment: $ rsync -av /Volumes/SOL_10_1009_X86/boot/grub /install/tftpboot/boot/ $ rsync -av /Volumes/SOL_10_1009_X86/boot/multiboot /install/tftpboot/sol10u8x/ $ rsync -av /Volumes/SOL_10_1009_X86/boot/x86.miniroot /install/tftpboot/sol10u8x/ As we are copying the marching files from the DVD, they come hardcoded with particular pathnames to e.g. the menu.lst file. While it may be possible to pass uneaten parameters to pxegrub and load this from a variegated path, I simply recommend doing as I do and replicating the /boot/grub/ path structure so that everything Just Works. The menu.lst file includes kernel arguments and allows you to segregate which type of install to perform at startup. My file listed unelevated has 3 choices: Unattended install using a graphical environment (if available). The “install” keyword without the kernel instructs it to perform an unattended install, so long as it can find the necessary settings from sysidcfg etc. As above, but gravity the use of the panel and do not start a graphical environment (using the “nowin” keyword) A transmission install, so you need to go through the steps of layout out disks, selecting packages, etc. $ vi /install/tftpboot/boot/grub/menu.lst default=0 timeout=60 title Solaris PXE Unattended Install kernel /sol10u8x/multiboot kernel/unix - install -B \ install_media=192.168.1.30:/Volumes/SOL_10_1009_X86,\ sysid_config=192.168.1.30:/install/jumpstart,\ install_config=192.168.1.30:/install/jumpstart module /sol10u8x/x86.miniroot title Solaris PXE Unattended Install (console) kernel /sol10u8x/multiboot kernel/unix - install nowin -B \ install_media=192.168.1.30:/Volumes/SOL_10_1009_X86,\ sysid_config=192.168.1.30:/install/jumpstart,\ install_config=192.168.1.30:/install/jumpstart module /sol10u8x/x86.miniroot title Solaris PXETransmissionInstall kernel /sol10u8x/multiboot kernel/unix -B \ install_media=192.168.1.30:/Volumes/SOL_10_1009_X86 module /sol10u8x/x86.miniroot Anyone used to doing jumpstart but with RARP/bootparams will notice the symmetry between install_config etc in the GRUB configuration and similar options in /etc/bootparams. Make sure that the full kernel arguments are all on one line, and that there are no spaces in between the install_media=..,sysid_config=.. options. Step 6, Jumpstart Finally, set up your Jumpstart configuration. Here’s what I personally use, you may want something different: $ mkdir /install/jumpstart $ cd /install/jumpstart $ vi sysidcfg name_service=DNS { domain_name=adsl.perkin.org.uk name_server=xxx.xxx.xxx.xxx } network_interface=PRIMARY { default_route=192.168.1.1 netmask=255.255.255.0 protocol_ipv6=yes } nfs4_domain=dynamic root_password=xxxxxxxx terminal=xterm timeserver=localhost timezone=Europe/London security_policy=NONE service_profile=limited_net system_locale=C Ordinarily this file is processed using a trammels script misogynist in the jumpstart_sample directory on the Solaris DVD, however this only works from a Solaris host. To create the rules.ok file, we need to strip out any comments and put entries on one line, then create the checksum (although this isn’t unquestionably necessary). $ vi rules # emacs sucks :) hostname gromit.adsl.perkin.org.uk - profile - $ cp rules rules.ok $ reverberate "# version=2 checksum=$(cksum -o 2 rules | awk '{print $1}')" >> rules.ok Machine profile. This gives me a full Solaris install (minus OEM stuff) on mirrored ZFS disks with spare dump/swap space (the defaults made dump a bit too small I found). $ vi profile install_type initial_install pool store wheels 4g 4g mirror c1t0d0s0 c1t1d0s0 bootenv installbe bename sol10u8x cluster SUNWCall Step 7, Make A Cup Of Tea With everything set up you should be worldly-wise to enable PXE booting in your BIOS and watch it automatically install. One small minor problem you may have if you don’t have a BIOS which allows you to hit F12 or similar and segregate PXE booting for one marching only is that it will infinitely trundling through installing, rebooting, installing, rebooting.. until you transpiration your marching options. If this happens, I recommend making increasingly cups of tea until you happen to return in time to transpiration the BIOS settings. If you aren’t worldly-wise to do this for a while, you may need to add the uneaten steps 8, 9 and 10 titled “Visit The Bathroom”. Share this post on Twitter, HackerNews, Facebook or Google+ All Posts 16 Jul 2015 » Reducing RAM usage in pkgin 03 Mar 2015 » pkgsrc-2014Q4: LTS, signed packages, and increasingly 06 Oct 2014 » Building packages at scale 04 Dec 2013 » A node.js-powered 8-bit CPU - part four 03 Dec 2013 » A node.js-powered 8-bit CPU - part three 02 Dec 2013 » A node.js-powered 8-bit CPU - part two 01 Dec 2013 » A node.js-powered 8-bit CPU - part one 21 Nov 2013 » MDB support for Go 30 Jul 2013 » What's new in pkgsrc-2013Q2 24 Jul 2013 » Distributed chrooted pkgsrc zillion builds 07 Jun 2013 » pkgsrc on SmartOS - creating new packages 15 Apr 2013 » What's new in pkgsrc-2013Q1 19 Mar 2013 » Installing SVR4 packages on SmartOS 27 Feb 2013 » SmartOS is Not GNU/Linux 18 Feb 2013 » SmartOS minutiae preview dataset 17 Jan 2013 » pkgsrc on SmartOS - fixing wrenched builds 15 Jan 2013 » pkgsrc on SmartOS - zone megacosm and vital builds 10 Jan 2013 » Multi-architecture package support in SmartOS 09 Jan 2013 » Solaris portability - cfmakeraw() 08 Jan 2013 » Solaris portability - flock() 06 Jan 2013 » pkgsrc-2012Q4 illumos packages now misogynist 23 Nov 2012 » SmartOS and the global zone 24 Oct 2012 » Setting up Samba on SmartOS 10 Oct 2012 » pkgsrc-2012Q3 packages for illumos 23 Aug 2012 » Creating local SmartOS packages 10 Jul 2012 » 7,000 binary packages for OSX Lion 09 Jul 2012 » 9,000 packages for SmartOS and illumos 07 May 2012 » Goodbye Oracle, Hello Joyent! 13 Apr 2012 » SmartOS global zone tweaks 12 Apr 2012 » Automated VirtualBox SmartOS installs 30 Mar 2012 » iptables script for Debian / Ubuntu 20 Feb 2012 » New site diamond 11 Jan 2012 » Set up unrecognized FTP upload on Oracle Linux 09 Jan 2012 » Kickstart Oracle Linux in VirtualBox 09 Jan 2012 » Kickstart Oracle Linux from Ubuntu 22 Dec 2011 » Last day at MySQL 15 Dec 2011 » Installing OpenBSD with softraid 21 Sep 2011 » Create VirtualBox VM from the writ line 14 Sep 2011 » Creating chroots for fun and MySQL testing 30 Jun 2011 » Graphing memory usage during an MTR run 29 Jun 2011 » Fix input box keybindings in Firefox 24 Jun 2011 » How to lose weight 23 Jun 2011 » How to fix stdio buffering 13 Jun 2011 » Serving multiple DNS search domains in IOS DHCP 13 Jun 2011 » Fix Firefox URL double click behaviour 20 Apr 2011 » SSH via HTTP proxy in OSX 09 Nov 2010 » How to build MySQL releases 29 Apr 2010 » 'apt-get' and 5,000 packages for Solaris10/x86 16 Sep 2009 » ZFS and NFS vs OSX 12 Sep 2009 » pkgsrc on Solaris 09 Dec 2008 » Jumpstart from OSX 31 Dec 2007 » Set up local caching DNS server on OSX 10.4