Hi all,
I am setting up a number of jails on a server (OS spec's below) and would like to run amd (automount daemon) to auto mount/dismount one of our test lab's NFS shares. It works fine on the jail host, but I cannot find a way to bind it to a specific IP, so it can run in the jails. Can this be done or do I need to use nullfs mounts for this like you do for NFS mounts*?
* We needed eight NFS mounts to various servers in each jail, but discovered NFS is not a 'jail friendly' OS according to lsvfs (quote Google). I also had a failed attempt to add VFCF_JAIL to src/sys/nfsclient/nfs_vfsops.c to make NFS 'jail friendly'. I'm using nullfs mounts to the jail sub-directories to get around this now. It's ugly, but it works, but will be uglier when we have eight jails with eight mounts a piece; 64 nullfs mounts + 8 nfs mounts on the host.
* I would love to avoid the whole use of nullfs mounts and just let the jails have their own mounts as they please so feel free to pop in a hint if anyone knows of a way to do this.
* This is a segregated environment where security is essentially disabled for build and testing purposes.
Jail host:
- FreeBSD 8.1 RC2 amd64 (updated to RELENG_8_1 about 2 weeks ago)
- The Lab IP/hostname I want to bind amd to is 10.128.6.11 (build.test.name.com) for example
- The Corporate IP and hostname I don't need bound
Jail guest #1 for example:
- FreeBSD 6.1 i386 (updated to RELENG_6_1 about two weeks ago)
- The Lab IP/hostname I want to bind amd to is 10.128.6.12 (build2.test.name.com) for example
- The Corporate IP and hostname I don't need bound
Thank very much, Dylan
I am setting up a number of jails on a server (OS spec's below) and would like to run amd (automount daemon) to auto mount/dismount one of our test lab's NFS shares. It works fine on the jail host, but I cannot find a way to bind it to a specific IP, so it can run in the jails. Can this be done or do I need to use nullfs mounts for this like you do for NFS mounts*?
* We needed eight NFS mounts to various servers in each jail, but discovered NFS is not a 'jail friendly' OS according to lsvfs (quote Google). I also had a failed attempt to add VFCF_JAIL to src/sys/nfsclient/nfs_vfsops.c to make NFS 'jail friendly'. I'm using nullfs mounts to the jail sub-directories to get around this now. It's ugly, but it works, but will be uglier when we have eight jails with eight mounts a piece; 64 nullfs mounts + 8 nfs mounts on the host.
* I would love to avoid the whole use of nullfs mounts and just let the jails have their own mounts as they please so feel free to pop in a hint if anyone knows of a way to do this.
* This is a segregated environment where security is essentially disabled for build and testing purposes.
Jail host:
- FreeBSD 8.1 RC2 amd64 (updated to RELENG_8_1 about 2 weeks ago)
- The Lab IP/hostname I want to bind amd to is 10.128.6.11 (build.test.name.com) for example
- The Corporate IP and hostname I don't need bound
Jail guest #1 for example:
- FreeBSD 6.1 i386 (updated to RELENG_6_1 about two weeks ago)
- The Lab IP/hostname I want to bind amd to is 10.128.6.12 (build2.test.name.com) for example
- The Corporate IP and hostname I don't need bound
Thank very much, Dylan