* [Qemu-devel] [QEMU guest agent] How to transfer file from host to guest and do some operation on that
@ 2014-06-12 14:47 Puneet Bakshi
2014-06-13 12:13 ` Christopher Covington
0 siblings, 1 reply; 2+ messages in thread
From: Puneet Bakshi @ 2014-06-12 14:47 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1141 bytes --]
Adding subject.
On Thu, Jun 12, 2014 at 8:15 PM, Puneet Bakshi <bakshi.puneet@gmail.com>
wrote:
> Hi,
>
> I want to be able to install RPM packages (available in host system at
> some path) to the online guest VM and want this facility to be available as
> a tool.
>
> I am thinking of having a gemu guest agent (qemu-ga) running inside guest
> VM. I did not find any available command ("virsh qemu-agent-command
> <guest_vm> ...") which can do the same.
>
> I am planning to implement a command in qemu guest agent, which I can
> invoke from virsh like below.
>
> "virsh qemu-agent-command vm_01 \
> '{"execute":"guest-rpm-
> install", \
> "arguments":{"path":"/usr/local/bin/ABC.rpm"}}
>
> I am able to pass arguments from host to guest VM but how am I supposed to
> pass the whole RPM image from host to guest (which the guest agent can
> receive and install)?
>
> Basically, I want to know how can we do following in QEMU environment.
>
> 1. take some bulky file from host to guest
> 2. perform some operation on that file
> 3. get the result of that operation.
>
> Regards,
> ~Puneet
>
[-- Attachment #2: Type: text/html, Size: 1843 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [QEMU guest agent] How to transfer file from host to guest and do some operation on that
2014-06-12 14:47 [Qemu-devel] [QEMU guest agent] How to transfer file from host to guest and do some operation on that Puneet Bakshi
@ 2014-06-13 12:13 ` Christopher Covington
0 siblings, 0 replies; 2+ messages in thread
From: Christopher Covington @ 2014-06-13 12:13 UTC (permalink / raw)
To: Puneet Bakshi; +Cc: qemu-devel
On 06/12/2014 10:47 AM, Puneet Bakshi wrote:
> Adding subject.
>
>
> On Thu, Jun 12, 2014 at 8:15 PM, Puneet Bakshi <bakshi.puneet@gmail.com
> <mailto:bakshi.puneet@gmail.com>> wrote:
>
> Hi,
>
> I want to be able to install RPM packages (available in host system at
> some path) to the online guest VM and want this facility to be available
> as a tool.
>
> I am thinking of having a gemu guest agent (qemu-ga) running inside guest
> VM. I did not find any available command ("virsh qemu-agent-command
> <guest_vm> ...") which can do the same.
>
> I am planning to implement a command in qemu guest agent, which I can
> invoke from virsh like below.
>
> "virsh qemu-agent-command vm_01 \
> '{"execute":"guest-rpm-
> install", \
> "arguments":{"path":"/usr/local/bin/ABC.rpm"}}
>
> I am able to pass arguments from host to guest VM but how am I supposed to
> pass the whole RPM image from host to guest (which the guest agent can
> receive and install)?
>
> Basically, I want to know how can we do following in QEMU environment.
>
> 1. take some bulky file from host to guest
> 2. perform some operation on that file
> 3. get the result of that operation.
I like the VirtIO-9P passthrough filesystem for accessing host files from the
guest.
http://www.linux-kvm.org/page/9p_virtio
(On ARM I've also used Angel semihosting, but you have to rip out some
security checks to get it to work from userspace.)
Christopher
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by the Linux Foundation.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-13 12:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-12 14:47 [Qemu-devel] [QEMU guest agent] How to transfer file from host to guest and do some operation on that Puneet Bakshi
2014-06-13 12:13 ` Christopher Covington
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).