Operating System - HP-UX
1748079 Members
5242 Online
108758 Solutions
New Discussion юеВ

Re: Trouble creating HP 9000 Container

 
SOLVED
Go to solution
James Reed_3
Occasional Contributor

Trouble creating HP 9000 Container

I am trying to build a HP 9000 container for a proof-of-concept.  I have a vm guest (VSE-OE, 11.31-1209).  I have installed HP-UX-SRP and HP9KContainers.  When I execute the command to create the container, there seems to be a missing file:

/opt/hpsrp/newconfig/var/hpsrp/sbin/init.d/srp_cleanup.

 

Here is the output from the srp -add command:

 

root@vm01         [/root]
#srp -add packard -t hp9000sys

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]
Autostart container at system boot? [yes]
Root user password :
Reenter root user password:
Configure DNS Resolver? [yes]
Domain name: [hp.local]
DNS Server IP Address: [192.168.0.80, 192.168.0.1, 205.171.2.25, 205.171.3.25]
Use rules to restrict unsupported commands? [no]
List of Unix user names for container administrator: [root]
PRM group name to associate with this container: [packard]
PRM group type (FSS, PSET): [FSS]
PRM FSS group CPU shares: [10]
PRM FSS group CPU cap (press return for no cap): []
PRM group memory shares: [10]
PRM group memory cap (press return for no cap): []
PRM group shared memory (press return for no dedicated memory): []
IP address: 192.168.0.202
Add IP address to netconf file? [yes]
IP subnet mask (press return to accept default): []
Network interface name: lan0
Gateway server IP address for default route (0 to skip) [192.168.0.202]

The following template variables have been set to the values shown:

        iface           =  lan0
        ip_address      =  192.168.0.202
        root_password   =  ******


Press return or enter "yes" to make the selected modifications with these
values.  Do you wish to continue? [yes]
add compartment rules succeeded
add RBAC admin role for compartment succeeded
add prm rules succeeded
Mounting loopback (LOFS) filesystems ...
Generating swlist ...
Changing root user password ...
Configuring srp user and group ids ...
Configuring sshd ...
Configuring software distributor ...
Configuring DNS Resolver ...
Warning: more than three nameservers configured in /var/hpsrp/packard/etc/resolv.conf
A maximum of three nameservers will be used by the DNS resolver.
Configuring device files ...
Copying products from INIT ...
Deleting unsupported services ...
command "cp -p /opt/hpsrp/newconfig/var/hpsrp/sbin/init.d/srp_cleanup /var/hpsrp/packard/sbin/init.d/srp_cleanup 2>&1" failed: cp: cannot access /opt/hpsrp/newconfig/var/hpsrp/sbin/init.d/srp_cleanup: No such file or directory

 

 

Anyone have any idea what I am missing, stepwise?

 

Regards,

  Jim Reed

5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: Trouble creating HP 9000 Container

The first question is -- Does the file "/opt/hpsrp/newconfig/var/hpsrp/sbin/init.d/srp_cleanup" actually exist?

James Reed_3
Occasional Contributor

Re: Trouble creating HP 9000 Container

No it does not.

 

root@vm01         [/opt/hpsrp/newconfig/var/hpsrp/sbin/init.d]
#ls
srp_bootup    srp_mount     srp_sd_setup
srp_killall   srp_net       xinetd

 

Jim Reed

Dennis Handly
Acclaimed Contributor

Re: Trouble creating HP 9000 Container

>No it does not.

 

Can you do a find to search other places:

find /opt/hpsrp -name "srp_cleanup*"

James Reed_3
Occasional Contributor

Re: Trouble creating HP 9000 Container


@Dennis Handly wrote:

>No it does not.

 

>Can you do a find to search other places:

>find /opt/hpsrp -name "srp_cleanup*"

 

No, find /opt/hpsrp -name "srp_cleanup*" shows nothing.  Likewise,

find /opt/hpsrp | grep cleanup.

Do you have "golden" (known working installation) where you can check for that file?

 

Jim Reed


 

James Reed_3
Occasional Contributor
Solution

Re: Trouble creating HP 9000 Container

This is a recently discovered incompatibility with HP-UX-SRP A.03.01.004 released in September. We are updating HP 9000 Containers product to take care of this. The update HP 9000 Containers A.03.01.04 will be available via web release on Oct 17 (also adding some new features). 

 

 

I applied this version of HP9KContainers (A.03.01.04) and am now able to create my container:

 

root@vm01         [/opt/hpsrp]
#srp -add packard -t hp9000sys

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]
Autostart container at system boot? [yes]
Root user password :
Reenter root user password:
Configure DNS Resolver? [yes]
Domain name: [hp.local]
DNS Server IP Address: [192.168.0.80, 192.168.0.1, 205.171.2.25]
Use rules to restrict unsupported commands? [no]
List of Unix user names for container administrator: [root]
PRM group name to associate with this container: [packard]
PRM group type (FSS, PSET): [FSS]
PRM FSS group CPU shares: [10]
PRM FSS group CPU cap (press return for no cap): []
PRM group memory shares: [10]
PRM group memory cap (press return for no cap): []
PRM group shared memory (press return for no dedicated memory): []
IP address: 192.168.0.202
Add IP address to netconf file? [yes]
IP subnet mask (press return to accept default): []
Network interface name: lan0
Gateway server IP address for default route (0 to skip) [192.168.0.202] 192.168.0.1

The following template variables have been set to the values shown:

        gw_ip_address   =  192.168.0.1
        iface           =  lan0
        ip_address      =  192.168.0.202
        root_password   =  ******


Press return or enter "yes" to make the selected modifications with these
values.  Do you wish to continue? [yes]
add compartment rules succeeded
add RBAC admin role for compartment succeeded
add prm rules succeeded
Mounting loopback (LOFS) filesystems ...
Generating swlist ...
Changing root user password ...
Configuring srp user and group ids ...
Configuring sshd ...
Configuring software distributor ...
Configuring DNS Resolver ...
Configuring device files ...
Copying products from INIT ...
Deleting unsupported services ...
Creating ARIES configuration ...
Moving root cron jobs ...
Copying files from INIT ...
Creating symbolic links ...
Replacing unsupported commands,,,
add compartment network service rules succeeded
add provision service succeeded

root@vm01         [/opt/hpsrp]
#srp -status
NAME         TYPE      STATE       SUBTYPE    ROOTPATH
packard      hp9000sys stopped     none       /var/hpsrp/packard

 

 

root@vm01         [/opt/hpsrp]
#

 

 

The problem is solved.