Install Solaris 11 zone
1> On the solaris 11 hosts, always update to latest version before installing the zone(s)
root@edus007:/zpool# pkg update
root@edus007:/zpool# pkg list -upkg: no packages have newer versions available
root@edus007:/zpool# pkg info -r system/zones Name: system/zones
Summary: Solaris Zones configuration and administration
Description: The Solaris Zones partitioning technology is used to virtualize
operating system services and provide an isolated, secure,
lightweight, and high performance environment for running
applications. A zone is a virtualized operating system
environment created within a single instance of the operating
system.
Category: System/Core
State: Installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.1.0.0.24.2
Packaging Date: September 19, 2012 06:53:03 PM
Size: 3.50 MB
FMRI: pkg://solaris/system/zones@0.5.11,5.11-0.175.1.0.0.24.2:20120919T185303Z
root@edus007:/zpool#
2> Create ZFS filesystem/directory
root@edus007:/zpool# zfs create zpool/dubus004vm
3> Create a zone
root@edus007:/zpool# zonecfg -z dubus004vm
dubus004vm: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:dubus004vm> create
create: Using system default template 'SYSdefault'
zonecfg:dubus004vm> set zonepath=/zones/testzone
zonecfg:dubus004vm> set autoboot=true
zonecfg:dubus004vm> set bootargs="-m verbose"
zonecfg:dubus004vm> verify
zonecfg:dubus004vm> commit
zonecfg:dubus004vm> exit
4> Install ZONE
root@edus007:/etc/zones# zoneadm -z dubus004vm install
/zpool/dubus004vm must not be group readable.
/zpool/dubus004vm must not be group executable.
/zpool/dubus004vm must not be world readable.
/zpool/dubus004vm must not be world executable.
changing zonepath permissions to 0700.
Progress being logged to /var/log/zones/zoneadm.20121112T141052Z.dubus004vm.install
Image: Preparing at /zpool/dubus004vm/root.
AI Manifest: /tmp/manifest.xml.qSaq1p
SC Profile: /usr/share/auto_install/sc_profiles/enable_sci.xml
Zonename: dubus004vm
Installation: Starting ...
Nov 12 09:11:00 edus007 last message repeated 7 times
Nov 12 09:11:07 edus007 su: 'su root' succeeded for pwang on /dev/pts/1
Creating IPS image
Startup linked: 1/1 done
Installing packages from:
solaris
origin: http://pkg.oracle.com/solaris/release/
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 183/183 33549/33549 239.2/239.2 1.4M/s
PHASE ITEMS
Installing new actions 46692/46692
Updating package state database Done
Updating image state Done
Creating fast lookup database Done
Installation: Succeeded
Note: Man pages can be obtained by installing pkg:/system/manual
done.
Done: Installation completed in 582.954 seconds.
Next Steps: Boot the zone, then log into the zone console (zlogin -C)
to complete the configuration process.
Log saved in non-global zone as /zpool/dubus004vm/root/var/log/zones/zoneadm.20121112T141052Z.dubus004vm.install
root@edus007:/zpool# zoneadm -z dubus004vm boot
root@edus007:/etc/zones# zlogin -C dubus004vm
[Connected to zone 'dubus004vm' console]
Then configure the new VM -- hostname, network, time zone and so on. After configured it, the following screen will be shown:
SC profile successfully generated.
Exiting System Configuration Tool. Log is available at:
/system/volatile/sysconfig/sysconfig.log.9519
[ system/manifest-import:default starting (service manifest import) ]
[ system/config-user:default starting (configure root and user account) ]
[ network/install:default starting (physical network interfaces install) ]
[ system/timezone:default starting (Timezone Reload) ]
[ network/physical:upgrade starting ]
[ system/coreadm:default starting (system-wide core file configuration) ]
[ network/location:upgrade starting ]
[ network/physical:default starting (physical network interface configuration) ]
[ network/location:default starting (network interface configuration) ]
[ system/identity:node starting (system identity (nodename)) ]
Hostname: dubus004vm
[ network/ipsec/policy:default starting (IPsec policy initialization) ]
[ system/identity:domain starting (system identity (domainname)) ]
[ system/name-service/switch:default starting (Local files based naming services) ]
[ network/iptun:default starting (IP tunnel configuration) ]
[ milestone/network:default starting (Network milestone) ]
[ system/name-service/cache:default starting (name service cache) ]
[ milestone/single-user:default starting (single-user milestone) ]
[ network/dns/client:default starting (DNS resolver) ]
[ network/routing-setup:default starting (Initial routing-related configuration.) ]
[ application/pkg/zones-proxy-client:default starting (Zones Proxy Client) ]
[ network/initial:default starting (initial network services) ]
[ system/filesystem/local:default starting (local file system mounts) ]
[ network/nfs/fedfs-client:default starting (FedFS client) ]
[ network/netmask:default starting (Reset the netmask and broadcast address) ]
[ milestone/name-services:default starting (name services milestone) ]
[ network/service:default starting (layered network services) ]
[ network/shares:default starting (Share Group) ]
[ system/filesystem/ufs/quota:default starting (UFS quota support) ]
[ network/inetd-upgrade:default starting (inetd-upgrade) ]
[ system/auditset:default starting (Set non-/attributable audit flags
in the kernel context.) ]
[ system/cron:default starting (clock daemon (cron)) ]
[ network/shares/group:default starting (Share Group (upgrade only)) ]
[ network/routing/ndp:default starting (in.ndpd IPv6 neighbour discovery daemon) ]
[ network/rpc/bind:default starting (RPC bindings) ]
[ system/filesystem/autofs:default starting (automounter) ]
[ system/fmd:default starting (Solaris Fault Manager) ]
[ network/ssh:default starting (SSH server) ]
[ network/inetd:default starting (inetd) ]
[ milestone/self-assembly-complete:default starting (Updates configured milestone) ]
[ system/system-log:default starting (system log) ]
[ network/sendmail-client:default starting (sendmail SMTP client queue runner) ]
[ system/auditd:default starting (Solaris audit daemon) ]
[ network/smtp:sendmail starting (sendmail SMTP mail transfer agent) ]
Nov 12 09:30:22 dubus004vm sendmail[10504]: My unqualified host name (dubus004vm) unknown; sleeping for retry
Nov 12 09:30:22 dubus004vm sendmail[10501]: My unqualified host name (dubus004vm) unknown; sleeping for retry
[ system/console-login:default starting (Console login) ]
dubus004vm console login:
root@edus007:/zpool# zoneadm list -iv
ID NAME STATUS PATH BRAND IP
0 global running / solaris shared
1 dubus005vm running /zpool/dubus005vm solaris10 excl
2 dubus003vm running /zpool/dubus003vm solaris excl
3 dubus002vm running /zpool/dubus002vm solaris excl
4 dubus001vm running /zpool/dubus001vm solaris excl
5 dubus004vm running /zpool/dubus004vm solaris excl
root@edus007:/zpool# pkg update
root@edus007:/zpool# pkg list -upkg: no packages have newer versions available
root@edus007:/zpool# pkg info -r system/zones Name: system/zones
Summary: Solaris Zones configuration and administration
Description: The Solaris Zones partitioning technology is used to virtualize
operating system services and provide an isolated, secure,
lightweight, and high performance environment for running
applications. A zone is a virtualized operating system
environment created within a single instance of the operating
system.
Category: System/Core
State: Installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.1.0.0.24.2
Packaging Date: September 19, 2012 06:53:03 PM
Size: 3.50 MB
FMRI: pkg://solaris/system/zones@0.5.11,5.11-0.175.1.0.0.24.2:20120919T185303Z
root@edus007:/zpool#
2> Create ZFS filesystem/directory
root@edus007:/zpool# zfs create zpool/dubus004vm
3> Create a zone
root@edus007:/zpool# zonecfg -z dubus004vm
dubus004vm: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:dubus004vm> create
create: Using system default template 'SYSdefault'
zonecfg:dubus004vm> set zonepath=/zones/testzone
zonecfg:dubus004vm> set autoboot=true
zonecfg:dubus004vm> set bootargs="-m verbose"
zonecfg:dubus004vm> verify
zonecfg:dubus004vm> commit
zonecfg:dubus004vm> exit
4> Install ZONE
root@edus007:/etc/zones# zoneadm -z dubus004vm install
/zpool/dubus004vm must not be group readable.
/zpool/dubus004vm must not be group executable.
/zpool/dubus004vm must not be world readable.
/zpool/dubus004vm must not be world executable.
changing zonepath permissions to 0700.
Progress being logged to /var/log/zones/zoneadm.20121112T141052Z.dubus004vm.install
Image: Preparing at /zpool/dubus004vm/root.
AI Manifest: /tmp/manifest.xml.qSaq1p
SC Profile: /usr/share/auto_install/sc_profiles/enable_sci.xml
Zonename: dubus004vm
Installation: Starting ...
Nov 12 09:11:00 edus007 last message repeated 7 times
Nov 12 09:11:07 edus007 su: 'su root' succeeded for pwang on /dev/pts/1
Creating IPS image
Startup linked: 1/1 done
Installing packages from:
solaris
origin: http://pkg.oracle.com/solaris/release/
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 183/183 33549/33549 239.2/239.2 1.4M/s
PHASE ITEMS
Installing new actions 46692/46692
Updating package state database Done
Updating image state Done
Creating fast lookup database Done
Installation: Succeeded
Note: Man pages can be obtained by installing pkg:/system/manual
done.
Done: Installation completed in 582.954 seconds.
Next Steps: Boot the zone, then log into the zone console (zlogin -C)
to complete the configuration process.
Log saved in non-global zone as /zpool/dubus004vm/root/var/log/zones/zoneadm.20121112T141052Z.dubus004vm.install
root@edus007:/zpool# zoneadm list -iv ID NAME STATUS PATH BRAND IP 0 global running / solaris shared - dubus004vm installed /zones/testzone solaris excl
root@edus007:/zpool# zoneadm -z dubus004vm boot
root@edus007:/etc/zones# zlogin -C dubus004vm
[Connected to zone 'dubus004vm' console]
Then configure the new VM -- hostname, network, time zone and so on. After configured it, the following screen will be shown:
SC profile successfully generated.
Exiting System Configuration Tool. Log is available at:
/system/volatile/sysconfig/sysconfig.log.9519
[ system/manifest-import:default starting (service manifest import) ]
[ system/config-user:default starting (configure root and user account) ]
[ network/install:default starting (physical network interfaces install) ]
[ system/timezone:default starting (Timezone Reload) ]
[ network/physical:upgrade starting ]
[ system/coreadm:default starting (system-wide core file configuration) ]
[ network/location:upgrade starting ]
[ network/physical:default starting (physical network interface configuration) ]
[ network/location:default starting (network interface configuration) ]
[ system/identity:node starting (system identity (nodename)) ]
Hostname: dubus004vm
[ network/ipsec/policy:default starting (IPsec policy initialization) ]
[ system/identity:domain starting (system identity (domainname)) ]
[ system/name-service/switch:default starting (Local files based naming services) ]
[ network/iptun:default starting (IP tunnel configuration) ]
[ milestone/network:default starting (Network milestone) ]
[ system/name-service/cache:default starting (name service cache) ]
[ milestone/single-user:default starting (single-user milestone) ]
[ network/dns/client:default starting (DNS resolver) ]
[ network/routing-setup:default starting (Initial routing-related configuration.) ]
[ application/pkg/zones-proxy-client:default starting (Zones Proxy Client) ]
[ network/initial:default starting (initial network services) ]
[ system/filesystem/local:default starting (local file system mounts) ]
[ network/nfs/fedfs-client:default starting (FedFS client) ]
[ network/netmask:default starting (Reset the netmask and broadcast address) ]
[ milestone/name-services:default starting (name services milestone) ]
[ network/service:default starting (layered network services) ]
[ network/shares:default starting (Share Group) ]
[ system/filesystem/ufs/quota:default starting (UFS quota support) ]
[ network/inetd-upgrade:default starting (inetd-upgrade) ]
[ system/auditset:default starting (Set non-/attributable audit flags
in the kernel context.) ]
[ system/cron:default starting (clock daemon (cron)) ]
[ network/shares/group:default starting (Share Group (upgrade only)) ]
[ network/routing/ndp:default starting (in.ndpd IPv6 neighbour discovery daemon) ]
[ network/rpc/bind:default starting (RPC bindings) ]
[ system/filesystem/autofs:default starting (automounter) ]
[ system/fmd:default starting (Solaris Fault Manager) ]
[ network/ssh:default starting (SSH server) ]
[ network/inetd:default starting (inetd) ]
[ milestone/self-assembly-complete:default starting (Updates configured milestone) ]
[ system/system-log:default starting (system log) ]
[ network/sendmail-client:default starting (sendmail SMTP client queue runner) ]
[ system/auditd:default starting (Solaris audit daemon) ]
[ network/smtp:sendmail starting (sendmail SMTP mail transfer agent) ]
Nov 12 09:30:22 dubus004vm sendmail[10504]: My unqualified host name (dubus004vm) unknown; sleeping for retry
Nov 12 09:30:22 dubus004vm sendmail[10501]: My unqualified host name (dubus004vm) unknown; sleeping for retry
[ system/console-login:default starting (Console login) ]
dubus004vm console login:
root@edus007:/zpool# zoneadm list -iv
ID NAME STATUS PATH BRAND IP
0 global running / solaris shared
1 dubus005vm running /zpool/dubus005vm solaris10 excl
2 dubus003vm running /zpool/dubus003vm solaris excl
3 dubus002vm running /zpool/dubus002vm solaris excl
4 dubus001vm running /zpool/dubus001vm solaris excl
5 dubus004vm running /zpool/dubus004vm solaris excl
Comments