Installing Nova Agent Linux on Xen Guest VM

So, sometimes every now and then a customer wants to use a custom image with our services. The thing is for the build to succesfully complete and the VM to get networking, it needs to be able to communicate with lil ole nova-agent.

PLEASE ALSO SEE http://www.haxed.me.uk/index.php/2016/10/06/rackspace-cloud-server-not-coming-building/

1. Download the nova-agent-linux

cd ~/
mkdir nova-agent
cd nova-agent
wget http://boot.rackspace.com/files/nova-agent/nova-agent-Linux-x86_64-1.39.0.tar.gz

2. Extract and run installer script

tar xzf nova-agent-Linux-x86_64-1.39.0.tar.gz

3. Inject LSB headers into the script (if not already there)

 
sed '1i### BEGIN INIT INFO\n# Provides: Nova-Agent\n# Required-Start: $remote_fs $syslog\n# Required-Stop: $remote_fs $syslog\n# Default-Start: 2 3 4 5\n# Default-Stop: 0 1 6\n# Short-Description: Start daemon at boot time\n# Description: Enable service provided by daemon.\n### END INIT INFO\n' /usr/share/nova-agent/1.39.0/etc/generic/nova-agent > /usr/share/nova-agent/1.39.0/etc/generic/nova-agent.lsb

4. Move the init script in place and make it executable

cp -av /usr/share/nova-agent/1.39.0/etc/generic/nova-agent.lsb /etc/init.d/nova-agent
chmod +x /etc/init.d/nova-agent

5. Set the script to start automatically in the event of a reboot.

# RHEL, CentOS, Fedora, OpenSuse
chkconfig nova-agent on

# Debian, Ubuntu
update-rc.d -f nova-agent defaults

PLEASE ALSO SEE: http://www.haxed.me.uk/index.php/2016/10/06/rackspace-cloud-server-not-coming-building/

One thought on “Installing Nova Agent Linux on Xen Guest VM

  1. Hello,

    A customer who was following this guide, rightly pointed out an additional situation that can develop, where the ‘Xen PV Drivers’ as it were are missing, and an error is encountered.

    Specifically something like this:

    # cat /var/log/nova-agent.log

    2016-10-06 18:58:14,696 [ERROR] [EXC] Traceback (most recent call last):
    2016-10-06 18:58:14,697 [ERROR] [EXC] File “/usr/share/nova-agent/nova-agent.py”, line 40, in
    2016-10-06 18:58:14,697 [ERROR] [EXC] xs = plugins.XSComm()
    2016-10-06 18:58:14,697 [ERROR] [EXC] File “/usr/share/nova-agent/1.39.0/plugins/xscomm.py”, line 43, in __init__
    2016-10-06 18:58:14,697 [ERROR] [EXC] self.xs_handle = pyxenstore.Handle()
    2016-10-06 18:58:14,700 [ERROR] [EXC] PyXenStoreError: Couldn’t open connection to the xenstore: No such file or directory
    2016-10-06 18:58:14,701 [ERROR] failed to parse config file ‘/usr/share/nova-agent/nova-agent.py’

    All rackspace Cloud customers that have installed and ensured nova-agent is running can check their /var/log/nova-agent.log to see if the xe-guest-utilties are missing. (PV Drivers).

    It’s very easy to fix and is documented, described and walked through in detail in the following article:

    http://www.haxed.me.uk/index.php/2016/10/06/rackspace-cloud-server-not-coming-building/

    Cheers &
    Best wishes,
    Adam

Leave a Reply

Your email address will not be published. Required fields are marked *