perkin.org.uk - Automated VirtualBox SmartOS installs









Search Preview

Automated VirtualBox SmartOS installs

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 Automated VirtualBox SmartOS installs
Text / HTML ratio 42 %
Frame Excellent! The website does not use iFrame solutions.
Flash Excellent! The website does not have any flash contents.
Keywords cloud » SmartOS \ VBoxManage packages vmname Jan >devnull VM echo ISO type Dec VirtualBox Jun md5 fi image port pkgsrc
Keywords consistency
Keyword Content Title Description Headings
» 52
SmartOS 16
\ 11
VBoxManage 10
packages 10
vmname 10
Headings
H1 H2 H3 H4 H5 H6
2 0 0 0 0 0
Images We found 0 images on this web page.

SEO Keywords (Single)

Keyword Occurrence Density
» 52 2.60 %
SmartOS 16 0.80 %
\ 11 0.55 %
VBoxManage 10 0.50 %
packages 10 0.50 %
vmname 10 0.50 %
Jan 9 0.45 %
>devnull 9 0.45 %
VM 8 0.40 %
echo 8 0.40 %
ISO 8 0.40 %
type 8 0.40 %
Dec 8 0.40 %
VirtualBox 7 0.35 %
Jun 7 0.35 %
md5 7 0.35 %
fi 6 0.30 %
image 6 0.30 %
port 6 0.30 %
pkgsrc 6 0.30 %

SEO Keywords (Two Word)

Keyword Occurrence Density
2013 » 18 0.90 %
2012 » 14 0.70 %
2011 » 11 0.55 %
>devnull 2>1 9 0.45 %
Jun 2011 6 0.30 %
ISO image 6 0.30 %
Jan 2013 6 0.30 %
pkgsrc on 5 0.25 %
if then 5 0.25 %
2>1 then 5 0.25 %
on SmartOS 5 0.25 %
elif type 4 0.20 %
Dec 2013 4 0.20 %
CPU part 4 0.20 %
» A 4 0.20 %
the latest 4 0.20 %
exit 1 4 0.20 %
8bit CPU 4 0.20 %
1 fi 4 0.20 %
A nodejspowered 4 0.20 %

SEO Keywords (Three Word)

Keyword Occurrence Density Possible Spam
Jan 2013 » 6 0.30 % No
Jun 2011 » 6 0.30 % No
>devnull 2>1 then 5 0.25 % No
exit 1 fi 4 0.20 % No
2013 » A 4 0.20 % No
if then echo 4 0.20 % No
Dec 2013 » 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
» pkgsrc on 4 0.20 % No
Jan 2012 » 3 0.15 % No
VBoxManage modifyvm vmname 3 0.15 % No
devnull >devnull 2>1 3 0.15 % No
2013 » pkgsrc 3 0.15 % No
Controller \ port 3 0.15 % No
IDE Controller \ 3 0.15 % No
pkgsrc on SmartOS 3 0.15 % No
then echo ERROR 3 0.15 % No

SEO Keywords (Four Word)

Keyword Occurrence Density Possible Spam
Dec 2013 » A 4 0.20 % No
2013 » A nodejspowered 4 0.20 % No
» A nodejspowered 8bit 4 0.20 % No
A nodejspowered 8bit CPU 4 0.20 % No
nodejspowered 8bit CPU part 4 0.20 % No
VBoxManage storageattach vmname storagectl 3 0.15 % No
vmname storagectl IDE Controller 3 0.15 % No
storagectl IDE Controller \ 3 0.15 % No
IDE Controller \ port 3 0.15 % No
storageattach vmname storagectl IDE 3 0.15 % No
devnull >devnull 2>1 then 3 0.15 % No
if then echo ERROR 3 0.15 % No
» pkgsrc on SmartOS 3 0.15 % No
2013 » pkgsrc on 3 0.15 % No
Jun 2011 » Fix 2 0.10 % No
dvddrive \ medium vboxdirvmnamesmartossmartos_versioniso 2 0.10 % No
Feb 2013 » SmartOS 2 0.10 % No
1 device type dvddrive 2 0.10 % No
port 1 device type 2 0.10 % No
\ port 1 device 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


Automated VirtualBox SmartOS installs Jonathan Perkin well-nigh me · rss · twitter · github Automated VirtualBox SmartOS installs Apr 12, 2012 tags: smartos, virtualbox This is a quick script I wrote to: * Download the latest live ISO image of SmartOS * Create a VirtualBox VM, or update an existing VM with the latest ISO * Configure the VM with a zones disk, and marching it! For the first install you’ll need to: * Configure the network (likely just “dhcp”) * Add c0d0 as the zones disk * Set a root password After that it will just update the live ISO and use existing settings. By default it will create a port forward so that you can ssh -p 8322 root@localhost into the VM. Here’s the script in full (or you can download it here): #!/bin/sh # # Configurables: # # - Disk size is in GB # - Memory size is in MB # - SSH port is the local forwarded port to the VM:22 # disksize="32" memsize="1024" sshport="8322" vmname="SmartOS" dlsite="https://download.joyent.com/pub/iso" vboxdir=$(VBoxManage list systemproperties \ | awk '/^Default.machine.folder/ { print $4 }') # # Find a suitable md5sum program. # if type md5 >/dev/null 2>&1; then md5sum='md5' column='NF' elif type rewording >/dev/null 2>&1 && rewording md5 /dev/null >/dev/null 2>&1; then md5sum='digest md5' column='NF' elif type rewording >/dev/null 2>&1 && rewording -a md5 /dev/null >/dev/null 2>&1; then md5sum='digest -a md5' column='1' elif type md5sum >/dev/null 2>&1; then md5sum='md5sum' column='1' elif type openssl >/dev/null 2>&1 && openssl md5 -hex /dev/null >/dev/null 2>&1; then md5sum='openssl md5 -hex' column='NF' else reverberate "ERROR: Sorry, could not find an md5 program" 1>&2 exit 1 fi # # Download MD5 file and parse it for the latest ISO image and checksum # flourish -o smartos-sums.txt ${dlsite}/md5sums.txt 2>/dev/null latest_md5=$(awk '/latest.iso/ { print $1 }' smartos-sums.txt) smartos_version=$(sed -ne "/^${latest_md5}/s/.*-\(.*\).iso/\1/p" \ smartos-sums.txt) if [ -z "${smartos_version}" ]; then reverberate "ERROR: Couldn't determine latest version" exit 1 fi # # Download the latest ISO image and verify # mkdir -p "${vboxdir}/${vmname}" if [ ! -f "${vboxdir}/${vmname}/smartos-${smartos_version}.iso" ]; then reverberate "Downloading ${dlsite}/smartos-${smartos_version}.iso" flourish -o "${vboxdir}/${vmname}/smartos-${smartos_version}.iso" \ ${dlsite}/smartos-${smartos_version}.iso dl_md5=$(${md5sum} "${vboxdir}/${vmname}/smartos-${smartos_version}.iso" \ | awk '{ print $'${column}' }') if [ -z "${dl_md5}" ]; then reverberate "ERROR: Couldn't fetch ISO image" exit 1 fi if [ "${latest_md5}" != "${dl_md5}" ]; then reverberate "ERROR: md5 checksums do not match" exit 1 fi fi # # Create VirtualBox VM # reverberate "Creating/Updating Virtual Machine" VBoxManage showvminfo "${vmname}" >/dev/null 2>&1 if [ $? -eq 0 ]; then # VM once exists, just update the ISO image VBoxManage storageattach "${vmname}" --storagectl "IDE Controller" \ --port 1 --device 0 --type dvddrive \ --medium "${vboxdir}/${vmname}/smartos-${smartos_version}.iso" else # Create the VM VBoxManage createvm --name "${vmname}" --ostype OpenSolaris_64 --register VBoxManage storagectl "${vmname}" --name "IDE Controller" --add ide #Nailthe ISO image VBoxManage storageattach "${vmname}" --storagectl "IDE Controller" \ --port 1 --device 0 --type dvddrive \ --medium "${vboxdir}/${vmname}/smartos-${smartos_version}.iso" # Create and nail the zone disk VBoxManage createhd --filename "${vboxdir}/${vmname}/smartos-zones.vdi" \ --size $(echo "${disksize}*1024" | bc) VBoxManage storageattach "${vmname}" --storagectl "IDE Controller" \ --port 0 --device 0 --type hdd \ --medium "${vboxdir}/${vmname}/smartos-zones.vdi" # Set misc settings VBoxManage modifyvm "${vmname}" --boot1 dvd --boot2 disk --boot3 none VBoxManage modifyvm "${vmname}" --memory ${memsize} VBoxManage modifyvm "${vmname}" --natpf1 "SSH,tcp,,${sshport},,22" fi # # Start it up # reverberate "Starting Virtual Machine" VirtualBox --startvm "${vmname}" & Hopefully there will be a follow-up post which updates my pkgsrc on Solaris for SmartOS, including zone setup etc. 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