File: solaris-zones.dita

package info (click to toggle)
virtualbox 7.1.12-dfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 565,672 kB
  • sloc: ansic: 2,330,854; cpp: 2,193,228; asm: 230,777; python: 223,895; xml: 86,771; sh: 25,541; makefile: 8,158; perl: 5,697; java: 5,337; cs: 4,872; pascal: 1,782; javascript: 1,692; objc: 1,131; lex: 931; php: 906; sed: 899; yacc: 707
file content (49 lines) | stat: -rw-r--r-- 3,372 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
  PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic xml:lang="en-us" id="solaris-zones">
               <title>Configuring a Non-Global Zone for Running <ph conkeyref="vbox-conkeyref-phrases/product-name"/></title>
               
               <body>
                  <p>After installing <ph conkeyref="vbox-conkeyref-phrases/product-name"/> in the global zone (see
        <xref href="install-solaris-host.dita#install-solaris-host"/> for the installation instructions) the first step
      required to run <ph conkeyref="vbox-conkeyref-phrases/product-name"/> in a non-global zone is to modify the zone's
      configuration to be able to access the <ph conkeyref="vbox-conkeyref-phrases/product-name"/> device nodes located
      in the global zone. This is done by performing the following steps as a zone administrator in the global zone. </p>
                  <pre xml:space="preserve">global$ zonecfg -z <varname>vboxzone</varname>
                  </pre>
                  <p>Replace <varname>vboxzone</varname> with the name of the non-gloabl zone where you plan to run <ph
        conkeyref="vbox-conkeyref-phrases/product-name"/>. </p>
                  <p>Use <userinput>zonecfg(8)</userinput> to add the <codeph>device</codeph> resource and the
        <codeph>match</codeph> property for each <ph conkeyref="vbox-conkeyref-phrases/product-name"/> device node in
      the global zone to the non-global zone as follows: </p>
                  <pre xml:space="preserve">zonecfg:vboxzone&gt; add device
zonecfg:vboxzone:device&gt; set match=/dev/vboxdrv
zonecfg:vboxzone:device&gt; end
zonecfg:vboxzone&gt; add device
zonecfg:vboxzone:device&gt; set match=/dev/vboxdrvu
zonecfg:vboxzone:device&gt; end
zonecfg:vboxzone&gt; exit</pre>
                  <p>On Oracle Solaris 11 if you plan to use VMs configured to use a USB device, e.g. a USB pointing
      device or a USB pass-through device, you should also pass through the <filepath>/dev/vboxusbmon</filepath> device
      using the steps above. </p>
                  <p>Oracle Solaris 11 does not support sparse root zones so you will need to loopback mount
        <filepath>/opt/VirtualBox</filepath> from the global zone into the non-global zone at the same path. This is
      done using <userinput>zonecfg(8)</userinput> to set the <codeph>dir</codeph> attribute and the
        <codeph>special</codeph> attribute for this directory. For example: </p>
                  <pre xml:space="preserve">zonecfg:vboxzone&gt; add fs
zonecfg:vboxzone:fs&gt; set dir=/opt/VirtualBox
zonecfg:vboxzone:fs&gt; set special=/opt/VirtualBox
zonecfg:vboxzone:fs&gt; set type=lofs
zonecfg:vboxzone:fs&gt; add options [readonly]
zonecfg:vboxzone:fs&gt; end
zonecfg:vboxzone&gt; exit</pre>
                  <p>After making the above changes using <userinput>zonecfg(8)</userinput>, reboot the zone using
        <userinput>zoneadm(8)</userinput> as follows: </p>
               <pre xml:space="preserve">global$ zoneadm -z <varname>vboxzone</varname> reboot
                  </pre>
                  <p>for the changes to take effect. You will then be able to run <ph
        conkeyref="vbox-conkeyref-phrases/product-name"/> from /opt/VirtualBox within the configured non-global zone. </p>
               </body>
               
            </topic>