<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Installing Morpheus Agent on Rocky Linux in HPE Morpheus VM Essentials</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-vm-essentials/installing-morpheus-agent-on-rocky-linux/m-p/7238951#M153</link>
    <description>&lt;P&gt;is there a reason why you did this ?&amp;nbsp; "&lt;SPAN&gt;Comment out "FILTER_RPC_ARGS" in /etc/sysconfig/qemu-ga"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you download the agent script you will see that the script is like this.&lt;BR /&gt;curl -k -s "https://${applianceUrl}/api/server-script/agentInstall?apiKey=${apiKey}" | bash&lt;/P&gt;&lt;P&gt;If you take an SSH to Rocky linux and then run the command like this ( add the -v), then we will get the exact reason if/why the agent install is not happening.&lt;BR /&gt;curl -v -k -s "https://${applianceUrl}/api/server-script/agentInstall?apiKey=${apiKey}" | bash&lt;/P&gt;</description>
    <pubDate>Mon, 24 Mar 2025 01:58:18 GMT</pubDate>
    <dc:creator>babusude</dc:creator>
    <dc:date>2025-03-24T01:58:18Z</dc:date>
    <item>
      <title>Installing Morpheus Agent on Rocky Linux</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-vm-essentials/installing-morpheus-agent-on-rocky-linux/m-p/7238909#M147</link>
      <description>&lt;P&gt;I did the following in the same way as when using Ubuntu Server on a VM.&lt;/P&gt;&lt;P&gt;① Install "qemu-guest-agent" on Rocky Linux and make sure it's running&lt;BR /&gt;② Select "Install Agent" from the virtual machine's actions&lt;/P&gt;&lt;P&gt;It didn't work at first, but by doing the following two things, the virtual machine's action "Install Agent" completed successfully.&lt;/P&gt;&lt;P&gt;・Comment out "FILTER_RPC_ARGS" in /etc/sysconfig/qemu-ga&lt;BR /&gt;・Set SELinux to "Permissive"&lt;/P&gt;&lt;P&gt;However, both seem to relax security, so when running Rocky Linux (Red Hat-based Linux) on a VME, what is the best way to handle qemu-ga's "--allow-rpcs" and SELinux?&lt;/P&gt;&lt;P&gt;※Sorry if this is hard to understand as it is machine translated&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 04:01:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-vm-essentials/installing-morpheus-agent-on-rocky-linux/m-p/7238909#M147</guid>
      <dc:creator>dya</dc:creator>
      <dc:date>2025-03-24T04:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Morpheus Agent on Rocky Linux</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-vm-essentials/installing-morpheus-agent-on-rocky-linux/m-p/7238951#M153</link>
      <description>&lt;P&gt;is there a reason why you did this ?&amp;nbsp; "&lt;SPAN&gt;Comment out "FILTER_RPC_ARGS" in /etc/sysconfig/qemu-ga"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you download the agent script you will see that the script is like this.&lt;BR /&gt;curl -k -s "https://${applianceUrl}/api/server-script/agentInstall?apiKey=${apiKey}" | bash&lt;/P&gt;&lt;P&gt;If you take an SSH to Rocky linux and then run the command like this ( add the -v), then we will get the exact reason if/why the agent install is not happening.&lt;BR /&gt;curl -v -k -s "https://${applianceUrl}/api/server-script/agentInstall?apiKey=${apiKey}" | bash&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 01:58:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-vm-essentials/installing-morpheus-agent-on-rocky-linux/m-p/7238951#M153</guid>
      <dc:creator>babusude</dc:creator>
      <dc:date>2025-03-24T01:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Morpheus Agent on Rocky Linux</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-vm-essentials/installing-morpheus-agent-on-rocky-linux/m-p/7239013#M154</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;The reason is that when I investigated the issue of being unable to install using the virtual machine action "Install Agent", I found the following error when running "journalctl -f" on the host.&lt;/P&gt;&lt;P&gt;libvirtd[1235]: internal error: unable to execute QEMU agent command 'guest-exec': Command guest-exec has been disabled: the command is not allowed&lt;/P&gt;&lt;P&gt;I believe that downloading a script from a virtual machine action and running it on the guest OS is not the best option for general users, not engineers, so I would like to be able to install it using the VME Manager web screen, and I would like to know if there is a better way to do it.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 12:20:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-vm-essentials/installing-morpheus-agent-on-rocky-linux/m-p/7239013#M154</guid>
      <dc:creator>dya</dc:creator>
      <dc:date>2025-03-24T12:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Morpheus Agent on Rocky Linux</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-vm-essentials/installing-morpheus-agent-on-rocky-linux/m-p/7240881#M201</link>
      <description>&lt;P&gt;The error you saw, means that Rocky Linux (like other Red Hat-based systems) blocks certain QEMU agent features by default to improve security.&lt;BR /&gt;One of those blocked features is guest-exec, which is needed by VME Manager to run the agent install script.&lt;BR /&gt;libvirtd[1235]: internal error: unable to execute QEMU agent command 'guest-exec': Command guest-exec has been disabled: the command is not allowed&lt;/P&gt;&lt;P&gt;Why your changes worked:&lt;BR /&gt;Commenting out FILTER_RPC_ARGS lets guest-exec and similar commands run, so the install could complete.&lt;BR /&gt;Setting SELinux to "Permissive" stops it from blocking actions, which also helped.&lt;/P&gt;&lt;P&gt;But yes, both of these changes reduce system security, so it’s good to find a better way.&lt;/P&gt;&lt;P&gt;A better approach:&lt;BR /&gt;Keep SELinux in Enforcing mode&lt;BR /&gt;Instead of turning SELinux off (Permissive), we can teach it to allow just what’s needed. You can use these commands:&lt;/P&gt;&lt;P&gt;ausearch -m avc -ts recent&lt;BR /&gt;audit2allow -M myqemu&lt;BR /&gt;semodule -i myqemu.pp&lt;BR /&gt;This watches for what SELinux blocks and then creates a rule to allow it.&lt;BR /&gt;Temporarily allow agent install:&lt;BR /&gt;You could allow guest-exec only during installation, then put the FILTER_RPC_ARGS setting back afterward. This keeps things secure most of the time.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 00:31:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-vm-essentials/installing-morpheus-agent-on-rocky-linux/m-p/7240881#M201</guid>
      <dc:creator>babusude</dc:creator>
      <dc:date>2025-04-23T00:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Morpheus Agent on Rocky Linux</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-vm-essentials/installing-morpheus-agent-on-rocky-linux/m-p/7240937#M205</link>
      <description>&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 12:12:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-vm-essentials/installing-morpheus-agent-on-rocky-linux/m-p/7240937#M205</guid>
      <dc:creator>dya</dc:creator>
      <dc:date>2025-04-23T12:12:57Z</dc:date>
    </item>
  </channel>
</rss>

