Archive for the ‘solaris zones’ Category

Deleting Solaris Container

And finally for “completeness” of my Solaris Containers notes, here is a procedure to delete a container. You can not remove a container that is active. You have to halt it first. Start by finding out what containers are configured and what state they are in: bash-3.00# zoneadm list -cv   ID NAME             STATUS     PATH                           BRAND    IP    0 global           running    /                              native   shared    – ns1              installed  /export/home/zones/ns1         native   shared First you […]

Posted on December 20, 2010 at 11:36 by somedude · Permalink · Leave a comment
In: solaris, solaris containers, solaris tips, solaris zones, virtualization

Renaming Solaris Container

Let’s say you made a mistake and you need to rename Solaris container. Start off by moving container’s zonepath. This will change zonepath for container oldzone to /export/home/zones/newzone bash-3.00# zoneadm -z oldzone move /export/home/zones/newzone bash-3.00# zoneadm list -cv   ID NAME             STATUS     PATH                           BRAND    IP    0 global           running    /                              native   shared    3 ns2              running    /export/home/zones/ns2         native   shared    4 nis2             running    /export/home/zones/nis2        native   shared    – gold             installed  /export/home/zones/gold        native   shared    – oldzone          installed  /export/home/zones/newzone     native   shared Next you need to change the name of oldzone container: bash-3.00# […]

Posted on October 17, 2010 at 14:36 by somedude · Permalink · Leave a comment
In: solaris, solaris containers, solaris tips, solaris zones, virtualization

Running X applications inside Solaris Container on a headless server

I had a few users that needed their own Solaris Container. They would use Reflection X to connect to their Containers. It worked all fine. Well, for the most part. Every few days or so Containers would stop accepting X connection. When I looked at /var/dt/Xerrors logfile inside one of the containers, I would see […]

Posted on August 12, 2010 at 11:58 by somedude · Permalink · Leave a comment
In: cde, solaris, solaris containers, solaris tips, solaris zones, virtualization, xdm

Solaris Containers and ZFS

I had to create some containers for developers to do their work. Developers always seem to want root access to a machine. Containers work very nice in this scenario: if a developer messes up his container, I can just clone a new one off a “gold” container. ZFS can be very handy here as well: […]

Posted on June 5, 2010 at 10:02 by somedude · Permalink · One Comment
In: solaris, solaris containers, solaris zones, virtualization, zfs

Moving Solaris Container to a different host

Cloning Solaris Container is pretty straight forward. But what if you want to have an identical container on another host? In a nutshell: Make a clone of an existing container on host A Detach the clone Compress it and move it to host B Create configuration for the moved container Decompress the container on host […]

Posted on November 5, 2009 at 16:56 by somedude · Permalink · Leave a comment
In: solaris, solaris containers, solaris tips, solaris zones, virtualization