
This is a multi-part message in MIME format. --------------080905070705000500010709 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------080905070705000500010709 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <div class="moz-cite-prefix">On 04/06/2014 08:46 PM, Markus Stockhausen wrote:<br> </div> <blockquote cite="mid:12EF8D94C6F8734FB2FF37B9FBEDD173586169C6@EXCHANGE.collogia.de" type="cite"> <blockquote type="cite"> <pre wrap="">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: <a class="moz-txt-link-freetext" href="https://github.com/oVirt/ovirt-guest-agent/tree/master/ovirt-guest-agent">https://github.com/oVirt/ovirt-guest-agent/tree/master/ovirt-guest-agent</a> <a class="moz-txt-link-freetext" href="http://www.ovirt.org/images/2/20/Ovirt-guest-agent.pdf">http://www.ovirt.org/images/2/20/Ovirt-guest-agent.pdf</a> 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. </pre> </blockquote> <pre wrap=""> 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</pre> </blockquote> Yes, this indeed would work.<br> <blockquote cite="mid:12EF8D94C6F8734FB2FF37B9FBEDD173586169C6@EXCHANGE.collogia.de" type="cite"> <pre wrap=""> Markus </pre> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ Users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </pre> </blockquote> <br> <br> <pre class="moz-signature" cols="72">-- 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</pre> </body> </html> --------------080905070705000500010709--