[Users] Pseudo Guest Agent for unsupported VM distro

Markus Stockhausen stockhausen at collogia.de
Sun Apr 6 18:46:09 UTC 2014


> 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

Markus



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: InterScan_Disclaimer.txt
URL: <http://lists.ovirt.org/pipermail/users/attachments/20140406/32dd7e90/attachment-0001.txt>


More information about the Users mailing list