This is an old revision of the document!
My objective in this section is to create three VMs on any of the four vmservers. I will create one server and two clients that can access that server. The server will contain:
The client VMs will contain:
I created my server and clients using
root@vmserver01:~# xen-create-image --hostname='desired-hostname-here' --dhcp --verbose
The VMs are the following:
The dhcp settings are as follows for the VMs (this includes my other VMs as well):
## ## Jawsh's VMs ## host pancake.projects.lan { hardware ethernet 00:16:3E:E3:96:8F; fixed-address pancake.projects.lan; } host arbiter.projects.lan { hardware ethernet 00:16:3E:23:8E:65; fixed-address arbiter.projects.lan; } host masterchief.projects.lan { hardware ethernet 00:16:3E:A3:B6:5A; fixed-address masterchief.projects.lan; } host cortana.projects.lan { hardware ethernet 00:16:3E:C9:42:89; fixed-address cortana.projects.lan; }
The DNS records are as follows (including my other VMs):
; jcavalu3 (50-59) 50 IN PTR pancake.projects.lan. 51 IN PTR vm-051.projects.lan. 52 IN PTR vm-052.projects.lan. 53 IN PTR vm-053.projects.lan. 54 IN PTR vm-054.projects.lan. 55 IN PTR vm-055.projects.lan. 56 IN PTR vm-056.projects.lan. 57 IN PTR arbiter.projects.lan. 58 IN PTR masterchief.projects.lan. 59 IN PTR cortana.projects.lan.
; jcavalu3 (50-59) ;Group Pancake pancake IN A 10.80.3.50 vm-051 IN A 10.80.3.51 vm-052 IN A 10.80.3.52 vm-053 IN A 10.80.3.53 vm-054 IN A 10.80.3.54 vm-055 IN A 10.80.3.55 vm-056 IN A 10.80.3.56 arbiter IN A 10.80.3.57 masterchief IN A 10.80.3.58 cortana IN A 10.80.3.59
Required packages for cortana (NFS server):
Required packages for masterchief and arbiter (clients):
After installing the nfs-kernel-server and nfs-common packages, /etc/exports is your best friend.
The /dev/exports file:
# /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). # # Example for NFSv2 and NFSv3: /srv masterchief(rw,sync,no_subtree_check,no_root_squash) arbiter(ro,sync,no_subtree_check,no_root_squash) # # Example for NFSv4: # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check,no_root_squash) # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check,no_root_squash) #
The uncommented line contains the client mount settings.