Setup NFS server to share DVD

Setup NFS server to share DVD

Setup NFS server to share DVD 150 150 Roderick Derks

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

Roderick Derks

Liefhebber van fietsen, van het oplossen van IT puzzels, en van het delen van informatie om anderen te helpen.

All stories by:Roderick Derks

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Your Name (required)

Your Email (required)

Subject

Your Message

Your Name (required)

Your Email (required)

Subject

Your Message