Query regarding copying and executing files inside guest OS

Hi, We are looking for a way to copy files and execute scripts inside Virtual Machines hosted on oVirt manager (Any supported guest OS) either through REST API or using Guest Tools. Please let me know how we can achieve it. -Thanks, Pravin Amin Principal SQA Engineer Netbackup Veritas Technologies LLC Office: (91) 20 - 66157288 / Mobile: (91) 9881139050 pravin.amin@veritas.com<mailto:pravin.amin@veritas.com> [signature_394478960]<https://www.veritas.com/product/backup-and-recovery/netbackup-8?om_camp_id=us_em_signature_web_NBU_vr> This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication.

On Thu, Feb 21, 2019 at 2:42 PM Pravin Amin <Pravin.Amin@veritas.com> wrote:
Hi,
We are looking for a way to copy files and execute scripts inside Virtual Machines hosted on oVirt manager (Any supported guest OS) either through REST API or using Guest Tools. Please let me know how we can achieve it.
I'm not an expert in this area, but I think you have 2 options: - ssh - we have integration in engine, not sure how it can be used - qemu-guest-agent - I think it supports running commands on a host, but I don't know any derails. We integrate with it, but I don't know if we support such options. I hope that Ryan can help with this. For qemu-guest-agent, the best place to ask is probably qemu-discuss, added. Nir
-Thanks,
*Pravin Amin*
Principal SQA Engineer
Netbackup
Veritas Technologies LLC
Office: (91) 20 - 66157288 / Mobile: (91) 9881139050
pravin.amin@veritas.com
[image: signature_394478960] <https://www.veritas.com/product/backup-and-recovery/netbackup-8?om_camp_id=us_em_signature_web_NBU_vr>
This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/PE7G5WXBGIN5I2...

On 21 Feb 2019, at 18:23, Nir Soffer <nsoffer@redhat.com> wrote:
On Thu, Feb 21, 2019 at 2:42 PM Pravin Amin <Pravin.Amin@veritas.com <mailto:Pravin.Amin@veritas.com>> wrote: Hi,
We are looking for a way to copy files and execute scripts inside Virtual Machines hosted on oVirt manager (Any supported guest OS) either through REST API or using Guest Tools. Please let me know how we can achieve it.
I'm not an expert in this area, but I think you have 2 options: - ssh - we have integration in engine, not sure how it can be used
ssh is just a transport for plain serial console. That can be used for scripting indeed It’s not through REST API, you just use ssh as a client from wherever you want plenty of details in [1]
- qemu-guest-agent - I think it supports running commands on a host, but I don't know
remote file exec is blacklisted. And it nyway can’t be invoked from oVirt API Thanks, michal [1] https://resources.ovirt.org/old-site-files/wiki/Ovirt36_deep_dive-guest_seri...
any derails. We integrate with it, but I don't know if we support such options.
I hope that Ryan can help with this.
For qemu-guest-agent, the best place to ask is probably qemu-discuss, added.
Nir
-Thanks,
Pravin Amin
Principal SQA Engineer
Netbackup
Veritas Technologies LLC
Office: (91) 20 - 66157288 / Mobile: (91) 9881139050
pravin.amin@veritas.com <mailto:pravin.amin@veritas.com>
<image001.png> <https://www.veritas.com/product/backup-and-recovery/netbackup-8?om_camp_id=us_em_signature_web_NBU_vr>
This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication.
_______________________________________________ Devel mailing list -- devel@ovirt.org <mailto:devel@ovirt.org> To unsubscribe send an email to devel-leave@ovirt.org <mailto:devel-leave@ovirt.org> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ <https://www.ovirt.org/site/privacy-policy/> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ <https://www.ovirt.org/community/about/community-guidelines/> List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/PE7G5WXBGIN5I2... <https://lists.ovirt.org/archives/list/devel@ovirt.org/message/PE7G5WXBGIN5I2O2JHLZZ2A2VTWFWQDN/> _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/NQ4DMCBGIH5QZ4...

On Thu, Feb 21, 2019 at 2:42 PM Pravin Amin <Pravin.Amin@veritas.com> wrote:
Hi,
We are looking for a way to copy files and execute scripts inside Virtual Machines hosted on oVirt manager (Any supported guest OS) either through REST API or using Guest Tools. Please let me know how we can achieve it.
Pravin, I think we could all benefit if you elaborate on your use case. The other day I spoke with +Barak Korren about a tight integration of oVirt to libguestfs. I think that it could be lovely if we can do LIBGUESTFS_BACKEND=ovirt \ LIBGUESTFS_BACKEND_SETTINGS=https://username:password@fqdn/path/to/ovirt/api \ virt-edit -d vm_name /file/to/edit in order to edit a file in an ovirt-defined VM. Behind the scenes, oVirt would prepare the VM storage on a hypervisor and relay the guestfs connection to it. Such a remote virt-cat would be an awesome debug tool for a dead VM. Such a virt-sysprep - a great headless way to prepare a template. Are you looking for something similar?

Hi Dan, We have some scripts and test data files which we need to copy to guest VMs and then execute the scripts inside the guest VM and looking for ways to automate this process for data validation testing. -Thanks, Pravin On 22/02/19, 2:35 PM, "Dan Kenigsberg" <danken@redhat.com> wrote: On Thu, Feb 21, 2019 at 2:42 PM Pravin Amin <Pravin.Amin@veritas.com> wrote: > > Hi, > > > > We are looking for a way to copy files and execute scripts inside Virtual Machines hosted on oVirt manager (Any supported guest OS) either through REST API or using Guest Tools. Please let me know how we can achieve it. Pravin, I think we could all benefit if you elaborate on your use case. The other day I spoke with +Barak Korren about a tight integration of oVirt to libguestfs. I think that it could be lovely if we can do LIBGUESTFS_BACKEND=ovirt \ LIBGUESTFS_BACKEND_SETTINGS=https://username:password@fqdn/path/to/ovirt/api \ virt-edit -d vm_name /file/to/edit in order to edit a file in an ovirt-defined VM. Behind the scenes, oVirt would prepare the VM storage on a hypervisor and relay the guestfs connection to it. Such a remote virt-cat would be an awesome debug tool for a dead VM. Such a virt-sysprep - a great headless way to prepare a template. Are you looking for something similar?

On Fri, Feb 22, 2019 at 11:12 AM Pravin Amin <Pravin.Amin@veritas.com> wrote:
Hi Dan,
We have some scripts and test data files which we need to copy to guest VMs and then execute the scripts inside the guest VM and looking for ways to automate this process for data validation testing.
Your description is still scarce of words, but it seems that it can be handled by ssh into ever-running VMs. Is there a problem with that approach?
participants (4)
-
Dan Kenigsberg
-
Michal Skrivanek
-
Nir Soffer
-
Pravin Amin