perkin.org.uk - Kickstart Oracle Linux from Ubuntu









Search Preview

Kickstart Oracle Linux from Ubuntu

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 Kickstart Oracle Linux from Ubuntu
Text / HTML ratio 58 %
Frame Excellent! The website does not use iFrame solutions.
Flash Excellent! The website does not have any flash contents.
Keywords cloud » part sudo SmartOS asprimary packages Jan install boot server Oracle \ Dec size=1024 Linux Jun configuration Configure nginx kickstart
Keywords consistency
Keyword Content Title Description Headings
» 52
part 16
sudo 14
SmartOS 13
asprimary 12
packages 12
Headings
H1 H2 H3 H4 H5 H6
2 6 0 0 0 0
Images We found 0 images on this web page.

SEO Keywords (Single)

Keyword Occurrence Density
» 52 2.60 %
part 16 0.80 %
sudo 14 0.70 %
SmartOS 13 0.65 %
asprimary 12 0.60 %
packages 12 0.60 %
Jan 10 0.50 %
install 10 0.50 %
boot 10 0.50 %
server 9 0.45 %
Oracle 8 0.40 %
\ 8 0.40 %
Dec 8 0.40 %
size=1024 8 0.40 %
Linux 7 0.35 %
Jun 7 0.35 %
configuration 7 0.35 %
Configure 6 0.30 %
nginx 6 0.30 %
kickstart 6 0.30 %

SEO Keywords (Two Word)

Keyword Occurrence Density
2013 » 18 0.90 %
2012 » 14 0.70 %
2011 » 11 0.55 %
asprimary size=1024 8 0.40 %
Oracle Linux 7 0.35 %
Jan 2013 6 0.30 %
Jun 2011 6 0.30 %
on SmartOS 5 0.25 %
» pkgsrc 4 0.20 %
the server 4 0.20 %
the DVD 4 0.20 %
pkgsrc on 4 0.20 %
packages for 4 0.20 %
sudo vi 4 0.20 %
asprimary size=6144 4 0.20 %
nodejspowered 8bit 4 0.20 %
Dec 2013 4 0.20 %
size=1024 grow 4 0.20 %
» SmartOS 4 0.20 %
CPU part 4 0.20 %

SEO Keywords (Three Word)

Keyword Occurrence Density Possible Spam
Jun 2011 » 6 0.30 % No
Jan 2013 » 6 0.30 % No
» pkgsrc on 4 0.20 % No
asprimary size=1024 grow 4 0.20 % No
Dec 2013 » 4 0.20 % No
2013 » A 4 0.20 % No
» A nodejspowered 4 0.20 % No
A nodejspowered 8bit 4 0.20 % No
nodejspowered 8bit CPU 4 0.20 % No
8bit CPU part 4 0.20 % No
2013 » pkgsrc 3 0.15 % No
» How to 3 0.15 % No
Jan 2012 » 3 0.15 % No
pkgsrc on SmartOS 3 0.15 % No
sudo aptget install 3 0.15 % No
Kickstart Oracle Linux 3 0.15 % No
we need to 2 0.10 % No
» Kickstart Oracle 2 0.10 % No
Oct 2012 » 2 0.10 % No
2011 » How 2 0.10 % No

SEO Keywords (Four Word)

Keyword Occurrence Density Possible Spam
Dec 2013 » A 4 0.20 % No
nodejspowered 8bit CPU part 4 0.20 % No
A nodejspowered 8bit CPU 4 0.20 % No
» A nodejspowered 8bit 4 0.20 % No
2013 » A nodejspowered 4 0.20 % No
2013 » pkgsrc on 3 0.15 % No
» pkgsrc on SmartOS 3 0.15 % No
Feb 2013 » SmartOS 2 0.10 % No
Jan 2013 » pkgsrc 2 0.10 % No
2013 » Solaris portability 2 0.10 % No
Jan 2013 » Solaris 2 0.10 % No
2013 » What's new 2 0.10 % No
13 Jun 2011 » 2 0.10 % No
Jun 2011 » Fix 2 0.10 % No
want to use sudo 2 0.10 % No
we want to use 2 0.10 % No
the PXE boot loader 2 0.10 % No
2011 » How to 2 0.10 % No
a completely unattended installation 2 0.10 % No
Jun 2011 » How 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


