From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: qemu shared folder Date: Sat, 13 Jan 2018 19:32:37 +0100 Message-ID: References: <87tw4dt7rd.fsf@gnu.org> <87lgh6w5fo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c089e3c0734d70562ac9b05" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaQbi-0006YQ-Db for help-guix@gnu.org; Sat, 13 Jan 2018 13:32:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaQbh-0005Gy-1I for help-guix@gnu.org; Sat, 13 Jan 2018 13:32:42 -0500 In-Reply-To: <87lgh6w5fo.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Chris Marusich Cc: help-guix --94eb2c089e3c0734d70562ac9b05 Content-Type: text/plain; charset="UTF-8" 2018-01-10 8:15 GMT+01:00 Chris Marusich : > Catonano writes: > > > the script produced by system vm contains this bit: > > > > -m 256 > > > > does this mean that the guest has 256 Mb ? > > Yes. The qemu manual describes this in more detail (section 2.3, > "Invocation"): > > https://qemu.weilnetz.de/doc/qemu-doc.html > > You might want to bookmark it or keep a local copy; it's a useful > reference manual. > > > Can I pass a switch to system vm so that it concedes more memory to my > > guest ? > > Similar to " --image-size=10GB " but for ram space rather than disk > space > > Yes, you can. The Guix manual explains ((guix) Invoking guix system): > > Arguments given to the script are passed to QEMU as in the example > below, which enables networking and requests 1 GiB of RAM for the > emulated machine: > > $ /gnu/store/...-run-vm.sh -m 1024 -net user > Ok, thanks > > > Ok, second observation: > > > > 2) > > > > if instead of system vm I use system vm-image, > > --share=$HOME/transit=/transit doesn't work > > So it seems > > Why ? > > Couldn't it work anyway ? > > I don't think that will work. I'm pretty sure that the --share option > is specific to "guix system". What you probably want to do is look at > the options used in the /gnu/store/...-run-vm.sh script, and mimic what > it does. If you see QEMU options in there that you don't understand, > try looking them up in the QEMU manual. > > By the way, there is a "--share" option mentioned in the QEMU manual, > but it seems to be totally unrelated (section 2.7.10, "NBD access"). > > > Pheew ;-) > > Hang in there! QEMU is extremely versatile, but it's got a little bit > of a learning curve. Beyond the reference manual, you can find even > more documentation here: > > https://wiki.qemu.org/Manual > > Hope that helped. Good luck! > That helped ! Thanks ! --94eb2c089e3c0734d70562ac9b05 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2018-01-10 8:15 GMT+01:00 Chris Marusich <cmmarusich@g= mail.com>:
Catonano <catonano@gmail.com> writes:

> the script produced by system vm contains this bit:
>
> -m=C2=A0 256
>
> does this mean that the guest has 256 Mb ?

Yes.=C2=A0 The qemu manual describes this in more detail (section 2.= 3,
"Invocation"):

https://qemu.weilnetz.de/doc/qemu-doc.html

You might want to bookmark it or keep a local copy; it's a useful
reference manual.

> Can I pass a switch to system vm so that it concedes more memory to my=
> guest ?
> Similar to "=C2=A0 =C2=A0--image-size=3D10GB " but for ram s= pace rather than disk space

Yes, you can.=C2=A0 The Guix manual explains ((guix) Invoking guix s= ystem):

=C2=A0 =C2=A0 =C2=A0Arguments given to the script are passed to QEMU as in = the example
=C2=A0 =C2=A0 =C2=A0below, which enables networking and requests 1 GiB of R= AM for the
=C2=A0 =C2=A0 =C2=A0emulated machine:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 $ /gnu/store/...-run-vm.sh -m 1024 -net = user

Ok, thanks
=C2=A0

> Ok, second observation:
>
> 2)
>
> if instead of system vm I use system vm-image,
> --share=3D$HOME/transit=3D/transit doesn't work
> So it seems
> Why ?
> Couldn't it work anyway ?

I don't think that will work.=C2=A0 I'm pretty sure that the= --share option
is specific to "guix system".=C2=A0 What you probably want to do = is look at
the options used in the /gnu/store/...-run-vm.sh script, and mimic what
it does.=C2=A0 If you see QEMU options in there that you don't understa= nd,
try looking them up in the QEMU manual.

By the way, there is a "--share" option mentioned in the QEMU man= ual,
but it seems to be totally unrelated (section 2.7.10, "NBD access"= ;).

> Pheew ;-)

Hang in there!=C2=A0 QEMU is extremely versatile, but it's got a little= bit
of a learning curve.=C2=A0 Beyond the reference manual, you can find even more documentation here:

https://wiki.qemu.org/Manual

Hope that helped.=C2=A0 Good luck!

That= helped !
Thanks !

--94eb2c089e3c0734d70562ac9b05--