VMware Cloud Community
aden81
Contributor
Contributor

Creating a datastore

I'm trying to create a datastore so I can test ESXi. I'm pretty green so hopefully I can get some help. I'm running ESXi from a USB drive. I took a test machine and loaded ubuntu on it thinking it would be easier to create a datastore that way. Basically I just want to use the hard drive for that machine as a datastore so I can test out the functionality of ESXi. So far, I haven't had any luck.

I installed nfs-kernel-server (apt-get install nfs-kernel-server) and modified the /etc/exports file with "/home server_ip(rw,no_root_squash)". Of course "server_ip" being the ip of the ESXi machine. I tried adding the datastore as a NFS but I either get a message saying that it can't mount or that it refused to mount. I'm completely lost on this. I hope this isn't too vague to get some help.

0 Kudos
4 Replies
MentholMoose
Enthusiast
Enthusiast

Of course "server_ip" being the ip of the ESXi machine.

What virtual adapter is this IP on? You need to mount an NFS export from a VMkernel adapter, not a service console. Also, is the physical NIC on the ESXi host gigabit?

----- {color:#555555}Kirk Kosinski{color} [!http://www.kirkkosinski.com/li.png!|http://www.linkedin.com/in/kirkkosinski] {color:#999999}MCITP: EA / VA / EDA7, VCP 4{color}
0 Kudos
PaulSvirin
Expert
Expert

Maybe a simple question: have you run "exportfs -a" after modifying /etc/exports ?

---

iSCSI SAN software

--- iSCSI SAN software http://www.starwindsoftware.com
aden81
Contributor
Contributor


What virtual adapter is this IP on? You need to mount an NFS export from a VMkernel adapter, not a service console. Also, is the physical NIC on the ESXi host gigabit?


Virtual adapter is vmk0 and the host NIC is gigabit (HP DC5750).


Maybe a simple question: have you run "exportfs -a" after modifying /etc/exports ?

I have now but I know very little about Linux so the output means nothing to me. Smiley Sad

Output:

exportfs: /etc/exports : Neither 'subtree_check' or 'no_subtree_check' specified for export "server_ip:/home".

Assuming default behaviour ('no_subtree_check')

0 Kudos
aden81
Contributor
Contributor

Nvm, I found a way to get it work.

0 Kudos