[ovirt-users] vhostmd vdsm-hook

Arsène Gschwind arsene.gschwind at unibas.ch
Tue Apr 19 12:06:18 UTC 2016


The metric information are available on this additional disk /dev/vdb. 
You may install the package vm-dump-metrics and use the command 
vm-dump-metrics which will display all metrics in an xml format.

Arsène

On 04/19/2016 10:48 AM, Simon Barrett wrote:
>
> Thanks Arsène,
>
> I have vhostmd running on the ovirt node and have set the sap_agent to 
> true on the VM configuration. I also stopped and started the VM to 
> ensure that the config change took effect.
>
> On the oVirt node I see the vhostmd running and see the following 
> entry in the qemu-kvm output:
>
> drive 
> file=/dev/shm/vhostmd0,if=none,id=drive-virtio-disk701,readonly=on,format=raw 
> -device 
> virtio-blk-pci,scsi=off,bus=pci.0,addr=0x8,drive=drive-virtio-disk701,id=virtio-disk701
>
> The part I wasn’t quite understanding was how this presented itself on 
> the VM but I now see a new disk device “/dev/vdb”. If I cat the 
> contents of /dev/vdb I now see the information that is provided from 
> the ovirt node, which is great news and very useful.
>
> Thanks for your help.
>
> Simon
>
> *From:*users-bounces at ovirt.org [mailto:users-bounces at ovirt.org] *On 
> Behalf Of *Arsène Gschwind
> *Sent:* Monday, 18 April, 2016 16:03
> *To:* users at ovirt.org
> *Subject:* Re: [ovirt-users] vhostmd vdsm-hook
>
> Hi Simon,
>
> You will need to have vhostmd running on the oVirt node and set the 
> "sap_agent" custom property for the vm as you may see on the screenshot.
>
> sap_agent
>
> Arsène
>
> On 04/15/2016 12:15 PM, Simon Barrett wrote:
>
>     I’m trying to use the vhostmd vdsm host to access ovirt node
>     metrics from within a VM. Vhostmd is running and updating the
>     /dev/shm/vhostmd0 on the ovirt node.
>
>     The part I’m stuck on is: “This disk image is exported read-only
>     to guests. Guests can read the disk image to see metrics” from
>     http://www.ovirt.org/develop/developer-guide/vdsm/hook/vhostmd/
>
>     Does the hook do this by default? I don’t see any new read-only
>     device mounted in the guest. Is there additional work I need to do
>     to mount this and access the data from within the guest?
>
>     Many thanks,
>
>     Simon
>
>
>
>
>     _______________________________________________
>
>     Users mailing list
>
>     Users at ovirt.org <mailto:Users at ovirt.org>
>
>     http://lists.ovirt.org/mailman/listinfo/users
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160419/1dd9eafc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 6941 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160419/1dd9eafc/attachment-0001.png>


More information about the Users mailing list