Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

File Sharing between Host and OpenConext VM

jmsnoeij edited this page Sep 17, 2013 · 1 revision

One way of sharing information between your host OS and the OpenConext VM is through NFS, this is proven to be the best way of sharing information between the guest and the host, also for debugging and development purposes.

#setup on the HOST machine create or update an exports file with the following content: $ vi /etc/exports "/path/to/file/on/host" 192.168.56.101 -mapall=uid:guid

the ip address should be the ip address of the guest system and the uid:guid are used in the guest system to indentify the file system.

$ sudo nfsd update

this will update the nfs server on the host system

setup on the Virtual Machine

disable se linux (if installed) setenforce 0

edit /etc/selinux/config set SELINUX=disabled

add a line to fstab [root@demo ~]# vi /etc/fstab

... 192.168.56.1:/path/from/host/ /path/on/guest nfs nfsvers=3,rw, 0

yum install nfs-utils nfs-utils-lib

and mount the local directory on the vm [root@demo ~]# mount /path/on/vm

REBOOT

Clone this wiki locally