Last active
April 14, 2017 07:30
-
-
Save kitten77/c3159cd6fca61a02a551388a43426c0f to your computer and use it in GitHub Desktop.
iocage startup error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## created too test iocage startup without using iocage. | |
# Typical static defaults: | |
# Use the rc scripts to start and stop jails. Mount jail's /dev. | |
exec.start = "/bin/sh /etc/rc"; | |
exec.stop = "/bin/sh /etc/rc.shutdown"; | |
exec.clean; | |
mount.devfs; | |
# Dynamic wildcard parameter: | |
# Base the path off the jail name. | |
path = "/iocage/jails/$name/root"; | |
## did not include ipv4 in this all the time that works as it should | |
a3cbb55a-2765-4033-9dba-3141ce2add17{ | |
host.hostname = "irssi.g.l9"; | |
ip6.addr="em0|2a01:4f8:151:64a3::1/64"; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@gaia:/home/muad/iocage # iocage start irssi | |
* Starting a3cbb55a-2765-4033-9dba-3141ce2add17 (irssi) | |
+ Started OK | |
+ Starting services OK | |
root@gaia:/home/muad/iocage # jls | |
JID IP Address Hostname Path | |
45 10.0.0.1 irssi.g.l9 /iocage/jails/a3cbb55a-2765-4033-9dba-3141ce2add17/root | |
root@gaia:/home/muad/iocage # jexec 45 netstat -an | |
netstat: kvm not available: /dev/mem: No such file or directory | |
Active Internet connections (including servers) | |
Proto Recv-Q Send-Q Local Address Foreign Address (state) | |
tcp4 0 0 10.0.0.1.22 *.* LISTEN | |
Active UNIX domain sockets | |
Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr | |
fffff80013fa8690 dgram 0 0 0 fffff80013ff90f0 0 0 | |
fffff80013ff90f0 dgram 0 0 fffff801140753b0 0 fffff80013fa8690 0 /var/run/logpriv | |
fffff80013f942d0 dgram 0 0 fffff8026ace81d8 0 0 0 /var/run/log | |
root@gaia:/home/muad/iocage # iocage get ip6_addr irssi | |
em0|2a01:4f8:151:64a3::1/64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@gaia:/home/muad # jail -c | |
a3cbb55a-2765-4033-9dba-3141ce2add17: created | |
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/perl5/5.24/mach/CORE | |
32-bit compatibility ldconfig path: /usr/lib32 | |
/etc/rc: WARNING: $hostname is not set -- see rc.conf(5). | |
Creating and/or trimming log files. | |
Starting syslogd. | |
protect: procctl: Operation not permitted | |
Clearing /tmp (X related). | |
Updating motd:. | |
Performing sanity check on sshd configuration. | |
Starting sshd. | |
Starting cron. | |
Fri Apr 14 04:47:53 UTC 2017 | |
root@gaia:/home/muad # jexec 43 netstat -an | |
netstat: kvm not available: /dev/mem: No such file or directory | |
Active Internet connections (including servers) | |
Proto Recv-Q Send-Q Local Address Foreign Address (state) | |
tcp6 0 0 2a01:4f8:151:64a.22 *.* LISTEN | |
Active UNIX domain sockets | |
Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr | |
fffff80013f941e0 dgram 0 0 0 fffff80013fa8690 0 0 | |
fffff80013fa8690 dgram 0 0 fffff8019d458588 0 fffff80013f941e0 0 /var/run/logpriv | |
fffff80013fa8780 dgram 0 0 fffff8019d6fd000 0 0 0 /var/run/log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apr 14 04:52:34 irssi syslogd: kernel boot file is /boot/kernel/kernel | |
Apr 14 04:52:34 irssi sshd[97801]: error: Bind to port 22 on :: failed: Can't assign requested address. | |
## this is only during the iocage startup ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment