# How to add PBS Pro client on Node - Ubuntu

**URL:** <https://community.openpbs.org/t/how-to-add-pbs-pro-client-on-node-ubuntu/1886>\
**Category:** Users/Site Administrators\
**Created:** [December 3, 2019, 6:30pm UTC](https://community.openpbs.org/t/how-to-add-pbs-pro-client-on-node-ubuntu/1886 "2019-12-03T18:30:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![legio06](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@legio06](https://community.openpbs.org/u/legio06)\
**Post date:** [December 3, 2019, 6:30pm UTC](https://community.openpbs.org/t/how-to-add-pbs-pro-client-on-node-ubuntu/1886/1 "2019-12-03T18:30:30Z")

</div>

Hi,

I am new at PBS Pro and thank you in advance for your help.

I run Ubuntu 18.04 server version (no GUI) and I was able to install PBS Pro on the headnode following these instructions.

> <https://github.com/PBSPro/pbspro/blob/release_19_1_branch/INSTALL>

I also edited /etc/hosts file on both machine (headnode and node)  
I also configured passwordless ssh connection between the headnode and the node.

All went well I am able to run PBS Pro command such as  
$ qstat -B  
Server Max Tot Que Run Hld Wat Trn Ext Status

* * *

eric9020-optiple 0 0 0 0 0 0 0 0 Idle

Now, I am trying to install PBS Pro on a client node (where the job will actually run) but I don’t seem to be able to find any information on Ubuntu 18.04. I understand that PBS Pro is very concentrated on CentOS but my cluster (12 nodes) are already been configured with Ubuntu 18.04 and OpenMPI.

I followed exactly the same steps for the headnode except for /etc/pbs.conf  
I edited the pbs.conf file for the node as follow:

Node:

PBS\_SERVER=eric9020-optiplex  
PBS\_START\_SERVER=0  
PBS\_START\_SCHED=0  
PBS\_START\_COMM=1  
PBS\_START\_MOM=1  
PBS\_EXEC=/opt/pbs  
PBS\_HOME=/var/spool/pbs  
PBS\_CORE\_LIMIT=unlimited  
PBS\_SCP=/usr/bin/scp

For the Headnode I edited the pbs.conf file as follow:

PBS\_SERVER=eric9020-optiplex  
PBS\_START\_SERVER=1  
PBS\_START\_SCHED=1  
PBS\_START\_COMM=1  
PBS\_START\_MOM=0  
PBS\_EXEC=/opt/pbs  
PBS\_HOME=/var/spool/pbs  
PBS\_CORE\_LIMIT=unlimited  
PBS\_SCP=/usr/bin/scp

I edited the config for the PBS Pro client node to connect to the headnode (eric9020-optiplex)  
$ /var/spool/pbs/mom\_priv/config  
$clienthost eric9020-optiplex  
$restrict\_user\_maxsysid 999

I created a “nodes” file the on the headnode  
/var/spool/pbs/server\_priv# cat nodes  
knife11.stanford.edu np=2

When I try to add a node with the following command  
$ qmgr -c “create node knife11”

I have the following error:  
qmgr obj=knife11 svr=default: Unauthorized Request  
qmgr: Error (15007) returned from server

Thank you for your help

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [December 3, 2019, 10:42pm UTC](https://community.openpbs.org/t/how-to-add-pbs-pro-client-on-node-ubuntu/1886/2 "2019-12-03T22:42:06Z")

</div>

PBS\_START\_COMM should be 0

> [@legio06](#):
>
> PBS\_SERVER=eric9020-optiplex  
> PBS\_START\_SERVER=0  
> PBS\_START\_SCHED=0  
> **PBS\_START\_COMM=0**  
> PBS\_START\_MOM=1  
> PBS\_EXEC=/opt/pbs  
> PBS\_HOME=/var/spool/pbs  
> PBS\_CORE\_LIMIT=unlimited  
> PBS\_SCP=/usr/bin/scp

> [@legio06](#):
>
> $ qmgr -c “create node knife11”
> 
> I have the following error:  
> qmgr obj=knife11 svr=default: Unauthorized Request  
> qmgr: Error (15007) returned from server

Did you run the above command as root user ?  
Is your /etc/hosts correctly populated and DNS working ?

Please run the below command as **root** user :  
qmgr -c “set server managers+=root@eric9020-optiplex”  
qmgr -c “create node knife11”

Hope this works

---

<div class="post-metadata">

**Author:** ![legio06](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@legio06](https://community.openpbs.org/u/legio06)\
**Post date:** [December 4, 2019, 12:07am UTC](https://community.openpbs.org/t/how-to-add-pbs-pro-client-on-node-ubuntu/1886/3 "2019-12-04T00:07:35Z")

</div>

Thank you adarsh.

When i switch to **root** user and run qstat -B I get the following error message:

Command ‘qstat’ not found, but can be installed with:  
apt install gridengine-client  
apt install slurm-wlm-torque

which means that i need to set paths to PBS Commands for **root** user. How do i do that ?

---

<div class="post-metadata">

**Author:** ![kjakkali](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/kjakkali/32/138_2.png) [@kjakkali](https://community.openpbs.org/u/kjakkali)\
**Post date:** [December 4, 2019, 4:18am UTC](https://community.openpbs.org/t/how-to-add-pbs-pro-client-on-node-ubuntu/1886/4 "2019-12-04T04:18:13Z")

</div>

@legio06  
You can set PBS binaries path as  
‘export PATH=/opt/pbs/bin:/opt/pbs/sbin:$PATH’

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [December 4, 2019, 11:43am UTC](https://community.openpbs.org/t/how-to-add-pbs-pro-client-on-node-ubuntu/1886/5 "2019-12-04T11:43:47Z")

</div>

- @kjakkali

@legio06: You can create a file  
/etc/profile.d/pbs.sh ( if it is already there then source /etc/profile.d/pbs.sh )

The contents of this file

source /etc/pbs.conf  
export PATH=$PATH:$PBS\_EXEC/bin

logout and login as root and run the commands or else source /etc/profile.d/pbs.sh and then run the commands

---

<div class="post-metadata">

**Author:** ![legio06](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@legio06](https://community.openpbs.org/u/legio06)\
**Post date:** [December 4, 2019, 5:57pm UTC](https://community.openpbs.org/t/how-to-add-pbs-pro-client-on-node-ubuntu/1886/6 "2019-12-04T17:57:10Z")

</div>

Thank you @kjakkali and @adarsh for the PATH. It works.

I could not run the command  
root@eric9020-optiplex:~# qmgr -c “set server managers+=root@eric9020-optiplex”  
Unknown Host.  
qmgr: cannot connect to server server  
Unknown Host.  
qmgr: cannot connect to server managers+=root@eric9020-optiplex”

However, i was able to run the following command and add the node (knkife11.stanford.edu)

root@eric9020-optiplex:~# qmgr  
Max open servers: 49  
Qmgr: create node knife11  
Qmgr: quit

root@eric9020-optiplex:~# pbsnodes -a  
knife11  
Mom = knife11.stanford.edu  
Port = 15002  
pbs\_version = 19.1.3  
ntype = PBS  
state = free  
pcpus = 2  
resources\_available.arch = linux  
resources\_available.host = knife11  
resources\_available.mem = 3907988kb  
resources\_available.ncpus = 2  
resources\_available.vnode = knife11  
resources\_assigned.accelerator\_memory = 0kb  
resources\_assigned.hbmem = 0kb  
resources\_assigned.mem = 0kb  
resources\_assigned.naccelerators = 0  
resources\_assigned.ncpus = 0  
resources\_assigned.vmem = 0kb  
resv\_enable = True  
sharing = default\_shared  
last\_state\_change\_time = Wed Dec 4 09:32:13 2019

I was not able to submit a simple query job as suggested in the above instructions from GitHub

$ echo “sleep 60” | qsub

The error message was:  
qsub: No default queue specified

Why is that ?

Thank you again for your help.

Best,  
Eric
