How to install wazuh-agent on Harvester Host?

I’m looking for some guidance since this is my 1st Harvester installation and I am trying to learn how to use it, I have used immutable Linux before(NixOS) but this is somewhat different and new to me when I try to follow the instructions below I ran into some roadblocks:

I ran the above steps as Root.
sudo -i

1. Import the GPG key:

rpm --import https://packages.wazuh.com/key/GPG-KEY-WAZUH
error: can’t create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Read-only file system)
error: https:// packages.wazuh .com/key/GPG-KEY-WAZUH: key 1 import failed.

#2. Add the repository:
cat > /etc/zypp/repos.d/wazuh.repo <<\EOF
[wazuh]
gpgcheck=1
gpgkey=https:// packages.wazuh .com/key/GPG-KEY-WAZUH
enabled=1
name=EL-$releasever - Wazuh
baseurl=https:// packages.wazuh .com/4.x/yum/
protect=1
EOF

cat /etc/os-release
NAME=“SLE Micro”
VERSION=“5.5”
VERSION_ID=“5.5”
PRETTY_NAME=“Harvester v1.4.0”
ID=“sle-micro-rancher”
ID_LIKE=“suse”
ANSI_COLOR=“0;32”
CPE_NAME=“cpe:/o:suse:sle-micro-rancher:5.5”
IMAGE_REPO=“registry.suse .com/suse/sle-micro/base-5.5”
IMAGE_TAG=“2.0.4-5.8.115”
IMAGE=“registry.suse .com/suse/sle-micro/base-5.5:2.0.4-5.8.115”
TIMESTAMP=20241118172359
GRUB_ENTRY_NAME=“SLE Micro”
VARIANT=“Harvester”
VARIANT_ID=“Harvester-v1.4-20241126”
GRUB_ENTRY_NAME=“Harvester v1.4.0”

Thanks in advance for any guidance.

Are you trying to install the agent on the Harvester node itself? Because if so, then you are going to have a problem because the Harvester OS is a very limited (think ESXi or an appliance) and it not designed to have additional software installed on top of it.

Now there is nothing stopping you from running the waxing-agent on any guest VMs

1 Like

Thanks for letting me know, I’ll look into your suggestions.