All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Qemu-devel] access the files on the Vm
@ 2011-09-22  6:32 bala suru
  2011-09-22  9:12 ` Stefan Hajnoczi
  0 siblings, 1 reply; 4+ messages in thread
From: bala suru @ 2011-09-22  6:32 UTC (permalink / raw)
  To: Stefan Hajnoczi, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1394 bytes --]

Hi,
I need to share some file from the host OS to guest OS ..?

when ever Vm boots up it looks for the file in some directory , If I do some
modification to the file host OS the guest (VM) also should can access that
..?

how to make this ..?
regards

Bala

On Tue, Sep 13, 2011 at 11:57 AM, bala suru <balaqemu@gmail.com> wrote:

> Hi,
> Thanks a lot , it resolved my problem .. I could get the data inside VM .
>
> regards
> Bala
>
> On Tue, Sep 13, 2011 at 10:53 AM, Stefan Hajnoczi <stefanha@gmail.com>wrote:
>
>> On Tue, Sep 13, 2011 at 5:59 AM, bala suru <balaqemu@gmail.com> wrote:
>> > Yes, I'm connecting a USB to serial device to the host (ubuntu 11.04)
>> and I
>> > want that serial port on my VM .
>> > I tried the solution you have suggested but still same problem , can
>> not
>> > see the virtual serial port (ttyACM0) on VM but I could see on the HOST
>> .
>> >
>> > The following is the line  I have tried .
>> >  RAW = [ type = "kvm",
>> >           data = "<devices><serial type=\"dev\"><source
>> > path=\"/dev/ttyACM0\"/><target port=\"0\"/></serial><console
>> type=\"pty\"
>> > tty=\"/dev/pts/5\"><source path=\"/dev/pts/5\"/><target
>> > port=\"0\"/></console></devices>" ]
>>
>> Inside the guest you will see a regular serial port (/dev/ttyS0).  The
>> guest does not know that you're using /dev/ttyACM0 on the host, but
>> that should not matter.
>>
>> Stefan
>>
>
>

[-- Attachment #2: Type: text/html, Size: 2324 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] access the files on the Vm
  2011-09-22  6:32 [Qemu-devel] access the files on the Vm bala suru
@ 2011-09-22  9:12 ` Stefan Hajnoczi
       [not found]   ` <CAOYyr-shUZyhM6HyE2kVNh9t82keR5f5zOM+RfVK4x2Uy9bWhA@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Hajnoczi @ 2011-09-22  9:12 UTC (permalink / raw)
  To: bala suru; +Cc: qemu-devel

On Thu, Sep 22, 2011 at 7:32 AM, bala suru <balaqemu@gmail.com> wrote:
> I need to share some file from the host OS to guest OS ..?
>
> when ever Vm boots up it looks for the file in some directory , If I do some
> modification to the file host OS the guest (VM) also should can access that
> ..?
>
> how to make this ..?

You can use a network file system like NFS or CIFS.  This is just like
sharing files between physical machines and probably the best solution
at the moment.  (Or you might find sshfs handy.)

Or you can try out virtfs, which is also a remote file system but done
in a virtualization-aware way:
http://wiki.qemu.org/Documentation/9psetup

Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] access the files on the Vm
       [not found]   ` <CAOYyr-shUZyhM6HyE2kVNh9t82keR5f5zOM+RfVK4x2Uy9bWhA@mail.gmail.com>
@ 2011-09-22  9:43     ` Stefan Hajnoczi
  2011-09-22 11:18       ` Zhi Yong Wu
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Hajnoczi @ 2011-09-22  9:43 UTC (permalink / raw)
  To: bala suru; +Cc: qemu-devel

On Thu, Sep 22, 2011 at 10:20 AM, bala suru <balaqemu@gmail.com> wrote:
> Hi,
> Actually I need to pass some binary files to the VM after it boots up .
> since VM is a very low foot print it doesnt support nfs .
>
> Is there a simple way to pass the file when VM is booting ..?

Please keep qemu-devel@nongnu.org CCed so others can contribute to the
discussion.

You can play with the -kernel/-initrd options to specify your kernel
and then build an initramfs with the file you need.

Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] access the files on the Vm
  2011-09-22  9:43     ` Stefan Hajnoczi
@ 2011-09-22 11:18       ` Zhi Yong Wu
  0 siblings, 0 replies; 4+ messages in thread
From: Zhi Yong Wu @ 2011-09-22 11:18 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: bala suru, qemu-devel

On Thu, Sep 22, 2011 at 5:43 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Thu, Sep 22, 2011 at 10:20 AM, bala suru <balaqemu@gmail.com> wrote:
>> Hi,
>> Actually I need to pass some binary files to the VM after it boots up .
>> since VM is a very low foot print it doesnt support nfs .
>>
>> Is there a simple way to pass the file when VM is booting ..?
>
> Please keep qemu-devel@nongnu.org CCed so others can contribute to the
> discussion.
>
> You can play with the -kernel/-initrd options to specify your kernel
> and then build an initramfs with the file you need.
To be honest, for this way, i have never succeeded to try it.

>
> Stefan
>
>



-- 
Regards,

Zhi Yong Wu

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-22 11:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-22  6:32 [Qemu-devel] access the files on the Vm bala suru
2011-09-22  9:12 ` Stefan Hajnoczi
     [not found]   ` <CAOYyr-shUZyhM6HyE2kVNh9t82keR5f5zOM+RfVK4x2Uy9bWhA@mail.gmail.com>
2011-09-22  9:43     ` Stefan Hajnoczi
2011-09-22 11:18       ` Zhi Yong Wu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.