Instalar Tools Vms Rhev
Instalar Tools Vms Rhev
Instalar Tools Vms Rhev
com/solutions/261763
Products & Services Base de conocimiento How to install the RHV Guest Agent in a virtual machine
Medio Ambiente
Red Hat Virtualization 4.x
Cuestión
How can the RHEV agent be installed on a Red Hat Enterprise Linux guest?
Why doesn't the resolution of my RHEL guest auto-detect when I launch the Spice
console?
I need to install the RHEV agent for RHEL 6 guests
Currently the IP address field is not being populated for any VMs.
How do I monitor VMs memory usage in the "Virtual Machines" tab?
VM memory stats not showing in report
No memory stats for running VMs displayed in RHEV-M
Memory/CPU utilization shown on RHEV web portal (not reporting one) does not
match actual utilization within OS. It defers a lot.
Resolución
To use the "RHEV Guest Agent" or the "Spice Agent" on Red Hat Enterprise Linux guests, it
is necessary to install relevant rpm package(s) inside the guest. For Windows guests, install
the RHEV Tools ISO.
RHEL Guests
1. Register the system using "Subscription Manager".
2. Subscribe the system to the appropriate channels, see the examples below or the
Documentation (https://access.redhat.com/documentation/en-
us/red_hat_virtualization/4.3/html/virtual_machine_management_guide
/installing_guest_agents_and_drivers_linux).
RHEL 8:
RHEL 7:
RHEL 6:
RHEL 5:
RHEL 8:
RHEL 7:
RHEL 5/6:
RHEL 8:
RHEL 7:
RHEL 5/6:
# chkconfig ovirt-guest-agent on
RHEL 7:
RHEL 6:
RHEL 7:
RHEL 6:
# chkconfig spice-vdagentd on
Windows guests
1. On the RHEV Manager command line, execute:
3. In the Administration or VM Portal, if the virtual machine is running, use the Change CD
button to attach the latest rhv-tools-setup.iso file to each of your virtual machines. If
the virtual machine is powered off, click the Run Once button and attach the ISO as a
CD.
4. Select the CD Drive containing the updated ISO and execute the RHEV-
ToolsSetup.exe file.
Atomic Host
1 . If the common repository is enabled as above, you can install the package and then reboot
with:
2 . Because of permissions, you would need a workaround to have it running upon a fresh
boot.
Create a script to load upon boot up:
vi /etc/rc.local
/sbin/modprobe virtio_console
/bin/touch /run/ovirt-guest-agent.pid
/bin/chown ovirtagent:ovirtagent /run/ovirt-guest-agent.pid
/usr/bin/python /usr/share/ovirt-guest-agent/ovirt-guest-agent.py
systemctl enable ovirt-guest-agent
systemctl start ovirt-guest-agent
Causa Raíz
Installing Red Hat Enterprise Virtualization guest agents and drivers in virtual machines
provides optimized performance and extra features.
The agent interfaces with the oVirt manager, supplying heart-beat info as
well as
run-time data from within the guest itself. The agent also accepts control
commands
to be run executed within the OS (like: shutdown and restart).
Spice Agent
Features:
* Client mouse mode (no need to grab mouse by client, no mouse lag). This
is handled
by the daemon by feeding mouse events into the kernel via uinput. This
will only work
if the active X-session is running a spice-vdagent process so that its
resolution can
be determined.
* Automatic adjustment of the X-session resolution to the client
resolution.
* Support of copy and paste (text and images) between the active X-session
and the client.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of
solutions that Red Hat engineers have created while supporting our customers. To give you
the knowledge you need the instant it becomes available, these articles may be presented in
a raw and unedited form.
RHV: "Could not detect RHV: the latest guest Unable to install rhev-
Guest Agent on the VM. agent is installed and agent on a rhel 5.X
Note that without a running but the icon guest which is using
Guest Agent the data on "The latest guest agent kernel-PAE.
the created snapshot needs to be installed
may be inconsistent." and running on the
guest" does not go
away.
34 Comentarios
RED HAT
RHCVA (https://www.redhat.com/en/services/certification/rhcva)
GURU
RHCSA-RHOS (https://www.redhat.com/en/services/certification/rhcsa-rhos)
5773
Points Good question. I have updated the article with that information. The
command to add this channel using Subscription Manager would be:
≤ Responder (/Ajax_comments/reply/261763/696523)
Sherry Yu (/user/461153)
(/user
/461153) I got an error from that command:
RED HAT
ACTIVE
CONTRIBUTOR yum-config-manager --enable rhel-
159 Points
x86_64-rhev-agent-6-server-rpms
Loaded plugins: product-id, rhnplugin
This system may not be registered to RHN Classic or RHN
Satellite. SystemId could not be acquired.
You can use rhn_register to register.
RHN Satellite or RHN Classic support will be disabled.
subscription-manager repos
--enable=rhel-6-server-rhev-agent-
rpms
≤ Responder (/Ajax_comments/reply/261763/696943)
≤ Responder (/Ajax_comments/reply/261763/697023)
Sherry Yu (/user/461153)
(/user
/461153) Hi Bryan, yum-utils is already installed on my system.
RED HAT
However the error from "yum-config-manager --enable rhel-
ACTIVE
CONTRIBUTOR x86_64-rhev-agent-6-server-rpms" says that "This system is
159 Points not registered with RHN Classic or RHN Satellite". The error
doesn't make sense because it's subscription manager being
used not RHN. I already found a workaround using
"subscription-manager repos --enable" and wanted to make
it known in case other customers ran into the same issue with
yum-config-manager.
≤ Responder (/Ajax_comments/reply/261763/697713)
5773 That's an odd error, Sherry. If you get some free time, please
Points
open a ticket and the Systems Management specialists can
take a look at it. Thanks for letting other users know about
the alternative command.
≤ Responder (/Ajax_comments/reply/261763/697823)
valid repos.
Using the --list option I can't help but notice there is nothing listed for RHEL7. Why not
and how do I get the guest agent for RHEL7?
≤ Responder (/Ajax_comments/reply/261763/861343)
Instead we did the --list and we found this one which works:
HTH
Tony
≤ Responder (/Ajax_comments/reply/261763/877103)
5773 Thanks for pointing that out, Tony. I have corrected the channel name for
Points
RHEL 7 and republished the article.
≤ Responder (/Ajax_comments/reply/261763/877793)
FAKHFAKH (/user/2483803)
(/user Hello,
/2483803)
ACTIVE
thank you for this article, I'd like to add that on RHEL6 package rhevm-guest-agent is
CONTRIBUTOR
obsoleted by rhevm-guest-agent-common. So now on RHEL6 or RHEL7 we use: yum
390 install rhevm-guest-agent-common
Points
I wonder, if it's not the same on RHEL5 also, can someone check it ? I don't have any
rhel5
≤ Responder (/Ajax_comments/reply/261763/991643)
5773 Thanks Zied. I updated the kbase solution. I also checked on RHEL 5 and it
Points
still uses the old rhevm-guest-agent package name.
≤ Responder (/Ajax_comments/reply/261763/993173)
5773 Good question, Passur. The reason the rhev-agent package is in a child
Points
channel is so that it can be updated quicker and separately from mainline
RHEL. Packages in the base RHEL channel have a slow release velocity and
a required 10 year lifecycle, which might not be needed for something like
rhev-agent.
≤ Responder (/Ajax_comments/reply/261763/1021781)
≤ Responder (/Ajax_comments/reply/261763/1022211)
≤ Responder (/Ajax_comments/reply/261763/1022221)
149 Points Is this allowed by RedHat , or the relevant packages from oVirt project should be used ?
If the package from oVirt project should be used (ovirt-guest-agent-common), will it
work with RHV4 Manager node ?
≤ Responder (/Ajax_comments/reply/261763/1127711)
≤ Responder (/Ajax_comments/reply/261763/1127831)
≤ Responder (/Ajax_comments/reply/261763/1283021)
≤ Responder (/Ajax_comments/reply/261763/1283031)
≤ Responder (/Ajax_comments/reply/261763/1283561)
By the way, I have Windows Server 2008 and Windows 10 VM running with
memory and cpu reporting working there.
If it's not working for you, check that the service is starting in services.msc.
Make sure that if you have upgraded RHV that you're using the associated
tools iso. Check the rhv guide on where to get it and how to upload to the
iso domain.
The only times when I do not get systems reporting memory is when the
service is not started or due to an old version / not starting. I have some
RHEL5 systems that I cannot get this service started on at the moment.
Hope it helps! :)
≤ Responder (/Ajax_comments/reply/261763/1444811)
≤ Responder (/Ajax_comments/reply/261763/1527531)
10 Points
≤ Responder (/Ajax_comments/reply/261763/1527631)
NEWBIE
answer your question the packages are same in terms of features.
10 Points
≤ Responder (/Ajax_comments/reply/261763/1533151)
≤ Responder (/Ajax_comments/reply/261763/1574711)