Thursday, August 20, 2009

System WPARs, quick and easy virtual machines in AIX

AIX allows you to create 'virtual' machines. Unlike LPARs which physically allocate the resources and are more involved to set up the WPARs are virtual and quick - it's similar to Solaris containers/zones.

Here's the quick and dirty:

1. Make a virtual machine with IP address 192.168.1.40 (mkwpar -n dbTestBox -N address=192.168.1.40) - watch the screen fly.
2. List it (lswpar) need more details? Try lswpar -L
3. OK it's there, let's start it (startwpar dbTestBox)
4. Let's login and change the root password (clogin dbTestBox)

In the system WPARs /usr and /opt come from the global env and are mounted read-only. The rest of the filesystem comes from /wpars dir in the global filesystem.

There you have it, you should now be able to ssh into your dbTestBox.

No comments:

Post a Comment