My First Solaris Zone
I used to run my blog on my own server in a virtual machine on a box in our lab. It was connected outside the firewall on FreeBSD, and lived happily in the wild for about three years. Recently we’ve changed our infrastructure around for internet connectivity, forcing me to move that virtual machine. At the prompting of Bart, who is paranoid that I might write something that gets slashdotted, I decided to move my blog to a hosting provider, and I selected WordPress.
My old blog on Movable Type on my old server had a number of images which were linked in blog posts. I didn’t want to edit dozens of blog posts and change URLS of images (because I’m lazy) so I just moved my old VM to my workstation, ran it in VMware Server, and poked it through the firewall so that the images would work. That was suboptimal because my workstation isn’t always on, and I don’t have extra resources to run a VM all the time.
To improve the situation I decided that I needed to move the images to a little apache server somewhere other than my workstation. I have also been trying to figure out how Solaris 10 zones work, and we just happen to have this nice presently under-utilized Sun x4500 (we bought it for the 24 TB of storage) sitting in our server room. A solution and a learning opportunity collided and I decided to build a webserver with Apache2 inside a Solaris zone, and stick my images from my Blog on there.
I created a new zone, with a new IP address using zonecfg and zoneadm. Then I installed and configured it, and started it up. I installed the apache2 package from Blastwave, created a user for myself inside the zone, and configured apache to allow user directories. Then I just copied my file content over from my old virtual machine, changed the port forwarding entry on the firewall, and voila! Images served from a ridiculously overpowered webserver. I probably have the highest server capacity to traffic ratio for my blog’s images in the world.
Leave a Reply Cancel reply
Blogroll
Archives
- April 2013
- August 2012
- December 2011
- November 2011
- April 2011
- March 2011
- February 2011
- January 2011
- November 2010
- October 2010
- September 2010
- July 2010
- June 2010
- April 2010
- March 2010
- November 2009
- September 2009
- August 2009
- May 2009
- April 2009
- February 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
My Twitter
- I like that the crabapple flowers are popping out on our street. In future years they'll make a bright canopy over our street. 1 day ago
- Here's my cheapie HD audio setup. Old iPod with Rockbox firmware hooked to FiiO E07K headphone amp and… instagram.com/p/Znxd9iqyYG/ 1 day ago
- Taking Emily off to the airport for Canada Games training camp in Kamloops. 4 days ago
- New stereo installed. First up, some new Daft Punk. instagram.com/p/ZYZBHjqyeZ/ 1 week ago
- Building a wiring harness for my new car stereo. Almost done. instagram.com/p/ZW_lUGKyRA/ 1 week ago
- First bike ride of the year. If I thought staying recumbent all winter would prepare me for recumbent… instagram.com/p/ZMm1QKqyYk/ 1 week ago
- Post-bike brew on the deck. Paddock Wood Loki. instagram.com/p/ZMnMdrKyZL/ 1 week ago
- OSC in their navy t-shirts doing a team cheer. Guess which one is my kid. instagram.com/p/Y5Erltqye8/ 2 weeks ago
- @PaddockWoodGuy thanks! Keep up the good work. 2 weeks ago
- Second birthday beer, and one of my favourites: Loki from Paddock Wood. instagram.com/p/Y4AwlXKyWD/ 2 weeks ago
what a great site and informative posts, I will add a backlink and bookmark your site. Keep up the good work!
I’m Out! :)