Kvm mount host dirs via NFS

From vsd
Jump to navigation Jump to search

/etc/exports:

 /usr/local 192.168.250.0/255.255.255.0(ro,wdelay,no_subtree_check)
 /extra/public *(rw,insecure,no_subtree_check)

govu script (run this inside your vm):

 #!/bin/sh
 set -x
 mount 192.168.250.1:/extra/public /extra
 mount 192.168.250.1:/usr/local /usr/local