{"id":248,"date":"2015-11-13T18:04:45","date_gmt":"2015-11-13T18:04:45","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=248"},"modified":"2016-10-06T17:22:22","modified_gmt":"2016-10-06T16:22:22","slug":"installing-nova-agent-linux-on-xen-guest-vm","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2015\/11\/13\/installing-nova-agent-linux-on-xen-guest-vm\/","title":{"rendered":"Installing Nova Agent Linux on Xen Guest VM"},"content":{"rendered":"<p>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.<\/p>\n<p>PLEASE ALSO SEE <a href=\"http:\/\/www.haxed.me.uk\/index.php\/2016\/10\/06\/rackspace-cloud-server-not-coming-building\/\">http:\/\/www.haxed.me.uk\/index.php\/2016\/10\/06\/rackspace-cloud-server-not-coming-building\/<\/a><\/p>\n<p>1. Download the nova-agent-linux<\/p>\n<pre>\r\ncd ~\/\r\nmkdir nova-agent\r\ncd nova-agent\r\nwget http:\/\/boot.rackspace.com\/files\/nova-agent\/nova-agent-Linux-x86_64-1.39.0.tar.gz\r\n<\/pre>\n<p>2. Extract and run installer script<\/p>\n<pre>\r\ntar xzf nova-agent-Linux-x86_64-1.39.0.tar.gz\r\n<\/pre>\n<p>3. Inject LSB headers into the script (if not already there)<\/p>\n<pre> \r\nsed '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\r\n<\/pre>\n<p>4. Move the init script in place and make it executable<\/p>\n<pre>\r\ncp -av \/usr\/share\/nova-agent\/1.39.0\/etc\/generic\/nova-agent.lsb \/etc\/init.d\/nova-agent\r\nchmod +x \/etc\/init.d\/nova-agent\r\n<\/pre>\n<p>5. Set the script to start automatically in the event of a reboot.<\/p>\n<pre>\r\n# RHEL, CentOS, Fedora, OpenSuse\r\nchkconfig nova-agent on\r\n\r\n# Debian, Ubuntu\r\nupdate-rc.d -f nova-agent defaults\r\n<\/pre>\n<p>PLEASE ALSO SEE: <a href=\"http:\/\/www.haxed.me.uk\/index.php\/2016\/10\/06\/rackspace-cloud-server-not-coming-building\/\">http:\/\/www.haxed.me.uk\/index.php\/2016\/10\/06\/rackspace-cloud-server-not-coming-building\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2015\/11\/13\/installing-nova-agent-linux-on-xen-guest-vm\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,9,21,11],"tags":[],"class_list":["post-248","post","type-post","status-publish","format-standard","hentry","category-cloud","category-linux","category-nova","category-openstack"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=248"}],"version-history":[{"count":3,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/248\/revisions"}],"predecessor-version":[{"id":805,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/248\/revisions\/805"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}