Hi Fanthom,
I guess I've done everything as you explained, but homedirs are still created in
/srv/pxe/storage instead of
/srv/pxe/home.
My server has IP-address 192.168.178.5.
This is what I have done on my server (which also is used for storage):
/etc/exports:
/media/Verbatim 192.168.178.0/24(rw,sync,no_subtree_check)
/srv/pxe/porteus 192.168.178.0/24(ro,fsid=0,no_subtree_check)
/srv/pxe/storage 192.168.178.0/24(rw,fsid=1,no_root_squash,no_subtree_check)
/srv/pxe/home 192.168.178.0/24(rw,fsid=1,no_root_squash,no_subtree_check)
Created directories witch chmod 777:
/srv/pxe/home
/srv/pxe/porteus
/srv/pxe/storage
On
/srv/pxe/porteus/rootcopy/etc/rc.d/rc.local (chmodded 777)
/sbin/mount -t nfs 192.168.178.5:/srv/pxe/home /home -o rw,nolock
I have a virtualhost running on Apache on port 8000 to serve the files:
000-kernel.xzm
001-core.xzm
002-xorg.xzm
003-kde.xzm
04-chrome.xzm
05-devel.xzm
08-skype.xzm
On tftpboot I use the following APPEND= parameters:
APPEND initrd=porteus/initrd.xz timezone=Europe/Amsterdam ip=0.0.0.0:192.168.178.5:192.168.178.1:255.255.255.0:8000 changes=/srv/pxe/storage
login=
The
ip= parameter defines that the needed files can be found on the http server on port 8000 (this works like a charm).
The
changes= parameter defines where the changes can be stored as you described
The
login= parameter makes sure a user needs to be manually selected to login, instead of autologin user "
guest".
Whenever I boot a client (as a test, running from VMware workstation with IP-address
192.168.178.233 and MAC-address
00:0C:29:DB:02:71.
It creates file-structure :
/srv/pxe/storage/client-DB0271
I logged in as user :
root
From terminal on the
CLIENT (logged in as root):
cat /proc/mounts | grep home
192.168.178.5:/srv/pxe/home /home nfs rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,nolock,proto=tcp,
timeo=600,retrans=2,sec=sys,mountaddr=192.168.178.5,mountvers=3,mountport=49341,mountproto=udp,local_lock=all,addr=192.168.178.5 0 0
When I add a user "
marctest" by :
adduser marctest
and fill in the questions : home directory is default set as
/home/marctest
When I execute the following on the CLIENT:
ls /home
It shows the following result:
client-DB0271
marctest
When I check
/srv/pxe/home on the SERVER, it shows an empty folder
When I check
/srv/pxe/storage on the SERVER, it shows:
client-DB0271
marctest
So client configs even as user homedirs are both stored on
/srv/pxe/storage.
What am I doing wrong?
Thanks for your help sofar!!
Marc