Testing Resources

Downloads
 OpenSolaris test downloads
Self-Service Testing
 Automated functional and performance testing with online results
Test Farm
 Free access to remote test machines
Test Links
 Open source tests and performance benchmark links
Test Suites
 OpenSolaris test suite descriptions

Test Farm Zone Servers

Development Zones

 Each development zone has the following properties:

  • whole root writable zone
  • zfs file system with quota
  • zone name equals user name
  • user account with home directory at /export/home

 Development zones can be reserved under the Test Farm Virtual Machines interface.

Build Tools

 The following build tools are preinstalled:

  • SunStudio 12 compiler and tools (/opt/SUNWspro/bin)
  • ON Build Tools (/opt/onbld/bin)

Network Name Resolution

 We plan to provide better network name resolution. In the meantime, it's good to add these entries in the /etc/hosts file.


72.5.123.5      hg.opensolaris.org
72.5.123.19     cr.opensolaris.org
72.5.123.21     pkg.opensolaris.org
72.5.124.114    dlc.sun.com

File Transfer

 The scp (secure copy) command can be used to transfer files to and from the zone:


-bash-3.2$ scp source_code  jwalker@132.88.135.75:/export/home/jwalker
source_code   100% |*****************************|  576  00:00

-bash-3.2$ scp jwalker@132.88.135.75:/export/home/jwalker/source_code  source_code.bak
source_code   100% |*****************************|  576  00:00

 Once logged in, the curl command can be used to download source and binary files from websites:


jwalker@jwalker:~$ curl -O http://dlc.sun.com/osol/on/downloads/current/on-closed-bins.i386.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 8275k  100 8275k    0     0   825k      0  0:00:10  0:00:10 ~--:~--:~--  860k

Zone Details

 ZFS is used to manage the root and zone storage pools. Each zone has it's own zfs file system. ZFS quotas are used to control space usage. User whole root zones are cloned from a masterzone. The Sun Studio complier is shared by all user zones using a lofi mount.


osuser@x4150-010341:~$ zfs list
NAME                         USED  AVAIL  REFER  MOUNTPOINT
bpool                       7.36G   260G  25.3K  /bpool
bpool/SUNWspro              1.22G   260G  1.22G  /opt/SUNWspro
bpool/zones                 6.14G   260G  34.0K  /bpool/zones
bpool/zones/dysun            190M  14.8G  5.91G  /bpool/zones/dysun
bpool/zones/jimw             193M  14.8G  5.91G  /bpool/zones/jimw
bpool/zones/masterzone      5.76G   260G  5.76G  /bpool/zones/masterzone
rpool                       15.4G   118G    41K  /rpool
rpool/ROOT                  12.4G   118G    18K  legacy
rpool/ROOT/snv_101          6.23M   118G  6.76G  /.alt.tmp.b-7J.mnt/
rpool/ROOT/snv_105          12.4G   118G  7.21G  /
rpool/dump                  1.00G   118G  1.00G  -
rpool/export                 162K   118G    19K  /export
rpool/export/home            143K   118G    53K  /export/home
rpool/swap                     2G   120G    16K  -

osuser@x4150-010341:~$ zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared
  10 jimw             running    /bpool/zones/jimw              native   shared
  12 dysun            running    /bpool/zones/dysun             native   shared
   - masterzone       installed  /bpool/zones/masterzone        native   shared

 Here are configuration files used to create the master and user zones.


osuser@t5120-010332:~$ cd /bpool/zones
osuser@t5120-010332:/bpool/zones$ ls
dysun jimw  masterzone  masterzone.cfg  sysidcfg.tmpl  zonecfg.tmpl

$ cat masterzone.cfg

create -b
set zonepath=/bpool/zones/masterzone
set autoboot=false
set ip-type=shared

$ cat sysidcfg.tmpl

system_locale=en_US
terminal=vt100
network_interface=PRIMARY {
        hostname=HOSTNAME
        ip_address=IPADDRESS
        netmask=255.255.255.128
        protocol_ipv6=no
        default_route=992.99.999.99}
root_password=abcdefg
timezone=US/Mountain
timeserver=localhost
name_service=none
security_policy=none
nfs4_domain=dynamic

$ cat zonecfg.tmpl

create -b
set zonepath=/bpool/zones/HOSTNAME
set autoboot=true
set ip-type=shared
add fs
set dir=/opt/SUNWspro
set special=/opt/SUNWspro
set type=lofs
add options ro
end
add net
set address=IPADDRESS
set physical=e1000g0
end

Zone Setup


Create user zonecfg file using zonecfg.tmpl with correct hostname and ip address
$ zonecfg -z $userzone -f $zonecfg
$ zoneadm -z $userzone clone masterzone
$ zoneadm -z $userzone ready
$ zfs set quota=$quotasize bpool/zones/$userzone
Create user sysidcfg file using sysidcfg.tmpl with correct hostname and ip address
$ cp $sysidcfg /bpool/zones/$userzone/root/etc
$ zoneadm -z $userzone boot
$ zlogin -C $userzone
Setup user account 
Verify user zone login

Zone Deletion


$ zoneadm -z $userzone halt
$ zoneadm -z $userzone uninstall -F
$ zonecfg -z $userzone delete -F

last modified by admin on 2009/10/26 12:11
Collectives
Project


© Sun Microsystems Inc. 2009
XWiki Enterprise 1.8.2.19075 - Documentation
Terms Of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines | Site map | Help
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.