Saturday, October 25, 2008 

Amazon EC2 - Now with Windows Server 2003!

Amazon EC2 now supports Windows Server 2003 based virtual machines: Amazon Elastic Compute Cloud (EC2) Running Microsoft Windows Server and SQL Server. Grab a Windows virtual machine for $USD0.125 an hour.

Quick recap: EC2 is akin to virtual private server hosting, where you pay by the hour. EC2 is administered via a service that allows you instantly create any number of virtual machines, and manage firewall rules.

I was going to write up a quick guide on firing up a Windows box - but this has already been covered well in the Getting Started Guide

Some lessons learned along the way: I had to download the new EC2 API tools - extracted into a new folder the 'ec2-describe-keypairs' knew about keys I'd created previously. Where do the keys actually get stored? ec-add-keypair explains what is happening - your public key is sent to Amazon's servers. Your private key you save to a file - in the Linux world you use this private key in Putty to connect to your server. In the Windows world you pass your private key file to ec2-get-password to get your server password from Amazon.

Labels:

Sunday, April 20, 2008 

Amazon Elastic Compute Cloud - EC2

The Amazon Elastic Compute Cloud (EC2 for short) was recently mentioned on the IT Conversations podcast episode A Web-Scale Computing Architecture. EC2 looks very similar to a Virtual Private Server hosting service - where you rent a virtualized server. On top of this service is a webservice giving you the ability to dynamically create, stop and start multiple server instances. Which makes this service an ideal platform for an application with variable load. For example; a concert ticket website could rent an additional 40 servers when a popular concert is about to go on sale. Or dynamically ramp up the number of servers as load increases. The service bills you for hours each instance runs, plus bandwidth. Running a single small instance non stop for one year will cost you approximately $USD876 - so cheaper options exist elsewhere if you don't need a dynamic number of servers.

Interested enough to check it out? Follow the steps in the Getting Started Guide to fire up your own instance. In the guide you communicate with the 'cloud' via a collection of java commandline utilities. The utilities themselves are ulitising the public webservice API. Just like Amazon's S3, third parties are free to build applications upon the API. RightScale, mentioned in the podcast, uses the public API to deliver an automated cloud computing management system. The Firefox extension for EC2 uses the public API to offer a GUI alternative to the command line utilities.

The Getting Started Guide takes you through the steps of firing up a public instance of a Linux server, making modifications to the instance, then packaging this up as a custom Amazon Machine Image (AMI). The customised AMI is then uploaded to your S3 storage.

This is a very interesting technology from Amazon, I'm intrigued to see what services get built on top the cloud!

Labels:

Thursday, June 15, 2006 

VMware update

What I've discovered playing with VMware server.

The wikipedia entry is actually more informative than the VMware website (or I was more patient tonight). From wikipedia:

  • the difference between VMware Player and Server: VMware Player, a free virtual-machine host, can run virtual machines made by other VMware products, but cannot itself create new virtual machines.
  • how to lock your VM network adapter to one MAC address: disable all networks/adapters other than bridged and edit each virtual machine's .vmx file to change "ethernet0.address" to a unique MAC and "ethernet0.addresstype" to "static". Make sure to also remove the "ethernet0.generatedaddress" entry entirely. Setting the MAC Address Manually for a Virtual Machine goes into more detail.

At first I was a bit puzzled that I could power up my Trustix VM - and it'll be visible on my network via ping and SSH. Yet when I logged out of the host OS the VM would disappear. According to the forum post "VM powers off by itself...." this is caused by connecting to the host OS via Remote Desktop. A better alternative is to power up my VM via the VMware Server Console.

VMware Server is a true client/server app. Your virtual machines execute on a server somewhere - and you can connect to administer/view the machines from another PC using the VMware Server Console. For me this required opening up port 902 on my host OS.

Connecting to the VM Server. Trustix VM viewed from my main PC.

Now that my VM is running continuously - I can do all my Linux mucking around from an SSH client. So I don't really have much need to connect via the VMware Server Console.

Labels:

Monday, June 12, 2006 

Trustix + VMware Server

Queen's birthday long weekend - and I've found another quick geeky project to play with at home. This one was quick (I swear!). I've being contemplating recently how I'd go about setting up a small business network with the essentials - web/mail/file/proxy server plus the very necessary extras like back-up and spam/virus filtering for email.

The offerings from the open source world are pretty impressive (without getting into a debate over paid-for / free software). Which led me to the Trustix Linux distro - from their website:

Trustix Secure Linux is a distribution for servers with a heavy focus on security and stability. One of the main features of Trustix is its small size which combined with easy updating by the automated secure software updater swup, makes it a smooth and inviting system to administer.

Having been away from the Linux world for 10 years and having never been an expert - the idea of a 'minimal' distribution appeals to me. An 'everything plus the kitchen sink' distro just means more things that could go wrong, more potential security holes, and more applications to patch/update.

Got an install up-and-running on my 'test' machine. In the mood for experimenting I downloaded the free VMware Server, and a Trustix install ISO file. The virtual PC can be set-up to boot straight from the ISO image, and install Trustix effortlessly. I know of a few people working with production servers hosted in VMware. I can see the advantages - I can now easily move my Trustix install between PCs running VMserver. Making it possible to run several servers on one physical machine - and move them off onto more physical machines as the additional resources become needed.

Documentation is a bit thin on the ground, the TrustixWiki covers most of the scenarios I'm interested in. So now its time to roll up my sleeves (stop saying 'I bet this is easier in Windows') and think about the features I want on my new server!

Labels:

Sunday, April 23, 2006 

Microsoft Virtual Labs

This rates as one of the handiest things I've seen in a while (okay I'm a geek). Say you feel like brushing up on some new Microsoft server/application - so you set up a VirtualPC and play with it there. Microsoft's Virtual Labs have made this much much easier by setting up test environments for you which you can access via a web browser. I had a play with the "Introduction to Windows Server 2003 Management" tutorial - which allows you to switch between the four PCs being "virtualized" for the tutorial (domain controller, workstation, etc).

It looks like it all works around virtual servers hosted in Microsoft Virtual Server. Virtual servers can be viewed over the network via the 'Virtual Machine Remote Control' ActiveX control. You can view a virtual server which has it network connection intentionally "restricted" - something you couldn't do with Remote Desktop. Thinking of hosting CruiseControl.net inside a virtual server at home - and adding a page to the CruiseControl webapplication with the VMRC ActiveX to jump onto the server.

Microsoft Virtual Server is now a free download. As are two VMWare products: Player and Server. VMWare also provide a directory of "pre-installed" virtual machines: Virtual Appliances. Looks like a very easy way to check out a Linux distro.

Labels: