{"id":399,"date":"2019-02-19T23:01:25","date_gmt":"2019-02-20T07:01:25","guid":{"rendered":"https:\/\/angrysysadmins.tech\/?p=399"},"modified":"2020-01-27T02:46:00","modified_gmt":"2020-01-27T10:46:00","slug":"alpine-how-to-install-ovirt-guest-agent-on-alpine-linux","status":"publish","type":"post","link":"https:\/\/angrysysadmins.tech\/index.php\/2019\/02\/bailey\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\/","title":{"rendered":"Alpine: How to Install ovirt-guest-agent on Alpine Linux"},"content":{"rendered":"\n<p>To the best of my knowledge, Alpine Linux does not have an official package for ovirt-guest-agent yet (as February 17th, 2019). It is possible to build them from source however. It will require that you go somewhat against the Alpine philosophy of having the smallest amount of installed packages possible, but most of the build dependencies can be removed afterwards.<br><br><br>I am starting this guide with a fresh install of Alpine on the 3.9 repos. First, you can install all the dependencies in one shot with the following:<br><br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apk add qemu-guest-agent git alpine-sdk autoconf m4 findutils \\\nautomake python linux-pam-dev udev coreutils libtools<\/pre>\n\n\n\n<p><br><br>There might be some overlap between packages listed and those pulled in by <code>alpine-sdk<\/code>.<br><br>After the install finishes, we can git clone the source repo.<br><br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">git clone https:\/\/github.com\/ovirt\/ovirt-guest-agent.git\ncd ovirt-guest-agent\ngit fetch\ngit checkout ovirt-$version<\/pre>\n\n\n\n<p><br><br>Where <code>$version<\/code> is the most recent release. You can build off master if you desire, but that can be playing with fire. At the time of this article being written, 4.2 is the latest guest agent version available on Github.<br><br>With the sources now downloaded, the process becomes pretty similar to a standard <code>autoconf<\/code>\/<code>automake<\/code> build:<br><br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">autoreconf -fvi\nPYTHON=\/usr\/bin\/python2 .\/configure \\\n--prefix=\/usr \\\n--bindir=\/usr\/bin \\\n--sbindir=\/usr\/bin \\\n--sysconfdir=\/etc \\\n--localstatedir=\/var \\\n--libdir=\/usr\/lib \\\n--datarootdir=\/usr\/share \\\n--datadir=\/usr\/share \\\n--infodir=\/usr\/share\/info \\\n--includedir=\/usr\/include\/security \\\n--enable-securedir=\/usr\/lib\/security \\\n--with-pam-prefix=\/etc \\\n--without-gdm \\\n--without-kdm\nmake\nmake install\n\nchmod a+x \/usr\/share\/ovirt-guest-agent\/ovirt-guest-agent.py<\/pre>\n\n\n\n<p><br><br>That will handle most but not all of the install. It does not make the <code>rc<\/code> daemon file that we need, but don&#8217;t worry, it&#8217;s really basic to make this one.<br><br><code>\/etc\/init.d\/ovirt-guest-agent<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#!\/sbin\/openrc-run<br><br>name=\"oVirt Guest Agent\"<br>pidfile=\"\/var\/run\/ovirt-guest-agent.pid\"<br>command=\"\/usr\/share\/ovirt-guest-agent\/ovirt-guest-agent.py\"<br>command_args=\"-d\"<\/pre>\n\n\n\n<p><br><br>To successfully start the service now, you will need to have <code>udev<\/code> acknowledge the rule file that was installed:<br><br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">udevadm trigger --subsystem-match=\"virtio-ports\"<\/pre>\n\n\n\n<p><br><br>And finally, the run levels that need to be set for the service to successfully start after we reboot:<br><br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rc-update add qemu-guest-agent default\nrc-update add udev boot\nchmod +x \/etc\/init.d\/ovirt-guest-agent\nrc-update add ovirt-guest-agent default<\/pre>\n\n\n\n<p><br><br>ovirt-guest-agent will now start on reboot, and can be stopped and started using the service file in <code>\/etc\/init.d<\/code>.<br><br>To get rid of the now unneeded packages, you can run:<br><br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apk del alpine-sdk automake autoconf m4 git<\/pre>\n\n\n\n<p><br><br>Hope this helped!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As-simple-as-I-can-manage instructions on how to install the ovirt-guest-agent in an Alpine Linux VM,<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102,8,21,22],"tags":[103,6,17,101],"coauthors":[37],"class_list":["post-399","post","type-post","status-publish","format-standard","hentry","category-alpine","category-linux","category-ovirt","category-virtualization","tag-alpine","tag-linux","tag-ovirt","tag-ovirt-guest-agent"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Alpine: How to Install ovirt-guest-agent on Alpine Linux - Angry Sysadmins<\/title>\n<meta name=\"description\" content=\"As simple as possible instructions for installing the ovirt-guest-agent in an Alpine Linux virtual machine.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/angrysysadmins.tech\/index.php\/2019\/02\/bailey\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Alpine: How to Install ovirt-guest-agent on Alpine Linux - Angry Sysadmins\" \/>\n<meta property=\"og:description\" content=\"As simple as possible instructions for installing the ovirt-guest-agent in an Alpine Linux virtual machine.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/angrysysadmins.tech\/index.php\/2019\/02\/bailey\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Angry Sysadmins\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-20T07:01:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-27T10:46:00+00:00\" \/>\n<meta name=\"author\" content=\"Cat Kasin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cat Kasin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/02\\\/bailey\\\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/02\\\/bailey\\\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\\\/\"},\"author\":{\"name\":\"Cat Kasin\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/151b2d23439b55b970060836f317a14d\"},\"headline\":\"Alpine: How to Install ovirt-guest-agent on Alpine Linux\",\"datePublished\":\"2019-02-20T07:01:25+00:00\",\"dateModified\":\"2020-01-27T10:46:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/02\\\/bailey\\\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\\\/\"},\"wordCount\":270,\"commentCount\":0,\"keywords\":[\"Alpine\",\"Linux\",\"Ovirt\",\"ovirt-guest-agent\"],\"articleSection\":[\"Alpine\",\"Linux\",\"oVirt\",\"Virtualization\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/02\\\/bailey\\\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/02\\\/bailey\\\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\\\/\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/02\\\/bailey\\\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\\\/\",\"name\":\"Alpine: How to Install ovirt-guest-agent on Alpine Linux - Angry Sysadmins\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#website\"},\"datePublished\":\"2019-02-20T07:01:25+00:00\",\"dateModified\":\"2020-01-27T10:46:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/151b2d23439b55b970060836f317a14d\"},\"description\":\"As simple as possible instructions for installing the ovirt-guest-agent in an Alpine Linux virtual machine.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/02\\\/bailey\\\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/02\\\/bailey\\\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2019\\\/02\\\/bailey\\\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/angrysysadmins.tech\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Alpine: How to Install ovirt-guest-agent on Alpine Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#website\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/\",\"name\":\"Angry Sysadmins\",\"description\":\"A site full of angry sysadmins here to vent and help\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/angrysysadmins.tech\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/151b2d23439b55b970060836f317a14d\",\"name\":\"Cat Kasin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g23b0ffb86dd6c08514a66a6a50f7a0a9\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g\",\"caption\":\"Cat Kasin\"},\"description\":\"I build virtual environments and challenges for Cybersecurity students to complete as a way to gain experience before graduating and entering the workforce.\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/author\\\/bailey\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Alpine: How to Install ovirt-guest-agent on Alpine Linux - Angry Sysadmins","description":"As simple as possible instructions for installing the ovirt-guest-agent in an Alpine Linux virtual machine.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/angrysysadmins.tech\/index.php\/2019\/02\/bailey\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\/","og_locale":"en_US","og_type":"article","og_title":"Alpine: How to Install ovirt-guest-agent on Alpine Linux - Angry Sysadmins","og_description":"As simple as possible instructions for installing the ovirt-guest-agent in an Alpine Linux virtual machine.","og_url":"https:\/\/angrysysadmins.tech\/index.php\/2019\/02\/bailey\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\/","og_site_name":"Angry Sysadmins","article_published_time":"2019-02-20T07:01:25+00:00","article_modified_time":"2020-01-27T10:46:00+00:00","author":"Cat Kasin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Cat Kasin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/02\/bailey\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\/#article","isPartOf":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/02\/bailey\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\/"},"author":{"name":"Cat Kasin","@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/151b2d23439b55b970060836f317a14d"},"headline":"Alpine: How to Install ovirt-guest-agent on Alpine Linux","datePublished":"2019-02-20T07:01:25+00:00","dateModified":"2020-01-27T10:46:00+00:00","mainEntityOfPage":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/02\/bailey\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\/"},"wordCount":270,"commentCount":0,"keywords":["Alpine","Linux","Ovirt","ovirt-guest-agent"],"articleSection":["Alpine","Linux","oVirt","Virtualization"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/angrysysadmins.tech\/index.php\/2019\/02\/bailey\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/02\/bailey\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\/","url":"https:\/\/angrysysadmins.tech\/index.php\/2019\/02\/bailey\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\/","name":"Alpine: How to Install ovirt-guest-agent on Alpine Linux - Angry Sysadmins","isPartOf":{"@id":"https:\/\/angrysysadmins.tech\/#website"},"datePublished":"2019-02-20T07:01:25+00:00","dateModified":"2020-01-27T10:46:00+00:00","author":{"@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/151b2d23439b55b970060836f317a14d"},"description":"As simple as possible instructions for installing the ovirt-guest-agent in an Alpine Linux virtual machine.","breadcrumb":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/02\/bailey\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/angrysysadmins.tech\/index.php\/2019\/02\/bailey\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/angrysysadmins.tech\/index.php\/2019\/02\/bailey\/alpine-how-to-install-ovirt-guest-agent-on-alpine-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/angrysysadmins.tech\/"},{"@type":"ListItem","position":2,"name":"Alpine: How to Install ovirt-guest-agent on Alpine Linux"}]},{"@type":"WebSite","@id":"https:\/\/angrysysadmins.tech\/#website","url":"https:\/\/angrysysadmins.tech\/","name":"Angry Sysadmins","description":"A site full of angry sysadmins here to vent and help","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/angrysysadmins.tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/151b2d23439b55b970060836f317a14d","name":"Cat Kasin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g23b0ffb86dd6c08514a66a6a50f7a0a9","url":"https:\/\/secure.gravatar.com\/avatar\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g","caption":"Cat Kasin"},"description":"I build virtual environments and challenges for Cybersecurity students to complete as a way to gain experience before graduating and entering the workforce.","url":"https:\/\/angrysysadmins.tech\/index.php\/author\/bailey\/"}]}},"_links":{"self":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":11,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":777,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/399\/revisions\/777"}],"wp:attachment":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/media?parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/categories?post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/tags?post=399"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/coauthors?post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}