On 02/22/2012 10:00 AM, Gal Hammer wrote:
On 21/02/2012 22:41, Nathan Stratton wrote:
> On Tue, 21 Feb 2012, Itamar Heim wrote:
>
>> On 02/21/2012 07:41 PM, Nathan Stratton wrote:
>>> On Tue, 21 Feb 2012, Gal Hammer wrote:
>>>
>>>> The ovirt-guest-agent returns "free" memory as the sum of three
fields
>>>> (free memory, buffers and cache). The logic behind this is because
>>>> linux will reduce the memory used for buffers and cache as needed. So
>>>> we can assume this is a "free" memory.
>>>
>>> Has anyone built a rpm repo with common RPMs, only one I see is fc16.
The ovirt-guest-agent can probably build and used only on fc16. This is
due the changes in the file system layout (/run is tmpfs for example)
and using systemd and not initd.
nathan - if you make it work, feel free to send patches making it
support both platforms (or any other distro)
>> do you mean noarch?
Although the agent is written in python and could have been noarch it is
not possible because of its sub-packages. The sub-packages (gdm/kdm
plug-ins and a pam module) are written in C.
> I found a older SRPM ovirt-guest-agent-1.0.0-2.1.src.rpm and was able to
> compile it for Centos 6.2. Is there anyting special you need to do to
> set it up? Right now I get:
>
> MainThread::INFO::2012-02-21
> 20:28:35,431::ovirt-guest-agent::25::root::Starting oVirt guest agent
> MainThread::ERROR::2012-02-21
> 20:28:35,450::ovirt-guest-agent::57::root::Unhandled exception in oVirt
> guest agent!
> Traceback (most recent call last):
> File "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 55, in
> <module>
> agent.run()
> File "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 33, in run
> file(AGENT_PIDFILE, "w").write("%s\n" % (os.getpid()))
> IOError: [Errno 2] No such file or directory:
> '/var/run/ovirt-guest-agent/ovirt-guest-agent.pid'
Is the directory /var/run/ovirt-guest-agent exists and does the
rhevagent user have a write permissions on it?
Gal.