- Timestamp:
- Feb 27, 2024 6:12:40 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/dita/topics/solaris-zones.dita
r99797 r103593 3 3 PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"> 4 4 <topic xml:lang="en-us" id="solaris-zones"> 5 <title>Configuring a Zone for Running <ph conkeyref="vbox-conkeyref-phrases/product-name"/></title>6 5 <title>Configuring a Non-Global Zone for Running <ph conkeyref="vbox-conkeyref-phrases/product-name"/></title> 6 7 7 <body> 8 8 <p> 9 Assuming that <ph conkeyref="vbox-conkeyref-phrases/product-name"/> has already been installed into 10 your zone, you need to give the zone access to <ph conkeyref="vbox-conkeyref-phrases/product-name"/>'s 11 device node. This is done by performing the following steps. 12 Start a root terminal and run the following command: 9 After installing <ph conkeyref="vbox-conkeyref-phrases/product-name"/> in the global zone 10 (see <xref href="install-solaris-host.dita#install-solaris-host"/> for the installation instructions) 11 the first step required to run <ph conkeyref="vbox-conkeyref-phrases/product-name"/> in a 12 non-global zone is to modify the zone's configuration to be able to access the 13 <ph conkeyref="vbox-conkeyref-phrases/product-name"/> device nodes located in the global zone. 14 This is done by performing the following steps as a zone administrator in the global zone. 13 15 </p> 14 <pre xml:space="preserve"> zonecfg -z <varname>vboxzone</varname>16 <pre xml:space="preserve">global$ zonecfg -z <varname>vboxzone</varname> 15 17 </pre> 16 18 <p> 17 19 Replace <varname>vboxzone</varname> with the name of the 18 zone where you intendto run <ph conkeyref="vbox-conkeyref-phrases/product-name"/>.20 non-gloabl zone where you plan to run <ph conkeyref="vbox-conkeyref-phrases/product-name"/>. 19 21 </p> 20 22 <p> 21 Use <userinput>zonecfg</userinput> to add the 22 <codeph>device</codeph> resource and <codeph>match</codeph> 23 properties to the zone, as follows: 23 Use <userinput>zonecfg(8)</userinput> to add the <codeph>device</codeph> resource 24 and the <codeph>match</codeph> property for each 25 <ph conkeyref="vbox-conkeyref-phrases/product-name"/> device node in the global 26 zone to the non-global zone as follows: 24 27 </p> 25 <pre xml:space="preserve">zonecfg:vboxzone> add device26 zonecfg:vboxzone:device> set match=/dev/vboxdrv27 zonecfg:vboxzone:device> end28 zonecfg:vboxzone> add device29 zonecfg:vboxzone:device> set match=/dev/vboxdrvu30 zonecfg:vboxzone:device> end31 zonecfg:vboxzone> exit</pre>28 <pre xml:space="preserve">zonecfg:vboxzone> add device 29 zonecfg:vboxzone:device> set match=/dev/vboxdrv 30 zonecfg:vboxzone:device> end 31 zonecfg:vboxzone> add device 32 zonecfg:vboxzone:device> set match=/dev/vboxdrvu 33 zonecfg:vboxzone:device> end 34 zonecfg:vboxzone> exit</pre> 32 35 <p> 33 On Oracle Solaris 11 or later, you may also add a device for34 <filepath>/dev/vboxusbmon</filepath>, similar to that shown35 above.36 On Oracle Solaris 11 if you plan to use VMs configured to use a USB device, e.g. a USB 37 pointing device or a USB pass-through device, you should also pass through the 38 <filepath>/dev/vboxusbmon</filepath> device using the steps above. 36 39 </p> 37 40 <p> 38 If you are not using sparse root zones,you will need to41 Oracle Solaris 11 doesn't support sparse root zones so you will need to 39 42 loopback mount <filepath>/opt/VirtualBox</filepath> from the 40 global zone into the non-global zone at the same path. This is 41 specified below using the <codeph>dir</codeph> attribute and 42 the <codeph>special</codeph> attribute. For example: 43 global zone into the non-global zone at the same path. This is 44 done using <userinput>zonecfg(8)</userinput> to set the <codeph>dir</codeph> 45 attribute and the <codeph>special</codeph> attribute for this directory. 46 For example: 43 47 </p> 44 <pre xml:space="preserve">zonecfg:vboxzone>add fs 45 zonecfg:vboxzone:device>set dir=/opt/VirtualBox 46 zonecfg:vboxzone:device>set special=/opt/VirtualBox 47 zonecfg:vboxzone:device>set type=lofs 48 zonecfg:vboxzone:device>end 49 zonecfg:vboxzone>exit</pre> 48 <pre xml:space="preserve">zonecfg:vboxzone> add fs 49 zonecfg:vboxzone:fs> set dir=/opt/VirtualBox 50 zonecfg:vboxzone:fs> set special=/opt/VirtualBox 51 zonecfg:vboxzone:fs> set type=lofs 52 zonecfg:vboxzone:fs> add options [readonly] 53 zonecfg:vboxzone:fs> end 54 zonecfg:vboxzone> exit</pre> 50 55 <p> 51 Reboot the zone using <userinput>zoneadm</userinput> and you should 52 be able to run <ph conkeyref="vbox-conkeyref-phrases/product-name"/> from within the configured zone. 56 After making the above changes using <userinput>zonecfg(8)</userinput>, reboot the zone 57 using <userinput>zoneadm(8)</userinput> as follows: 58 </p> 59 <pre xml:space="preserve">global$ zoneadm -z <varname>vboxzone</varname> reboot 60 </pre> 61 <p> 62 for the changes to take effect. You will then be able to run 63 <ph conkeyref="vbox-conkeyref-phrases/product-name"/> from /opt/VirtualBox within the 64 configured non-global zone. 53 65 </p> 54 66 </body> 55 67 56 68 </topic>
Note:
See TracChangeset
for help on using the changeset viewer.