Bug 167911 - new jail(8) problem with removal, ifconfg -alias and kqueue error
Summary: new jail(8) problem with removal, ifconfg -alias and kqueue error
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 1.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-15 10:40 UTC by Oleg Ginzburg
Modified: 2018-01-10 07:47 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Ginzburg 2012-05-15 10:40:03 UTC
Ive got a multiple problem with new jail and removal from the first with kqueue
error, device busy for devfs and jail(8) doesn't do ifconfig -alias.

How-To-Repeat: root@netsnap:/usr/jails/var # cat jail1.conf
jail1 {
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
mount.devfs;
host.hostname = "jail1.my.domain";
path = "/usr/jails/jails/jail1";
allow.raw_sockets;
allow.socket_af;
allow.chflags;
allow.sysvipc;
ip4.addr = 192.168.1.67/24;
interface="em0";
devfs_ruleset="4";
}


root@netsnap:/usr/jails/var # ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000
       options=98<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
       ether 08:00:27:d3:9a:a9
       inet6 2a01:4f8:61:50c2::13 prefixlen 64 duplicated
       inet6 fe80::a00:27ff:fed3:9aa9%em0 prefixlen 64 scopeid 0x1
       inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255
       nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
       media: Ethernet autoselect (1000baseT <full-duplex>)
       status: active


root@netsnap:/usr/jails/var # jail -f jail1.conf -c jail1
jail1: created
/etc/rc: WARNING: $hostname is not set -- see rc.conf(5).
Creating and/or trimming log files.
ln: /dev/log: Operation not permitted
Starting syslogd.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Clearing /tmp (X related).
Updating motd:.
Starting cron.

Mon May 14 18:56:27 UTC 2012

Ok, all fine on this moment:

root@netsnap:/usr/jails/var # ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000
       options=98<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
       ether 08:00:27:d3:9a:a9
       inet6 2a01:4f8:61:50c2::13 prefixlen 64 duplicated
       inet6 fe80::a00:27ff:fed3:9aa9%em0 prefixlen 64 scopeid 0x1
       inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255
       inet 192.168.1.67 netmask 0xffffff00 broadcast 192.168.1.255
       nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
       media: Ethernet autoselect (1000baseT <full-duplex>)
       status: active


Now dancing with stopping:

root@netsnap:/usr/jails/var # jail -f jail1.conf -r jail1
Stopping cron.
Terminated
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2012-05-17 08:13:45 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-jail

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:42 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 Oleg Ginzburg 2018-01-10 07:47:40 UTC
problem is solved