help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: qemu shared folder


From: Ludovic Courtès
Subject: Re: qemu shared folder
Date: Mon, 22 May 2017 14:07:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Hello,

Catonano <address@hidden> skribis:

> I created my virtual machine with this command
>
> guix system vm-image /etc/vm-config-desktop.scm \
>    --image-size=30GB \
>    --share=$HOME=/exchange
>
> then I copied the image from the store to a local folder
> then I run it with this command
>
> qemu-system-x86_64 \
>  -net user \
>  -net nic,model=virtio \
>  -enable-kvm -m 4096 .../projects/qemu-image
>
> Now: I understand that there should be a folder that is shared among the 2
> machines, the host and the guest
>
> I can't find it
>
> Where is it ?
>
> Where is iit on the host ?
> And where is it on the guest ?

The documentation (info "(guix) Invoking guix system") phrases it this
way:

     The example below creates a VM in which the user’s home directory
     is accessible read-only, and where the ‘/exchange’ directory is a
     read-write mapping of ‘$HOME/tmp’ on the host:

          guix system vm my-config.scm \
             --expose=$HOME --share=$HOME/tmp=/exchange

IOW, if you do “cd /exchange” in the guest, you should see the contents
of the host’s $HOME/tmp, read-write.  Likewise, if $HOME = /foo in the
host, then /foo in the guest is a read-only view of the host’s /foo.

HTH!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]