Re: [ovirt-users] vhostmd vdsm-hook
I've never tried with 2 disks but I will assume that the next free available disk will be used by the vdsm hook and the vm-dump-metrics cmd will check the kind of disk. Let me know if you give a try thanks, Arsène On 04/19/2016 02:43 PM, Simon Barrett wrote: Thanks again but how does that work when a VM is configured to have more than one disk? If I have a VM with a /dev/vda disk and a /dev/vdb disk, when I turn the vhostmd hook on the vm metric device gets created as /dev/vdb and the original /dev/vdb disk gets bumped to /dev/vdc. Is that expected behavior? Will that not cause problems? Thanks, Simon *From:*Arsène Gschwind [mailto:arsene.gschw...@unibas.ch] *Sent:* Tuesday, 19 April, 2016 13:06 *To:* Simon Barrett <simon.barr...@tradingscreen.com>; users@ovirt.org *Subject:* Re: [ovirt-users] vhostmd vdsm-hook 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-boun...@ovirt.org <mailto:users-boun...@ovirt.org> [mailto:users-boun...@ovirt.org] *On Behalf Of *Arsène Gschwind *Sent:* Monday, 18 April, 2016 16:03 *To:* users@ovirt.org <mailto:users@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@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] vhostmd vdsm-hook
Thanks again but how does that work when a VM is configured to have more than one disk? If I have a VM with a /dev/vda disk and a /dev/vdb disk, when I turn the vhostmd hook on the vm metric device gets created as /dev/vdb and the original /dev/vdb disk gets bumped to /dev/vdc. Is that expected behavior? Will that not cause problems? Thanks, Simon From: Arsène Gschwind [mailto:arsene.gschw...@unibas.ch] Sent: Tuesday, 19 April, 2016 13:06 To: Simon Barrett <simon.barr...@tradingscreen.com>; users@ovirt.org Subject: Re: [ovirt-users] vhostmd vdsm-hook 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-boun...@ovirt.org<mailto:users-boun...@ovirt.org> [mailto:users-boun...@ovirt.org] On Behalf Of Arsène Gschwind Sent: Monday, 18 April, 2016 16:03 To: users@ovirt.org<mailto:users@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@ovirt.org<mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] vhostmd vdsm-hook
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-boun...@ovirt.org [mailto:users-boun...@ovirt.org] *On Behalf Of *Arsène Gschwind *Sent:* Monday, 18 April, 2016 16:03 *To:* users@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@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] vhostmd vdsm-hook
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-boun...@ovirt.org [mailto:users-boun...@ovirt.org] On Behalf Of Arsène Gschwind Sent: Monday, 18 April, 2016 16:03 To: users@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@ovirt.org<mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] vhostmd vdsm-hook
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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] vhostmd
Thanks all of you, in that case I will try to build it my self... Rgds, Arsène On 08/04/2015 04:07 PM, Dan Kenigsberg wrote: On Tue, Aug 04, 2015 at 02:31:51PM +0100, Dan Kenigsberg wrote: On Mon, Aug 03, 2015 at 03:52:19PM +0200, Arsène Gschwind wrote: Hi, I'm running oVirt 3.5 and trying to setup vhostmd on EL7 but I'm no able to find the vdsm-hook-vhostmd for EL7, are there some reason this RPM isn't available? I don't know - it should have been created and placed under http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7/noarch/ this either a bug vdsm.spec, or in the way that vdsm was built for ovirt. Could you file a bug to have it fixed? Yaniv, Sandro, could you take a look? Yaniv has pointed me to the need to backport https://gerrit.ovirt.org/#/c/44350/ to the stable branch. I hope this gets in to ovirt-3.5.5. Until then, you can build the hook on your own system. Regards, Dan. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] vhostmd
On Tue, Aug 04, 2015 at 02:31:51PM +0100, Dan Kenigsberg wrote: On Mon, Aug 03, 2015 at 03:52:19PM +0200, Arsène Gschwind wrote: Hi, I'm running oVirt 3.5 and trying to setup vhostmd on EL7 but I'm no able to find the vdsm-hook-vhostmd for EL7, are there some reason this RPM isn't available? I don't know - it should have been created and placed under http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7/noarch/ this either a bug vdsm.spec, or in the way that vdsm was built for ovirt. Could you file a bug to have it fixed? Yaniv, Sandro, could you take a look? Yaniv has pointed me to the need to backport https://gerrit.ovirt.org/#/c/44350/ to the stable branch. I hope this gets in to ovirt-3.5.5. Until then, you can build the hook on your own system. Regards, Dan. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] vhostmd
On Mon, Aug 03, 2015 at 03:52:19PM +0200, Arsène Gschwind wrote: Hi, I'm running oVirt 3.5 and trying to setup vhostmd on EL7 but I'm no able to find the vdsm-hook-vhostmd for EL7, are there some reason this RPM isn't available? I don't know - it should have been created and placed under http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7/noarch/ this either a bug vdsm.spec, or in the way that vdsm was built for ovirt. Could you file a bug to have it fixed? Yaniv, Sandro, could you take a look? Having no found the hook I've tried to setup a custom disk for vhostmd but I could not figure out how to do this since it only allows to add disk devices from storage domains. Anyone setup and use vhostmd? Thank for any help/hint. Rgds, Arsène ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] vhostmd
On Tue, Aug 4, 2015 at 3:31 PM, Dan Kenigsberg dan...@redhat.com wrote: On Mon, Aug 03, 2015 at 03:52:19PM +0200, Arsčne Gschwind wrote: Hi, I'm running oVirt 3.5 and trying to setup vhostmd on EL7 but I'm no able to find the vdsm-hook-vhostmd for EL7, are there some reason this RPM isn't available? I don't know - it should have been created and placed under http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7/noarch/ this either a bug vdsm.spec, or in the way that vdsm was built for ovirt. Could you file a bug to have it fixed? Yaniv, Sandro, could you take a look? vhostmd hook build is disabled in the spec file on rhel Having no found the hook I've tried to setup a custom disk for vhostmd but I could not figure out how to do this since it only allows to add disk devices from storage domains. Anyone setup and use vhostmd? Thank for any help/hint. Rgds, Arsčne ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users -- Sandro Bonazzola 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
[ovirt-users] vhostmd
Hi, I'm running oVirt 3.5 and trying to setup vhostmd on EL7 but I'm no able to find the vdsm-hook-vhostmd for EL7, are there some reason this RPM isn't available? Having no found the hook I've tried to setup a custom disk for vhostmd but I could not figure out how to do this since it only allows to add disk devices from storage domains. Anyone setup and use vhostmd? Thank for any help/hint. Rgds, Arsène ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users