On 04/06/2014 08:46 PM, Markus Stockhausen wrote:
Von: Markus Stockhausen
Gesendet: Sonntag, 6. April 2014 11:19
An: ovirt-users
Betreff: Pseudo Guest Agent for unsupported VM distro

Hello,

from my understanding it should be possible to provide an absolute
minimalistic guest agent functionality by writing a 5-liner that fills some
basic info into the virto serial device within the guest VM. At least from
what I can read in the source at github or the docs:

https://github.com/oVirt/ovirt-guest-agent/tree/master/ovirt-guest-agent
http://www.ovirt.org/images/2/20/Ovirt-guest-agent.pdf

Currently I'm interested to provide the most simple data: IP address
& FQDN for our SLES 11 guests (no guest agent yet). I tried to understand
what I must write into the serial device but there is no change in the VM
overview panel. Different combinations did not provide any success.

Maybe someone can send the syntax for the two required echo commands.
For populating those two columns just use an init script inside the VM that
echoes the following data into the serial console. A sample for a host with two
IPs and name host.test.com:

echo  '{"__name__": "network-interfaces", "interfaces": [{"name": "en1", "inet": "1.2.3.4"}, {"name": 
"en2", "inet": "9.10.11.12"}]}' > /dev/virtio-ports/com.redhat.rhevm.vdsm
echo  '{"__name__": "fqdn", "fqdn": "host.test.com"}' > 
/dev/virtio-ports/com.redhat.rhevm.vdsm
Yes, this indeed would work.

Markus





_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


--
Regards,

Vinzenz Feenstra | Senior Software Engineer
RedHat Engineering Virtualization R & D
Phone: +420 532 294 625
IRC: vfeenstr or evilissimo

Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com

_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to