<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vistapedia.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Butch</id>
	<title>VistApedia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://vistapedia.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Butch"/>
	<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php/Special:Contributions/Butch"/>
	<updated>2026-04-07T11:30:34Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://vistapedia.com/index.php?title=Main_Page&amp;diff=13359</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Main_Page&amp;diff=13359"/>
		<updated>2011-11-11T12:31:55Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* Versions of VistA */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Vistapedia =&lt;br /&gt;
 &lt;br /&gt;
== What is VistA? ==&lt;br /&gt;
&#039;&#039;&#039;[[VistA]]&#039;&#039;&#039; is a public domain [http://en.wikipedia.org/wiki/Electronic_health_record electronic health record] programmed by federal employees working for the [http://www.va.gov US Department of Veterans Affairs] (previously the [http://en.wikipedia.org/wiki/United_States_Department_of_Veterans_Affairs Veterans Administration]) over the past several decades. For more info, see [[VistA|this page]].&lt;br /&gt;
&lt;br /&gt;
== What is RPMS? ==&lt;br /&gt;
[http://www.ehr.ihs.gov/ RPMS] is a public domain electronic health record that is used by the [http://en.wikipedia.org/wiki/Indian_Health_Service Indian Health Service] (IHS). Prior to the 1980s it used a different architecture from VistA, but since the 80&#039;s it has shared a large amount of its architecture with VistA. For more info, see [[RPMS|this page]].&lt;br /&gt;
&lt;br /&gt;
== What is Vistapedia? ==&lt;br /&gt;
Vistapedia is a wiki for several varieties of the [http://en.wikipedia.org/wiki/Public_domain public domain] versions of VistA and [http://www.ehr.ihs.gov/ RPMS]. Information about the integrated VistA installer called [[Astronaut_VistA|Astronaut]] is also contained within these pages. &lt;br /&gt;
&lt;br /&gt;
This wiki covers installation, configuration, and usage of these VistA derivatives. It also serves as an introduction to the [[VistA Documentation Library]] for everyone outside the VA. In addition, current events, development advances, and other news about the flavors of VistA are posted here.&lt;br /&gt;
&lt;br /&gt;
This wiki runs the same [http://www.mediawiki.org software] as [http://www.wikipedia.com/ Wikipedia].&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Versions of VistA ===&lt;br /&gt;
There are several versions of VistA that are used outside of the VA. (See [[Which VistA|this page]] for some introductory information regarding aspects of the different versions.)&lt;br /&gt;
&lt;br /&gt;
* [[How to Get WorldVistA EHR|WorldVistA EHR]] ([http://www.opensource.org/licenses/gpl-2.0.php GPL] licensed) ([http://worldvista.org Home]) ([http://worldvista.org/Software_Download Download]) ([[WorldVista|Installation]]) ([[Astronaut_VistA#Astronaut_WorldVistA_installers|Astronaut installer]])&lt;br /&gt;
 &lt;br /&gt;
* [[OpenVista]] ([http://www.opensource.org/licenses/agpl-v3.html AGPL] licensed) ([http://medsphere.org Home]) ([http://medsphere.org/download Download])  ([[OpenVista|Installation]]) ([[Astronaut_VistA#Astronaut_OpenVistA_installers|Astronaut installer]])&lt;br /&gt;
&lt;br /&gt;
* [[vxVista]] ([http://www.opensource.org/licenses/eclipse-1.0.php EPL] licensed) (requires a proprietary Cache database) ([http://www.docstorsys.com/dss-vxOpenSource.html Home]) ([http://www.vxvista.org/display/vxv/vxVistA+Download Download])&lt;br /&gt;
** vxVista can now be ported to run on the FIS GT.M platform as well.  The instructions can be found [http://www.seaislandsystems.com/vxVistA/HowToPort.html here] (external link).&lt;br /&gt;
&lt;br /&gt;
* FOIA Vista ([http://en.wikipedia.org/wiki/Public_domain public domain] under [http://en.wikipedia.org/wiki/Freedom_of_Information_Act_%28United_States%29 FOIA]) ([http://www.va.gov/vista_monograph/ Home]) ([ftp://ftp.va.gov/Vista/Software/VISTA_FOIA_ZIPS/ Download])&lt;br /&gt;
&lt;br /&gt;
(Other versions such as da Vinci Vista, VOE Vista, and Hui Vista no longer exist or are no longer maintained.)&lt;br /&gt;
&lt;br /&gt;
== Detailed Information ==&lt;br /&gt;
&lt;br /&gt;
*[[How does VistA work]]? -- basic information about VistA&#039;s components.&lt;br /&gt;
&lt;br /&gt;
*[[Where do I Start]]? -- Start here. &lt;br /&gt;
&lt;br /&gt;
*[http://www.vistapedia.net/index.php?title=Category:FAQ FAQ] -- common Questions about VistA.&lt;br /&gt;
&lt;br /&gt;
*[[Usage]] -- start using VistA once it is successfully installed&lt;br /&gt;
&lt;br /&gt;
*[[Special:Popularpages|Popular pages]] -- frequently viewed pages in this wiki.&lt;br /&gt;
&lt;br /&gt;
*[http://www.vistapedia.net/index.php?title=Special:Categories Categories] -- good for browsing.&lt;br /&gt;
&lt;br /&gt;
*[[Special:Specialpages|Special pages]] -- a form of Table of Contents for this wiki.&lt;br /&gt;
&lt;br /&gt;
*[[VistA Community Challenges]] -- the issues we&#039;re trying to solve currently.&lt;br /&gt;
&lt;br /&gt;
*[[Flydoc pages|Flydoc&#039;s documentation]] -- training docs from a real-world implementation&lt;br /&gt;
&lt;br /&gt;
=== Meaningful Use ===&lt;br /&gt;
* [[Meaningful_Use_Stage_One_Final_Rule|Meaningful Use]] -- criteria and resources for Stage 1 (Final Rule)&lt;br /&gt;
&lt;br /&gt;
* [[MU_Stage_One_Standards|Meaningful Use Stage One Standards]]&lt;br /&gt;
&lt;br /&gt;
* [[Meaningful_Use_Stage_One_Final_Rule_Analysis|Meaningful Use Analysis, Commentary and Presentations]]&lt;br /&gt;
&lt;br /&gt;
*[[Meaningful Use (WG6)|Meaningful Use (Interim Rule)]] -- analysis of the EHR requirements for Stage 1 (Interim Rule) to qualify for stimulus funds from the US government.&lt;br /&gt;
&lt;br /&gt;
* [[EP_Measure_Specifications_Overview|Quality Measure Specifications (for both EP &amp;amp; EH)]]&lt;br /&gt;
&lt;br /&gt;
* [[NIST_Test_Patients|NIST Test Patient Data]]&lt;br /&gt;
&lt;br /&gt;
== Topics in active development ==&lt;br /&gt;
*[[ePrescribing]]&lt;br /&gt;
&lt;br /&gt;
*[[Health Information Exchange]]&lt;br /&gt;
&lt;br /&gt;
*[[Scanned_Documents|Working with Scanned Documents and Images]]&lt;br /&gt;
&lt;br /&gt;
*[[Certification]]&lt;br /&gt;
&lt;br /&gt;
*[[Training centers]]&lt;br /&gt;
&lt;br /&gt;
*[[Practice_Management_System|Practice Management Systems]]&lt;br /&gt;
&lt;br /&gt;
*[[Web Interfaces|Web-based Interfaces]]&lt;br /&gt;
&lt;br /&gt;
== Current events ==&lt;br /&gt;
* [[Current events]] -- The 21st VistA Community Meeting was held June 8-11 in Fairfax Virginia.&lt;br /&gt;
&lt;br /&gt;
== Other content ==&lt;br /&gt;
&lt;br /&gt;
* [[Old_Main|Old Main Page]]&lt;br /&gt;
* [[Installation_Overview|Installation Overview (old)]]&lt;br /&gt;
* [[Licensing|Licensing issues]]&lt;br /&gt;
* [https://medsphere.org/docs/DOC-1195 Other client modules (page on medsphere.org)]&lt;br /&gt;
* [[User setups]] -- specific success (or failure) stories with various configurations provided by various users and adopters&lt;br /&gt;
* [[SHabiel_Pages| Sam&#039;s Pages]] Sam&#039;s Pages for various config stuff in VISTA.&lt;br /&gt;
* [[Broker_help|Broker Help]]&lt;br /&gt;
&lt;br /&gt;
== Other resources ==&lt;br /&gt;
* [http://66.206.177.92/conference_presentations WorldVistA conference presentations]&lt;br /&gt;
&lt;br /&gt;
* VistA enthusiasts and developers connect through [http://www.google.com/group/hardhats the Hardhats Google Group]. For more info, email: info at worldvista dot org.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;&lt;br /&gt;
To get access to Vistapedia, contact David Whitten ( whitten at worldvista.org ) through &lt;br /&gt;
an e-mail, or phone 713 870 3834 to get an account. Please send a contact telephone number with your e-mail, and/or have an e-mail address ready when you call. (I need both.) Please decide on your preferred User name and send it as well. We have provided a [[User Status|page]] for new users and  their current status. Thank you.&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=Main_Page&amp;diff=13353</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Main_Page&amp;diff=13353"/>
		<updated>2011-11-06T05:42:44Z</updated>

		<summary type="html">&lt;p&gt;Butch: Removed maintenance notice&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Vistapedia =&lt;br /&gt;
 &lt;br /&gt;
== What is VistA? ==&lt;br /&gt;
&#039;&#039;&#039;[[VistA]]&#039;&#039;&#039; is a public domain [http://en.wikipedia.org/wiki/Electronic_health_record electronic health record] programmed by federal employees working for the [http://www.va.gov US Department of Veterans Affairs] (previously the [http://en.wikipedia.org/wiki/United_States_Department_of_Veterans_Affairs Veterans Administration]) over the past several decades. For more info, see [[VistA|this page]].&lt;br /&gt;
&lt;br /&gt;
== What is RPMS? ==&lt;br /&gt;
[http://www.ehr.ihs.gov/ RPMS] is a public domain electronic health record that is used by the [http://en.wikipedia.org/wiki/Indian_Health_Service Indian Health Service] (IHS). Prior to the 1980s it used a different architecture from VistA, but since the 80&#039;s it has shared a large amount of its architecture with VistA. For more info, see [[RPMS|this page]].&lt;br /&gt;
&lt;br /&gt;
== What is Vistapedia? ==&lt;br /&gt;
Vistapedia is a wiki for several varieties of the [http://en.wikipedia.org/wiki/Public_domain public domain] versions of VistA and [http://www.ehr.ihs.gov/ RPMS]. Information about the integrated VistA installer called [[Astronaut_VistA|Astronaut]] is also contained within these pages. &lt;br /&gt;
&lt;br /&gt;
This wiki covers installation, configuration, and usage of these VistA derivatives. It also serves as an introduction to the [[VistA Documentation Library]] for everyone outside the VA. In addition, current events, development advances, and other news about the flavors of VistA are posted here.&lt;br /&gt;
&lt;br /&gt;
This wiki runs the same [http://www.mediawiki.org software] as [http://www.wikipedia.com/ Wikipedia].&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Versions of VistA ===&lt;br /&gt;
There are several versions of VistA that are used outside of the VA. (See [[Which VistA|this page]] for some introductory information regarding aspects of the different versions.)&lt;br /&gt;
&lt;br /&gt;
* [[How to Get WorldVistA EHR|WorldVistA EHR]] ([http://www.opensource.org/licenses/gpl-2.0.php GPL] licensed) ([http://worldvista.org Home]) ([http://worldvista.org/Software_Download Download]) ([[WorldVista|Installation]]) ([[Astronaut_VistA#Astronaut_WorldVistA_installers|Astronaut installer]])&lt;br /&gt;
 &lt;br /&gt;
* [[OpenVista]] ([http://www.opensource.org/licenses/agpl-v3.html AGPL] licensed) ([http://medsphere.org Home]) ([http://medsphere.org/download Download])  ([[OpenVista|Installation]]) ([[Astronaut_VistA#Astronaut_OpenVistA_installers|Astronaut installer]])&lt;br /&gt;
&lt;br /&gt;
* [[vxVista]] ([http://www.opensource.org/licenses/eclipse-1.0.php EPL] licensed) (requires a proprietary Cache database) ([http://www.docstorsys.com/dss-vxOpenSource.html Home]) ([http://www.vxvista.org/display/vxv/vxVistA+Download Download])&lt;br /&gt;
&lt;br /&gt;
* FOIA Vista ([http://en.wikipedia.org/wiki/Public_domain public domain] under [http://en.wikipedia.org/wiki/Freedom_of_Information_Act_%28United_States%29 FOIA]) ([http://www.va.gov/vista_monograph/ Home]) ([ftp://ftp.va.gov/Vista/Software/VISTA_FOIA_ZIPS/ Download])&lt;br /&gt;
&lt;br /&gt;
(Other versions such as da Vinci Vista, VOE Vista, and Hui Vista no longer exist or are no longer maintained.)&lt;br /&gt;
&lt;br /&gt;
== Detailed Information ==&lt;br /&gt;
&lt;br /&gt;
*[[How does VistA work]]? -- basic information about VistA&#039;s components.&lt;br /&gt;
&lt;br /&gt;
*[[Where do I Start]]? -- Start here. &lt;br /&gt;
&lt;br /&gt;
*[http://www.vistapedia.net/index.php?title=Category:FAQ FAQ] -- common Questions about VistA.&lt;br /&gt;
&lt;br /&gt;
*[[Usage]] -- start using VistA once it is successfully installed&lt;br /&gt;
&lt;br /&gt;
*[[Special:Popularpages|Popular pages]] -- frequently viewed pages in this wiki.&lt;br /&gt;
&lt;br /&gt;
*[http://www.vistapedia.net/index.php?title=Special:Categories Categories] -- good for browsing.&lt;br /&gt;
&lt;br /&gt;
*[[Special:Specialpages|Special pages]] -- a form of Table of Contents for this wiki.&lt;br /&gt;
&lt;br /&gt;
*[[VistA Community Challenges]] -- the issues we&#039;re trying to solve currently.&lt;br /&gt;
&lt;br /&gt;
*[[Flydoc pages|Flydoc&#039;s documentation]] -- training docs from a real-world implementation&lt;br /&gt;
&lt;br /&gt;
=== Meaningful Use ===&lt;br /&gt;
* [[Meaningful_Use_Stage_One_Final_Rule|Meaningful Use]] -- criteria and resources for Stage 1 (Final Rule)&lt;br /&gt;
&lt;br /&gt;
* [[MU_Stage_One_Standards|Meaningful Use Stage One Standards]]&lt;br /&gt;
&lt;br /&gt;
* [[Meaningful_Use_Stage_One_Final_Rule_Analysis|Meaningful Use Analysis, Commentary and Presentations]]&lt;br /&gt;
&lt;br /&gt;
*[[Meaningful Use (WG6)|Meaningful Use (Interim Rule)]] -- analysis of the EHR requirements for Stage 1 (Interim Rule) to qualify for stimulus funds from the US government.&lt;br /&gt;
&lt;br /&gt;
* [[EP_Measure_Specifications_Overview|Quality Measure Specifications (for both EP &amp;amp; EH)]]&lt;br /&gt;
&lt;br /&gt;
* [[NIST_Test_Patients|NIST Test Patient Data]]&lt;br /&gt;
&lt;br /&gt;
== Topics in active development ==&lt;br /&gt;
*[[ePrescribing]]&lt;br /&gt;
&lt;br /&gt;
*[[Health Information Exchange]]&lt;br /&gt;
&lt;br /&gt;
*[[Scanned_Documents|Working with Scanned Documents and Images]]&lt;br /&gt;
&lt;br /&gt;
*[[Certification]]&lt;br /&gt;
&lt;br /&gt;
*[[Training centers]]&lt;br /&gt;
&lt;br /&gt;
*[[Practice_Management_System|Practice Management Systems]]&lt;br /&gt;
&lt;br /&gt;
*[[Web Interfaces|Web-based Interfaces]]&lt;br /&gt;
&lt;br /&gt;
== Current events ==&lt;br /&gt;
* [[Current events]] -- The 21st VistA Community Meeting was held June 8-11 in Fairfax Virginia.&lt;br /&gt;
&lt;br /&gt;
== Other content ==&lt;br /&gt;
&lt;br /&gt;
* [[Old_Main|Old Main Page]]&lt;br /&gt;
* [[Installation_Overview|Installation Overview (old)]]&lt;br /&gt;
* [[Licensing|Licensing issues]]&lt;br /&gt;
* [https://medsphere.org/docs/DOC-1195 Other client modules (page on medsphere.org)]&lt;br /&gt;
* [[User setups]] -- specific success (or failure) stories with various configurations provided by various users and adopters&lt;br /&gt;
* [[SHabiel_Pages| Sam&#039;s Pages]] Sam&#039;s Pages for various config stuff in VISTA.&lt;br /&gt;
* [[Broker_help|Broker Help]]&lt;br /&gt;
&lt;br /&gt;
== Other resources ==&lt;br /&gt;
* [http://66.206.177.92/conference_presentations WorldVistA conference presentations]&lt;br /&gt;
&lt;br /&gt;
* VistA enthusiasts and developers connect through [http://www.google.com/group/hardhats the Hardhats Google Group]. For more info, email: info at worldvista dot org.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;&lt;br /&gt;
To get access to Vistapedia, contact David Whitten ( whitten at worldvista.org ) through &lt;br /&gt;
an e-mail, or phone 713 870 3834 to get an account. Please send a contact telephone number with your e-mail, and/or have an e-mail address ready when you call. (I need both.) Please decide on your preferred User name and send it as well. We have provided a [[User Status|page]] for new users and  their current status. Thank you.&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=User:Butch&amp;diff=13351</id>
		<title>User:Butch</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=User:Butch&amp;diff=13351"/>
		<updated>2011-11-06T04:11:07Z</updated>

		<summary type="html">&lt;p&gt;Butch: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I have several years experience working with UNIX/Linux and their various flavors (Solaris 10/11, OpenSolaris, Illumos, OpenIndiana, Redhat, CentOS).&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=Main_Page&amp;diff=13350</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Main_Page&amp;diff=13350"/>
		<updated>2011-11-06T04:06:10Z</updated>

		<summary type="html">&lt;p&gt;Butch: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Maintenance Notice =&lt;br /&gt;
Vistapedia.net will be undergoing maintenance on November 5th 2011, between the hours of 22:00 and 02:00 EST.  During this time logins will be unavailable, however the site should remain viewable throughout the maintenance process.  We apologize for any inconvenience this may cause and will endeavor to return vistapedia.net to normal operation as quickly as possible. &lt;br /&gt;
= Vistapedia =&lt;br /&gt;
 &lt;br /&gt;
== What is VistA? ==&lt;br /&gt;
&#039;&#039;&#039;[[VistA]]&#039;&#039;&#039; is a public domain [http://en.wikipedia.org/wiki/Electronic_health_record electronic health record] programmed by federal employees working for the [http://www.va.gov US Department of Veterans Affairs] (previously the [http://en.wikipedia.org/wiki/United_States_Department_of_Veterans_Affairs Veterans Administration]) over the past several decades. For more info, see [[VistA|this page]].&lt;br /&gt;
&lt;br /&gt;
== What is RPMS? ==&lt;br /&gt;
[http://www.ehr.ihs.gov/ RPMS] is a public domain electronic health record that is used by the [http://en.wikipedia.org/wiki/Indian_Health_Service Indian Health Service] (IHS). Prior to the 1980s it used a different architecture from VistA, but since the 80&#039;s it has shared a large amount of its architecture with VistA. For more info, see [[RPMS|this page]].&lt;br /&gt;
&lt;br /&gt;
== What is Vistapedia? ==&lt;br /&gt;
Vistapedia is a wiki for several varieties of the [http://en.wikipedia.org/wiki/Public_domain public domain] versions of VistA and [http://www.ehr.ihs.gov/ RPMS]. Information about the integrated VistA installer called [[Astronaut_VistA|Astronaut]] is also contained within these pages. &lt;br /&gt;
&lt;br /&gt;
This wiki covers installation, configuration, and usage of these VistA derivatives. It also serves as an introduction to the [[VistA Documentation Library]] for everyone outside the VA. In addition, current events, development advances, and other news about the flavors of VistA are posted here.&lt;br /&gt;
&lt;br /&gt;
This wiki runs the same [http://www.mediawiki.org software] as [http://www.wikipedia.com/ Wikipedia].&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Versions of VistA ===&lt;br /&gt;
There are several versions of VistA that are used outside of the VA. (See [[Which VistA|this page]] for some introductory information regarding aspects of the different versions.)&lt;br /&gt;
&lt;br /&gt;
* [[How to Get WorldVistA EHR|WorldVistA EHR]] ([http://www.opensource.org/licenses/gpl-2.0.php GPL] licensed) ([http://worldvista.org Home]) ([http://worldvista.org/Software_Download Download]) ([[WorldVista|Installation]]) ([[Astronaut_VistA#Astronaut_WorldVistA_installers|Astronaut installer]])&lt;br /&gt;
 &lt;br /&gt;
* [[OpenVista]] ([http://www.opensource.org/licenses/agpl-v3.html AGPL] licensed) ([http://medsphere.org Home]) ([http://medsphere.org/download Download])  ([[OpenVista|Installation]]) ([[Astronaut_VistA#Astronaut_OpenVistA_installers|Astronaut installer]])&lt;br /&gt;
&lt;br /&gt;
* [[vxVista]] ([http://www.opensource.org/licenses/eclipse-1.0.php EPL] licensed) (requires a proprietary Cache database) ([http://www.docstorsys.com/dss-vxOpenSource.html Home]) ([http://www.vxvista.org/display/vxv/vxVistA+Download Download])&lt;br /&gt;
&lt;br /&gt;
* FOIA Vista ([http://en.wikipedia.org/wiki/Public_domain public domain] under [http://en.wikipedia.org/wiki/Freedom_of_Information_Act_%28United_States%29 FOIA]) ([http://www.va.gov/vista_monograph/ Home]) ([ftp://ftp.va.gov/Vista/Software/VISTA_FOIA_ZIPS/ Download])&lt;br /&gt;
&lt;br /&gt;
(Other versions such as da Vinci Vista, VOE Vista, and Hui Vista no longer exist or are no longer maintained.)&lt;br /&gt;
&lt;br /&gt;
== Detailed Information ==&lt;br /&gt;
&lt;br /&gt;
*[[How does VistA work]]? -- basic information about VistA&#039;s components.&lt;br /&gt;
&lt;br /&gt;
*[[Where do I Start]]? -- Start here. &lt;br /&gt;
&lt;br /&gt;
*[http://www.vistapedia.net/index.php?title=Category:FAQ FAQ] -- common Questions about VistA.&lt;br /&gt;
&lt;br /&gt;
*[[Usage]] -- start using VistA once it is successfully installed&lt;br /&gt;
&lt;br /&gt;
*[[Special:Popularpages|Popular pages]] -- frequently viewed pages in this wiki.&lt;br /&gt;
&lt;br /&gt;
*[http://www.vistapedia.net/index.php?title=Special:Categories Categories] -- good for browsing.&lt;br /&gt;
&lt;br /&gt;
*[[Special:Specialpages|Special pages]] -- a form of Table of Contents for this wiki.&lt;br /&gt;
&lt;br /&gt;
*[[VistA Community Challenges]] -- the issues we&#039;re trying to solve currently.&lt;br /&gt;
&lt;br /&gt;
*[[Flydoc pages|Flydoc&#039;s documentation]] -- training docs from a real-world implementation&lt;br /&gt;
&lt;br /&gt;
=== Meaningful Use ===&lt;br /&gt;
* [[Meaningful_Use_Stage_One_Final_Rule|Meaningful Use]] -- criteria and resources for Stage 1 (Final Rule)&lt;br /&gt;
&lt;br /&gt;
* [[MU_Stage_One_Standards|Meaningful Use Stage One Standards]]&lt;br /&gt;
&lt;br /&gt;
* [[Meaningful_Use_Stage_One_Final_Rule_Analysis|Meaningful Use Analysis, Commentary and Presentations]]&lt;br /&gt;
&lt;br /&gt;
*[[Meaningful Use (WG6)|Meaningful Use (Interim Rule)]] -- analysis of the EHR requirements for Stage 1 (Interim Rule) to qualify for stimulus funds from the US government.&lt;br /&gt;
&lt;br /&gt;
* [[EP_Measure_Specifications_Overview|Quality Measure Specifications (for both EP &amp;amp; EH)]]&lt;br /&gt;
&lt;br /&gt;
* [[NIST_Test_Patients|NIST Test Patient Data]]&lt;br /&gt;
&lt;br /&gt;
== Topics in active development ==&lt;br /&gt;
*[[ePrescribing]]&lt;br /&gt;
&lt;br /&gt;
*[[Health Information Exchange]]&lt;br /&gt;
&lt;br /&gt;
*[[Scanned_Documents|Working with Scanned Documents and Images]]&lt;br /&gt;
&lt;br /&gt;
*[[Certification]]&lt;br /&gt;
&lt;br /&gt;
*[[Training centers]]&lt;br /&gt;
&lt;br /&gt;
*[[Practice_Management_System|Practice Management Systems]]&lt;br /&gt;
&lt;br /&gt;
*[[Web Interfaces|Web-based Interfaces]]&lt;br /&gt;
&lt;br /&gt;
== Current events ==&lt;br /&gt;
* [[Current events]] -- The 21st VistA Community Meeting was held June 8-11 in Fairfax Virginia.&lt;br /&gt;
&lt;br /&gt;
== Other content ==&lt;br /&gt;
&lt;br /&gt;
* [[Old_Main|Old Main Page]]&lt;br /&gt;
* [[Installation_Overview|Installation Overview (old)]]&lt;br /&gt;
* [[Licensing|Licensing issues]]&lt;br /&gt;
* [https://medsphere.org/docs/DOC-1195 Other client modules (page on medsphere.org)]&lt;br /&gt;
* [[User setups]] -- specific success (or failure) stories with various configurations provided by various users and adopters&lt;br /&gt;
* [[SHabiel_Pages| Sam&#039;s Pages]] Sam&#039;s Pages for various config stuff in VISTA.&lt;br /&gt;
* [[Broker_help|Broker Help]]&lt;br /&gt;
&lt;br /&gt;
== Other resources ==&lt;br /&gt;
* [http://66.206.177.92/conference_presentations WorldVistA conference presentations]&lt;br /&gt;
&lt;br /&gt;
* VistA enthusiasts and developers connect through [http://www.google.com/group/hardhats the Hardhats Google Group]. For more info, email: info at worldvista dot org.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;&lt;br /&gt;
To get access to Vistapedia, contact David Whitten ( whitten at worldvista.org ) through &lt;br /&gt;
an e-mail, or phone 713 870 3834 to get an account. Please send a contact telephone number with your e-mail, and/or have an e-mail address ready when you call. (I need both.) Please decide on your preferred User name and send it as well. We have provided a [[User Status|page]] for new users and  their current status. Thank you.&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=MediaWiki:Sidebar&amp;diff=13349</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=MediaWiki:Sidebar&amp;diff=13349"/>
		<updated>2011-11-06T03:47:27Z</updated>

		<summary type="html">&lt;p&gt;Butch: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* navigation&lt;br /&gt;
** mainpage|mainpage-description&lt;br /&gt;
** currentevents-url|currentevents&lt;br /&gt;
** recentchanges-url|recentchanges&lt;br /&gt;
** randompage-url|randompage&lt;br /&gt;
** helppage|help&lt;br /&gt;
* SEARCH&lt;br /&gt;
* TOOLBOX&lt;br /&gt;
* LANGUAGES&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=MediaWiki:Sidebar&amp;diff=13348</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=MediaWiki:Sidebar&amp;diff=13348"/>
		<updated>2011-11-06T03:46:30Z</updated>

		<summary type="html">&lt;p&gt;Butch: Created page with &amp;quot;* navigation ** mainpage|mainpage-description #** portal-url|portal ** currentevents-url|currentevents ** recentchanges-url|recentchanges ** randompage-url|randompage ** helppage...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* navigation&lt;br /&gt;
** mainpage|mainpage-description&lt;br /&gt;
#** portal-url|portal&lt;br /&gt;
** currentevents-url|currentevents&lt;br /&gt;
** recentchanges-url|recentchanges&lt;br /&gt;
** randompage-url|randompage&lt;br /&gt;
** helppage|help&lt;br /&gt;
* SEARCH&lt;br /&gt;
* TOOLBOX&lt;br /&gt;
* LANGUAGES&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=Main_Page&amp;diff=8588</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Main_Page&amp;diff=8588"/>
		<updated>2011-11-01T22:40:46Z</updated>

		<summary type="html">&lt;p&gt;Butch: Maintenance notice&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Vistapedia =&lt;br /&gt;
= Maintenance Notice =&lt;br /&gt;
Vistapedia.net will be undergoing maintenance on November 5th 2011, between the hours of 22:00 and 02:00 EST.  During this time logins will be unavailable, however the site should remain viewable throughout the maintenance process.  We apologize for any inconvenience this may cause and will endeavor to return vistapedia.net to normal operation as quickly as possible.  &lt;br /&gt;
== What is VistA? ==&lt;br /&gt;
&#039;&#039;&#039;[[VistA]]&#039;&#039;&#039; is a public domain [http://en.wikipedia.org/wiki/Electronic_health_record electronic health record] programmed by federal employees working for the [http://www.va.gov US Department of Veterans Affairs] (previously the [http://en.wikipedia.org/wiki/United_States_Department_of_Veterans_Affairs Veterans Administration]) over the past several decades. For more info, see [[VistA|this page]].&lt;br /&gt;
&lt;br /&gt;
== What is RPMS? ==&lt;br /&gt;
[http://www.ehr.ihs.gov/ RPMS] is a public domain electronic health record that is used by the [http://en.wikipedia.org/wiki/Indian_Health_Service Indian Health Service] (IHS). Prior to the 1980s it used a different architecture from VistA, but since the 80&#039;s it has shared a large amount of its architecture with VistA. For more info, see [[RPMS|this page]].&lt;br /&gt;
&lt;br /&gt;
== What is Vistapedia? ==&lt;br /&gt;
Vistapedia is a wiki for several varieties of the [http://en.wikipedia.org/wiki/Public_domain public domain] versions of VistA and [http://www.ehr.ihs.gov/ RPMS]. Information about the integrated VistA installer called [[Astronaut_VistA|Astronaut]] is also contained within these pages. &lt;br /&gt;
&lt;br /&gt;
This wiki covers installation, configuration, and usage of these VistA derivatives. It also serves as an introduction to the [[VistA Documentation Library]] for everyone outside the VA. In addition, current events, development advances, and other news about the flavors of VistA are posted here.&lt;br /&gt;
&lt;br /&gt;
This wiki runs the same [http://www.mediawiki.org software] as [http://www.wikipedia.com/ Wikipedia].&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Versions of VistA ===&lt;br /&gt;
There are several versions of VistA that are used outside of the VA. (See [[Which VistA|this page]] for some introductory information regarding aspects of the different versions.)&lt;br /&gt;
&lt;br /&gt;
* [[How to Get WorldVistA EHR|WorldVistA EHR]] ([http://www.opensource.org/licenses/gpl-2.0.php GPL] licensed) ([http://worldvista.org Home]) ([http://worldvista.org/Software_Download Download]) ([[WorldVista|Installation]]) ([[Astronaut_VistA#Astronaut_WorldVistA_installers|Astronaut installer]])&lt;br /&gt;
 &lt;br /&gt;
* [[OpenVista]] ([http://www.opensource.org/licenses/agpl-v3.html AGPL] licensed) ([http://medsphere.org Home]) ([http://medsphere.org/download Download])  ([[OpenVista|Installation]]) ([[Astronaut_VistA#Astronaut_OpenVistA_installers|Astronaut installer]])&lt;br /&gt;
&lt;br /&gt;
* [[vxVista]] ([http://www.opensource.org/licenses/eclipse-1.0.php EPL] licensed) (requires a proprietary Cache database) ([http://www.docstorsys.com/dss-vxOpenSource.html Home]) ([http://www.vxvista.org/display/vxv/vxVistA+Download Download])&lt;br /&gt;
&lt;br /&gt;
* FOIA Vista ([http://en.wikipedia.org/wiki/Public_domain public domain] under [http://en.wikipedia.org/wiki/Freedom_of_Information_Act_%28United_States%29 FOIA]) ([http://www.va.gov/vista_monograph/ Home]) ([ftp://ftp.va.gov/Vista/Software/VISTA_FOIA_ZIPS/ Download])&lt;br /&gt;
&lt;br /&gt;
(Other versions such as da Vinci Vista, VOE Vista, and Hui Vista no longer exist or are no longer maintained.)&lt;br /&gt;
&lt;br /&gt;
== Detailed Information ==&lt;br /&gt;
&lt;br /&gt;
*[[How does VistA work]]? -- basic information about VistA&#039;s components.&lt;br /&gt;
&lt;br /&gt;
*[[Where do I Start]]? -- Start here. &lt;br /&gt;
&lt;br /&gt;
*[http://www.vistapedia.net/index.php?title=Category:FAQ FAQ] -- common Questions about VistA.&lt;br /&gt;
&lt;br /&gt;
*[[Usage]] -- start using VistA once it is successfully installed&lt;br /&gt;
&lt;br /&gt;
*[[Special:Popularpages|Popular pages]] -- frequently viewed pages in this wiki.&lt;br /&gt;
&lt;br /&gt;
*[http://www.vistapedia.net/index.php?title=Special:Categories Categories] -- good for browsing.&lt;br /&gt;
&lt;br /&gt;
*[[Special:Specialpages|Special pages]] -- a form of Table of Contents for this wiki.&lt;br /&gt;
&lt;br /&gt;
*[[VistA Community Challenges]] -- the issues we&#039;re trying to solve currently.&lt;br /&gt;
&lt;br /&gt;
*[[Flydoc pages|Flydoc&#039;s documentation]] -- training docs from a real-world implementation&lt;br /&gt;
&lt;br /&gt;
=== Meaningful Use ===&lt;br /&gt;
* [[Meaningful_Use_Stage_One_Final_Rule|Meaningful Use]] -- criteria and resources for Stage 1 (Final Rule)&lt;br /&gt;
&lt;br /&gt;
* [[MU_Stage_One_Standards|Meaningful Use Stage One Standards]]&lt;br /&gt;
&lt;br /&gt;
* [[Meaningful_Use_Stage_One_Final_Rule_Analysis|Meaningful Use Analysis, Commentary and Presentations]]&lt;br /&gt;
&lt;br /&gt;
*[[Meaningful Use (WG6)|Meaningful Use (Interim Rule)]] -- analysis of the EHR requirements for Stage 1 (Interim Rule) to qualify for stimulus funds from the US government.&lt;br /&gt;
&lt;br /&gt;
* [[EP_Measure_Specifications_Overview|Quality Measure Specifications (for both EP &amp;amp; EH)]]&lt;br /&gt;
&lt;br /&gt;
* [[NIST_Test_Patients|NIST Test Patient Data]]&lt;br /&gt;
&lt;br /&gt;
== Topics in active development ==&lt;br /&gt;
*[[ePrescribing]]&lt;br /&gt;
&lt;br /&gt;
*[[Health Information Exchange]]&lt;br /&gt;
&lt;br /&gt;
*[[Scanned_Documents|Working with Scanned Documents and Images]]&lt;br /&gt;
&lt;br /&gt;
*[[Certification]]&lt;br /&gt;
&lt;br /&gt;
*[[Training centers]]&lt;br /&gt;
&lt;br /&gt;
*[[Practice_Management_System|Practice Management Systems]]&lt;br /&gt;
&lt;br /&gt;
*[[Web Interfaces|Web-based Interfaces]]&lt;br /&gt;
&lt;br /&gt;
== Current events ==&lt;br /&gt;
* [[Current events]] -- The 21st VistA Community Meeting was held June 8-11 in Fairfax Virginia.&lt;br /&gt;
&lt;br /&gt;
== Other content ==&lt;br /&gt;
&lt;br /&gt;
* [[Old_Main|Old Main Page]]&lt;br /&gt;
* [[Installation_Overview|Installation Overview (old)]]&lt;br /&gt;
* [[Licensing|Licensing issues]]&lt;br /&gt;
* [https://medsphere.org/docs/DOC-1195 Other client modules (page on medsphere.org)]&lt;br /&gt;
* [[User setups]] -- specific success (or failure) stories with various configurations provided by various users and adopters&lt;br /&gt;
* [[SHabiel_Pages| Sam&#039;s Pages]] Sam&#039;s Pages for various config stuff in VISTA.&lt;br /&gt;
* [[Broker_help|Broker Help]]&lt;br /&gt;
&lt;br /&gt;
== Other resources ==&lt;br /&gt;
* [http://66.206.177.92/conference_presentations WorldVistA conference presentations]&lt;br /&gt;
&lt;br /&gt;
* VistA enthusiasts and developers connect through [http://www.google.com/group/hardhats the Hardhats Google Group]. For more info, email: info at worldvista dot org.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;&lt;br /&gt;
To get access to Vistapedia, contact David Whitten ( whitten at worldvista.org ) through &lt;br /&gt;
an e-mail, or phone 713 870 3834 to get an account. Please send a contact telephone number with your e-mail, and/or have an e-mail address ready when you call. (I need both.) Please decide on your preferred User name and send it as well. We have provided a [[User Status|page]] for new users and  their current status. Thank you.&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=GT.M&amp;diff=11514</id>
		<title>GT.M</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=GT.M&amp;diff=11514"/>
		<updated>2010-06-10T21:31:48Z</updated>

		<summary type="html">&lt;p&gt;Butch: Removed external link and &amp;quot;better known as&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;GT.M is an implementation of ANSII standardsMUMPS from Fidelity Information Systems. It is widely used in the banking world, and in addition, it will run VA VistA.  At present the only well known alternative is [[Cache]]&lt;br /&gt;
&lt;br /&gt;
Fidelity is the maintainer of [http://fisglobal.com/Products/TechnologyPlatforms/GTM/index.htm GT.M]. In addition to their open source version, they provide nonfree software that runs on the Oracle Solaris Operating System, running on the [http://en.wikipedia.org/wiki/SPARC Sun SPARC] &amp;lt;!-- for the time being it is STILL the Sun SPARC platform, they haven&#039;t rebranded the hardware line yet. --&amp;gt;line of high performance servers. They also offer service contracts and training to open source users.&lt;br /&gt;
&lt;br /&gt;
Extensive documentation from Fidelity is [http://www.fisglobal.com/Products/TechnologyPlatforms/GTM/UserDocumentation/index.htm here]. See also [[GT.M Programmer&#039;s Guide]].&lt;br /&gt;
&lt;br /&gt;
GT.M can support VistA. The portability layer of the Kernel is known to work with GT.M on VMS, Solaris, and Linux Operating System.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:MUMPS Implementation]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=GT.M&amp;diff=7578</id>
		<title>GT.M</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=GT.M&amp;diff=7578"/>
		<updated>2010-06-10T21:30:29Z</updated>

		<summary type="html">&lt;p&gt;Butch: added comment on Sun SPARC&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;GT.M is an implementation of ANSII standardsMUMPS from [http://www.fisglobal.com FIS], better known as Fidelity Information Systems. It is widely used in the banking world, and in addition, it will run VA VistA.  At present the only well known alternative is [[Cache]]&lt;br /&gt;
&lt;br /&gt;
Fidelity is the maintainer of [http://fisglobal.com/Products/TechnologyPlatforms/GTM/index.htm GT.M]. In addition to their open source version, they provide nonfree software that runs on the Oracle Solaris Operating System, running on the [http://en.wikipedia.org/wiki/SPARC Sun SPARC] &amp;lt;!-- for the time being it is STILL the Sun SPARC platform, they haven&#039;t rebranded the hardware line yet. --&amp;gt;line of high performance servers. They also offer service contracts and training to open source users.&lt;br /&gt;
&lt;br /&gt;
Extensive documentation from Fidelity is [http://www.fisglobal.com/Products/TechnologyPlatforms/GTM/UserDocumentation/index.htm here]. See also [[GT.M Programmer&#039;s Guide]].&lt;br /&gt;
&lt;br /&gt;
GT.M can support VistA. The portability layer of the Kernel is known to work with GT.M on VMS, Solaris, and Linux Operating System.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:MUMPS Implementation]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=GT.M&amp;diff=7577</id>
		<title>GT.M</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=GT.M&amp;diff=7577"/>
		<updated>2010-06-10T21:29:19Z</updated>

		<summary type="html">&lt;p&gt;Butch: Added Oracle Solaris&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;GT.M is an implementation of ANSII standardsMUMPS from [http://www.fisglobal.com FIS], better known as Fidelity Information Systems. It is widely used in the banking world, and in addition, it will run VA VistA.  At present the only well known alternative is [[Cache]]&lt;br /&gt;
&lt;br /&gt;
Fidelity is the maintainer of [http://fisglobal.com/Products/TechnologyPlatforms/GTM/index.htm GT.M]. In addition to their open source version, they provide nonfree software that runs on the Oracle Solaris Operating System, running on the [http://en.wikipedia.org/wiki/SPARC Sun SPARC] line of high performance servers. They also offer service contracts and training to open source users.&lt;br /&gt;
&lt;br /&gt;
Extensive documentation from Fidelity is [http://www.fisglobal.com/Products/TechnologyPlatforms/GTM/UserDocumentation/index.htm here]. See also [[GT.M Programmer&#039;s Guide]].&lt;br /&gt;
&lt;br /&gt;
GT.M can support VistA. The portability layer of the Kernel is known to work with GT.M on VMS, Solaris, and Linux Operating System.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:MUMPS Implementation]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=GT.M&amp;diff=7576</id>
		<title>GT.M</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=GT.M&amp;diff=7576"/>
		<updated>2010-06-10T21:18:09Z</updated>

		<summary type="html">&lt;p&gt;Butch: Contextual edits&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;GT.M is an implementation of ANSII standardsMUMPS from [http://www.fisglobal.com FIS], better known as Fidelity Information Systems. It is widely used in the banking world, and in addition, it will run VA VistA.  At present the only well known alternative is [[Cache]]&lt;br /&gt;
&lt;br /&gt;
Fidelity is the maintainer of [http://fisglobal.com/Products/TechnologyPlatforms/GTM/index.htm GT.M]. In addition to their open source version, they provide nonfree software that runs on the [http://en.wikipedia.org/wiki/SPARC Sun SPARC] line of high performance servers. They also offer service contracts and training to open source users.&lt;br /&gt;
&lt;br /&gt;
Extensive documentation from Fidelity is [http://www.fisglobal.com/Products/TechnologyPlatforms/GTM/UserDocumentation/index.htm here]. See also [[GT.M Programmer&#039;s Guide]].&lt;br /&gt;
&lt;br /&gt;
GT.M can support VistA. The portability layer of the Kernel is known to work with GT.M on VMS, Solaris, and Linux Operating System.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:MUMPS Implementation]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=User:Butch&amp;diff=11651</id>
		<title>User:Butch</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=User:Butch&amp;diff=11651"/>
		<updated>2010-06-10T21:12:18Z</updated>

		<summary type="html">&lt;p&gt;Butch: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I&#039;m the senior sys admin for Elementary Dr Watson, a small (and growing) organization devoted to providing VistA to the small family practice market.  I have several years experience working with UNIX and it&#039;s derivatives, from the user perspective, the admin perspective, and to a much smaller degree a developer.  (A degree which is expanding daily).&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris&amp;diff=7579</id>
		<title>OpenSolaris</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris&amp;diff=7579"/>
		<updated>2010-06-02T17:53:46Z</updated>

		<summary type="html">&lt;p&gt;Butch: Removed signature line&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenSolaris:  What is it exactly?&lt;br /&gt;
&lt;br /&gt;
OpenSolaris also commonly referred to as osol, is a completely free and open source version of the Sun Microsystems Solaris operating system, licensed under the CDDL.  It is also the code base for the up and coming Solaris 11.&lt;br /&gt;
&lt;br /&gt;
It is most commonly distributed as a live CD, that can be installed to your hard disk, in the same way that many modern Linux distros can.  It makes use of the Gnome desktop, although others are available. If you want to take it for a spin, and get a feel for what it&#039;s all about you can download it here. &amp;lt;br /&amp;gt;&lt;br /&gt;
http://www.opensolaris.org &amp;lt;br /&amp;gt;&lt;br /&gt;
Click on the Get It! Link, and you will be directed to the download page.  &lt;br /&gt;
&lt;br /&gt;
OpenSolaris:  A platform for VistA?&lt;br /&gt;
&lt;br /&gt;
Utilizing a virtualization technology called zones (or containers which is slightly different), the Linux version of GT.M (and thus VistA) run un-modified.  You still have a great deal of the functionality that exists in Linux, in addition to technologies only found in Solaris operating systems.  A couple of the most popular and significant being [http://en.wikipedia.org/wiki/Zfs ZFS], and [http://opensolaris.org/os/project/crossbow Crossbow].&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=11650</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=11650"/>
		<updated>2010-03-15T20:17:20Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* Download the template file */  Updated link to template file&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Why I wrote this document, and why you should consider OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
Q. Why did I write this?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. Several reasons; here are a few of them: &lt;br /&gt;
* First and foremost, choice:  OpenSolaris is a tool you may want to use to tackle whatever endeavor you are contemplating.  In the context of this article, you might consider using it as a platform for VistA.&lt;br /&gt;
* To inform:  Relatively few people know that OpenSolaris even exists, and even fewer know anything about using it.  This is something it shares with VistA.  They are both extremely powerful software environments, and are so expansive that it would be nearly impossible for any one person to know everything.  That very expansiveness fosters a community of users, from all parts of the world.  &lt;br /&gt;
* To share: I have been using OpenSolaris for over a year now, and previously used Solaris 10 since 2007.  I have gained a lot of experience with the OS, and think that I may be able to provide help and insight as to different ways to attack a given problem. &lt;br /&gt;
&lt;br /&gt;
Q. Why should you consider OpenSolaris?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. I think a better question might be, why &#039;&#039;&#039;&#039;&#039;shouldn&#039;t&#039;&#039;&#039;&#039;&#039; you try OpenSolaris.  If you&#039;re reading this then you must be at least slightly interested, so here are a few reasons why you should try it.&lt;br /&gt;
 &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris] was designed from the beginning for enterprise computing.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] &amp;quot;The last word in filesystems!&amp;quot;&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+dtrace/dtracetoolkit Dtrace] Wanna know what your program is doing?  Dtrace allows developers and system admins, ways to look at running programs in ways that weren&#039;t possible before.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+xen/WebHome xVM] The OpenSolaris version of the popular Xen hypervisor.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zones/WebHome Zones/Containers].  OS level virtualization, zones allow for completely isolated instances for running software.  This is similar to the xVM hypervisor in that it allows absolute containment of applications and utilities, the biggest difference being, xVM requires a separate kernel, and running operating system.  Zones utilize a single operating system instance, and don&#039;t incur the overhead associated with a hypervisor based model.  However, xVM and Zones are &#039;&#039;NOT&#039;&#039; mutually exclusive, and work quite well in parallel.  Zones are the main focus of this document.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow]:  The new virtualized networking stack built into the current release of OpenSolaris&lt;br /&gt;
* Support:  You can get help from the [http://opensolaris.org/jive/index.jspa forums], [http://www.sun.com/service/opensolaris/ support contracts] from Sun, and as with most any other question, [http://www.google.com Google] is an invaluable resource.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome BrandZ]: An extension of the zone/container framework, designed to support Linux applications on the OpenSolaris platform.  People have run apps ranging from Apache for Linux, to Unreal Tournament 2004 (playable with audio), to modern day game servers, to GT.M.  There is a pretty high likelihood that if you can do it in Linux, you can do it in a zone/container.&lt;br /&gt;
&lt;br /&gt;
==What this document is==&lt;br /&gt;
&lt;br /&gt;
This is a brief how to on settting up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  (That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6).  The goal here is to facilitate a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
&lt;br /&gt;
This document is not meant as the be-all-end-all of zone documentation.  There is a great deal more to the technology than I&#039;m even going to begin to cover in this write up.  If you want to know more about lx26 zones, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
These instructions are not meant for Amazon&#039;s EC2.  The architecture of EC2 requires several additional steps, however the details of such are well beyond the scope or intent of this document.&lt;br /&gt;
&lt;br /&gt;
==What are zones?==&lt;br /&gt;
* A virtualized operating system environment&lt;br /&gt;
* Each zone has its own characteristics e.g. zonename, IP addresses, hostname, naming services, root and non-root users&lt;br /&gt;
* Isolated application environments within a single OS instance&lt;br /&gt;
&lt;br /&gt;
==Document Conventions==&lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine”, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to VirtualBox, or the Xen and vmWare hypervisors.  In the latter 3 cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover these 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being that a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
&lt;br /&gt;
Setting and configurations based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
# You know how to add users and set permissions on a directory.&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is used in this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...substitute whatever name you feel appropriate, where it&#039;s appropriate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
&lt;br /&gt;
===Download the template file===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget  http://hub.opensolaris.org/bin/download/Community+Group+zones/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create the zone===&lt;br /&gt;
&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
At this point you need logout and back into the virtual machine, either by SSH or by zlogin without the -S flag.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The logout/in process is necessary to do as logging in with zlogin -S gives you the equivalent of a single user Linux environment, and many of the tools and such wont work.&lt;br /&gt;
&lt;br /&gt;
Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admin&#039;s point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&amp;lt;br /&amp;gt;&lt;br /&gt;
[[User:Butch | Butch]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=7430</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=7430"/>
		<updated>2010-02-02T21:55:33Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* Download the template file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Why I wrote this document, and why you should consider OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
Q. Why did I write this?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. Several reasons; here are a few of them: &lt;br /&gt;
* First and foremost, choice:  OpenSolaris is a tool you may want to use to tackle whatever endeavor you are contemplating.  In the context of this article, you might consider using it as a platform for VistA.&lt;br /&gt;
* To inform:  Relatively few people know that OpenSolaris even exists, and even fewer know anything about using it.  This is something it shares with VistA.  They are both extremely powerful software environments, and are so expansive that it would be nearly impossible for any one person to know everything.  That very expansiveness fosters a community of users, from all parts of the world.  &lt;br /&gt;
* To share: I have been using OpenSolaris for over a year now, and previously used Solaris 10 since 2007.  I have gained a lot of experience with the OS, and think that I may be able to provide help and insight as to different ways to attack a given problem. &lt;br /&gt;
&lt;br /&gt;
Q. Why should you consider OpenSolaris?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. I think a better question might be, why &#039;&#039;&#039;&#039;&#039;shouldn&#039;t&#039;&#039;&#039;&#039;&#039; you try OpenSolaris.  If you&#039;re reading this then you must be at least slightly interested, so here are a few reasons why you should try it.&lt;br /&gt;
 &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris] was designed from the beginning for enterprise computing.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] &amp;quot;The last word in filesystems!&amp;quot;&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+dtrace/dtracetoolkit Dtrace] Wanna know what your program is doing?  Dtrace allows developers and system admins, ways to look at running programs in ways that weren&#039;t possible before.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+xen/WebHome xVM] The OpenSolaris version of the popular Xen hypervisor.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zones/WebHome Zones/Containers].  OS level virtualization, zones allow for completely isolated instances for running software.  This is similar to the xVM hypervisor in that it allows absolute containment of applications and utilities, the biggest difference being, xVM requires a separate kernel, and running operating system.  Zones utilize a single operating system instance, and don&#039;t incur the overhead associated with a hypervisor based model.  However, xVM and Zones are &#039;&#039;NOT&#039;&#039; mutually exclusive, and work quite well in parallel.  Zones are the main focus of this document.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow]:  The new virtualized networking stack built into the current release of OpenSolaris&lt;br /&gt;
* Support:  You can get help from the [http://opensolaris.org/jive/index.jspa forums], [http://www.sun.com/service/opensolaris/ support contracts] from Sun, and as with most any other question, [http://www.google.com Google] is an invaluable resource.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome BrandZ]: An extension of the zone/container framework, designed to support Linux applications on the OpenSolaris platform.  People have run apps ranging from Apache for Linux, to Unreal Tournament 2004 (playable with audio), to modern day game servers, to GT.M.  There is a pretty high likelihood that if you can do it in Linux, you can do it in a zone/container.&lt;br /&gt;
&lt;br /&gt;
==What this document is==&lt;br /&gt;
&lt;br /&gt;
This is a brief how to on settting up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  (That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6).  The goal here is to facilitate a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
&lt;br /&gt;
This document is not meant as the be-all-end-all of zone documentation.  There is a great deal more to the technology than I&#039;m even going to begin to cover in this write up.  If you want to know more about lx26 zones, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
These instructions are not meant for Amazon&#039;s EC2.  The architecture of EC2 requires several additional steps, however the details of such are well beyond the scope or intent of this document.&lt;br /&gt;
&lt;br /&gt;
==What are zones?==&lt;br /&gt;
* A virtualized operating system environment&lt;br /&gt;
* Each zone has its own characteristics e.g. zonename, IP addresses, hostname, naming services, root and non-root users&lt;br /&gt;
* Isolated application environments within a single OS instance&lt;br /&gt;
&lt;br /&gt;
==Document Conventions==&lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine”, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to VirtualBox, or the Xen and vmWare hypervisors.  In the latter 3 cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover these 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being that a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
&lt;br /&gt;
Setting and configurations based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
# You know how to add users and set permissions on a directory.&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is used in this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...substitute whatever name you feel appropriate, where it&#039;s appropriate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
&lt;br /&gt;
===Download the template file===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/zones/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create the zone===&lt;br /&gt;
&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
At this point you need logout and back into the virtual machine, either by SSH or by zlogin without the -S flag.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The logout/in process is necessary to do as logging in with zlogin -S gives you the equivalent of a single user Linux environment, and many of the tools and such wont work.&lt;br /&gt;
&lt;br /&gt;
Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admin&#039;s point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&amp;lt;br /&amp;gt;&lt;br /&gt;
[[User:Butch | Butch]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=User:Butch&amp;diff=7574</id>
		<title>User:Butch</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=User:Butch&amp;diff=7574"/>
		<updated>2010-02-02T18:58:32Z</updated>

		<summary type="html">&lt;p&gt;Butch: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I&#039;m the senior sys admin for Elementary Dr Watson, a small (and growing) organization devoted to providing VistA to the small family practice market.  I have several years experience working with UNIX and it&#039;s derivatives, from the user perspective, the admin perspective, and to a much smaller degree a developer.  &lt;br /&gt;
&lt;br /&gt;
I have a broad base of knowledge and experience that I have no doubt will be useful within this community.&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=Talk:OpenSolaris_zones&amp;diff=11488</id>
		<title>Talk:OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Talk:OpenSolaris_zones&amp;diff=11488"/>
		<updated>2010-02-02T15:56:26Z</updated>

		<summary type="html">&lt;p&gt;Butch: response:&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Butch -- you should clean up this page. &lt;br /&gt;
&lt;br /&gt;
It&#039;s quite rambling and repetitive.&lt;br /&gt;
&lt;br /&gt;
Whittle, Whitby, whittle!&lt;br /&gt;
&lt;br /&gt;
Quoting your response to Dr Watson: &lt;br /&gt;
&lt;br /&gt;
&amp;quot;Don&#039;t use &amp;quot;I&amp;quot; or &amp;quot;you,&amp;quot; especially &amp;quot;you should.&amp;quot; It is pedantic and preachy and is a sin that exists uniquely in American speech patterns. Be cognizant that your method works for you and is primarily a suggestion; someone else may have found a better method. Conversely, don&#039;t be self-deprecating (&amp;quot;this works for me&amp;quot;). Just put down the advice without qualifiers and let other contributors edit it as necessary. Wikis are not like the US Congress (where posturing trumps results and very little of substance gets done). &lt;br /&gt;
&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Thank you for your input.  Constructive criticism is always welcome.  Perhaps if you feel it&#039;s &amp;quot;rambling and repetitive&amp;quot; then you should contribute to the document and edit the page as you see fit?   This is a wiki after all, and changes are welcome.  I&#039;m not gonna pack up my toys and go home if you edit my work.  &lt;br /&gt;
&lt;br /&gt;
After having this article positively reviewed by 2 engineers at Sun Microsystems, 1 engineer from Oracle, and members of the OpenSolaris community I see little need to change it.  Further after putting this document in the hands of several computer novices who have followed it without me having to hold their hand, I see even less need to change it.  &lt;br /&gt;
&lt;br /&gt;
However from this point forward, lest we begin to look like we are trolling each other we should move all further interactions to personal email.  Vistapedia, is a place for factual writings, not personal opinions or debates.  We have the forums for that.  We should do our part to maintain that standard.  Being that you are the first person within the community to directly address this writing I look forward to talking with you further in the future.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=6697</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=6697"/>
		<updated>2010-02-02T14:33:23Z</updated>

		<summary type="html">&lt;p&gt;Butch: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Why I wrote this document, and why you should consider OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
Q. Why did I write this?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. Several reasons; here are a few of them: &lt;br /&gt;
* First and foremost, choice:  OpenSolaris is a tool you may want to use to tackle whatever endeavor you are contemplating.  In the context of this article, you might consider using it as a platform for VistA.&lt;br /&gt;
* To inform:  Relatively few people know that OpenSolaris even exists, and even fewer know anything about using it.  This is something it shares with VistA.  They are both extremely powerful software environments, and are so expansive that it would be nearly impossible for any one person to know everything.  That very expansiveness fosters a community of users, from all parts of the world.  &lt;br /&gt;
* To share: I have been using OpenSolaris for over a year now, and previously used Solaris 10 since 2007.  I have gained a lot of experience with the OS, and think that I may be able to provide help and insight as to different ways to attack a given problem. &lt;br /&gt;
&lt;br /&gt;
Q. Why should you consider OpenSolaris?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. I think a better question might be, why &#039;&#039;&#039;&#039;&#039;shouldn&#039;t&#039;&#039;&#039;&#039;&#039; you try OpenSolaris.  If you&#039;re reading this then you must be at least slightly interested, so here are a few reasons why you should try it.&lt;br /&gt;
 &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris] was designed from the beginning for enterprise computing.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] &amp;quot;The last word in filesystems!&amp;quot;&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+dtrace/dtracetoolkit Dtrace] Wanna know what your program is doing?  Dtrace allows developers and system admins, ways to look at running programs in ways that weren&#039;t possible before.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+xen/WebHome xVM] The OpenSolaris version of the popular Xen hypervisor.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zones/WebHome Zones/Containers].  OS level virtualization, zones allow for completely isolated instances for running software.  This is similar to the xVM hypervisor in that it allows absolute containment of applications and utilities, the biggest difference being, xVM requires a separate kernel, and running operating system.  Zones utilize a single operating system instance, and don&#039;t incur the overhead associated with a hypervisor based model.  However, xVM and Zones are &#039;&#039;NOT&#039;&#039; mutually exclusive, and work quite well in parallel.  Zones are the main focus of this document.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow]:  The new virtualized networking stack built into the current release of OpenSolaris&lt;br /&gt;
* Support:  You can get help from the [http://opensolaris.org/jive/index.jspa forums], [http://www.sun.com/service/opensolaris/ support contracts] from Sun, and as with most any other question, [http://www.google.com Google] is an invaluable resource.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome BrandZ]: An extension of the zone/container framework, designed to support Linux applications on the OpenSolaris platform.  People have run apps ranging from Apache for Linux, to Unreal Tournament 2004 (playable with audio), to modern day game servers, to GT.M.  There is a pretty high likelihood that if you can do it in Linux, you can do it in a zone/container.&lt;br /&gt;
&lt;br /&gt;
==What this document is==&lt;br /&gt;
&lt;br /&gt;
This is a brief how to on settting up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  (That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6).  The goal here is to facilitate a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
&lt;br /&gt;
This document is not meant as the be-all-end-all of zone documentation.  There is a great deal more to the technology than I&#039;m even going to begin to cover in this write up.  If you want to know more about lx26 zones, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
These instructions are not meant for Amazon&#039;s EC2.  The architecture of EC2 requires several additional steps, however the details of such are well beyond the scope or intent of this document.&lt;br /&gt;
&lt;br /&gt;
==What are zones?==&lt;br /&gt;
* A virtualized operating system environment&lt;br /&gt;
* Each zone has its own characteristics e.g. zonename, IP addresses, hostname, naming services, root and non-root users&lt;br /&gt;
* Isolated application environments within a single OS instance&lt;br /&gt;
&lt;br /&gt;
==Document Conventions==&lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine”, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to VirtualBox, or the Xen and vmWare hypervisors.  In the latter 3 cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover these 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being that a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
&lt;br /&gt;
Setting and configurations based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
# You know how to add users and set permissions on a directory.&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is used in this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...substitute whatever name you feel appropriate, where it&#039;s appropriate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
&lt;br /&gt;
===Download the template file===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create the zone===&lt;br /&gt;
&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
At this point you need logout and back into the virtual machine, either by SSH or by zlogin without the -S flag.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The logout/in process is necessary to do as logging in with zlogin -S gives you the equivalent of a single user Linux environment, and many of the tools and such wont work.&lt;br /&gt;
&lt;br /&gt;
Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admin&#039;s point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&amp;lt;br /&amp;gt;&lt;br /&gt;
[[User:Butch | Butch]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5987</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5987"/>
		<updated>2009-11-18T18:07:51Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* The Medsphere installation method */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Why I wrote this document, and why you should consider OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
Q. Why did I write this?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. Several reasons, here are a few of them.  &lt;br /&gt;
* First and foremost, choice:  OpenSolaris is a tool to be used in whatever endeavor you may want to tackle with it.  In the context of this article, using it as a platform for VistA.&lt;br /&gt;
* To inform:  Relatively few people know anything about OpenSolaris and even fewer even know that it exists.  This is something I think that it shares with VistA.  They are both extremely powerful software environments, and are so expansive that it would be nearly impossible for any one person to know everything.  That very expansiveness fosters a community of users, from all parts of the world.  &lt;br /&gt;
* To share: I have been using OpenSolaris for over a year now, and previously used Solaris 10 since 2007.  I have gained a lot of experience with the OS, and think that I may be able to provide help and insight as to different ways to attack a given problem. &lt;br /&gt;
&lt;br /&gt;
Q. Why should you consider OpenSolaris?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. I think a better question might be, why &#039;&#039;&#039;&#039;&#039;shouldn&#039;t&#039;&#039;&#039;&#039;&#039; you try OpenSolaris.  If your reading this than you must be at least slightly interested, so here are a few reasons why you should try it.&lt;br /&gt;
 &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris] was designed from the beginning for enterprise computing.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] &amp;quot;The last word in filesystems!&amp;quot;&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+dtrace/dtracetoolkit Dtrace] Wanna know what your program is doing?  Dtrace allows developers and system admins, ways to look at running programs in ways that weren&#039;t possible before.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+xen/WebHome xVM] The OpenSolaris version of the popular Xen hypervisor.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zones/WebHome Zones/Containers].  OS level virtualization, zones allow for completely isolated instances for running software.  This is similar to the xVM hypervisor in that it allows absolute containment of applications and utilities, the biggest difference being, xVM requires a separate kernel, and running operating system.  Zones utilize a single operating system instance, and don&#039;t incur the overhead associated with a hypervisor based model.  However, xVM and Zones are &#039;&#039;NOT&#039;&#039; mutually exclusive, and work quite well in parallel.  Zones are the main focus of this document.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow]:  The new virtualized networking stack built into the current released of OpenSolaris&lt;br /&gt;
* Support:  You can get help from the [http://opensolaris.org/jive/index.jspa forums], [http://www.sun.com/service/opensolaris/ support contracts] from Sun, and as with most any other question, [http://www.google.com Google] is an invaluable resource.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome BrandZ]: An extension of the zone/container framework.  Designed to support Linux applications on the OpenSolaris platform.  People have run apps, ranging from Apache for Linux, to Unreal Tournament 2004 (playable with audio), to modern day game servers, to GT.M.  There is a pretty high likelihood that if you can do it in Linux, you can do it in a zone/container.&lt;br /&gt;
&lt;br /&gt;
==What this document is==&lt;br /&gt;
&lt;br /&gt;
This is a brief how to on settting up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  (That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6).  The goal here is to facilitate a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  There is a great deal more to the technology than I&#039;m even going to begin to cover in this write up.  If you want to know more about lx26 zones, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
These instructions are not meant for Amazon&#039;s EC2.  The architecture of EC2 requires several additional steps, however the details of such are well beyond the scope or intent of this document.&lt;br /&gt;
&lt;br /&gt;
==What are zones?==&lt;br /&gt;
* A virtualized operating system environment&lt;br /&gt;
* Each zone has its own characteristics e.g. zonename, IP addresses, hostname, naming services, root and non-root users&lt;br /&gt;
* Isolated application environments within a single OS instance&lt;br /&gt;
&lt;br /&gt;
==Document Conventions==&lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine”, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to VirtualBox, or the Xen and vmWare hypervisors.  In the latter 3 cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
&lt;br /&gt;
Setting and configurations based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
# You know how to add users and set permissions on a directory.&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is used in this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...substitute whatever name you feel appropriate, where it&#039;s appropriate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
&lt;br /&gt;
===Download the template file===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create the zone===&lt;br /&gt;
&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
At this point you need logout and back into the virtual machine, either by SSH or by zlogin without the -S flag.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The logout/in process is necessary to do as logging in with zlogin -S gives you the equivalent of a single user Linux environment, and many of the tools and such wont work.&lt;br /&gt;
&lt;br /&gt;
Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&amp;lt;br /&amp;gt;&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5977</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5977"/>
		<updated>2009-11-18T18:07:13Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* Finishing up */ Context edit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Why I wrote this document, and why you should consider OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
Q. Why did I write this?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. Several reasons, here are a few of them.  &lt;br /&gt;
* First and foremost, choice:  OpenSolaris is a tool to be used in whatever endeavor you may want to tackle with it.  In the context of this article, using it as a platform for VistA.&lt;br /&gt;
* To inform:  Relatively few people know anything about OpenSolaris and even fewer even know that it exists.  This is something I think that it shares with VistA.  They are both extremely powerful software environments, and are so expansive that it would be nearly impossible for any one person to know everything.  That very expansiveness fosters a community of users, from all parts of the world.  &lt;br /&gt;
* To share: I have been using OpenSolaris for over a year now, and previously used Solaris 10 since 2007.  I have gained a lot of experience with the OS, and think that I may be able to provide help and insight as to different ways to attack a given problem. &lt;br /&gt;
&lt;br /&gt;
Q. Why should you consider OpenSolaris?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. I think a better question might be, why &#039;&#039;&#039;&#039;&#039;shouldn&#039;t&#039;&#039;&#039;&#039;&#039; you try OpenSolaris.  If your reading this than you must be at least slightly interested, so here are a few reasons why you should try it.&lt;br /&gt;
 &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris] was designed from the beginning for enterprise computing.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] &amp;quot;The last word in filesystems!&amp;quot;&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+dtrace/dtracetoolkit Dtrace] Wanna know what your program is doing?  Dtrace allows developers and system admins, ways to look at running programs in ways that weren&#039;t possible before.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+xen/WebHome xVM] The OpenSolaris version of the popular Xen hypervisor.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zones/WebHome Zones/Containers].  OS level virtualization, zones allow for completely isolated instances for running software.  This is similar to the xVM hypervisor in that it allows absolute containment of applications and utilities, the biggest difference being, xVM requires a separate kernel, and running operating system.  Zones utilize a single operating system instance, and don&#039;t incur the overhead associated with a hypervisor based model.  However, xVM and Zones are &#039;&#039;NOT&#039;&#039; mutually exclusive, and work quite well in parallel.  Zones are the main focus of this document.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow]:  The new virtualized networking stack built into the current released of OpenSolaris&lt;br /&gt;
* Support:  You can get help from the [http://opensolaris.org/jive/index.jspa forums], [http://www.sun.com/service/opensolaris/ support contracts] from Sun, and as with most any other question, [http://www.google.com Google] is an invaluable resource.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome BrandZ]: An extension of the zone/container framework.  Designed to support Linux applications on the OpenSolaris platform.  People have run apps, ranging from Apache for Linux, to Unreal Tournament 2004 (playable with audio), to modern day game servers, to GT.M.  There is a pretty high likelihood that if you can do it in Linux, you can do it in a zone/container.&lt;br /&gt;
&lt;br /&gt;
==What this document is==&lt;br /&gt;
&lt;br /&gt;
This is a brief how to on settting up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  (That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6).  The goal here is to facilitate a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  There is a great deal more to the technology than I&#039;m even going to begin to cover in this write up.  If you want to know more about lx26 zones, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
These instructions are not meant for Amazon&#039;s EC2.  The architecture of EC2 requires several additional steps, however the details of such are well beyond the scope or intent of this document.&lt;br /&gt;
&lt;br /&gt;
==What are zones?==&lt;br /&gt;
* A virtualized operating system environment&lt;br /&gt;
* Each zone has its own characteristics e.g. zonename, IP addresses, hostname, naming services, root and non-root users&lt;br /&gt;
* Isolated application environments within a single OS instance&lt;br /&gt;
&lt;br /&gt;
==Document Conventions==&lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine”, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to VirtualBox, or the Xen and vmWare hypervisors.  In the latter 3 cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
&lt;br /&gt;
Setting and configurations based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
# You know how to add users and set permissions on a directory.&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is used in this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...substitute whatever name you feel appropriate, where it&#039;s appropriate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
&lt;br /&gt;
===Download the template file===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create the zone===&lt;br /&gt;
&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
At this point you need logout and back into the virtual machine, either by SSH or by zlogin without the -S flag.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The logout/in process is necessary to do as logging in with zlogin -S gives you the equivalent of a single user Linux environment, and many of the tools and such wont work.&lt;br /&gt;
&lt;br /&gt;
Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5976</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5976"/>
		<updated>2009-11-18T18:06:03Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* Finishing up */ Edited for informational accuracy&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Why I wrote this document, and why you should consider OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
Q. Why did I write this?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. Several reasons, here are a few of them.  &lt;br /&gt;
* First and foremost, choice:  OpenSolaris is a tool to be used in whatever endeavor you may want to tackle with it.  In the context of this article, using it as a platform for VistA.&lt;br /&gt;
* To inform:  Relatively few people know anything about OpenSolaris and even fewer even know that it exists.  This is something I think that it shares with VistA.  They are both extremely powerful software environments, and are so expansive that it would be nearly impossible for any one person to know everything.  That very expansiveness fosters a community of users, from all parts of the world.  &lt;br /&gt;
* To share: I have been using OpenSolaris for over a year now, and previously used Solaris 10 since 2007.  I have gained a lot of experience with the OS, and think that I may be able to provide help and insight as to different ways to attack a given problem. &lt;br /&gt;
&lt;br /&gt;
Q. Why should you consider OpenSolaris?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. I think a better question might be, why &#039;&#039;&#039;&#039;&#039;shouldn&#039;t&#039;&#039;&#039;&#039;&#039; you try OpenSolaris.  If your reading this than you must be at least slightly interested, so here are a few reasons why you should try it.&lt;br /&gt;
 &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris] was designed from the beginning for enterprise computing.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] &amp;quot;The last word in filesystems!&amp;quot;&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+dtrace/dtracetoolkit Dtrace] Wanna know what your program is doing?  Dtrace allows developers and system admins, ways to look at running programs in ways that weren&#039;t possible before.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+xen/WebHome xVM] The OpenSolaris version of the popular Xen hypervisor.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zones/WebHome Zones/Containers].  OS level virtualization, zones allow for completely isolated instances for running software.  This is similar to the xVM hypervisor in that it allows absolute containment of applications and utilities, the biggest difference being, xVM requires a separate kernel, and running operating system.  Zones utilize a single operating system instance, and don&#039;t incur the overhead associated with a hypervisor based model.  However, xVM and Zones are &#039;&#039;NOT&#039;&#039; mutually exclusive, and work quite well in parallel.  Zones are the main focus of this document.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow]:  The new virtualized networking stack built into the current released of OpenSolaris&lt;br /&gt;
* Support:  You can get help from the [http://opensolaris.org/jive/index.jspa forums], [http://www.sun.com/service/opensolaris/ support contracts] from Sun, and as with most any other question, [http://www.google.com Google] is an invaluable resource.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome BrandZ]: An extension of the zone/container framework.  Designed to support Linux applications on the OpenSolaris platform.  People have run apps, ranging from Apache for Linux, to Unreal Tournament 2004 (playable with audio), to modern day game servers, to GT.M.  There is a pretty high likelihood that if you can do it in Linux, you can do it in a zone/container.&lt;br /&gt;
&lt;br /&gt;
==What this document is==&lt;br /&gt;
&lt;br /&gt;
This is a brief how to on settting up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  (That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6).  The goal here is to facilitate a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  There is a great deal more to the technology than I&#039;m even going to begin to cover in this write up.  If you want to know more about lx26 zones, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
These instructions are not meant for Amazon&#039;s EC2.  The architecture of EC2 requires several additional steps, however the details of such are well beyond the scope or intent of this document.&lt;br /&gt;
&lt;br /&gt;
==What are zones?==&lt;br /&gt;
* A virtualized operating system environment&lt;br /&gt;
* Each zone has its own characteristics e.g. zonename, IP addresses, hostname, naming services, root and non-root users&lt;br /&gt;
* Isolated application environments within a single OS instance&lt;br /&gt;
&lt;br /&gt;
==Document Conventions==&lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine”, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to VirtualBox, or the Xen and vmWare hypervisors.  In the latter 3 cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
&lt;br /&gt;
Setting and configurations based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
# You know how to add users and set permissions on a directory.&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is used in this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...substitute whatever name you feel appropriate, where it&#039;s appropriate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
&lt;br /&gt;
===Download the template file===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create the zone===&lt;br /&gt;
&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
At this point you need logout and back into the virtual machine, either by SSH or by zlogin without the -S flag.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
It is necessary to do so as logging in with zlogin -S gives you the equivalent of a single user Linux environment, and many of the tools and such wont work.&lt;br /&gt;
&lt;br /&gt;
Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5975</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5975"/>
		<updated>2009-10-30T15:55:34Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* What this document is not */ Edited EC2&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Why I wrote this document, and why you should consider OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
Q. Why did I write this?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. Several reasons, here are a few of them.  &lt;br /&gt;
* First and foremost, choice:  OpenSolaris is a tool to be used in whatever endeavor you may want to tackle with it.  In the context of this article, using it as a platform for VistA.&lt;br /&gt;
* To inform:  Relatively few people know anything about OpenSolaris and even fewer even know that it exists.  This is something I think that it shares with VistA.  They are both extremely powerful software environments, and are so expansive that it would be nearly impossible for any one person to know everything.  That very expansiveness fosters a community of users, from all parts of the world.  &lt;br /&gt;
* To share: I have been using OpenSolaris for over a year now, and previously used Solaris 10 since 2007.  I have gained a lot of experience with the OS, and think that I may be able to provide help and insight as to different ways to attack a given problem. &lt;br /&gt;
&lt;br /&gt;
Q. Why should you consider OpenSolaris?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. I think a better question might be, why &#039;&#039;&#039;&#039;&#039;shouldn&#039;t&#039;&#039;&#039;&#039;&#039; you try OpenSolaris.  If your reading this than you must be at least slightly interested, so here are a few reasons why you should try it.&lt;br /&gt;
 &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris] was designed from the beginning for enterprise computing.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] &amp;quot;The last word in filesystems!&amp;quot;&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+dtrace/dtracetoolkit Dtrace] Wanna know what your program is doing?  Dtrace allows developers and system admins, ways to look at running programs in ways that weren&#039;t possible before.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+xen/WebHome xVM] The OpenSolaris version of the popular Xen hypervisor.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zones/WebHome Zones/Containers].  OS level virtualization, zones allow for completely isolated instances for running software.  This is similar to the xVM hypervisor in that it allows absolute containment of applications and utilities, the biggest difference being, xVM requires a separate kernel, and running operating system.  Zones utilize a single operating system instance, and don&#039;t incur the overhead associated with a hypervisor based model.  However, xVM and Zones are &#039;&#039;NOT&#039;&#039; mutually exclusive, and work quite well in parallel.  Zones are the main focus of this document.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow]:  The new virtualized networking stack built into the current released of OpenSolaris&lt;br /&gt;
* Support:  You can get help from the [http://opensolaris.org/jive/index.jspa forums], [http://www.sun.com/service/opensolaris/ support contracts] from Sun, and as with most any other question, [http://www.google.com Google] is an invaluable resource.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome BrandZ]: An extension of the zone/container framework.  Designed to support Linux applications on the OpenSolaris platform.  People have run apps, ranging from Apache for Linux, to Unreal Tournament 2004 (playable with audio), to modern day game servers, to GT.M.  There is a pretty high likelihood that if you can do it in Linux, you can do it in a zone/container.&lt;br /&gt;
&lt;br /&gt;
==What this document is==&lt;br /&gt;
&lt;br /&gt;
This is a brief how to on settting up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  (That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6).  The goal here is to facilitate a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  There is a great deal more to the technology than I&#039;m even going to begin to cover in this write up.  If you want to know more about lx26 zones, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
These instructions are not meant for Amazon&#039;s EC2.  The architecture of EC2 requires several additional steps, however the details of such are well beyond the scope or intent of this document.&lt;br /&gt;
&lt;br /&gt;
==What are zones?==&lt;br /&gt;
* A virtualized operating system environment&lt;br /&gt;
* Each zone has its own characteristics e.g. zonename, IP addresses, hostname, naming services, root and non-root users&lt;br /&gt;
* Isolated application environments within a single OS instance&lt;br /&gt;
&lt;br /&gt;
==Document Conventions==&lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine”, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to VirtualBox, or the Xen and vmWare hypervisors.  In the latter 3 cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
&lt;br /&gt;
Setting and configurations based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
# You know how to add users and set permissions on a directory.&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is used in this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...substitute whatever name you feel appropriate, where it&#039;s appropriate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
&lt;br /&gt;
===Download the template file===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create the zone===&lt;br /&gt;
&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5945</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5945"/>
		<updated>2009-10-30T15:52:57Z</updated>

		<summary type="html">&lt;p&gt;Butch: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Why I wrote this document, and why you should consider OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
Q. Why did I write this?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. Several reasons, here are a few of them.  &lt;br /&gt;
* First and foremost, choice:  OpenSolaris is a tool to be used in whatever endeavor you may want to tackle with it.  In the context of this article, using it as a platform for VistA.&lt;br /&gt;
* To inform:  Relatively few people know anything about OpenSolaris and even fewer even know that it exists.  This is something I think that it shares with VistA.  They are both extremely powerful software environments, and are so expansive that it would be nearly impossible for any one person to know everything.  That very expansiveness fosters a community of users, from all parts of the world.  &lt;br /&gt;
* To share: I have been using OpenSolaris for over a year now, and previously used Solaris 10 since 2007.  I have gained a lot of experience with the OS, and think that I may be able to provide help and insight as to different ways to attack a given problem. &lt;br /&gt;
&lt;br /&gt;
Q. Why should you consider OpenSolaris?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. I think a better question might be, why &#039;&#039;&#039;&#039;&#039;shouldn&#039;t&#039;&#039;&#039;&#039;&#039; you try OpenSolaris.  If your reading this than you must be at least slightly interested, so here are a few reasons why you should try it.&lt;br /&gt;
 &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris] was designed from the beginning for enterprise computing.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] &amp;quot;The last word in filesystems!&amp;quot;&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+dtrace/dtracetoolkit Dtrace] Wanna know what your program is doing?  Dtrace allows developers and system admins, ways to look at running programs in ways that weren&#039;t possible before.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+xen/WebHome xVM] The OpenSolaris version of the popular Xen hypervisor.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zones/WebHome Zones/Containers].  OS level virtualization, zones allow for completely isolated instances for running software.  This is similar to the xVM hypervisor in that it allows absolute containment of applications and utilities, the biggest difference being, xVM requires a separate kernel, and running operating system.  Zones utilize a single operating system instance, and don&#039;t incur the overhead associated with a hypervisor based model.  However, xVM and Zones are &#039;&#039;NOT&#039;&#039; mutually exclusive, and work quite well in parallel.  Zones are the main focus of this document.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow]:  The new virtualized networking stack built into the current released of OpenSolaris&lt;br /&gt;
* Support:  You can get help from the [http://opensolaris.org/jive/index.jspa forums], [http://www.sun.com/service/opensolaris/ support contracts] from Sun, and as with most any other question, [http://www.google.com Google] is an invaluable resource.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome BrandZ]: An extension of the zone/container framework.  Designed to support Linux applications on the OpenSolaris platform.  People have run apps, ranging from Apache for Linux, to Unreal Tournament 2004 (playable with audio), to modern day game servers, to GT.M.  There is a pretty high likelihood that if you can do it in Linux, you can do it in a zone/container.&lt;br /&gt;
&lt;br /&gt;
==What this document is==&lt;br /&gt;
&lt;br /&gt;
This is a brief how to on settting up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  (That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6).  The goal here is to facilitate a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  There is a great deal more to the technology than I&#039;m even going to begin to cover in this write up.  If you want to know more about lx26 zones, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
These instructions are not meant for Amazon&#039;s EC2 cloud architecture as written.  It can be done however the details of such are well beyond the scope or intent of this document.&lt;br /&gt;
&lt;br /&gt;
==What are zones?==&lt;br /&gt;
* A virtualized operating system environment&lt;br /&gt;
* Each zone has its own characteristics e.g. zonename, IP addresses, hostname, naming services, root and non-root users&lt;br /&gt;
* Isolated application environments within a single OS instance&lt;br /&gt;
&lt;br /&gt;
==Document Conventions==&lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine”, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to VirtualBox, or the Xen and vmWare hypervisors.  In the latter 3 cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
&lt;br /&gt;
Setting and configurations based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
# You know how to add users and set permissions on a directory.&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is used in this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...substitute whatever name you feel appropriate, where it&#039;s appropriate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
&lt;br /&gt;
===Download the template file===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create the zone===&lt;br /&gt;
&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5944</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5944"/>
		<updated>2009-10-30T15:51:19Z</updated>

		<summary type="html">&lt;p&gt;Butch: Edited doc structure&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Why I wrote this document, and why you should consider OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
Q. Why did I write this?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. Several reasons, here are a few of them.  &lt;br /&gt;
* First and foremost, choice:  OpenSolaris is a tool to be used in whatever endeavor you may want to tackle with it.  In the context of this article, using it as a platform for VistA.&lt;br /&gt;
* To inform:  Relatively few people know anything about OpenSolaris and even fewer even know that it exists.  This is something I think that it shares with VistA.  They are both extremely powerful software environments, and are so expansive that it would be nearly impossible for any one person to know everything.  That very expansiveness fosters a community of users, from all parts of the world.  &lt;br /&gt;
* To share: I have been using OpenSolaris for over a year now, and previously used Solaris 10 since 2007.  I have gained a lot of experience with the OS, and think that I may be able to provide help and insight as to different ways to attack a given problem. &lt;br /&gt;
&lt;br /&gt;
Q. Why should you consider OpenSolaris?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. I think a better question might be, why &#039;&#039;&#039;&#039;&#039;shouldn&#039;t&#039;&#039;&#039;&#039;&#039; you try OpenSolaris.  If your reading this than you must be at least slightly interested, so here are a few reasons why you should try it.&lt;br /&gt;
 &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris] was designed from the beginning for enterprise computing.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] &amp;quot;The last word in filesystems!&amp;quot;&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+dtrace/dtracetoolkit Dtrace] Wanna know what your program is doing?  Add a couple of dtrace probes, and see things that have never been possible before.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+xen/WebHome xVM] The OpenSolaris version of the popular Xen hypervisor.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zones/WebHome Zones/Containers].  OS level virtualization, zones allow for completely isolated instances for running software.  This is similar to the xVM hypervisor in that it allows absolute containment of applications and utilities, the biggest difference being, xVM requires a separate kernel, and running operating system.  Zones utilize a single operating system instance, and don&#039;t incur the overhead associated with a hypervisor based model.  However, xVM and Zones are &#039;&#039;NOT&#039;&#039; mutually exclusive, and work quite well in parallel.  Zones are the main focus of this document.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow]:  The new virtualized networking stack built into the current released of OpenSolaris&lt;br /&gt;
* Support:  You can get help from the [http://opensolaris.org/jive/index.jspa forums], [http://www.sun.com/service/opensolaris/ support contracts] from Sun, and as with most any other question, [http://www.google.com Google] is an invaluable resource.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome BrandZ]: An extension of the zone/container framework.  Designed to support Linux applications on the OpenSolaris platform.  People have run apps, ranging from Apache for Linux, to Unreal Tournament 2004 (playable with audio), to modern day game servers, to GT.M.  There is a pretty high likelihood that if you can do it in Linux, you can do it in a zone/container.&lt;br /&gt;
&lt;br /&gt;
==What this document is==&lt;br /&gt;
&lt;br /&gt;
This is a brief how to on settting up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  (That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6).  The goal here is to facilitate a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  There is a great deal more to the technology than I&#039;m even going to begin to cover in this write up.  If you want to know more about lx26 zones, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
These instructions are not meant for Amazon&#039;s EC2 cloud architecture as written.  It can be done however the details of such are well beyond the scope or intent of this document.&lt;br /&gt;
&lt;br /&gt;
==What are zones?==&lt;br /&gt;
* A virtualized operating system environment&lt;br /&gt;
* Each zone has its own characteristics e.g. zonename, IP addresses, hostname, naming services, root and non-root users&lt;br /&gt;
* Isolated application environments within a single OS instance&lt;br /&gt;
&lt;br /&gt;
==Document Conventions==&lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine”, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to VirtualBox, or the Xen and vmWare hypervisors.  In the latter 3 cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
&lt;br /&gt;
Setting and configurations based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
# You know how to add users and set permissions on a directory.&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is used in this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...substitute whatever name you feel appropriate, where it&#039;s appropriate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
&lt;br /&gt;
===Download the template file===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create the zone===&lt;br /&gt;
&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5943</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5943"/>
		<updated>2009-10-30T15:18:07Z</updated>

		<summary type="html">&lt;p&gt;Butch: Added what are zones&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==What this document is==&lt;br /&gt;
&lt;br /&gt;
This is a brief how to on settting up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  (That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6).  The goal here is to facilitate a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  There is a great deal more to the technology than I&#039;m even going to begin to cover in this write up.  If you want to know more about lx26 zones, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
These instructions are not meant for Amazon&#039;s EC2 cloud architecture as written.  It can be done however the details of such are well beyond the scope or intent of this document.&lt;br /&gt;
&lt;br /&gt;
==What are zones?==&lt;br /&gt;
* A virtualized operating system environment&lt;br /&gt;
* Each zone has its own characteristics e.g. zonename, IP addresses, hostname, naming services, root and non-root users&lt;br /&gt;
* Isolated application environments within a single OS instance&lt;br /&gt;
&lt;br /&gt;
==Document Conventions==&lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine”, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to VirtualBox, or the Xen and vmWare hypervisors.  In the latter 3 cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
==Why I wrote this document, and why you should consider OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
Q. Why did I write this?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. Several reasons, here are a few of them.  &lt;br /&gt;
* First and foremost, choice:  OpenSolaris is a tool to be used in whatever endeavor you may want to tackle with it.  In the context of this article, using it as a platform for VistA.&lt;br /&gt;
* To inform:  Relatively few people know anything about OpenSolaris and even fewer even know that it exists.  This is something I think that it shares with VistA.  They are both extremely powerful software environments, and are so expansive that it would be nearly impossible for any one person to know everything.  That very expansiveness fosters a community of users, from all parts of the world.  &lt;br /&gt;
* To share: I have been using OpenSolaris for over a year now, and previously used Solaris 10 since 2007.  I have gained a lot of experience with the OS, and think that I may be able to provide help and insight as to different ways to attack a given problem. &lt;br /&gt;
&lt;br /&gt;
Q. Why should you consider OpenSolaris?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. I think a better question might be, why &#039;&#039;&#039;&#039;&#039;shouldn&#039;t&#039;&#039;&#039;&#039;&#039; you try OpenSolaris.  If your reading this than you must be at least slightly interested, so here are a few reasons why you should try it.&lt;br /&gt;
 &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris] was designed from the beginning for enterprise computing.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] &amp;quot;The last word in filesystems!&amp;quot;&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+dtrace/dtracetoolkit Dtrace] Wanna know what your program is doing?  Add a couple of dtrace probes, and see things that have never been possible before.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+xen/WebHome xVM] The OpenSolaris version of the popular Xen hypervisor.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zones/WebHome Zones/Containers].  OS level virtualization, zones allow for completely isolated instances for running software.  This is similar to the xVM hypervisor in that it allows absolute containment of applications and utilities, the biggest difference being, xVM requires a separate kernel, and running operating system.  Zones utilize a single operating system instance, and don&#039;t incur the overhead associated with a hypervisor based model.  However, xVM and Zones are &#039;&#039;NOT&#039;&#039; mutually exclusive, and work quite well in parallel.  Zones are the main focus of this document.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow]:  The new virtualized networking stack built into the current released of OpenSolaris&lt;br /&gt;
* Support:  You can get help from the [http://opensolaris.org/jive/index.jspa forums], [http://www.sun.com/service/opensolaris/ support contracts] from Sun, and as with most any other question, [http://www.google.com Google] is an invaluable resource.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome BrandZ]: An extension of the zone/container framework.  Designed to support Linux applications on the OpenSolaris platform.  People have run apps, ranging from Apache for Linux, to Unreal Tournament 2004 (playable with audio), to modern day game servers, to GT.M.  There is a pretty high likelihood that if you can do it in Linux, you can do it in a zone/container.&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
&lt;br /&gt;
Setting and configurations based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
# You know how to add users and set permissions on a directory.&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is used in this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...substitute whatever name you feel appropriate, where it&#039;s appropriate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
&lt;br /&gt;
===Download the template file===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create the zone===&lt;br /&gt;
&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=Linux_Active_Directory_How-To&amp;diff=11649</id>
		<title>Linux Active Directory How-To</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Linux_Active_Directory_How-To&amp;diff=11649"/>
		<updated>2009-10-30T15:14:41Z</updated>

		<summary type="html">&lt;p&gt;Butch: Edited markup, and content&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Linux Active Directory How-To&lt;br /&gt;
&lt;br /&gt;
==Document scope==&lt;br /&gt;
&lt;br /&gt;
This document briefly describes how to configure a GNU/Linux machine to authenticate users against a &lt;br /&gt;
Microsoft Windows Server 2003 Active Directory Server.&lt;br /&gt;
&lt;br /&gt;
The idea behind this is to use Windows 2003 ADS (and possibly later versions) to authenticate a foreign user and allow him/her to use a Linux machine which is a member of the Windows domain, without having to create a user account manually on the Linux machine.  This is very useful when you have large numbers of machines and users.  &lt;br /&gt;
&lt;br /&gt;
If everything works as it should, then you only need to configure the users on the Active Directory Server.  The users can then walk up to any machine on the network and log on.  If a user never used that machine before, a user account will be magically created.  The magic trick is known as Single Sign-On (SSO).&lt;br /&gt;
&lt;br /&gt;
The whole process is rather complicated and relies on a number of subsystems working together:&lt;br /&gt;
* Pluggable Authentication Modules (PAM)&lt;br /&gt;
* Server Message Block (SMB, Samba)&lt;br /&gt;
* WinBIND (part of Samba)&lt;br /&gt;
* Kerberos 5 (By MIT, with Microsoft compatibility hacks)&lt;br /&gt;
&lt;br /&gt;
The biggest problem is configuring Samba and determining exactly what identifiers and spelling to use where, since Kerberos and NETBIOS are fond of uppercase, while everything else prefers lowercase. &lt;br /&gt;
&lt;br /&gt;
Of course, nothing works, until every last little detail is correct, so these and other subtleties can lead to many hours of happy debugging and experimenting before everything suddenly begins to work.&lt;br /&gt;
Just about every imaginable error message was discovered the hard way and they were all documented in the references below.  Of course, since you will be following this great guide, you wont ever see them - let&#039;s hope anyway.&lt;br /&gt;
&lt;br /&gt;
Note that everything here was tested on Linux, but it should also apply almost directly to Solaris, since Samba is cross platform.&lt;br /&gt;
&lt;br /&gt;
==Referenced Documents==&lt;br /&gt;
&lt;br /&gt;
* Chapter 6. Domain membership part II, Server configuration basics: HTTP://us4.samba.org/samba/docs/man/samba-howto-collection/domain-member.html#ads-member&lt;br /&gt;
&lt;br /&gt;
* Chapter 24. Winbind: Use of Domain Accounts Part III.  Advanced Configuration, HTTP://us4.samba.org/samba/docs/man/samba-howto-collection/winbind.html&lt;br /&gt;
&lt;br /&gt;
* Kerberos Administration Guide, HTTP://web.mit.edu/kerberos/krb5-1.3/krb5-1.3/doc/krb5-admin.html&lt;br /&gt;
&lt;br /&gt;
* Linux PAM, HTTP://www.kernel.org/pub/linux/libs/pam3.  &lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
&lt;br /&gt;
We want to use the Windows 2003 Active Directory Server (ADS) to authenticate a foreign user and allow him or her to use a Linux machine which is a member of the Windows domain.  Initially, the user jdoe doesn&#039;t exist on the Linux machine.  We want to use Winbind and Samba to assign a UID and GID from a pool of reserve numbers and create a home directory automatically under /home/winnt for this foreign user.  This will (hopefully) allow jdoe to walk up to the Linux machine, log in and use it to run X applications, without ever having been manually configured on it.  &lt;br /&gt;
&lt;br /&gt;
This guide assumes that you already have a Windows ADS running.  First verify a few things on the Windows ADS machine and note that the NETBIOS work group must be uppercase:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
NETBIOS Workgroup:  YOURWORKGROUPNAME&lt;br /&gt;
Domain name: example.com&lt;br /&gt;
Fully qualified domain host name: msads.example.com&lt;br /&gt;
User name defined in ADS: jdoe&lt;br /&gt;
User password: jdoe123&lt;br /&gt;
User primary group: winusergrp&lt;br /&gt;
Administrator name: Administrator&lt;br /&gt;
Administrator password: Supersecret&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This illustrates some weird points.  Rather confusingly, the MS Windows NETBIOS work group, is also referred to as the domain name in MS Windows documentation.  The NETBIOS work group is actually used more often than the real domain name, so when in doubt, use the NETBIOS work group, since it will usually be the correct one for the occasion.  &lt;br /&gt;
&lt;br /&gt;
The MS Windows user name, will become work group+user name on Linux, and the Windows primary group, will become the work group+group name on Linux.&lt;br /&gt;
&lt;br /&gt;
===Kerberos===&lt;br /&gt;
&lt;br /&gt;
Kerberos is configured in the file /etc/krb5.conf.  Verify the following lines and not the UPPERCASE domain name:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[libdefaults]&lt;br /&gt;
default_realm = EXAMPLE.COM&lt;br /&gt;
[realms]&lt;br /&gt;
EXAMPLE.COM = &lt;br /&gt;
  {&lt;br /&gt;
  kdc = msads.example.com&amp;gt;&lt;br /&gt;
  }&lt;br /&gt;
[domain_realms]&lt;br /&gt;
.kerberos.server = EXAMPLE.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that Kerberos requires that the clocks of the machines in the domain are synchronized in time. The default maximum skew allowed is 5 minutes.  Windows and Linux handle times differently. UNIX is UTC based, and Windows is local time zone based, so be careful.  Configuring NTP is necessary, but is also beyond the scope of this document.&lt;br /&gt;
&lt;br /&gt;
===Nsswitch Configuration===&lt;br /&gt;
&lt;br /&gt;
Verify the following lines in /etc/nsswitch.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
passwd: files winbind&lt;br /&gt;
shadow: files winbind&lt;br /&gt;
group: files winbind&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You may need to run ldconfig to set up the winbind libraries:&lt;br /&gt;
&lt;br /&gt;
user@comp# ldconfig -v |grep winbind&lt;br /&gt;
&lt;br /&gt;
Since nothing was working at the time, I cannot tell whether that was really a required step.&lt;br /&gt;
&lt;br /&gt;
===Samba configuration===&lt;br /&gt;
&lt;br /&gt;
Here&#039;s the [global] section from smb.conf:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[global]&lt;br /&gt;
workgroup = YOURWORKGROUPNAME&lt;br /&gt;
realm = EXAMPLE.COM&lt;br /&gt;
preferred master = no&lt;br /&gt;
server string = Samba Server&lt;br /&gt;
security = ADS&lt;br /&gt;
encrypt passwords = yes&lt;br /&gt;
log level = 3&lt;br /&gt;
log file = /var/log/samba/%m&lt;br /&gt;
max log size = 50&lt;br /&gt;
winbind separator = +&lt;br /&gt;
printcap name = cups&lt;br /&gt;
printing = cups&lt;br /&gt;
idmap uid = 10000-20000&lt;br /&gt;
idmap gid = 10000-20000&lt;br /&gt;
template homedir /home/winnt/%D/%U&lt;br /&gt;
template shell = /bin/false&lt;br /&gt;
add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s /bin/false -M %u&lt;br /&gt;
password server = msads.example.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The /bin/false shell will prevent foreign domain users from opening a command shell and is recommended for security.&lt;br /&gt;
&lt;br /&gt;
The default Windind separator is a backslash, but that doesn&#039;t work well, since it is a reserve character on UNIX/Linux.  The general rule is to change it to a &#039;+&#039;.&lt;br /&gt;
&lt;br /&gt;
===Ethernet configuration===&lt;br /&gt;
&lt;br /&gt;
You have to set the ADS machine as (one of) the DNS in /etc/resolv.conf, to enable the Linux machine to find the Kerberos and LDAP servers on the ADS.  Verify the ethernet and DNS setting with ifconfig and nslookup.&lt;br /&gt;
&lt;br /&gt;
===Join the Domain===&lt;br /&gt;
&lt;br /&gt;
First restart the network and Samba:&lt;br /&gt;
&lt;br /&gt;
user@comp # service network restart&amp;lt;br /&amp;gt;&lt;br /&gt;
user@comp # service smb restart&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Verify that smbd and nmbd are running with&lt;br /&gt;
&lt;br /&gt;
user@comp # ps e&lt;br /&gt;
&lt;br /&gt;
Try to join the Windows Domain:&lt;br /&gt;
&lt;br /&gt;
user@comp # net ads join -S msads.example.com -U administrator%Supersecret&lt;br /&gt;
&lt;br /&gt;
You should get the message: &amp;quot;Joined LINUXMACHINE to realm EXAMPLE.COM&amp;quot;, at which point most joyful celebrations are in order.&lt;br /&gt;
&lt;br /&gt;
You can now start the Winbind daemon with the maximum debug information:&lt;br /&gt;
&lt;br /&gt;
user@comp # winbindd -d 10&lt;br /&gt;
&lt;br /&gt;
 Watch /var/log/messages for errors:&lt;br /&gt;
&lt;br /&gt;
user@comp # tail -f /var/log/messages&lt;br /&gt;
&lt;br /&gt;
You can investigate the domain records with:&lt;br /&gt;
&lt;br /&gt;
user@comp # wbinfo -u&amp;lt;br /&amp;gt;&lt;br /&gt;
user@comp # whinfo -g&amp;lt;br /&amp;gt;&lt;br /&gt;
user@comp # getent password&amp;lt;br /&amp;gt;&lt;br /&gt;
user@comp # getent group&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With those utilities, you should be able to see the user names and groups in the domain that you just joined.  User YOURWORKGROUPNAME+jdoe and the group &lt;br /&gt;
YOURWORKGROUPNAME+winusergrp should be listed.&lt;br /&gt;
&lt;br /&gt;
===Kerberos and error messages===&lt;br /&gt;
&lt;br /&gt;
If you get the message: Cannot find KDC for requested realm, then either the password server in smb.conf is wrong, or the DNS setting in resolv.conf is wrong.  &lt;br /&gt;
&lt;br /&gt;
If you get the message: KRB5 error code 68 while getting the initial credentials, then the Linux machine can talk to the ADS machine, but your Kerberos realm name in smb.conf is wrong.&lt;br /&gt;
&lt;br /&gt;
If you get the message: The workgroup in smb.conf does not match the short domain name obtained from the server, then you did not specify the NETBIOS name properly.&lt;br /&gt;
&lt;br /&gt;
--&amp;lt;br /&amp;gt;&lt;br /&gt;
[[User:Butch| Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5942</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5942"/>
		<updated>2009-10-29T20:39:42Z</updated>

		<summary type="html">&lt;p&gt;Butch: Content reconstructed, added multiple hyperlinks, edited content&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==What this document is==&lt;br /&gt;
&lt;br /&gt;
This is a brief how to on settting up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  (That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6).  The goal here is to facilitate a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  There is a great deal more to the technology than I&#039;m even going to begin to cover in this write up.  If you want to know more about lx26 zones, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
These instructions are not meant for Amazon&#039;s EC2 cloud architecture as written.  It can be done however the details of such are well beyond the scope or intent of this document.&lt;br /&gt;
&lt;br /&gt;
==Document Conventions==&lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine”, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to VirtualBox, or the Xen and vmWare hypervisors.  In the latter 3 cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
==Why I wrote this document, and why you should consider OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
Q. Why did I write this?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. Several reasons, here are a few of them.  &lt;br /&gt;
* First and foremost, choice:  OpenSolaris is a tool to be used in whatever endeavor you may want to tackle with it.  In the context of this article, using it as a platform for VistA.&lt;br /&gt;
* To inform:  Relatively few people know anything about OpenSolaris and even fewer even know that it exists.  This is something I think that it shares with VistA.  They are both extremely powerful software environments, and are so expansive that it would be nearly impossible for any one person to know everything.  That very expansiveness fosters a community of users, from all parts of the world.  &lt;br /&gt;
* To share: I have been using OpenSolaris for over a year now, and previously used Solaris 10 since 2007.  I have gained a lot of experience with the OS, and think that I may be able to provide help and insight as to different ways to attack a given problem. &lt;br /&gt;
&lt;br /&gt;
Q. Why should you consider OpenSolaris?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. I think a better question might be, why &#039;&#039;&#039;&#039;&#039;shouldn&#039;t&#039;&#039;&#039;&#039;&#039; you try OpenSolaris.  If your reading this than you must be at least slightly interested, so here are a few reasons why you should try it.&lt;br /&gt;
 &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris] was designed from the beginning for enterprise computing.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] &amp;quot;The last word in filesystems!&amp;quot;&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+dtrace/dtracetoolkit Dtrace] Wanna know what your program is doing?  Add a couple of dtrace probes, and see things that have never been possible before.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+xen/WebHome xVM] The OpenSolaris version of the popular Xen hypervisor.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zones/WebHome Zones/Containers].  OS level virtualization, zones allow for completely isolated instances for running software.  This is similar to the xVM hypervisor in that it allows absolute containment of applications and utilities, the biggest difference being, xVM requires a separate kernel, and running operating system.  Zones utilize a single operating system instance, and don&#039;t incur the overhead associated with a hypervisor based model.  However, xVM and Zones are &#039;&#039;NOT&#039;&#039; mutually exclusive, and work quite well in parallel.  Zones are the main focus of this document.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow]:  The new virtualized networking stack built into the current released of OpenSolaris&lt;br /&gt;
* Support:  You can get help from the [http://opensolaris.org/jive/index.jspa forums], [http://www.sun.com/service/opensolaris/ support contracts] from Sun, and as with most any other question, [http://www.google.com Google] is an invaluable resource.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome BrandZ]: An extension of the zone/container framework.  Designed to support Linux applications on the OpenSolaris platform.  People have run apps, ranging from Apache for Linux, to Unreal Tournament 2004 (playable with audio), to modern day game servers, to GT.M.  There is a pretty high likelihood that if you can do it in Linux, you can do it in a zone/container.&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
&lt;br /&gt;
Setting and configurations based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
# You know how to add users and set permissions on a directory.&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is used in this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...substitute whatever name you feel appropriate, where it&#039;s appropriate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
&lt;br /&gt;
===Download the template file===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create the zone===&lt;br /&gt;
&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5940</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5940"/>
		<updated>2009-10-29T20:18:36Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* What this document is not */  Edited for content&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Document Scope==&lt;br /&gt;
&lt;br /&gt;
This document describes how to set up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6 The goal is facilitating a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazon&#039;s EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  If you would like information regarding the advanced virtualized networking features of OpenSolaris, check out the [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow project].&lt;br /&gt;
&lt;br /&gt;
==Why I wrote this document, and why you should consider OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
Q. Why did I write this?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. Several reasons, here are a few of them.  &lt;br /&gt;
* First and foremost, choice:  OpenSolaris is a tool to be used in whatever endeavor you may want to tackle with it.  In the context of this article, using it as a platform for VistA.&lt;br /&gt;
* To inform:  Relatively few people know anything about OpenSolaris and even fewer even know that it exists.  This is something I think that it shares with VistA.  They are both extremely powerful software environments, and are so expansive that it would be nearly impossible for any one person to know everything.  That very expansiveness fosters a community of users, from all parts of the world.  &lt;br /&gt;
* To share: I have been using OpenSolaris for over a year now, and previously used Solaris 10 since 2007.  I have gained a lot of experience with the OS, and think that I may be able to provide help and insight as to different ways to attack a given problem. &lt;br /&gt;
&lt;br /&gt;
Q. Why should you consider OpenSolaris?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. I think a better question might be, why &#039;&#039;&#039;&#039;&#039;shouldn&#039;t&#039;&#039;&#039;&#039;&#039; you try OpenSolaris.  If your reading this than you must be at least slightly interested, so here are a few reasons why you should try it.&lt;br /&gt;
 &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris] was designed from the beginning for enterprise computing.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] &amp;quot;The last word in filesystems!&amp;quot;&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+dtrace/dtracetoolkit Dtrace] Wanna know what your program is doing?  Add a couple of dtrace probes, and see things that have never been possible before.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+xen/WebHome xVM] The OpenSolaris version of the popular Xen hypervisor.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zones/WebHome Zones/Containers].  OS level virtualization, zones allow for completely isolated instances for running software.  This is similar to the xVM hypervisor in that it allows absolute containment of applications and utilities, the biggest difference being, xVM requires a separate kernel, and running operating system.  Zones utilize a single operating system instance, and don&#039;t incur the overhead associated with a hypervisor based model.  However, xVM and Zones are &#039;&#039;NOT&#039;&#039; mutually exclusive, and work quite well in parallel.  Zones are the main focus of this document.&lt;br /&gt;
* Support:  You can get help from the [http://opensolaris.org/jive/index.jspa forums], [http://www.sun.com/service/opensolaris/ support contracts] from Sun, and as with most any other question, [http://www.google.com Google] is an invaluable resource.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome BrandZ]: An extension of the zone/container framework.  Designed to support Linux applications on the OpenSolaris platform.  People have run apps, ranging from Apache for Linux, to Unreal Tournament 2004 (playable with audio), to modern day game servers, to GT.M.  There is a pretty high likelihood that if you can do it in Linux, you can do it in a zone/container.&lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  There is a great deal more to the technology than I&#039;m even going to begin to cover in this write up.  If you want to know more about lx26 zones, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is set aside for this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
===Download the template file===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Create the zone===&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5939</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5939"/>
		<updated>2009-10-29T20:14:25Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* Why I wrote this document, and why you should consider OpenSolaris */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Document Scope==&lt;br /&gt;
&lt;br /&gt;
This document describes how to set up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6 The goal is facilitating a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazon&#039;s EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  If you would like information regarding the advanced virtualized networking features of OpenSolaris, check out the [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow project].&lt;br /&gt;
&lt;br /&gt;
==Why I wrote this document, and why you should consider OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
Q. Why did I write this?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. Several reasons, here are a few of them.  &lt;br /&gt;
* First and foremost, choice:  OpenSolaris is a tool to be used in whatever endeavor you may want to tackle with it.  In the context of this article, using it as a platform for VistA.&lt;br /&gt;
* To inform:  Relatively few people know anything about OpenSolaris and even fewer even know that it exists.  This is something I think that it shares with VistA.  They are both extremely powerful software environments, and are so expansive that it would be nearly impossible for any one person to know everything.  That very expansiveness fosters a community of users, from all parts of the world.  &lt;br /&gt;
* To share: I have been using OpenSolaris for over a year now, and previously used Solaris 10 since 2007.  I have gained a lot of experience with the OS, and think that I may be able to provide help and insight as to different ways to attack a given problem. &lt;br /&gt;
&lt;br /&gt;
Q. Why should you consider OpenSolaris?&amp;lt;br /&amp;gt;&lt;br /&gt;
A. I think a better question might be, why &#039;&#039;&#039;&#039;&#039;shouldn&#039;t&#039;&#039;&#039;&#039;&#039; you try OpenSolaris.  If your reading this than you must be at least slightly interested, so here are a few reasons why you should try it.&lt;br /&gt;
 &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris] was designed from the beginning for enterprise computing.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] &amp;quot;The last word in filesystems!&amp;quot;&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+dtrace/dtracetoolkit Dtrace] Wanna know what your program is doing?  Add a couple of dtrace probes, and see things that have never been possible before.&lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+xen/WebHome xVM] The OpenSolaris version of the popular Xen hypervisor.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+zones/WebHome Zones/Containers].  OS level virtualization, zones allow for completely isolated instances for running software.  This is similar to the xVM hypervisor in that it allows absolute containment of applications and utilities, the biggest difference being, xVM requires a separate kernel, and running operating system.  Zones utilize a single operating system instance, and don&#039;t incur the overhead associated with a hypervisor based model.  However, xVM and Zones are &#039;&#039;NOT&#039;&#039; mutually exclusive, and work quite well in parallel.  Zones are the main focus of this document.&lt;br /&gt;
* Support:  You can get help from the [http://opensolaris.org/jive/index.jspa forums], [http://www.sun.com/service/opensolaris/ support contracts] from Sun, and as with most any other question, [http://www.google.com Google] is an invaluable resource.  &lt;br /&gt;
* [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome BrandZ]: An extension of the zone/container framework.  Designed to support Linux applications on the OpenSolaris platform.  People have run apps, ranging from Apache for Linux, to Unreal Tournament 2004 (playable with audio), to modern day game servers, to GT.M.  There is a pretty high likelihood that if you can do it in Linux, you can do it in a zone/container.&lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  If you want to know more about lx26 zones in OpenSolaris, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is set aside for this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
===Download the template file===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Create the zone===&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5938</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5938"/>
		<updated>2009-10-29T19:02:20Z</updated>

		<summary type="html">&lt;p&gt;Butch: Added section Why I wrote this&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Document Scope==&lt;br /&gt;
&lt;br /&gt;
This document describes how to set up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6 The goal is facilitating a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazon&#039;s EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  If you would like information regarding the advanced virtualized networking features of OpenSolaris, check out the [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow project].&lt;br /&gt;
&lt;br /&gt;
==Why I wrote this document, and why you should consider OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  If you want to know more about lx26 zones in OpenSolaris, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is set aside for this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
===Download the template file===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Create the zone===&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5937</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5937"/>
		<updated>2009-10-29T19:00:07Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* Finishing up */ Content edit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Document Scope==&lt;br /&gt;
&lt;br /&gt;
This document describes how to set up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6 The goal is facilitating a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazon&#039;s EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  If you would like information regarding the advanced virtualized networking features of OpenSolaris, check out the [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow project].&lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  If you want to know more about lx26 zones in OpenSolaris, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is set aside for this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
===Download the template file===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Create the zone===&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Now your zone is ready to take for a spin.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5936</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5936"/>
		<updated>2009-10-29T18:54:53Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* Finishing up */ Added hyperlink, edited text for content&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Document Scope==&lt;br /&gt;
&lt;br /&gt;
This document describes how to set up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6 The goal is facilitating a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazon&#039;s EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  If you would like information regarding the advanced virtualized networking features of OpenSolaris, check out the [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow project].&lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  If you want to know more about lx26 zones in OpenSolaris, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is set aside for this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
===Download the template file===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Create the zone===&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  Current testing shows no negative impact on [http://en.wikipedia.org/wiki/RPM_Package_Manager rpm] based VistA installations.&lt;br /&gt;
&lt;br /&gt;
Ok, that&#039;s it.  Even though this document was written with installing VistA in mind, you now have a Linux 2.6 environment you can use for most anything you want.  There are some additional steps that need to be undertaken if you want to use audio programs and such, much of that is covered in the forums [http://opensolaris.org/jive/index.jspa here].  The next section has some very brief information about installing VistA inside of the completed zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5935</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5935"/>
		<updated>2009-10-29T18:50:12Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* Pre-boot zone setup */Fixed line wrap&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Document Scope==&lt;br /&gt;
&lt;br /&gt;
This document describes how to set up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6 The goal is facilitating a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazon&#039;s EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  If you would like information regarding the advanced virtualized networking features of OpenSolaris, check out the [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow project].&lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  If you want to know more about lx26 zones in OpenSolaris, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is set aside for this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
===Download the template file===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Create the zone===&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  &lt;br /&gt;
I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  &lt;br /&gt;
&lt;br /&gt;
Ok, thats it.  The zone is now usable for most anything you want to use it for.  The next section has some very brief information about installing VistA inside a zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5934</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5934"/>
		<updated>2009-10-29T18:48:22Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* What&amp;#039;s needed */Added hyperlinks, edited text&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Document Scope==&lt;br /&gt;
&lt;br /&gt;
This document describes how to set up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6 The goal is facilitating a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazon&#039;s EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  If you would like information regarding the advanced virtualized networking features of OpenSolaris, check out the [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow project].&lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  If you want to know more about lx26 zones in OpenSolaris, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
# You need to be aware that the terms Zones and Containers are often used interchangeably, the difference being a container is a zone with resource management tools applied.  [http://hub.opensolaris.org/bin/view/Project+rm/WebHome Resource management] is not covered in this document.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is set aside for this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
===Download the template file===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Create the zone===&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  &lt;br /&gt;
&lt;br /&gt;
Ok, thats it.  The zone is now usable for most anything you want to use it for.  The next section has some very brief information about installing VistA inside a zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5933</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5933"/>
		<updated>2009-10-29T18:42:57Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* Document Scope */Added hyperlinks and edited text&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Document Scope==&lt;br /&gt;
&lt;br /&gt;
This document describes how to set up [http://hub.opensolaris.org/bin/view/Community+Group+brandz/WebHome lx26 zones] on [http://hub.opensolaris.org/bin/view/Main/ OpenSolaris].  That&#039;s a lower case &amp;quot;L&amp;quot; and is a reference to LinuX kernel 2.6 The goal is facilitating a Linux based VistA implementation on x86, and x64 OpenSolaris platforms.  SPARC based systems are not covered.  &lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned [http://hub.opensolaris.org/bin/view/Community+Group+security/rbac RBAC] privileges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazon&#039;s EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  If you would like information regarding the advanced virtualized networking features of OpenSolaris, check out the [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow project].&lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  If you want to know more about lx26 zones in OpenSolaris, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is set aside for this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
===Download the template file===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Create the zone===&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  &lt;br /&gt;
&lt;br /&gt;
Ok, thats it.  The zone is now usable for most anything you want to use it for.  The next section has some very brief information about installing VistA inside a zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5932</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5932"/>
		<updated>2009-10-29T18:32:11Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* Assumptions */ Added hyperlinks and updated text&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Document Scope==&lt;br /&gt;
&lt;br /&gt;
This document describes how to set up lx26 (that&#039;s a lower case &amp;quot;L&amp;quot; as in &amp;quot;Linux, kernel 26&amp;quot;) zones on OpenSolaris, with the goal of installing a Linux based VistA implementation.  This information applies to OpenSolaris on the x86, and x64 platforms.  SPARC based systems are not covered.&lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned RBAC privileges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazon&#039;s EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  If you would like information regarding the advanced virtualized networking features of OpenSolaris, check out the [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow project].&lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  If you want to know more about lx26 zones in OpenSolaris, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You are using a network [http://docs.sun.com/app/docs/doc/819-6990/gdysx?l=en&amp;amp;a=view&amp;amp;q=Link+aggregation link aggregation] (also known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that is set aside for this demo is 192.168.1.7/24, this is the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.  Use a naming scheme that works for you.  This is purely preferential. &lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
===Download the template file===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Create the zone===&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  &lt;br /&gt;
&lt;br /&gt;
Ok, thats it.  The zone is now usable for most anything you want to use it for.  The next section has some very brief information about installing VistA inside a zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5931</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5931"/>
		<updated>2009-10-29T18:28:30Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* What&amp;#039;s needed */ Added new hyperlinks and expanded text&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Document Scope==&lt;br /&gt;
&lt;br /&gt;
This document describes how to set up lx26 (that&#039;s a lower case &amp;quot;L&amp;quot; as in &amp;quot;Linux, kernel 26&amp;quot;) zones on OpenSolaris, with the goal of installing a Linux based VistA implementation.  This information applies to OpenSolaris on the x86, and x64 platforms.  SPARC based systems are not covered.&lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned RBAC privileges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazon&#039;s EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  If you would like information regarding the advanced virtualized networking features of OpenSolaris, check out the [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow project].&lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  If you want to know more about lx26 zones in OpenSolaris, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  At the time of this writing you can download the tarball right [http://download.openvz.org/template/precreated/centos-5-x86.tar.gz here].  Note that 64-bit support is still in development and currently unstable.&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  After complete setup I&#039;ve personally found that 6Gb is enough space when using [http://hub.opensolaris.org/bin/view/Community+Group+zfs/WebHome ZFS] compression.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems. (IP, hostnames, etc.)  This is no different than if you were using Xen or vmWare. &lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system, or if you want to boot them manually after system start up.  In a testing environment this is purely a matter of preference.  &lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You are using a network link aggregation (known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that set aside for this is 192.168.1.7/24, it is also the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.&lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
===Download the template file===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Create the zone===&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  &lt;br /&gt;
&lt;br /&gt;
Ok, thats it.  The zone is now usable for most anything you want to use it for.  The next section has some very brief information about installing VistA inside a zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5930</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5930"/>
		<updated>2009-10-29T18:13:31Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* What this document is not */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Document Scope==&lt;br /&gt;
&lt;br /&gt;
This document describes how to set up lx26 (that&#039;s a lower case &amp;quot;L&amp;quot; as in &amp;quot;Linux, kernel 26&amp;quot;) zones on OpenSolaris, with the goal of installing a Linux based VistA implementation.  This information applies to OpenSolaris on the x86, and x64 platforms.  SPARC based systems are not covered.&lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned RBAC privileges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazon&#039;s EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  If you would like information regarding the advanced virtualized networking features of OpenSolaris, check out the [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow project].&lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  If you want to know more about lx26 zones in OpenSolaris, you can find lots of information [http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6 here].&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  That can be gotten from the OpenVZ website. (64-bit support is still in the works and as far as I know unstable)&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems.  (IP, hostnames, etc.)&lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system?&lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You are using a network link aggregation (known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that set aside for this is 192.168.1.7/24, it is also the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.&lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
===Download the template file===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Create the zone===&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  &lt;br /&gt;
&lt;br /&gt;
Ok, thats it.  The zone is now usable for most anything you want to use it for.  The next section has some very brief information about installing VistA inside a zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5929</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5929"/>
		<updated>2009-10-29T18:09:58Z</updated>

		<summary type="html">&lt;p&gt;Butch: /* Document Scope */ added link for Crossbow&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Document Scope==&lt;br /&gt;
&lt;br /&gt;
This document describes how to set up lx26 (that&#039;s a lower case &amp;quot;L&amp;quot; as in &amp;quot;Linux, kernel 26&amp;quot;) zones on OpenSolaris, with the goal of installing a Linux based VistA implementation.  This information applies to OpenSolaris on the x86, and x64 platforms.  SPARC based systems are not covered.&lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned RBAC privileges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazon&#039;s EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  If you would like information regarding the advanced virtualized networking features of OpenSolaris, check out the [http://hub.opensolaris.org/bin/view/Project+crossbow/WebHome Crossbow project].&lt;br /&gt;
&lt;br /&gt;
==What this document is not==&lt;br /&gt;
This document is not meant to be the be-all-end-all of zone documentation.  If you want to know more about zones in OpenSolaris go here: http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6&lt;br /&gt;
&lt;br /&gt;
==What&#039;s needed==&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
# Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
# You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
# You need to have a 32bit CentOS 5.x filesystem tarball.  That can be gotten from the OpenVZ website. (64-bit support is still in the works and as far as I know unstable)&lt;br /&gt;
# You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.&lt;br /&gt;
# You need to obtain a unique static IP address for each zone.&lt;br /&gt;
# You need to decide how your going to name your zones.  Zones are a method of virtualization, and should be treated as if they were individual systems.  (IP, hostnames, etc.)&lt;br /&gt;
# You need to decide if you want the zones to start up on boot of the main system?&lt;br /&gt;
# You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
# You are using a network link aggregation (known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
# The IP address that set aside for this is 192.168.1.7/24, it is also the IP that will be used throughout these examples. &lt;br /&gt;
# The fs path I used for the zone files is, /zones ( I know it just reeks of creativity :) &lt;br /&gt;
# For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone whatever the hostname of the “virtual machine” will be.&lt;br /&gt;
# The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
# The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
==Setting up the virtualization environment==&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support &lt;br /&gt;
===Download the template file===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /etc/zones&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Create the zone===&lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Install the zone:===&lt;br /&gt;
&lt;br /&gt;
====Download and install a CentOS 5.x tarball====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# cd /export/home/butch/software/&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on your computer&#039;s overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
====Pre-boot zone setup====&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
====Booting and logging in to the zone====&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way is to reset the root password to something of a known value.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Finishing up===&lt;br /&gt;
You can at this point logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  &lt;br /&gt;
&lt;br /&gt;
Ok, thats it.  The zone is now usable for most anything you want to use it for.  The next section has some very brief information about installing VistA inside a zone.&lt;br /&gt;
&lt;br /&gt;
==OpenSolaris Zones and VistA installation overview==&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has its place, and a time to use it.  That however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
===Nancy&#039;s installation instructions===&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
===The Astronaut auto-installer===&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
===The Medsphere installation method=== &lt;br /&gt;
This method is similar to the Astronaut installation method, in that many of the tasks are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages requires manually adding the EPEL software repo as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medsphere&#039;s packages.  &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment does not show problems.  Using these packages within a zone environment is not how they were initially intended to be used.  I am working with the OpenSolaris community as well as Medsphere to try to work these things out, but it&#039;s going to take time. &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing it on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=User:Butch&amp;diff=6690</id>
		<title>User:Butch</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=User:Butch&amp;diff=6690"/>
		<updated>2009-10-26T17:02:41Z</updated>

		<summary type="html">&lt;p&gt;Butch: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;My name is Butch Whitby.  I&#039;ve done a lot of things in my lifetime, including auto mechanics, carpentry, working on computers, and 5 years ago becoming a father.  &lt;br /&gt;
&lt;br /&gt;
I have been working with computers since I was around 8 years old.  I went from playing Kings Quest III, on a dos machine, to learning how to use SCO UNIX, all before I was 10.  I&#039;m not even going to get into my experience with the Commodore 64...and that blasted program where you used the turtle to draw things on screen...then there was the Tandy, with the dual cassette drives...&lt;br /&gt;
&lt;br /&gt;
Over the years I have learned a great deal about computers, and have played around with a lot of hardware, and operating systems.  I use Windows strictly as a gaming platform, and even thats rare anymore.  I have been through probably 2 or 3 dozen different Linux distros over the years.  2 years ago, I finally settled on Solaris 10 as my main OS, and more recently (November 2008) moved to OpenSolaris as my OS of choice.  &lt;br /&gt;
&lt;br /&gt;
I became aware and interested in VistA after meeting Steve Watson, in February 2009.  I became a member of World VistA in June 2009, and have greatly enjoyed the networking, communication, and comradery with everyone else invloved.  &lt;br /&gt;
&lt;br /&gt;
VistA definitely has the potential to change medicine and the way that things are done.  Of that there is no doubt.  Getting it in a useable form, into the hands of the doctors who need it the most.  That is the real challenge.  What I mean by useable form, is when you consider that we live in a Windows world, and there is a GUI for everything...as soon as you present a command line to the average computer user, they are either going to laugh, cry, or ask you whats wrong with your head.  That is the mindset that we often have to deal with.  I don&#039;t mean VistA specifically either.  I&#039;m talking novice computer users in general.  &lt;br /&gt;
&lt;br /&gt;
Great strides are being made with VistA.  I look forward to seeing the day when we succeed, and VistA is THE software of healthcare in the USA.  Not because of a government mandate, that is only going to cause people to try and find something else, out of pure spite.  Because VistA has become the most useable, well polished, and timesaving tool in the modern health practicioners arsenal, and they wouldn&#039;t work without it.&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=User:Butch&amp;diff=5922</id>
		<title>User:Butch</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=User:Butch&amp;diff=5922"/>
		<updated>2009-10-26T16:59:59Z</updated>

		<summary type="html">&lt;p&gt;Butch: Initial profile!&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;My name is Butch Whitby.  I&#039;ve done a lot of things in my lifetime, including auto mechanics, carpentry, working on computers, and 5 years ago becoming a father.  &lt;br /&gt;
&lt;br /&gt;
I have been working with computers since I was around 8 years old.  I went from playing Kings Quest III, on a dos machine, to learning how to use SCO UNIX, all before I was 10.  Over the years I have learned a great deal about computers, and have played around with a lot of hardware, and operating systems.  I use Windows strictly as a gaming platform, and even thats rare anymore.  I have been through probably 2 or 3 dozen different Linux distros over the years.  2 years ago, I finally settled on Solaris 10 as my main OS, and more recently (November 2008) moved to OpenSolaris as my OS of choice.  &lt;br /&gt;
&lt;br /&gt;
I became aware and interested in VistA after meeting Steve Watson, in February 2009.  I became a member of World VistA in June 2009, and have greatly enjoyed the networking, communication, and comradery with everyone else invloved.  &lt;br /&gt;
&lt;br /&gt;
VistA definitely has the potential to change medicine and the way that things are done.  Of that there is no doubt.  Getting it in a useable form, into the hands of the doctors who need it the most.  That is the real challenge.  What I mean by useable form, is when you consider that we live in a Windows world, and there is a GUI for everything...as soon as you present a command line to the average computer user, they are either going to laugh, cry, or ask you whats wrong with your head.  That is the mindset that we often have to deal with.  I don&#039;t mean VistA specifically either.  I&#039;m talking novice computer users in general.  &lt;br /&gt;
&lt;br /&gt;
Great strides are being made with VistA.  I look forward to seeing the day when we succeed, and VistA is THE software of healthcare in the USA.  Not because of a government mandate, that is only going to cause people to try and find something else, out of pure spite.  Because VistA has become the most useable, well polished, and timesaving tool in the modern health practicioners arsenal, and they wouldn&#039;t work without it.&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=Linux_Active_Directory_How-To&amp;diff=5941</id>
		<title>Linux Active Directory How-To</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Linux_Active_Directory_How-To&amp;diff=5941"/>
		<updated>2009-10-26T16:40:58Z</updated>

		<summary type="html">&lt;p&gt;Butch: Fixed some formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Linux Active Directory How-To:&lt;br /&gt;
&lt;br /&gt;
1.  Document scope&lt;br /&gt;
&lt;br /&gt;
This document briefly describes how to configure a GNU/Linux machine to authenticate users against a &lt;br /&gt;
Microsoft Windows Server 2003 Active Directory Server.&lt;br /&gt;
&lt;br /&gt;
The idea behind this is to use Windows 2003 ADS (and possibly later versions) to authenticate a foreign user and allow him/her to use a Linux machine which is a member of the Windows domain, without having to create a user account manually on the Linux machine.  This is very useful when you have large numbers of machines and users.  &lt;br /&gt;
&lt;br /&gt;
If everything works as it should, then you only need to configure the users on the Active Directory Server.  The users can then walk up to any machine on the network and log on.  If a user never used that machine before, a user account will be magically created.  The magic trick is known as Single Sign-On (SSO).&lt;br /&gt;
&lt;br /&gt;
The whole process is rather complicated and relies on a number of subsystems working together:&lt;br /&gt;
* Pluggable Authentication Modules (PAM)&lt;br /&gt;
* Server Message Block (SMB, Samba)&lt;br /&gt;
* WinBIND (part of Samba)&lt;br /&gt;
* Kerberos 5 (By MIT, with Microsoft compatibility hacks)&lt;br /&gt;
&lt;br /&gt;
The biggest problem is configuring Samba and determining exactly what identifiers and spelling to use where, since Kerberos and NETBIOS are fond of uppercase, while everything else prefers lowercase. &lt;br /&gt;
&lt;br /&gt;
Of course, nothing works, until every last little detail is correct, so these and other subtleties can lead to many hours of happy debugging and experimenting before everything suddenly begins to work.&lt;br /&gt;
Just about every imaginable error message was discovered the hard way and they were all documented in the references below.  Of course, since you will be following this great guide, you wont ever see them - let&#039;s hope anyway.&lt;br /&gt;
&lt;br /&gt;
Note that everything here was tested on Linux, but it should also apply almost directly to Solaris, since Samba is cross platform.&lt;br /&gt;
&lt;br /&gt;
2. Referenced Documents&lt;br /&gt;
&lt;br /&gt;
Chapter 6. Domain membership part II, Server configuration basics: &lt;br /&gt;
HTTP://us4.samba.org/samba/docs/man/samba-howto-collection/domain-member.html#ads-member&lt;br /&gt;
&lt;br /&gt;
Chapter 24. Winbind: Use of Domain Accounts Part III.  Advanced Configuration, &lt;br /&gt;
HTTP://us4.samba.org/samba/docs/man/samba-howto-collection/winbind.html&lt;br /&gt;
&lt;br /&gt;
Kerberos Administration Guide, HTTP://web.mit.edu/kerberos/krb5-1.3/krb5-1.3/doc/krb5-admin.html&lt;br /&gt;
&lt;br /&gt;
Linux PAM, HTTP://www.kernel.org/pub/linux/libs/pam3.  &lt;br /&gt;
&lt;br /&gt;
3. Configuration&lt;br /&gt;
&lt;br /&gt;
We want to use the Windows 2003 Active Directory Server (ADS) to authenticate a foreign user and allow him or her to use a Linux machine which is a member of the Windows domain.  Initially, the user jdoe doesn&#039;t exist on the Linux machine.  We want to use Winbind and Samba to assign a UID and GID from a pool of reserve numbers and create a home directory automatically under /home/winnt for this foreign user.  This will (hopefully) allow jdoe to walk up to the Linux machine, log in and use it to run X applications, without ever having been manually configured on it.  &lt;br /&gt;
&lt;br /&gt;
This guide assumes that you already have a Windows ADS running.  First verify a few things on the Windows ADS machine and note that the NETBIOS work group must be uppercase:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
NETBIOS Workgroup:  YOURWORKGROUPNAME&lt;br /&gt;
Domain name: example.com&lt;br /&gt;
Fully qualified domain host name: msads.example.com&lt;br /&gt;
User name defined in ADS: jdoe&lt;br /&gt;
User password: jdoe123&lt;br /&gt;
User primary group: winusergrp&lt;br /&gt;
Administrator name: Administrator&lt;br /&gt;
Administrator password: Supersecret&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This illustrates some weird points.  Rather confusingly, the MS Windows NETBIOS work group, is also referred to as the domain name in MS Windows documentation.  The NETBIOS work group is actually used more often than the real domain name, so when in doubt, use the NETBIOS work group, since it will usually be the correct one for the occasion.  &lt;br /&gt;
&lt;br /&gt;
The MS Windows user name, will become work group+user name on Linux, and the Windows primary group, will become the work group+group name on Linux.&lt;br /&gt;
&lt;br /&gt;
3.1  Kerberos&lt;br /&gt;
&lt;br /&gt;
Kerberos is configured in the file /etc/krb5.conf.  Verify the following lines and not the UPPERCASE domain name:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[libdefaults]&lt;br /&gt;
default_realm = EXAMPLE.COM&lt;br /&gt;
[realms]&lt;br /&gt;
EXAMPLE.COM = &lt;br /&gt;
  {&lt;br /&gt;
  kdc = msads.example.com&amp;gt;&lt;br /&gt;
  }&lt;br /&gt;
[domain_realms]&lt;br /&gt;
.kerberos.server = EXAMPLE.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that Kerberos requires that the clocks of the machines in the domain are synchronized in time. The default maximum skew allowed is 5 minutes.  Windows and Linux handle times differently. UNIX is UTC based, and Windows is local time zone based, so be careful.  Configuring NTP is necessary, but is also beyond the scope of this document.&lt;br /&gt;
&lt;br /&gt;
3.2  Nsswitch Configuration&lt;br /&gt;
&lt;br /&gt;
Verify the following lines in /etc/nsswitch.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
passwd: files winbind&lt;br /&gt;
shadow: files winbind&lt;br /&gt;
group: files winbind&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You may need to run ldconfig to set up the winbind libraries:&lt;br /&gt;
&lt;br /&gt;
user@comp# ldconfig -v |grep winbind&lt;br /&gt;
&lt;br /&gt;
Since nothing was working at the time, I cannot tell whether that was really a required step.&lt;br /&gt;
&lt;br /&gt;
3.3  Samba configuration&lt;br /&gt;
&lt;br /&gt;
Here&#039;s the [global] section from smb.conf:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[global]&lt;br /&gt;
workgroup = YOURWORKGROUPNAME&lt;br /&gt;
realm = EXAMPLE.COM&lt;br /&gt;
preferred master = no&lt;br /&gt;
server string = Samba Server&lt;br /&gt;
security = ADS&lt;br /&gt;
encrypt passwords = yes&lt;br /&gt;
log level = 3&lt;br /&gt;
log file = /var/log/samba/%m&lt;br /&gt;
max log size = 50&lt;br /&gt;
winbind separator = +&lt;br /&gt;
printcap name = cups&lt;br /&gt;
printing = cups&lt;br /&gt;
idmap uid = 10000-20000&lt;br /&gt;
idmap gid = 10000-20000&lt;br /&gt;
template homedir /home/winnt/%D/%U&lt;br /&gt;
template shell = /bin/false&lt;br /&gt;
add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s /bin/false -M %u&lt;br /&gt;
password server = msads.example.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The /bin/false shell will prevent foreign domain users from opening a command shell and is recommended for security.&lt;br /&gt;
&lt;br /&gt;
The default Windind separator is a backslash, but that doesn&#039;t work well, since it is a reserve character on UNIX/Linux.  The general rule is to change it to a &#039;+&#039;.&lt;br /&gt;
&lt;br /&gt;
3.4  Ethernet configuration&lt;br /&gt;
&lt;br /&gt;
You have to set the ADS machine as (one of) the DNS in /etc/resolv.conf, to enable the Linux machine to find the Kerberos and LDAP servers on the ADS.  Verify the ethernet and DNS setting with ifconfig and nslookup.&lt;br /&gt;
&lt;br /&gt;
3.5  Join the Domain&lt;br /&gt;
&lt;br /&gt;
First restart the network and Samba:&lt;br /&gt;
&lt;br /&gt;
user@comp # service network restart&amp;lt;br /&amp;gt;&lt;br /&gt;
user@comp # service smb restart&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Verify that smbd and nmbd are running with&lt;br /&gt;
&lt;br /&gt;
user@comp # ps e&lt;br /&gt;
&lt;br /&gt;
Try to join the Windows Domain:&lt;br /&gt;
&lt;br /&gt;
user@comp # net ads join -S msads.example.com -U administrator%Supersecret&lt;br /&gt;
&lt;br /&gt;
You should get the message: &amp;quot;Joined LINUXMACHINE to realm EXAMPLE.COM&amp;quot;, at which point most joyful celebrations are in order.&lt;br /&gt;
&lt;br /&gt;
You can now start the Winbind daemon with the maximum debug information:&lt;br /&gt;
&lt;br /&gt;
user@comp # winbindd -d 10&lt;br /&gt;
&lt;br /&gt;
 Watch /var/log/messages for errors:&lt;br /&gt;
&lt;br /&gt;
user@comp # tail -f /var/log/messages&lt;br /&gt;
&lt;br /&gt;
You can investigate the domain records with:&lt;br /&gt;
&lt;br /&gt;
user@comp # wbinfo -u&amp;lt;br /&amp;gt;&lt;br /&gt;
user@comp # whinfo -g&amp;lt;br /&amp;gt;&lt;br /&gt;
user@comp # getent password&amp;lt;br /&amp;gt;&lt;br /&gt;
user@comp # getent group&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With those utilities, you should be able to see the user names and groups in the domain that you just joined.  User YOURWORKGROUPNAME+jdoe and the group &lt;br /&gt;
YOURWORKGROUPNAME+winusergrp should be listed.&lt;br /&gt;
&lt;br /&gt;
3.6  Kerberos and error messages&lt;br /&gt;
&lt;br /&gt;
If you get the message: Cannot find KDC for requested realm, then either the password server in smb.conf is wrong, or the DNS setting in resolv.conf is wrong.  &lt;br /&gt;
&lt;br /&gt;
If you get the message: KRB5 error code 68 while getting the initial credentials, then the Linux machine can talk to the ADS machine, but your Kerberos realm name in smb.conf is wrong.&lt;br /&gt;
&lt;br /&gt;
If you get the message: The workgroup in smb.conf does not match the short domain name obtained from the server, then you did not specify the NETBIOS name properly.&lt;br /&gt;
&lt;br /&gt;
--&amp;lt;br /&amp;gt;&lt;br /&gt;
[[User:Butch| Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5927</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5927"/>
		<updated>2009-10-26T16:28:29Z</updated>

		<summary type="html">&lt;p&gt;Butch: Added signature&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Setting up an lx26 zone on OpenSolaris&lt;br /&gt;
&lt;br /&gt;
Section 1.0&amp;lt;br /&amp;gt;&lt;br /&gt;
Document Scope&lt;br /&gt;
&lt;br /&gt;
This document describes how to setup lx26 zones on OpenSolaris, with the goal of installing a Linux based VistA implementation.  This information applies to OpenSolaris on the x86, and x64 platforms.  SPARC based systems are not covered.&lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned RBAC priveleges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazons EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  &lt;br /&gt;
&lt;br /&gt;
Section 1.1&amp;lt;br /&amp;gt;&lt;br /&gt;
What this document is not&lt;br /&gt;
This document is not meant to be the be all end all, of zone documentation.  If you want to know more about zones in OpenSolaris go here: http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6&lt;br /&gt;
&lt;br /&gt;
Section 1.2&amp;lt;br /&amp;gt;&lt;br /&gt;
Whats needed&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&amp;lt;br /&amp;gt;&lt;br /&gt;
1.Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&amp;lt;br /&amp;gt;&lt;br /&gt;
2.You need internet access on the machine where you will be doing the installation.&amp;lt;br /&amp;gt;&lt;br /&gt;
3.You need to have a 32bit CentOS 5.x filesystem tarball.  That can be gotten from the OpenVZ website. (64-bit support is still in the works and as far as I know unstable)&amp;lt;br /&amp;gt;&lt;br /&gt;
4.You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.&amp;lt;br /&amp;gt;&lt;br /&gt;
5.You need to obtain a unique static IP address for each zone.&amp;lt;br /&amp;gt;&lt;br /&gt;
6.You need to decide how your going to name your zones.  Zones, are a method of virtualization, and should be treated as if they are individual systems.  (IP, hostnames, etc.)&amp;lt;br /&amp;gt;&lt;br /&gt;
7.You need to decide if you want the zones to start up on boot of the main system?&amp;lt;br /&amp;gt;&lt;br /&gt;
8.You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Section 1.3&amp;lt;br /&amp;gt;&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&amp;lt;br /&amp;gt;&lt;br /&gt;
1.You are using a network link aggregation (known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &amp;lt;br /&amp;gt;&lt;br /&gt;
2.The IP address that set aside for this is 192.168.1.7/24, it is also the IP that will be used throughout these examples. &amp;lt;br /&amp;gt;&lt;br /&gt;
3.The fs path I used for the zone files is, /zones ( I know it just reaks of creatvity :) )&amp;lt;br /&amp;gt;&lt;br /&gt;
4.For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone, whatever the hostname of the “virtual machine” will be.&amp;lt;br /&amp;gt;&lt;br /&gt;
5.The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&amp;lt;br /&amp;gt;&lt;br /&gt;
6.The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Section 2.0&amp;lt;br /&amp;gt;&lt;br /&gt;
Setting up the virtualization environment&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support download the template file:&lt;br /&gt;
&lt;br /&gt;
user@computer# cd /etc/zones&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Section 2.1&amp;lt;br /&amp;gt;&lt;br /&gt;
Zone creation and installation &lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&lt;br /&gt;
user@computer# zonecfg -z zone1&amp;lt;br /&amp;gt;&lt;br /&gt;
zone1: No such zone configured&amp;lt;br /&amp;gt;&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Installing the zone:&lt;br /&gt;
&lt;br /&gt;
Download a CentOS 5.x tarball&lt;br /&gt;
&lt;br /&gt;
user@computer# cd /export/home/butch/software/&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&amp;lt;br /&amp;gt;&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Depending on your computers overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
Section 2.2&amp;lt;br /&amp;gt;&lt;br /&gt;
Pre-boot zone setup.&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&amp;lt;br /&amp;gt;&lt;br /&gt;
NETWORKING=yes&amp;lt;br /&amp;gt;&lt;br /&gt;
HOSTNAME=zone1&amp;lt;br /&amp;gt;&lt;br /&gt;
GATEWAY=192.168.1.1&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&amp;lt;br /&amp;gt;&lt;br /&gt;
hosts: files dns nis&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  I used public nameservers for this demo.)&amp;lt;br /&amp;gt;&lt;br /&gt;
domain opendns.org&amp;lt;br /&amp;gt;&lt;br /&gt;
nameserver 208.67.220.220&amp;lt;br /&amp;gt;&lt;br /&gt;
nameserver 208.67.222.222&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Section 2.3&amp;lt;br /&amp;gt;&lt;br /&gt;
Booting and logging in to the zone&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way, is to reset the root password to something of a known value.  &lt;br /&gt;
&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&lt;br /&gt;
You can at this point, logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  &lt;br /&gt;
&lt;br /&gt;
Ok, thats it.  The zone is now useable for most anything you want to use it for.  The next section has some very brief information about installing VistA inside a zone.&lt;br /&gt;
&lt;br /&gt;
Section 3.0&amp;lt;br /&amp;gt;&lt;br /&gt;
OpenSolaris Zones and VistA installation overview&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has it&#039;s place, and a time to use them.  That decision however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
Section 3.1&amp;lt;br /&amp;gt;&lt;br /&gt;
Nancy&#039;s installation instructions&amp;lt;br /&amp;gt;&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&amp;lt;br /&amp;gt;&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
&lt;br /&gt;
Section 3.2&amp;lt;br /&amp;gt;&lt;br /&gt;
The Astronaut auto-installer&amp;lt;br /&amp;gt;&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &amp;lt;br /&amp;gt;&lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
&lt;br /&gt;
Section 3.3&amp;lt;br /&amp;gt;&lt;br /&gt;
The Medsphere installation method.  &amp;lt;br /&amp;gt;&lt;br /&gt;
This method, is similar to the Astronaut installation method, in that many of the tasks involved are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages, involves things like adding the EPEL software repo, as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medspheres packages.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE:&amp;lt;/b&amp;gt;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment do not show any of these problems.  Using these packages within a zone environment, is not how they were initially inteded to be used.  I am working with the OpenSolaris community, as well as Medsphere to try and work these things out, but it&#039;s going to take time.&amp;lt;br /&amp;gt; &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing this on OpenSolaris.&lt;br /&gt;
&lt;br /&gt;
--&amp;lt;br /&amp;gt;&lt;br /&gt;
[[User:Butch | Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=Linux_Active_Directory_How-To&amp;diff=5921</id>
		<title>Linux Active Directory How-To</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Linux_Active_Directory_How-To&amp;diff=5921"/>
		<updated>2009-10-26T16:27:38Z</updated>

		<summary type="html">&lt;p&gt;Butch: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Linux Active Directory How-To:&lt;br /&gt;
&lt;br /&gt;
1.  Document scope&lt;br /&gt;
&lt;br /&gt;
This document briefly describes how to configure a GNU/Linux machine to authenticate users against a &lt;br /&gt;
Microsoft Windows Server 2003 Active Directory Server.&lt;br /&gt;
&lt;br /&gt;
The idea behind this is to use Windows 2003 ADS (and possibly later versions) to authenticate a foreign user and allow him/her to use a Linux machine which is a member of the Windows domain, without having to create a user account manually on the Linux machine.  This is very useful when you have large numbers of machines and users.  &lt;br /&gt;
&lt;br /&gt;
If everything works as it should, then you only need to configure the users on the Active Directory Server.  The users can then walk up to any machine on the network and log on.  If a user never used that machine before, a user account will be magically created.  The magic trick is known as Single Sign-On (SSO).&lt;br /&gt;
&lt;br /&gt;
The whole process is rather complicated and relies on a number of subsystems working together:&lt;br /&gt;
Pluggable Authentication Modules (PAM)&lt;br /&gt;
Server Message Block (SMB, Samba)&lt;br /&gt;
WinBIND (part of Samba)&lt;br /&gt;
Kerberos 5 (By MIT, with Microsoft compatibility hacks)&lt;br /&gt;
&lt;br /&gt;
The biggest problem is configuring Samba and determining exactly what identifiers and spelling to use where, since Kerberos and NETBIOS are fond of uppercase, while everything else prefers lowercase. &lt;br /&gt;
&lt;br /&gt;
Of course, nothing works, until every last little detail is correct, so these and other subtleties can lead to many hours of happy debugging and experimenting before everything suddenly begins to work.&lt;br /&gt;
Just about every imaginable error message was discovered the hard way and they were all documented in the references below.  Of course, since you will be following this great guide, you wont ever see them - let&#039;s hope anyway.&lt;br /&gt;
&lt;br /&gt;
Note that everything here was tested on Linux, but it should also apply almost directly to Solaris, since Samba is cross platform.&lt;br /&gt;
&lt;br /&gt;
2. Referenced Documents&lt;br /&gt;
&lt;br /&gt;
Chapter 6. Domain membership part II, Server configuration basics: &lt;br /&gt;
HTTP://us4.samba.org/samba/docs/man/samba-howto-collection/domain-member.html#ads-member&lt;br /&gt;
&lt;br /&gt;
Chapter 24. Winbind: Use of Domain Accounts Part III.  Advanced Configuration, &lt;br /&gt;
HTTP://us4.samba.org/samba/docs/man/samba-howto-collection/winbind.html&lt;br /&gt;
&lt;br /&gt;
Kerberos Administration Guide, HTTP://web.mit.edu/kerberos/krb5-1.3/krb5-1.3/doc/krb5-admin.html&lt;br /&gt;
&lt;br /&gt;
Linux PAM, HTTP://www.kernel.org/pub/linux/libs/pam3.  &lt;br /&gt;
&lt;br /&gt;
3. Configuration&lt;br /&gt;
&lt;br /&gt;
We want to use the Windows 2003 Active Directory Server (ADS) to authenticate a foreign user and allow him or her to use a Linux machine which is a member of the Windows domain.  Initially, the user jdoe doesn&#039;t exist on the Linux machine.  We want to use Winbind and Samba to assign a UID and GID from a pool of reserve numbers and create a home directory automatically under /home/winnt for this foreign user.  This will (hopefully) allow jdoe to walk up to the Linux machine, log in and use it to run X applications, without ever having been manually configured on it.  &lt;br /&gt;
&lt;br /&gt;
This guide assumes that you already have a Windows ADS running.  First verify a few things on the Windows ADS machine and note that the NETBIOS work group must be uppercase:&lt;br /&gt;
NETBIOS Workgroup:  YOURWORKGROUPNAME&lt;br /&gt;
Domain name: example.com&lt;br /&gt;
Fully qualified domain host name: msads.example.com&lt;br /&gt;
User name defined in ADS: jdoe&lt;br /&gt;
User password: jdoe123&lt;br /&gt;
User primary group: winusergrp&lt;br /&gt;
Administrator name: Administrator&lt;br /&gt;
Administrator password: Supersecret&lt;br /&gt;
&lt;br /&gt;
This illustrates some weird points.  Rather confusingly, the MS Windows NETBIOS work group, is also referred to as the domain name in MS Windows documentation.  The NETBIOS work group is actually used more often than the real domain name, so when in doubt, use the NETBIOS work group, since it will usually be the correct one for the occasion.  &lt;br /&gt;
&lt;br /&gt;
The MS Windows user name, will become work group+user name on Linux, and the Windows primary group, will become the work group+group name on Linux.&lt;br /&gt;
&lt;br /&gt;
3.1  Kerberos&lt;br /&gt;
&lt;br /&gt;
Kerberos is configured in the file /etc/krb5.conf.  Verify the following lines and not the UPPERCASE domain name:&lt;br /&gt;
&lt;br /&gt;
[libdefaults]&lt;br /&gt;
default_realm = EXAMPLE.COM&lt;br /&gt;
[realms]&lt;br /&gt;
EXAMPLE.COM = &lt;br /&gt;
  {&lt;br /&gt;
  kdc = msads.example.com&amp;gt;&lt;br /&gt;
  }&lt;br /&gt;
[domain_realms]&lt;br /&gt;
.kerberos.server = EXAMPLE.COM&lt;br /&gt;
&lt;br /&gt;
Note that Kerberos requires that the clocks of the machines in the domain are synchronized in time. The default maximum skew allowed is 5 minutes.  Windows and Linux handle times differently. UNIX is UTC based, and Windows is local time zone based, so be careful.  Configuring NTP is necessary, but is also beyond the scope of this document.&lt;br /&gt;
&lt;br /&gt;
3.2  Nsswitch Configuration&lt;br /&gt;
&lt;br /&gt;
Verify the following lines in /etc/nsswitch.conf:&lt;br /&gt;
&lt;br /&gt;
passwd: files winbind&lt;br /&gt;
shadow: files winbind&lt;br /&gt;
group: files winbind&lt;br /&gt;
&lt;br /&gt;
You may need to run ldconfig to set up the winbind libraries:&lt;br /&gt;
&lt;br /&gt;
# ldconfig -v |grep winbind&lt;br /&gt;
&lt;br /&gt;
Since nothing was working at the time, I cannot tell whether that was really a required step.&lt;br /&gt;
&lt;br /&gt;
3.3  Samba configuration&lt;br /&gt;
&lt;br /&gt;
Here&#039;s the [global] section from smb.conf:&lt;br /&gt;
&lt;br /&gt;
[global]&lt;br /&gt;
workgroup = YOURWORKGROUPNAME&lt;br /&gt;
realm = EXAMPLE.COM&lt;br /&gt;
preferred master = no&lt;br /&gt;
server string = Samba Server&lt;br /&gt;
security = ADS&lt;br /&gt;
encrypt passwords = yes&lt;br /&gt;
log level = 3&lt;br /&gt;
log file = /var/log/samba/%m&lt;br /&gt;
max log size = 50&lt;br /&gt;
winbind separator = +&lt;br /&gt;
printcap name = cups&lt;br /&gt;
printing = cups&lt;br /&gt;
idmap uid = 10000-20000&lt;br /&gt;
idmap gid = 10000-20000&lt;br /&gt;
template homedir /home/winnt/%D/%U&lt;br /&gt;
template shell = /bin/false&lt;br /&gt;
add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s /bin/false -M %u&lt;br /&gt;
password server = msads.example.com&lt;br /&gt;
&lt;br /&gt;
The /bin/false shell will prevent foreign domain users from opening a command shell and is recommended for security.&lt;br /&gt;
&lt;br /&gt;
The default Windind separator is a backslash, but that doesn&#039;t work well, since it is a reserve character on UNIX/Linux.  The general rule is to change it to a &#039;+&#039;.&lt;br /&gt;
&lt;br /&gt;
3.4  Ethernet configuration&lt;br /&gt;
&lt;br /&gt;
You have to set the ADS machine as (one of) the DNS in /etc/resolv.conf, to enable the Linux machine to find the Kerberos and LDAP servers on the ADS.  Verify the ethernet and DNS setting with ifconfig and nslookup.&lt;br /&gt;
&lt;br /&gt;
3.5  Join the Domain&lt;br /&gt;
&lt;br /&gt;
First restart the network and Samba:&lt;br /&gt;
&lt;br /&gt;
# service network restart&lt;br /&gt;
# service smb restart&lt;br /&gt;
&lt;br /&gt;
Verify that smbd and nmbd are running with&lt;br /&gt;
&lt;br /&gt;
# ps e&lt;br /&gt;
&lt;br /&gt;
Try to join the Windows Domain:&lt;br /&gt;
&lt;br /&gt;
# net ads join -S msads.example.com -U administrator%Supersecret&lt;br /&gt;
&lt;br /&gt;
You should get the message: &amp;quot;Joined LINUXMACHINE to realm EXAMPLE.COM&amp;quot;, at which point most joyful celebrations are in order.&lt;br /&gt;
&lt;br /&gt;
You can now start the Winbind daemon with the maximum debug information:&lt;br /&gt;
&lt;br /&gt;
# winbindd -d 10&lt;br /&gt;
&lt;br /&gt;
 Watch /var/log/messages for errors:&lt;br /&gt;
&lt;br /&gt;
# tail -f /var/log/messages&lt;br /&gt;
&lt;br /&gt;
You can investigate the domain records with:&lt;br /&gt;
&lt;br /&gt;
# wbinfo -u&lt;br /&gt;
# whinfo -g&lt;br /&gt;
# getent password&lt;br /&gt;
# getent group&lt;br /&gt;
&lt;br /&gt;
With those utilities, you should be able to see the user names and groups in the domain that you just &lt;br /&gt;
joined.  User YOURWORKGROUPNAME+jdoe and the group &lt;br /&gt;
YOURWORKGROUPNAME+winusergrp should be listed.&lt;br /&gt;
&lt;br /&gt;
3.6  Kerberos and error messages&lt;br /&gt;
&lt;br /&gt;
If you get the message: Cannot find KDC for requested realm, then either the password server in smb.conf is wrong, or the DNS setting in resolv.conf is wrong.  &lt;br /&gt;
&lt;br /&gt;
If you get the message: KRB5 error code 68 while getting the initial credentials, then the Linux machine can talk to the ADS machine, but your Kerberos realm name in smb.conf is wrong.&lt;br /&gt;
&lt;br /&gt;
If you get the message: The workgroup in smb.conf does not match the short domain name obtained from the server, then you did not specify the NETBIOS name properly.&lt;br /&gt;
&lt;br /&gt;
--&amp;lt;br /&amp;gt;&lt;br /&gt;
[[User:Butch| Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=Linux_Active_Directory_How-To&amp;diff=5919</id>
		<title>Linux Active Directory How-To</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Linux_Active_Directory_How-To&amp;diff=5919"/>
		<updated>2009-10-26T16:27:18Z</updated>

		<summary type="html">&lt;p&gt;Butch: Added signature&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Linux Active Directory How-To:&lt;br /&gt;
&lt;br /&gt;
1.  Document scope&lt;br /&gt;
&lt;br /&gt;
This document briefly describes how to configure a GNU/Linux machine to authenticate users against a &lt;br /&gt;
Microsoft Windows Server 2003 Active Directory Server.&lt;br /&gt;
&lt;br /&gt;
The idea behind this is to use Windows 2003 ADS (and possibly later versions) to authenticate a foreign user and allow him/her to use a Linux machine which is a member of the Windows domain, without having to create a user account manually on the Linux machine.  This is very useful when you have large numbers of machines and users.  &lt;br /&gt;
&lt;br /&gt;
If everything works as it should, then you only need to configure the users on the Active Directory Server.  The users can then walk up to any machine on the network and log on.  If a user never used that machine before, a user account will be magically created.  The magic trick is known as Single Sign-On (SSO).&lt;br /&gt;
&lt;br /&gt;
The whole process is rather complicated and relies on a number of subsystems working together:&lt;br /&gt;
Pluggable Authentication Modules (PAM)&lt;br /&gt;
Server Message Block (SMB, Samba)&lt;br /&gt;
WinBIND (part of Samba)&lt;br /&gt;
Kerberos 5 (By MIT, with Microsoft compatibility hacks)&lt;br /&gt;
&lt;br /&gt;
The biggest problem is configuring Samba and determining exactly what identifiers and spelling to use where, since Kerberos and NETBIOS are fond of uppercase, while everything else prefers lowercase. &lt;br /&gt;
&lt;br /&gt;
Of course, nothing works, until every last little detail is correct, so these and other subtleties can lead to many hours of happy debugging and experimenting before everything suddenly begins to work.&lt;br /&gt;
Just about every imaginable error message was discovered the hard way and they were all documented in the references below.  Of course, since you will be following this great guide, you wont ever see them - let&#039;s hope anyway.&lt;br /&gt;
&lt;br /&gt;
Note that everything here was tested on Linux, but it should also apply almost directly to Solaris, since Samba is cross platform.&lt;br /&gt;
&lt;br /&gt;
2. Referenced Documents&lt;br /&gt;
&lt;br /&gt;
Chapter 6. Domain membership part II, Server configuration basics: &lt;br /&gt;
HTTP://us4.samba.org/samba/docs/man/samba-howto-collection/domain-member.html#ads-member&lt;br /&gt;
&lt;br /&gt;
Chapter 24. Winbind: Use of Domain Accounts Part III.  Advanced Configuration, &lt;br /&gt;
HTTP://us4.samba.org/samba/docs/man/samba-howto-collection/winbind.html&lt;br /&gt;
&lt;br /&gt;
Kerberos Administration Guide, HTTP://web.mit.edu/kerberos/krb5-1.3/krb5-1.3/doc/krb5-admin.html&lt;br /&gt;
&lt;br /&gt;
Linux PAM, HTTP://www.kernel.org/pub/linux/libs/pam3.  &lt;br /&gt;
&lt;br /&gt;
3. Configuration&lt;br /&gt;
&lt;br /&gt;
We want to use the Windows 2003 Active Directory Server (ADS) to authenticate a foreign user and allow him or her to use a Linux machine which is a member of the Windows domain.  Initially, the user jdoe doesn&#039;t exist on the Linux machine.  We want to use Winbind and Samba to assign a UID and GID from a pool of reserve numbers and create a home directory automatically under /home/winnt for this foreign user.  This will (hopefully) allow jdoe to walk up to the Linux machine, log in and use it to run X applications, without ever having been manually configured on it.  &lt;br /&gt;
&lt;br /&gt;
This guide assumes that you already have a Windows ADS running.  First verify a few things on the Windows ADS machine and note that the NETBIOS work group must be uppercase:&lt;br /&gt;
NETBIOS Workgroup:  YOURWORKGROUPNAME&lt;br /&gt;
Domain name: example.com&lt;br /&gt;
Fully qualified domain host name: msads.example.com&lt;br /&gt;
User name defined in ADS: jdoe&lt;br /&gt;
User password: jdoe123&lt;br /&gt;
User primary group: winusergrp&lt;br /&gt;
Administrator name: Administrator&lt;br /&gt;
Administrator password: Supersecret&lt;br /&gt;
&lt;br /&gt;
This illustrates some weird points.  Rather confusingly, the MS Windows NETBIOS work group, is also referred to as the domain name in MS Windows documentation.  The NETBIOS work group is actually used more often than the real domain name, so when in doubt, use the NETBIOS work group, since it will usually be the correct one for the occasion.  &lt;br /&gt;
&lt;br /&gt;
The MS Windows user name, will become work group+user name on Linux, and the Windows primary group, will become the work group+group name on Linux.&lt;br /&gt;
&lt;br /&gt;
3.1  Kerberos&lt;br /&gt;
&lt;br /&gt;
Kerberos is configured in the file /etc/krb5.conf.  Verify the following lines and not the UPPERCASE domain name:&lt;br /&gt;
&lt;br /&gt;
[libdefaults]&lt;br /&gt;
default_realm = EXAMPLE.COM&lt;br /&gt;
[realms]&lt;br /&gt;
EXAMPLE.COM = &lt;br /&gt;
  {&lt;br /&gt;
  kdc = msads.example.com&amp;gt;&lt;br /&gt;
  }&lt;br /&gt;
[domain_realms]&lt;br /&gt;
.kerberos.server = EXAMPLE.COM&lt;br /&gt;
&lt;br /&gt;
Note that Kerberos requires that the clocks of the machines in the domain are synchronized in time. The default maximum skew allowed is 5 minutes.  Windows and Linux handle times differently. UNIX is UTC based, and Windows is local time zone based, so be careful.  Configuring NTP is necessary, but is also beyond the scope of this document.&lt;br /&gt;
&lt;br /&gt;
3.2  Nsswitch Configuration&lt;br /&gt;
&lt;br /&gt;
Verify the following lines in /etc/nsswitch.conf:&lt;br /&gt;
&lt;br /&gt;
passwd: files winbind&lt;br /&gt;
shadow: files winbind&lt;br /&gt;
group: files winbind&lt;br /&gt;
&lt;br /&gt;
You may need to run ldconfig to set up the winbind libraries:&lt;br /&gt;
&lt;br /&gt;
# ldconfig -v |grep winbind&lt;br /&gt;
&lt;br /&gt;
Since nothing was working at the time, I cannot tell whether that was really a required step.&lt;br /&gt;
&lt;br /&gt;
3.3  Samba configuration&lt;br /&gt;
&lt;br /&gt;
Here&#039;s the [global] section from smb.conf:&lt;br /&gt;
&lt;br /&gt;
[global]&lt;br /&gt;
workgroup = YOURWORKGROUPNAME&lt;br /&gt;
realm = EXAMPLE.COM&lt;br /&gt;
preferred master = no&lt;br /&gt;
server string = Samba Server&lt;br /&gt;
security = ADS&lt;br /&gt;
encrypt passwords = yes&lt;br /&gt;
log level = 3&lt;br /&gt;
log file = /var/log/samba/%m&lt;br /&gt;
max log size = 50&lt;br /&gt;
winbind separator = +&lt;br /&gt;
printcap name = cups&lt;br /&gt;
printing = cups&lt;br /&gt;
idmap uid = 10000-20000&lt;br /&gt;
idmap gid = 10000-20000&lt;br /&gt;
template homedir /home/winnt/%D/%U&lt;br /&gt;
template shell = /bin/false&lt;br /&gt;
add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s /bin/false -M %u&lt;br /&gt;
password server = msads.example.com&lt;br /&gt;
&lt;br /&gt;
The /bin/false shell will prevent foreign domain users from opening a command shell and is recommended for security.&lt;br /&gt;
&lt;br /&gt;
The default Windind separator is a backslash, but that doesn&#039;t work well, since it is a reserve character on UNIX/Linux.  The general rule is to change it to a &#039;+&#039;.&lt;br /&gt;
&lt;br /&gt;
3.4  Ethernet configuration&lt;br /&gt;
&lt;br /&gt;
You have to set the ADS machine as (one of) the DNS in /etc/resolv.conf, to enable the Linux machine to find the Kerberos and LDAP servers on the ADS.  Verify the ethernet and DNS setting with ifconfig and nslookup.&lt;br /&gt;
&lt;br /&gt;
3.5  Join the Domain&lt;br /&gt;
&lt;br /&gt;
First restart the network and Samba:&lt;br /&gt;
&lt;br /&gt;
# service network restart&lt;br /&gt;
# service smb restart&lt;br /&gt;
&lt;br /&gt;
Verify that smbd and nmbd are running with&lt;br /&gt;
&lt;br /&gt;
# ps e&lt;br /&gt;
&lt;br /&gt;
Try to join the Windows Domain:&lt;br /&gt;
&lt;br /&gt;
# net ads join -S msads.example.com -U administrator%Supersecret&lt;br /&gt;
&lt;br /&gt;
You should get the message: &amp;quot;Joined LINUXMACHINE to realm EXAMPLE.COM&amp;quot;, at which point most joyful celebrations are in order.&lt;br /&gt;
&lt;br /&gt;
You can now start the Winbind daemon with the maximum debug information:&lt;br /&gt;
&lt;br /&gt;
# winbindd -d 10&lt;br /&gt;
&lt;br /&gt;
 Watch /var/log/messages for errors:&lt;br /&gt;
&lt;br /&gt;
# tail -f /var/log/messages&lt;br /&gt;
&lt;br /&gt;
You can investigate the domain records with:&lt;br /&gt;
&lt;br /&gt;
# wbinfo -u&lt;br /&gt;
# whinfo -g&lt;br /&gt;
# getent password&lt;br /&gt;
# getent group&lt;br /&gt;
&lt;br /&gt;
With those utilities, you should be able to see the user names and groups in the domain that you just &lt;br /&gt;
joined.  User YOURWORKGROUPNAME+jdoe and the group &lt;br /&gt;
YOURWORKGROUPNAME+winusergrp should be listed.&lt;br /&gt;
&lt;br /&gt;
3.6  Kerberos and error messages&lt;br /&gt;
&lt;br /&gt;
If you get the message: Cannot find KDC for requested realm, then either the password server in smb.conf is wrong, or the DNS setting in resolv.conf is wrong.  &lt;br /&gt;
&lt;br /&gt;
If you get the message: KRB5 error code 68 while getting the initial credentials, then the Linux machine can talk to the ADS machine, but your Kerberos realm name in smb.conf is wrong.&lt;br /&gt;
&lt;br /&gt;
If you get the message: The workgroup in smb.conf does not match the short domain name obtained from the server, then you did not specify the NETBIOS name properly.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
[[User:Butch| Butch Whitby]]&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5920</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5920"/>
		<updated>2009-10-26T16:17:23Z</updated>

		<summary type="html">&lt;p&gt;Butch: Updating formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Setting up an lx26 zone on OpenSolaris&lt;br /&gt;
&lt;br /&gt;
Section 1.0&amp;lt;br /&amp;gt;&lt;br /&gt;
Document Scope&lt;br /&gt;
&lt;br /&gt;
This document describes how to setup lx26 zones on OpenSolaris, with the goal of installing a Linux based VistA implementation.  This information applies to OpenSolaris on the x86, and x64 platforms.  SPARC based systems are not covered.&lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned RBAC priveleges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazons EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  &lt;br /&gt;
&lt;br /&gt;
Section 1.1&amp;lt;br /&amp;gt;&lt;br /&gt;
What this document is not&lt;br /&gt;
This document is not meant to be the be all end all, of zone documentation.  If you want to know more about zones in OpenSolaris go here: http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6&lt;br /&gt;
&lt;br /&gt;
Section 1.2&amp;lt;br /&amp;gt;&lt;br /&gt;
Whats needed&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&amp;lt;br /&amp;gt;&lt;br /&gt;
1.Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&amp;lt;br /&amp;gt;&lt;br /&gt;
2.You need internet access on the machine where you will be doing the installation.&amp;lt;br /&amp;gt;&lt;br /&gt;
3.You need to have a 32bit CentOS 5.x filesystem tarball.  That can be gotten from the OpenVZ website. (64-bit support is still in the works and as far as I know unstable)&amp;lt;br /&amp;gt;&lt;br /&gt;
4.You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.&amp;lt;br /&amp;gt;&lt;br /&gt;
5.You need to obtain a unique static IP address for each zone.&amp;lt;br /&amp;gt;&lt;br /&gt;
6.You need to decide how your going to name your zones.  Zones, are a method of virtualization, and should be treated as if they are individual systems.  (IP, hostnames, etc.)&amp;lt;br /&amp;gt;&lt;br /&gt;
7.You need to decide if you want the zones to start up on boot of the main system?&amp;lt;br /&amp;gt;&lt;br /&gt;
8.You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Section 1.3&amp;lt;br /&amp;gt;&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&amp;lt;br /&amp;gt;&lt;br /&gt;
1.You are using a network link aggregation (known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &amp;lt;br /&amp;gt;&lt;br /&gt;
2.The IP address that set aside for this is 192.168.1.7/24, it is also the IP that will be used throughout these examples. &amp;lt;br /&amp;gt;&lt;br /&gt;
3.The fs path I used for the zone files is, /zones ( I know it just reaks of creatvity :) )&amp;lt;br /&amp;gt;&lt;br /&gt;
4.For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone, whatever the hostname of the “virtual machine” will be.&amp;lt;br /&amp;gt;&lt;br /&gt;
5.The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&amp;lt;br /&amp;gt;&lt;br /&gt;
6.The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Section 2.0&amp;lt;br /&amp;gt;&lt;br /&gt;
Setting up the virtualization environment&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support download the template file:&lt;br /&gt;
&lt;br /&gt;
user@computer# cd /etc/zones&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Section 2.1&amp;lt;br /&amp;gt;&lt;br /&gt;
Zone creation and installation &lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&lt;br /&gt;
user@computer# zonecfg -z zone1&amp;lt;br /&amp;gt;&lt;br /&gt;
zone1: No such zone configured&amp;lt;br /&amp;gt;&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Installing the zone:&lt;br /&gt;
&lt;br /&gt;
Download a CentOS 5.x tarball&lt;br /&gt;
&lt;br /&gt;
user@computer# cd /export/home/butch/software/&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&amp;lt;br /&amp;gt;&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Depending on your computers overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
Section 2.2&amp;lt;br /&amp;gt;&lt;br /&gt;
Pre-boot zone setup.&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&amp;lt;br /&amp;gt;&lt;br /&gt;
NETWORKING=yes&amp;lt;br /&amp;gt;&lt;br /&gt;
HOSTNAME=zone1&amp;lt;br /&amp;gt;&lt;br /&gt;
GATEWAY=192.168.1.1&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&amp;lt;br /&amp;gt;&lt;br /&gt;
hosts: files dns nis&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  I used public nameservers for this demo.)&amp;lt;br /&amp;gt;&lt;br /&gt;
domain opendns.org&amp;lt;br /&amp;gt;&lt;br /&gt;
nameserver 208.67.220.220&amp;lt;br /&amp;gt;&lt;br /&gt;
nameserver 208.67.222.222&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Section 2.3&amp;lt;br /&amp;gt;&lt;br /&gt;
Booting and logging in to the zone&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way, is to reset the root password to something of a known value.  &lt;br /&gt;
&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&lt;br /&gt;
You can at this point, logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  &lt;br /&gt;
&lt;br /&gt;
Ok, thats it.  The zone is now useable for most anything you want to use it for.  The next section has some very brief information about installing VistA inside a zone.&lt;br /&gt;
&lt;br /&gt;
Section 3.0&amp;lt;br /&amp;gt;&lt;br /&gt;
OpenSolaris Zones and VistA installation overview&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has it&#039;s place, and a time to use them.  That decision however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
Section 3.1&amp;lt;br /&amp;gt;&lt;br /&gt;
Nancy&#039;s installation instructions&amp;lt;br /&amp;gt;&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.&amp;lt;br /&amp;gt;&lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
&lt;br /&gt;
Section 3.2&amp;lt;br /&amp;gt;&lt;br /&gt;
The Astronaut auto-installer&amp;lt;br /&amp;gt;&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.  What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &amp;lt;br /&amp;gt;&lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
&lt;br /&gt;
Section 3.3&amp;lt;br /&amp;gt;&lt;br /&gt;
The Medsphere installation method.  &amp;lt;br /&amp;gt;&lt;br /&gt;
This method, is similar to the Astronaut installation method, in that many of the tasks involved are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages, involves things like adding the EPEL software repo, as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medspheres packages.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE:&amp;lt;/b&amp;gt;  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment do not show any of these problems.  Using these packages within a zone environment, is not how they were initially inteded to be used.  I am working with the OpenSolaris community, as well as Medsphere to try and work these things out, but it&#039;s going to take time.&amp;lt;br /&amp;gt; &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing this on OpenSolaris.&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5917</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5917"/>
		<updated>2009-10-26T16:15:27Z</updated>

		<summary type="html">&lt;p&gt;Butch: More markup and formatting updates.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Setting up an lx26 zone on OpenSolaris&lt;br /&gt;
&lt;br /&gt;
Section 1.0&amp;lt;br /&amp;gt;&lt;br /&gt;
Document Scope&lt;br /&gt;
&lt;br /&gt;
This document describes how to setup lx26 zones on OpenSolaris, with the goal of installing a Linux based VistA implementation.  This information applies to OpenSolaris on the x86, and x64 platforms.  SPARC based systems are not covered.&lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned RBAC priveleges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazons EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  &lt;br /&gt;
&lt;br /&gt;
Section 1.1&amp;lt;br /&amp;gt;&lt;br /&gt;
What this document is not&lt;br /&gt;
This document is not meant to be the be all end all, of zone documentation.  If you want to know more about zones in OpenSolaris go here: http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6&lt;br /&gt;
&lt;br /&gt;
Section 1.2&amp;lt;br /&amp;gt;&lt;br /&gt;
Whats needed&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&amp;lt;br /&amp;gt;&lt;br /&gt;
1.Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&amp;lt;br /&amp;gt;&lt;br /&gt;
2.You need internet access on the machine where you will be doing the installation.&amp;lt;br /&amp;gt;&lt;br /&gt;
3.You need to have a 32bit CentOS 5.x filesystem tarball.  That can be gotten from the OpenVZ website. (64-bit support is still in the works and as far as I know unstable)&amp;lt;br /&amp;gt;&lt;br /&gt;
4.You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.&amp;lt;br /&amp;gt;&lt;br /&gt;
5.You need to obtain a unique static IP address for each zone.&amp;lt;br /&amp;gt;&lt;br /&gt;
6.You need to decide how your going to name your zones.  Zones, are a method of virtualization, and should be treated as if they are individual systems.  (IP, hostnames, etc.)&amp;lt;br /&amp;gt;&lt;br /&gt;
7.You need to decide if you want the zones to start up on boot of the main system?&amp;lt;br /&amp;gt;&lt;br /&gt;
8.You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Section 1.3&amp;lt;br /&amp;gt;&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&amp;lt;br /&amp;gt;&lt;br /&gt;
1.You are using a network link aggregation (known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &amp;lt;br /&amp;gt;&lt;br /&gt;
2.The IP address that set aside for this is 192.168.1.7/24, it is also the IP that will be used throughout these examples. &amp;lt;br /&amp;gt;&lt;br /&gt;
3.The fs path I used for the zone files is, /zones ( I know it just reaks of creatvity :) )&amp;lt;br /&amp;gt;&lt;br /&gt;
4.For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone, whatever the hostname of the “virtual machine” will be.&amp;lt;br /&amp;gt;&lt;br /&gt;
5.The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&amp;lt;br /&amp;gt;&lt;br /&gt;
6.The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Section 2.0&amp;lt;br /&amp;gt;&lt;br /&gt;
Setting up the virtualization environment&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support download the template file:&lt;br /&gt;
&lt;br /&gt;
user@computer# cd /etc/zones&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# chown root:bin SUNWlx26.xml&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# chmod 444 SUNWlx26.xml&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Section 2.1&amp;lt;br /&amp;gt;&lt;br /&gt;
Zone creation and installation &lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&lt;br /&gt;
user@computer# zonecfg -z zone1&amp;lt;br /&amp;gt;&lt;br /&gt;
zone1: No such zone configured&amp;lt;br /&amp;gt;&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&amp;lt;br /&amp;gt;&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Installing the zone:&lt;br /&gt;
&lt;br /&gt;
Download a CentOS 5.x tarball&lt;br /&gt;
&lt;br /&gt;
user@computer# cd /export/home/butch/software/&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&amp;lt;br /&amp;gt;&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Depending on your computers overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
Section 2.2&amp;lt;br /&amp;gt;&lt;br /&gt;
Pre-boot zone setup.&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/sysconfig/network&amp;lt;br /&amp;gt;&lt;br /&gt;
NETWORKING=yes&amp;lt;br /&amp;gt;&lt;br /&gt;
HOSTNAME=zone1&amp;lt;br /&amp;gt;&lt;br /&gt;
GATEWAY=192.168.1.1&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&amp;lt;br /&amp;gt;&lt;br /&gt;
hosts: files dns nis&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
user@computer# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  I used public nameservers for this demo.)&amp;lt;br /&amp;gt;&lt;br /&gt;
domain opendns.org&amp;lt;br /&amp;gt;&lt;br /&gt;
nameserver 208.67.220.220&amp;lt;br /&amp;gt;&lt;br /&gt;
nameserver 208.67.222.222&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Section 2.3&amp;lt;br /&amp;gt;&lt;br /&gt;
Booting and logging in to the zone&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&lt;br /&gt;
user@computer# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&lt;br /&gt;
user@computer# zoneadm -z zone1 boot&lt;br /&gt;
&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&lt;br /&gt;
user@computer# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way, is to reset the root password to something of a known value.  &lt;br /&gt;
&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&lt;br /&gt;
You can at this point, logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  &lt;br /&gt;
&lt;br /&gt;
Ok, thats it.  The zone is now useable for most anything you want to use it for.  The next section has some very brief information about installing VistA inside a zone.&lt;br /&gt;
&lt;br /&gt;
Section 3.0&amp;lt;br /&amp;gt;&lt;br /&gt;
OpenSolaris Zones and VistA installation overview&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has it&#039;s place, and a time to use them.  That decision however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
Section 3.1&amp;lt;br /&amp;gt;&lt;br /&gt;
Nancy&#039;s installation instructions&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.  &lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
&lt;br /&gt;
Section 3.2&amp;lt;br /&amp;gt;&lt;br /&gt;
The Astronaut auto-installer&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.   What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
&lt;br /&gt;
Section 3.3&amp;lt;br /&amp;gt;&lt;br /&gt;
The Medsphere installation method.  &lt;br /&gt;
This method, is similar to the Astronaut installation method, in that many of the tasks involved are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages, involves things like adding the EPEL software repo, as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medspheres packages.  &lt;br /&gt;
NOTE:  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment do not show any of these problems.  Using these packages within a zone environment, is not how they were initially inteded to be used.  I am working with the OpenSolaris community, as well as Medsphere to try and work these things out, but it&#039;s going to take time.  &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing this on OpenSolaris.&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5916</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5916"/>
		<updated>2009-10-26T16:04:38Z</updated>

		<summary type="html">&lt;p&gt;Butch: Cleaned up page layout&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Setting up an lx26 zone on OpenSolaris&lt;br /&gt;
&lt;br /&gt;
Section 1.0&amp;lt;br /&amp;gt;&lt;br /&gt;
Document Scope&lt;br /&gt;
&lt;br /&gt;
This document describes how to setup lx26 zones on OpenSolaris, with the goal of installing a Linux based VistA implementation.  This information applies to OpenSolaris on the x86, and x64 platforms.  SPARC based systems are not covered.&lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned RBAC priveleges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazons EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  &lt;br /&gt;
&lt;br /&gt;
Section 1.1&amp;lt;br /&amp;gt;&lt;br /&gt;
What this document is not&lt;br /&gt;
This document is not meant to be the be all end all, of zone documentation.  If you want to know more about zones in OpenSolaris go here: http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6&lt;br /&gt;
&lt;br /&gt;
Section 1.2&amp;lt;br /&amp;gt;&lt;br /&gt;
Whats needed&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
1.Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
2.You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
3.You need to have a 32bit CentOS 5.x filesystem tarball.  That can be gotten from the OpenVZ website. (64-bit support is still in the works and as far as I know unstable)&lt;br /&gt;
4.You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  &lt;br /&gt;
5.You need to obtain a unique static IP address for each zone.  &lt;br /&gt;
6.You need to decide how your going to name your zones.  Zones, are a method of virtualization, and should be treated as if they are individual systems.  (IP, hostnames, etc.)&lt;br /&gt;
7.You need to decide if you want the zones to start up on boot of the main system?&lt;br /&gt;
8.You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
&lt;br /&gt;
Section 1.3&amp;lt;br /&amp;gt;&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
1.You are using a network link aggregation (known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
2.The IP address that set aside for this is 192.168.1.7/24, it is also the IP that will be used throughout these examples.&lt;br /&gt;
3.The fs path I used for the zone files is, /zones ( I know it just reaks of creatvity :) )&lt;br /&gt;
4.For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone, whatever the hostname of the “virtual machine” will be.&lt;br /&gt;
5.The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
6.The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
Section 2.0&amp;lt;br /&amp;gt;&lt;br /&gt;
Setting up the virtualization environment&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support download the template file:&lt;br /&gt;
&lt;br /&gt;
# cd /etc/zones&lt;br /&gt;
# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
# chown root:bin SUNWlx26.xml&lt;br /&gt;
# chmod 444 SUNWlx26.xml&lt;br /&gt;
&lt;br /&gt;
Section 2.1&amp;lt;br /&amp;gt;&lt;br /&gt;
Zone creation and installation &lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&lt;br /&gt;
# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&lt;br /&gt;
Installing the zone:&lt;br /&gt;
&lt;br /&gt;
Download a CentOS 5.x tarball&lt;br /&gt;
&lt;br /&gt;
# cd /export/home/butch/software/&lt;br /&gt;
# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Depending on your computers overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
Section 2.2&amp;lt;br /&amp;gt;&lt;br /&gt;
Pre-boot zone setup.&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&lt;br /&gt;
# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&lt;br /&gt;
Section 2.3&amp;lt;br /&amp;gt;&lt;br /&gt;
Booting and logging in to the zone&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&lt;br /&gt;
# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&lt;br /&gt;
# zoneadm -z zone1 boot&lt;br /&gt;
&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&lt;br /&gt;
# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way, is to reset the root password to something of a known value.  &lt;br /&gt;
&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
&lt;br /&gt;
New UNIX password: &lt;br /&gt;
&lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
&lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&lt;br /&gt;
You can at this point, logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  &lt;br /&gt;
&lt;br /&gt;
Ok, thats it.  The zone is now useable for most anything you want to use it for.  The next section has some very brief information about installing VistA inside a zone.&lt;br /&gt;
&lt;br /&gt;
Section 3.0&amp;lt;br /&amp;gt;&lt;br /&gt;
OpenSolaris Zones and VistA installation overview&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has it&#039;s place, and a time to use them.  That decision however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
Section 3.1&amp;lt;br /&amp;gt;&lt;br /&gt;
Nancy&#039;s installation instructions&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.  &lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
&lt;br /&gt;
Section 3.2&amp;lt;br /&amp;gt;&lt;br /&gt;
The Astronaut auto-installer&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.   What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
&lt;br /&gt;
Section 3.3&amp;lt;br /&amp;gt;&lt;br /&gt;
The Medsphere installation method.  &lt;br /&gt;
This method, is similar to the Astronaut installation method, in that many of the tasks involved are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages, involves things like adding the EPEL software repo, as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medspheres packages.  &lt;br /&gt;
NOTE:  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment do not show any of these problems.  Using these packages within a zone environment, is not how they were initially inteded to be used.  I am working with the OpenSolaris community, as well as Medsphere to try and work these things out, but it&#039;s going to take time.  &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing this on OpenSolaris.&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5915</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5915"/>
		<updated>2009-10-26T16:02:34Z</updated>

		<summary type="html">&lt;p&gt;Butch: Edited page markup&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Setting up an lx26 zone on OpenSolaris&lt;br /&gt;
&lt;br /&gt;
Section 1.0&amp;lt;br /&amp;gt;&lt;br /&gt;
Document Scope&lt;br /&gt;
&lt;br /&gt;
This document describes how to setup lx26 zones on OpenSolaris, with the goal of installing a Linux based VistA implementation.  This information applies to OpenSolaris on the x86, and x64 platforms.  SPARC based systems are not covered.&lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned RBAC priveleges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazons EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  &lt;br /&gt;
&lt;br /&gt;
1.1&amp;lt;br /&amp;gt;&lt;br /&gt;
What this document is not&lt;br /&gt;
This document is not meant to be the be all end all, of zone documentation.  If you want to know more about zones in OpenSolaris go here: http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6&lt;br /&gt;
&lt;br /&gt;
1.2&amp;lt;br /&amp;gt;&lt;br /&gt;
Whats needed&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
1.Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
2.You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
3.You need to have a 32bit CentOS 5.x filesystem tarball.  That can be gotten from the OpenVZ website. (64-bit support is still in the works and as far as I know unstable)&lt;br /&gt;
4.You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  &lt;br /&gt;
5.You need to obtain a unique static IP address for each zone.  &lt;br /&gt;
6.You need to decide how your going to name your zones.  Zones, are a method of virtualization, and should be treated as if they are individual systems.  (IP, hostnames, etc.)&lt;br /&gt;
7.You need to decide if you want the zones to start up on boot of the main system?&lt;br /&gt;
8.You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
&lt;br /&gt;
1.3&amp;lt;br /&amp;gt;&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
1.You are using a network link aggregation (known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
2.The IP address that set aside for this is 192.168.1.7/24, it is also the IP that will be used throughout these examples.&lt;br /&gt;
3.The fs path I used for the zone files is, /zones ( I know it just reaks of creatvity :) )&lt;br /&gt;
4.For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone, whatever the hostname of the “virtual machine” will be.&lt;br /&gt;
5.The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
6.The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
Section 2.0&amp;lt;br /&amp;gt;&lt;br /&gt;
Setting up the virtualization environment&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support download the template file:&lt;br /&gt;
&lt;br /&gt;
# cd /etc/zones&lt;br /&gt;
# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
# chown root:bin SUNWlx26.xml&lt;br /&gt;
# chmod 444 SUNWlx26.xml&lt;br /&gt;
&lt;br /&gt;
2.1&amp;lt;br /&amp;gt;&lt;br /&gt;
Zone creation and installation &lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&lt;br /&gt;
# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&lt;br /&gt;
Installing the zone:&lt;br /&gt;
&lt;br /&gt;
Download a CentOS 5.x tarball&lt;br /&gt;
&lt;br /&gt;
# cd /export/home/butch/software/&lt;br /&gt;
# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Depending on your computers overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
2.2&amp;lt;br /&amp;gt;&lt;br /&gt;
Pre-boot zone setup.&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&lt;br /&gt;
# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&lt;br /&gt;
2.3&amp;lt;br /&amp;gt;&lt;br /&gt;
Booting and logging in to the zone&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&lt;br /&gt;
# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&lt;br /&gt;
# zoneadm -z zone1 boot&lt;br /&gt;
&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&lt;br /&gt;
# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way, is to reset the root password to something of a known value.  &lt;br /&gt;
&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
&lt;br /&gt;
New UNIX password: &lt;br /&gt;
&lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
&lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can at this point, logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  &lt;br /&gt;
&lt;br /&gt;
Ok, thats it.  The zone is now useable for most anything you want to use it for.  The next section has some very brief information about installing VistA inside a zone.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Section 3.0&amp;lt;br /&amp;gt;&lt;br /&gt;
OpenSolaris Zones and VistA installation overview&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has it&#039;s place, and a time to use them.  That decision however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
3.1&amp;lt;br /&amp;gt;&lt;br /&gt;
Nancy&#039;s installation instructions&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.  &lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
&lt;br /&gt;
3.2&amp;lt;br /&amp;gt;&lt;br /&gt;
The Astronaut auto-installer&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.   What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
&lt;br /&gt;
3.3&amp;lt;br /&amp;gt;&lt;br /&gt;
The Medsphere installation method.  &lt;br /&gt;
This method, is similar to the Astronaut installation method, in that many of the tasks involved are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages, involves things like adding the EPEL software repo, as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medspheres packages.  &lt;br /&gt;
NOTE:  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment do not show any of these problems.  Using these packages within a zone environment, is not how they were initially inteded to be used.  I am working with the OpenSolaris community, as well as Medsphere to try and work these things out, but it&#039;s going to take time.  &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing this on OpenSolaris.&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
	<entry>
		<id>https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5914</id>
		<title>OpenSolaris zones</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=OpenSolaris_zones&amp;diff=5914"/>
		<updated>2009-10-26T16:00:03Z</updated>

		<summary type="html">&lt;p&gt;Butch: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Setting up an lx26 zone on OpenSolaris&lt;br /&gt;
&lt;br /&gt;
Section 1.0&lt;br /&gt;
Document Scope&lt;br /&gt;
&lt;br /&gt;
This document describes how to setup lx26 zones on OpenSolaris, with the goal of installing a Linux based VistA implementation.  This information applies to OpenSolaris on the x86, and x64 platforms.  SPARC based systems are not covered.&lt;br /&gt;
&lt;br /&gt;
This document assumes several things, including that you have either root level access, or you have been assigned RBAC priveleges for zones on an OpenSolaris machine. &lt;br /&gt;
&lt;br /&gt;
When I use the term “virtual machine” in this document, unless specifically labeled otherwise, I&#039;m talking about OS level virtualization, as opposed to something like VirtualBox, or the Xen and vmWare hypervisors.  In the latter cases I will refer to them by name.&lt;br /&gt;
&lt;br /&gt;
Something else worth noting.  This will not likely work on Amazons EC2 cloud architecture, owing to the fact that zones require a dedicated IP address of their own.  There are ways to work around this, however the details of such things are well beyond the scope or intent of this document.  &lt;br /&gt;
&lt;br /&gt;
1.1) What this document is not&lt;br /&gt;
This document is not meant to be the be all end all, of zone documentation.  If you want to know more about zones in OpenSolaris go here: http://hub.opensolaris.org/bin/view/Community+Group+brandz/linux_2_6&lt;br /&gt;
&lt;br /&gt;
1.2) Whats needed&lt;br /&gt;
Before beginning the install process you need several things, most of which are covered in this how-to:&lt;br /&gt;
1.Time.  How much depends on several factors, including your skill and comfort level with OpenSolaris and the UNIX CLI, the machine used for testing, and probably several other factors I&#039;m overlooking.&lt;br /&gt;
2.You need internet access on the machine where you will be doing the installation.&lt;br /&gt;
3.You need to have a 32bit CentOS 5.x filesystem tarball.  That can be gotten from the OpenVZ website. (64-bit support is still in the works and as far as I know unstable)&lt;br /&gt;
4.You need to decide where in the filesystem you want the zones to be created.  Each zone needs a minimum of about 10Gb, give or take depending on your personal circumstances.  &lt;br /&gt;
5.You need to obtain a unique static IP address for each zone.  &lt;br /&gt;
6.You need to decide how your going to name your zones.  Zones, are a method of virtualization, and should be treated as if they are individual systems.  (IP, hostnames, etc.)&lt;br /&gt;
7.You need to decide if you want the zones to start up on boot of the main system?&lt;br /&gt;
8.You need to decide what method you are going to use to install VistA. (Astronaut, Nancy&#039;s instructions, Medsphere&#039;s installation method etc.)  I will briefly cover the 3 at the end of this how-to.&lt;br /&gt;
&lt;br /&gt;
1.3)&lt;br /&gt;
Conventions used throughout this how-to, based on how I did this: (Adjust to your specific situation)&lt;br /&gt;
1.You are using a network link aggregation (known as link bonding in Linux) named aggr0, and that your network is 192.168.1.0 with a netmask of 255.255.255.0 &lt;br /&gt;
2.The IP address that set aside for this is 192.168.1.7/24, it is also the IP that will be used throughout these examples.&lt;br /&gt;
3.The fs path I used for the zone files is, /zones ( I know it just reaks of creatvity :) )&lt;br /&gt;
4.For purposes of this demonstration I have simply called the zone, zone1.  You should name it something meaningful, perhaps even name the zone, whatever the hostname of the “virtual machine” will be.&lt;br /&gt;
5.The CentOS 5.x tarball will be downloaded to /export/home/butch/software/&lt;br /&gt;
6.The username that I used for the demo is butch, cause using something other than my name seemed a tad silly...&lt;br /&gt;
&lt;br /&gt;
Section 2.0&lt;br /&gt;
Setting up the virtualization environment&lt;br /&gt;
&lt;br /&gt;
To enable lx26 zone support download the template file:&lt;br /&gt;
&lt;br /&gt;
# cd /etc/zones&lt;br /&gt;
# wget http://www.opensolaris.org/os/community/brandz/files/SUNWlx26.xml&lt;br /&gt;
# chown root:bin SUNWlx26.xml&lt;br /&gt;
# chmod 444 SUNWlx26.xml&lt;br /&gt;
&lt;br /&gt;
2.1)  Zone creation and installation &lt;br /&gt;
This section shows the commands to use, and the relative output:&lt;br /&gt;
&lt;br /&gt;
# zonecfg -z zone1&lt;br /&gt;
zone1: No such zone configured&lt;br /&gt;
Use &#039;create&#039; to begin configuring a new zone.&lt;br /&gt;
zonecfg:zone1&amp;gt;create -t SUNWlx26&lt;br /&gt;
zonecfg:zone1&amp;gt;set zonepath=/zones/zone1&lt;br /&gt;
zonecfg:zone1&amp;gt;set autoboot=true&lt;br /&gt;
zonecfg:zone1&amp;gt;add net&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set address=192.168.1.7/24&lt;br /&gt;
zonecfg:zone1:net&amp;gt;set physical=aggr0&lt;br /&gt;
zonecfg:zone1:net&amp;gt;end&lt;br /&gt;
zonecfg:zone1&amp;gt;verify&lt;br /&gt;
zonecfg:zone1&amp;gt;commit&lt;br /&gt;
zonecfg:zone1&amp;gt;exit&lt;br /&gt;
&lt;br /&gt;
Installing the zone:&lt;br /&gt;
&lt;br /&gt;
Download a CentOS 5.x tarball&lt;br /&gt;
&lt;br /&gt;
# cd /export/home/butch/software/&lt;br /&gt;
# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz&lt;br /&gt;
# zoneadm -z zone1 install -d /export/home/butch/software/centos-5-x86.tar.gz&lt;br /&gt;
Preparing to install zone &amp;lt;zone1&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Depending on your computers overall speed, this process may take only a few short minutes, or “a considerable amount of time”...&lt;br /&gt;
&lt;br /&gt;
2.2)  Pre-boot zone setup.&lt;br /&gt;
&lt;br /&gt;
Edit the following files to complete the networking setup:&lt;br /&gt;
&lt;br /&gt;
# vi /zones/zone1/root/etc/sysconfig/network&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
HOSTNAME=zone1&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
# vi /zones/zone1/root/etc/nsswitch.conf (Edit the hosts line to read)&lt;br /&gt;
hosts: files dns nis&lt;br /&gt;
&lt;br /&gt;
# vi /zones/zone1/root/etc/resolv.conf (Edit the file according to your network configuration.  I used public nameservers for this demo.)&lt;br /&gt;
domain opendns.org&lt;br /&gt;
nameserver 208.67.220.220&lt;br /&gt;
nameserver 208.67.222.222&lt;br /&gt;
&lt;br /&gt;
2.3)  Booting and logging in to the zone&lt;br /&gt;
&lt;br /&gt;
At this point the zone should be configured and installed.  Now it&#039;s time to log into the zone, which can be done as a 1 or 2 part process.  &lt;br /&gt;
&lt;br /&gt;
First, you need to ensure the zone is running: You should see output similar to the following.&lt;br /&gt;
&lt;br /&gt;
# zoneadm list&lt;br /&gt;
global&lt;br /&gt;
zone1&lt;br /&gt;
&lt;br /&gt;
If zone1 is not listed in the output, then it&#039;s not yet running.  To bring it online use:&lt;br /&gt;
&lt;br /&gt;
# zoneadm -z zone1 boot&lt;br /&gt;
&lt;br /&gt;
Wait a few seconds, and re-run the zoneadm list command.  Once the zone is running, log into it using the zlogin -S command.&lt;br /&gt;
&lt;br /&gt;
# zlogin -S zone1&lt;br /&gt;
sh-3.2#&lt;br /&gt;
&lt;br /&gt;
At this point, you have a login that resembles a Linux run level 1 command prompt.  The reason for logging in this way, is to reset the root password to something of a known value.  &lt;br /&gt;
&lt;br /&gt;
sh-3.2# passwd root&lt;br /&gt;
&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
&lt;br /&gt;
New UNIX password: &lt;br /&gt;
&lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
&lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
&lt;br /&gt;
sh-3.2# &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can at this point, logout and ssh back into the machine, although it&#039;s not really necessary to do what needs doing.  Now that the zone is running, and the root password is set, it&#039;s time to run some basic commands.  Start by making sure that all the existing packages are up to date. &lt;br /&gt;
&lt;br /&gt;
sh-3.2#  yum update&lt;br /&gt;
&lt;br /&gt;
This process may take a considerable amount of time, but it&#039;s well worth doing.  Unless you have specific reasons to not do so, (you already know that an updated package is going to interfere with whatever else your doing, etc.) update the system.  &lt;br /&gt;
&lt;br /&gt;
Ok, thats it.  The zone is now useable for most anything you want to use it for.  The next section has some very brief information about installing VistA inside a zone.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Section 3.0&lt;br /&gt;
OpenSolaris Zones and VistA installation overview&lt;br /&gt;
&lt;br /&gt;
Basically this section contains brief notes about installing VistA via 3 different methods.  Astronaut installer, the manual installation method authored by Nancy Anthracite, and the installation method for installing Medsphere&#039;s OpenVistA package, without using the astronaut installer.  This over view is not intended to say that one method is better than another, it&#039;s only here to let you know what methods I have tried in the zone environment.  Each method has it&#039;s place, and a time to use them.  That decision however is up to the end user to decide.  &lt;br /&gt;
&lt;br /&gt;
3.1)  Nancy&#039;s installation instructions&lt;br /&gt;
This method, is probably the oldest written installation method available, and is likewise in turn, probably responsible for more installations than we will ever know.  However, being that it is a completely manual process, it is prone to errors, if you don&#039;t follow the instructions explicitly.  Cut and paste will be your friend with this method.  &lt;br /&gt;
My thanks to Nancy for producing this document.&lt;br /&gt;
&lt;br /&gt;
3.2)  The Astronaut auto-installer&lt;br /&gt;
This method was the first fully automated method that I am aware of, and is developed and maintained by Ignacio Valdes.  Using the functionality of dpkg and rpm (and their corresponding front ends) Ignacio has automated the entire installation process.   What started as an all in one installer that was designed to get the product into the hands of as many people as possible, is quickly maturing, and is beginning to be broken out into it&#039;s component pieces.  This will make it much more appealing to sys admins, who don&#039;t want to install extra software on their systems, and it should make maintaining an Astronaut based, VistA system easier.  There is a version of the Astronaut installer for both WorldVistA and Medsphere&#039;s OpenVistA server products.  This installer seems to work out of the box, within the OpenSolaris zone environment with no problems, that are not present in a standard installation on any other system.  &lt;br /&gt;
My thanks to Ignacio for producing this installer, as well as allowing me to be involved as much as I have.  Which has included ripping apart and analyzing almost every version of the installer that he has released so far, and offering input and insight from a sys admins point of view.  &lt;br /&gt;
&lt;br /&gt;
3.3)  The Medsphere installation method.  &lt;br /&gt;
This method, is similar to the Astronaut installation method, in that many of the tasks involved are automated.  Installing Medsphere&#039;s OpenVistA packages is somewhat more involved than using Astronaut, but not nearly as involved as the manual method.  Installing the OpenVistA server packages, involves things like adding the EPEL software repo, as well as the yum-priorities package.  Current testing within a zone environment also shows some problems with Medspheres packages.  &lt;br /&gt;
NOTE:  These problems are not inherent in the packages themselves.  Testing on a full CentOS 5.3 environment do not show any of these problems.  Using these packages within a zone environment, is not how they were initially inteded to be used.  I am working with the OpenSolaris community, as well as Medsphere to try and work these things out, but it&#039;s going to take time.  &lt;br /&gt;
My thanks to Medsphere&#039;s OpenVistA team for producing this software, and for working with me in testing this on OpenSolaris.&lt;/div&gt;</summary>
		<author><name>Butch</name></author>
	</entry>
</feed>