LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 09-30-2012, 04:08 AM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
Solaris Zones, Linux Chroot


How does Linux chroots compare to Solaris zones?

I've been told zones are better, but I haven't played with them yet. Does better mean that somethings can escape out of the chrooted environment?

What advantages does each one offer over the other?

I imagine the chroot command is already available to Solaris, so there must have been a reason why chroot was created.

Thanks
 
Old 09-30-2012, 04:22 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
chroot is only providing file system isolation and is limited to non root accounts. There have always been ways to escape chroot when you have root privileges.

zones are not only isolating file systems but also processes (a ps will show only the processes launched on the zone), network (each zone has its own IP address(es) including its own localhost. You can cap resource usage per zone (CPU, memory).

Finally, Solaris supports also branded zones which provide a different OS interface to applications (e.g. a Solaris 10 branded zone installed on Solaris 11).

Linux closer equivalents are OpenVZ and lxc.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
two vlans in solaris zones bajones Solaris / OpenSolaris 1 03-06-2012 11:11 AM
Migrating Solaris 10 Zones to new machine. bavondrake Solaris / OpenSolaris 3 03-16-2011 05:32 PM
solaris zones: what is it for? ic_torres Solaris / OpenSolaris 5 04-11-2009 04:22 AM
LXer: Branded Linux Zones In Open Solaris? LXer Syndicated Linux News 0 08-01-2008 03:10 PM
Is my solaris 10 with zones? xpucto Solaris / OpenSolaris 7 02-26-2006 10:20 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration