VMware

Jonathan Marrott's VM Scripting Blog

A swell blog containing some of the scripts I have written for VM management.

1 Posts tagged with the esxcfg-nas tag
3

Create NFS Mount on ESX (Updated)

Posted by froboy Jan 18, 2008

I like to have a mount on each of my ESX servers to allow for quick installations and centralized scripting for cron jobs.

NFS Mount visible from host and service console:
<Required to have a Service Console and VMKernel port>
This can be accessed from /vmfs/volumes/<datastore>
esxcfg-firewall -e nfsClient
esxcfg-nas -a -o nfsserver.yourdomain.com -s /vol/vm nfs01

Manual mount visible from the service console only:
1. Edit /etc/rc.d/rc.local
2. Add: mount nfsserver.yourdomain.com:/vol/vm /mnt/vm
This will allow it to mount on boot.
3. Execute: mkdir /mnt/vm
4. Execute: chkconfig portmap on
5. Execute: service portmap start
6. Execute: esxcfg-firewall -e nfsClient
7. Execute: mount nfsserver.yourdomain.com:/vol/vm /mnt/vm
This will immediately mount.

3 Comments Permalink
Click to view froboy's profile Member since: Jun 26, 2006

A swell blog containing some of the scripts I have written for VM management.

View froboy's profile

Communities