Hi all,
I have been getting a strange error when I attempt to start a jail in FreeBSD 8. In the jail's /var/log/messages file I'm getting the error:
In my host system I can see that /dev is mounted in the jail:
and going to /jails/jailname/dev/pts on the host shows that there are two entries in that directory, 0 and 1.
However, inside the jail:
Once it is booted, the jail runs normally, but booting takes a couple minutes. It has no third-party services in it (databases, webservers, mailservers, etc), so it wouldn't be hanging while they start.
The weird thing is that other jails on the same machine run perfectly fine - one jail has tomcat, apache & postgres running in it and it starts in under 10s. They don't have the /dev/pts error showing in their logs too.
I'm at a loss as to why this is happening. They are all running off the same basejail, created with ezjail-admin. I'm wondering if anyone has come across this, and if they have found a solution.
I have been getting a strange error when I attempt to start a jail in FreeBSD 8. In the jail's /var/log/messages file I'm getting the error:
Code:
Dec 14 23:45:52 jailname login: chflags(/dev/pts/1): No such file or directory
Dec 14 23:45:52 jailname login: chown(/dev/pts/1): No such file or directory
In my host system I can see that /dev is mounted in the jail:
Code:
host$ df -h
....
devfs 1.0K 1.0K 0B 100% /jails/jailname/dev
fdescfs 1.0K 1.0K 0B 100% /jails/jailname/dev/fd
and going to /jails/jailname/dev/pts on the host shows that there are two entries in that directory, 0 and 1.
Code:
host$ ls /jails/jailname/dev/pts
total 0
crw--w---- 1 root tty 0, 129 Dec 15 00:04 0
crw--w---- 1 root tty 0, 139 Dec 15 00:04 1
However, inside the jail:
Code:
jailname# ls /dev/pts
jailname#
Once it is booted, the jail runs normally, but booting takes a couple minutes. It has no third-party services in it (databases, webservers, mailservers, etc), so it wouldn't be hanging while they start.
The weird thing is that other jails on the same machine run perfectly fine - one jail has tomcat, apache & postgres running in it and it starts in under 10s. They don't have the /dev/pts error showing in their logs too.
I'm at a loss as to why this is happening. They are all running off the same basejail, created with ezjail-admin. I'm wondering if anyone has come across this, and if they have found a solution.