<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>kb.hurricane-ridge.com &#187; zones</title>
	<atom:link href="http://kb.hurricane-ridge.com/tag/zones/feed" rel="self" type="application/rss+xml" />
	<link>http://kb.hurricane-ridge.com</link>
	<description>My personal - but public - knowledge base</description>
	<lastBuildDate>Mon, 09 Jan 2012 14:49:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Add a loopback filesystem to a non-global Solaris zone</title>
		<link>http://kb.hurricane-ridge.com/os/solaris/add-lofs-to-a-non-global-solaris-zone</link>
		<comments>http://kb.hurricane-ridge.com/os/solaris/add-lofs-to-a-non-global-solaris-zone#comments</comments>
		<pubDate>Fri, 09 Jan 2009 15:17:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[zones]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=104</guid>
		<description><![CDATA[Use zonecfg to configure the lofs mount; this will work nicely for CDs in addition to ordinary filesystems: # zonecfg -z zone1 zonecfg:zone1&#62; add fs zonecfg:zone1:fs&#62; set dir=/depot zonecfg:zone1:fs&#62; set special=/depot zonecfg:zone1:fs&#62; set type=lofs zonecfg:zone1:fs&#62; add options [nodevices] zonecfg:zone1:fs&#62; end zonecfg:zone1&#62; commit zonecfg:zone1&#62; exit special is the directory from the global zone to mount; dir is the [...]]]></description>
			<content:encoded><![CDATA[<p>Use <code>zonecfg</code> to configure the lofs mount; this will work nicely for CDs in addition to ordinary filesystems:</p>
<pre> # zonecfg -z zone1
 zonecfg:zone1&gt; add fs
 zonecfg:zone1:fs&gt; set dir=/depot
 zonecfg:zone1:fs&gt; set special=/depot
 zonecfg:zone1:fs&gt; set type=lofs
 zonecfg:zone1:fs&gt; add options [nodevices]
 zonecfg:zone1:fs&gt; end
 zonecfg:zone1&gt; commit
 zonecfg:zone1&gt; exit</pre>
<p><code>special</code> is the directory from the global zone to mount; <code>dir</code> is the mount point within the non-global zone.</p>
<p>If adding a CD, while in the &#8220;fs&#8221; configuration mode, change the <code>options</code> to the following:</p>
<pre>zonecfg:zone1:fs&gt; add options [ro,nodevices]</pre>
<p>A reboot of the non-global zone (<code>init 6</code> within the zone) is necessary for the changes to be visible.</p>
<p>All filesystems configured for the zone can be listed as follows:</p>
<pre># zonecfg -z zone1
zonecfg:zone1&gt; info fs
fs:
        dir: /depot
        special: /depot
        raw not specified
        type: lofs
        options: []</pre>
<p>To remove the filesystem from the non-global zone, do the following:</p>
<pre> # zonecfg -z zone1
 zonecfg:zone1&gt; remove fs dir=/mnt
 zonecfg:zone1&gt; commit
 zonecfg:zone1&gt; exit</pre>
<p>Again, a reboot is necessary for the reconfiguration to take effect.</p>
<p>References: <a href="http://forum.java.sun.com/thread.jspa?threadID=5075532&amp;messageID=9275247"></a><a href="http://forum.java.sun.com/thread.jspa?threadID=5075532&amp;messageID=9275247">Sun Developer Network forums</a>, <a href="http://docs.sun.com/app/docs/doc/817-1592/z.admin.ov-2?a=view">File Systems and Non-Global Zones</a> and <a href="http://docs.sun.com/app/docs/doc/817-1592/z.config.ov-17?a=view">Resource Type Properties</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/solaris/add-lofs-to-a-non-global-solaris-zone/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a new Solaris Zone</title>
		<link>http://kb.hurricane-ridge.com/os/solaris/creating-a-new-solaris-zon</link>
		<comments>http://kb.hurricane-ridge.com/os/solaris/creating-a-new-solaris-zon#comments</comments>
		<pubDate>Thu, 08 Jan 2009 20:11:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[zones]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=98</guid>
		<description><![CDATA[This information, of course exists many other places on the web, but for me, most conveniently, here.   An example configuration session: # zonecfg -z host1 host1: No such zone configured Use 'create' to begin configuring a new zone. zonecfg:host1&#62; create zonecfg:host1&#62; set zonepath=/zones/host1 zonecfg:host1&#62; set autoboot=true zonecfg:host1&#62; add net zonecfg:host1:net&#62; set address=172.16.3.242 zonecfg:host1:net&#62; set [...]]]></description>
			<content:encoded><![CDATA[<p>This information, of course exists many other places on the web, but for me, most conveniently, here.  </p>
<p>An example configuration session:</p>
<pre> # <span class="highlightedSearchTerm">zone</span>cfg -z host1
 host1: No such <span class="highlightedSearchTerm">zone</span> configured
 Use 'create' to begin configuring a new <span class="highlightedSearchTerm">zone</span>.
 <span class="highlightedSearchTerm">zone</span>cfg:host1&gt; create
 <span class="highlightedSearchTerm">zone</span>cfg:host1&gt; set <span class="highlightedSearchTerm">zone</span>path=/<span class="highlightedSearchTerm">zone</span>s/host1
 <span class="highlightedSearchTerm">zone</span>cfg:host1&gt; set autoboot=true
 <span class="highlightedSearchTerm">zone</span>cfg:host1&gt; add net
 <span class="highlightedSearchTerm">zone</span>cfg:host1:net&gt; set address=172.16.3.242
 <span class="highlightedSearchTerm">zone</span>cfg:host1:net&gt; set physical=e1000g0
 <span class="highlightedSearchTerm">zone</span>cfg:host1:net&gt; end
 <span class="highlightedSearchTerm">zone</span>cfg:host1&gt; verify
 <span class="highlightedSearchTerm">zone</span>cfg:host1&gt; commit
 <span class="highlightedSearchTerm">zone</span>cfg:host1&gt; exit
 # <span class="highlightedSearchTerm">zone</span>adm -z host1 install
 Preparing to install <span class="highlightedSearchTerm">zone</span> &lt;host1&gt;.
 Creating list of files to copy from the global <span class="highlightedSearchTerm">zone</span>.
 Copying &lt;2422&gt; files to the <span class="highlightedSearchTerm">zone</span>.
 Initializing <span class="highlightedSearchTerm">zone</span> product registry.
 Determining <span class="highlightedSearchTerm">zone</span> package initialization order.
 Preparing to initialize &lt;974&gt; packages on the <span class="highlightedSearchTerm">zone</span>.
 Initialized &lt;974&gt; packages on <span class="highlightedSearchTerm">zone</span>.
 <span class="highlightedSearchTerm">Zone</span> &lt;host1&gt; is initialized.
 The file &lt;/<span class="highlightedSearchTerm">zone</span>s/host1/root/var/sadm/system/logs/install_log&gt; contains a log of the <span class="highlightedSearchTerm">zone</span> installation.
 # <span class="highlightedSearchTerm">zone</span>adm -z host1 boot
 # zlogin -C host1
 [Connected to <span class="highlightedSearchTerm">zone</span> 'host1' console]</pre>
<p> </p>
<p>From here, enter the system configuration details as prompted. Type <code>~.</code> to disconnect when finished.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/solaris/creating-a-new-solaris-zon/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

