HP 9000 Containers A.03.01 on HP Integrity Server Administrator Guide HP-UX 11i v3 (5900-3112, June 2013)

5 Creating HP 9000 classic container
This chapter explains how to create and configure an HP 9000 classic container.
5.1 Setting up user environment for image recovery
A classic container shares the /etc directory and login mechanism with the HP-UX 11i v3 host
system. Therefore, merge HP 9000 users and groups to the host before the recovery process.
To set up user environment:
1. Recover the HP 9000 /etc directory.
The input for user migration process is a copy of the /etc directory from the HP 9000 server.
Get a tar archive of /etc and recover it under the /tmp directory on the HP Integrity server.
You can also recover /etc from the image.
The following example shows how to extract the /etc directory from a complete fbackup
image:
$ mkdir /tmp/HP9000
$ echo i etc > /tmp/HP9000/graph
$ cd /tmp/HP9000
$ frecover x X f <image file> -g /tmp/HP9000/graph
2. Configure the system.
If HP 9000 server is configured with trusted mode, enable the trusted mode on HP Integrity
host using HP SMH.
If HP 9000 server is configured with shadow password, enable the shadow mode on HP
Integrity host using the pwconv command.
3. Migrate user and group.
Run the user merge tool:
$ /opt/HP9000-Containers/bin/hp9000_conf_users \
<path to recovered /etc directory>
Examine errors or warnings in the /var/opt/HP9000-Containers/logs/
user_config.log file.
4. Install and configure user management-related products on the host.
SSH login process to a classic container is actually native (does not use products from the HP
9000 image). Towards the end of the login process, SSHD does a chroot into the HP 9000
file system and invokes a PA-RISC shell. So, if the requirement is to use NIS, LDAP or any other
Active Directory tool, configure the same on the host system.
5.2 Creating container root directory
The container root directory must be created under the host root directory.
For example,
$ mkdir /hp9000-root
Mount the file system created to host the container root (if applicable):
$ mount F <fstype> <from where> /hp9000-root
Set ownership and permissions:
$ chown root:sys /hp9000-root
$ chmod 0755 /hp9000-root
5.1 Setting up user environment for image recovery 33