Kickstart Oracle Linux from Ubuntu Jonathan Perkin well-nigh me · rss · twitter · github Kickstart Oracle Linux from Ubuntu Jan 09, 2012 tags: dhcp, kickstart, nginx, oracle-linux, tftp, ubuntu As my new job involves working on Oracle Linux, I figured I should migrate my home server to it, which would moreover midpoint I could move it to a proper RAID10 configuration rather than relying on multiple RAID1s. My palmtop runs Ubuntu, and I wanted to install the server from it using PXE and Kickstart, so here’s how I did it. Configure dhcpd DHCP is required for two things, to requite the server its network configuration, and to point it at the PXE marching loader we want to use. $ sudo apt-get install isc-dhcp-server $ sudo vi /etc/dhcp/dhcpd.conf Here’s the configuration I used, which says to configure 192.168.2.0/24 with a dynamic DHCP range between 192.168.2.100 – 192.168.2.200, and to marching machines using pxelinux.0 which is relative to the TFTP root directory (configured in the next section): subnet 192.168.2.0 netmask 255.255.255.0 { range 192.168.2.100 192.168.2.200; filename "pxelinux.0"; } The isc-dhcp-server install automatically tries to start the server, but will goof as it isn’t configured, so we restart it now that there is a working configuration installed $ sudo /etc/init.d/isc-dhcp-server restart Configure tftpd TFTP is a simple protocol used to transfer files over the network, and due to its simplicity it is the primary way to network boot, as it can be hands embedded into firmware. All we need to do is install the TFTP daemon and syslinux which includes the PXE marching loader, then put the pxelinux file into the tftproot area: $ sudo apt-get install syslinux tftpd-hpa $ sudo cp /usr/lib/syslinux/pxelinux.0 /var/lib/tftpboot Configure Oracle Linux DVD To save space on the palmtop we can just mount the DVD read-only and install from that: $ sudo mkdir /media/ol6.2 $ sudo mount -o loop,ro /path/to/OracleLinux-R6-U2-Server-x86_64-dvd.iso /media/ol6.2 However, we do need to reprinting the kernel and initrd image from the DVD into the tftproot as they are required for booting: $ sudo mkdir /var/lib/tftpboot/ol6.2 /var/lib/tftpboot/pxelinux.cfg $ sudo cp -a /mnt/images/pxeboot/{initrd.img,vmlinuz} /var/lib/tftpboot/ol6.2/ Configure pxelinux All that’s left for the PXE stage is to configure the marching loader, and tell it what kernel and initrd we want to use: $ sudo vi /var/lib/tftpboot/pxelinux.cfg/default This configuration has just one entry which is booted without a short wait, but pxelinux has many increasingly options, including the worthiness to marching from local disk. DEFAULT ol6.2 PROMPT 1 TIMEOUT 5 LABEL ol6.2 KERNEL /ol6.2/vmlinuz APPEND initrd=/ol6.2/initrd.img ks=http://192.168.2.1/ks.cfg Note the ks treatise which specifies the kickstart file we will use, that and the web server required to serve it will be set up next. Configure nginx I chose nginx as it is small and simple to configure, but any web server will do. $ sudo apt-get install nginx $ sudo vi /etc/nginx/sites-available/default The install will be performed over HTTP, so we need to make the DVD we mounted older available. This entry in the server { } section makes the DVD misogynist via http://192.168.2.1/ol6.2/: server { [...] location /ol6.2 { root /media; autoindex on; indulge all; } Then start nginx (unlike isc-dhcp-server this isn’t washed-up automatically): $ sudo /etc/init.d/nginx start Configure kickstart Finally, we create a kickstart configuration which specifies exactly how our target machine is to be installed, and this allows a completely unattended installation. Ideally I should create a specific zone for holding files like this, but as a quick hack I simply put it into the default nginx web root (and thus misogynist as http://192.168.2.1/ks.cfg as configured older in the pxelinux.cfg/default file: sudo vi /usr/share/nginx/www/ks.cfg Here is my ks.cfg file in full. The only thing missing is a rootpw line to automatically set a root password, however for maximum security I am happy to forego a completely unattended installation and instead have the installer prompt me to type it in during the install. Some notes: UK keyboard language and timezone selected. Automatically reboot when the installer is finished. Point to the Oracle Linux DVD using the url directive. I have 4 disks configured with RAID1 for /boot, and RAID10 for swap and /. Disks are referred to by path, to ensure correct ordering. A small set of packages are installed, containing just the functionality I require. A small %post section is used to perform any fixes I want for the first boot. # # Miscellaneous options. # install keyboard uk lang en_GB.UTF-8 reboot selinux --enforcing timezone Europe/London # # User setup. I'd create my local user here and configure sudoers, but # kickstart doesn't yet support creating a user with uid/gid of 1000 (the # gid is unchangingly 500, plane if you add the named group first). # authconfig --enableshadow --passalgo=sha512 # # Networking. The 'network' line needs to be on a single line # for kickstart to work - it is only split here for the blog. # firewall --service=ssh network --bootproto=static \ --hostname=gromit.adsl.perkin.org.uk \ --ip=192.168.2.10 \ --netmask=255.255.255.0 \ --gateway=192.168.2.1 \ --nameserver=193.178.223.141,208.72.84.24 \ --ipv6=auto url --url=http://192.168.2.1/ol6.2 # # Disk configuration. # bootloader --location=mbr --driveorder=sda,sdb,sdc,sdd clearpart --all --initlabel # # /boot (RAID1 necessary as booting from RAID10 isn't supported) # part raid.00 --asprimary --size=1024 --ondisk=/dev/disk/by-path/pci-*-0*0 part raid.01 --asprimary --size=1024 --ondisk=/dev/disk/by-path/pci-*-1*0 part raid.02 --asprimary --size=1024 --ondisk=/dev/disk/by-path/pci-*-2*0 part raid.03 --asprimary --size=1024 --ondisk=/dev/disk/by-path/pci-*-3*0 raid /boot --level=1 --device=md0 --fstype=ext4 raid.00 raid.01 raid.02 raid.03 # # swap, RAID10 of size RAM+2GB, requite or take.. # part raid.10 --asprimary --size=6144 --ondisk=/dev/disk/by-path/pci-*-0*0 part raid.11 --asprimary --size=6144 --ondisk=/dev/disk/by-path/pci-*-1*0 part raid.12 --asprimary --size=6144 --ondisk=/dev/disk/by-path/pci-*-2*0 part raid.13 --asprimary --size=6144 --ondisk=/dev/disk/by-path/pci-*-3*0 raid swap --level=10 --device=md1 --fstype=swap raid.10 raid.11 raid.12 raid.13 # # /, RAID10 of remainder (have to specify an wrong-headed --size plane with --grow) # part raid.20 --asprimary --size=1024 --grow --ondisk=/dev/disk/by-path/pci-*-0*0 part raid.21 --asprimary --size=1024 --grow --ondisk=/dev/disk/by-path/pci-*-1*0 part raid.22 --asprimary --size=1024 --grow --ondisk=/dev/disk/by-path/pci-*-2*0 part raid.23 --asprimary --size=1024 --grow --ondisk=/dev/disk/by-path/pci-*-3*0 raid / --level=10 --device=md2 --fstype=ext4 raid.20 raid.21 raid.22 raid.23 # # Packages. @base and @core are pre-selected. # %packages @cifs-file-server @console-internet --optional @development @legacy-unix --optional @mail-server @network-server --optional @network-tools @nfs-file-server @web-server screen %end # # Post-install fix-ups. # %post # # The 'network' directive doesn't support DNS search paths, so set those # manually, and disable Network Manager. # printf "/^NM_CONTROLLED/s/yes/no/\nw\nq\n" \ | ed /etc/sysconfig/network-scripts/ifcfg-eth0 printf "/^#/s/.*/search adsl.perkin.org.uk perkin.org.uk/\nw\nq\n" \ | ed /etc/resolv.conf # # Disable unwanted services # chkconfig --del cups %end All done. 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