HP-UX Containers (SRP) A.03.01 Administrator's Guide

38
Example 6.1 Creating a system container using the srp command
# /opt/hpsrp/bin/srp -a myContainer –t system
Enter the requested values when prompted, then press return.
Enter "?" for help at prompt. Press control-c to exit.
Services to add: [cmpt,admin,init,prm,network,provision] RETURN
Container's subtype (private, shared): [private] shared
Autostart container at system boot? [yes] RETURN
Root user password :
Reenter root user password:
Configure DNS Resolver? [no] RETURN
List of Unix user names for container administrator: [root] RETURN
PRM group name to associate with this container: [myContainer] RETURN
PRM group type (FSS, PSET): [FSS] RETURN
PRM FSS group CPU shares: [10] RETURN
PRM FSS group CPU cap (press return for no cap): []RETURN
PRM group memory shares: [10] RETURN
PRM group memory cap (press return for no cap): []RETURN
PRM group physical memory (press return for no dedicated memory): RETURN []
IP address: 192.2.2.1
Add IP address to netconf file? [yes] RETURN
IP subnet mask (press return to accept default): []RETURN
Network interface name: [] lan1
Gateway server IP address: [192.2.2.1] RETURN
The following template variables have been set to the values shown:
iface = lan1
ip_address = 192.2.2.1
root_password = ******
Press return or enter "yes" to make the selected modifications with these
values. Do you wish to continue? [yes] RETURN
add compartment rules succeeded
add RBAC admin role for compartment succeeded
add prm rules succeeded
copying from /etc to /var/hpsrp/myContainer/etc
copying from /opt to /var/hpsrp/myContainer/opt
copying from /sbin/init.d to /var/hpsrp/myContainer/etc/init.d
copying from /sbin/rc0.d to /var/hpsrp/myContainer/etc/rc0.d
copying from /sbin/rc1.d to /var/hpsrp/myContainer/etc/rc1.d
copying from /sbin/rc2.d to /var/hpsrp/myContainer/etc/rc2.d
copying from /sbin/rc3.d to /var/hpsrp/myContainer/etc/rc3.d
copying from /sbin/rc4.d to /var/hpsrp/myContainer/etc/rc4.d
copying from /var to /var/hpsrp/myContainer/var
Mounting loopback (LOFS) filesystems ...
copying newconfig directories ...
Copying run level scripts ...
Creating userdb files ...
Changing root user password...
Configuring srp user and group ids ...
Configuring sshd...
Configuring software distributor ...
Configuring RBAC ...
Configuring device files ...
Configuring container products ...
Unmounting loopback (LOFS) filesystems ...
add compartment network service rules succeeded