Setup NFS server to share DVD PDF Print E-mail
Tuesday, 15 January 2008 00:10
Want to know to setup an NFS server on Linux and connect it to a VMware ESX server? Could be handy, for example when you have a DVD you want to use on your ESX host, but you don't have a DVD player... (grrrr).
Well, this is how it's done.

On the linux host

check if nfs is running, look for something like
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  37880  nlockmgr
    100021    3   udp  37880  nlockmgr
    100021    4   udp  37880  nlockmgr
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
# rpcinfo -p

# vi /etc/exports
/mnt/cdrom 10.20.2.204(ro) 10.20.2.20(ro)

check if a share has got a connected server
# cat /proc/fs/nfs/exports
/mnt/cdrom      10.20.2.204(ro,root_squash,sync,wdelay,no_subtree_check)

gewijzigde config van /ets/exports activeren als nfs draait
# exportfs -ra

On VMware ESX host

# esxcfg-firewall -e nfsClient
# mount ezhappl21.elisabeth.nl:/mnt/cdrom /mnt/cdrom
# /mnt/cdrom/install
# /mnt/cdrom
# esxcfg-firewall -d nfsClient

 

Add comment


Security code
Refresh

More KB Articles