From owner-freebsd-questions@FreeBSD.ORG Thu Feb 5 00:54:22 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 83695CEF for ; Thu, 5 Feb 2015 00:54:22 +0000 (UTC) Received: from st11p00mm-asmtp002.mac.com (st11p00mm-asmtp002.mac.com [17.172.81.1]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 57DD7670 for ; Thu, 5 Feb 2015 00:54:21 +0000 (UTC) Received: from [192.168.1.10] (66-188-153-21.dhcp.stcd.mn.charter.com [66.188.153.21]) by st11p00mm-asmtp002.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec 4 2014)) with ESMTPSA id <0NJ900K37UED3Y10@st11p00mm-asmtp002.mac.com> for freebsd-questions@freebsd.org; Wed, 04 Feb 2015 23:54:14 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-02-04_06:2015-02-04,2015-02-04,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1502040242 Message-id: <54D2B16B.7040505@icloud.com> Date: Wed, 04 Feb 2015 17:55:23 -0600 From: Brandon Schneider User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-version: 1.0 To: freebsd-questions@freebsd.org Subject: VIMAGE crashing when starting a jail via jail(8). Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2015 00:54:22 -0000 Hello list, I'm currently trying to figure out why when I start my jails the system immediately segfaults. It goes by too fast for me to make out what it's saying, but it happens every time. Sometimes a jail or two will come up and the third one will crash the system. I'm going to post the relevant information below, if you need anything else from me please ask. The information is sanitized. Thank you! KERNEL CONFIG: include GENERIC ident VIMAGE_GENERIC options VIMAGE DMESG: Copyright (c) 1992-2014 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.1-RELEASE-p4 #4 r273687M: Wed Jan 21 21:48:23 CST 2015 root@nas:/usr/obj/usr/src/sys/VIMAGE_GENERIC amd64 FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 CPU: AMD Turion(tm) II Neo N54L Dual-Core Processor (2196.39-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x100f63 Family = 0x10 Model = 0x6 Stepping = 3 Features=0x178bfbff Features2=0x802009 AMD Features=0xee500800 AMD Features2=0x837ff TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 3980611584 (3796 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 WARNING: VIMAGE (virtualized network stack) is a highly experimental feature. ioapic0 irqs 0-23 on motherboard random: initialized kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) acpi0: reservation of fee00000, 1000 (3) failed acpi0: reservation of ffb80000, 80000 (3) failed acpi0: reservation of fec10000, 20 (3) failed acpi0: reservation of fed80000, 1000 (3) failed acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, d7f00000 (3) failed cpu0: on acpi0 cpu1: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 550 Event timer "HPET1" frequency 14318180 Hz quality 450 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xe000-0xe0ff mem 0xf0000000-0xf7ffffff,0xfe8f0000-0xfe8fffff,0xfe700000-0xfe7fffff irq 18 at device 5.0 on pci1 vgapci0: Boot video device pcib2: irq 18 at device 6.0 on pci0 pci2: on pcib2 bge0: mem 0xfe9f0000-0xfe9fffff irq 18 at device 0.0 on pci2 bge0: CHIP ID 0x05784100; ASIC REV 0x5784; CHIP REV 0x57841; PCI-E miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bge0: Ethernet address: 9c:b6:54:04:4d:f2 ahci0: port 0xd000-0xd007,0xc000-0xc003,0xb000-0xb007,0xa000-0xa003,0x9000-0x900f mem 0xfe6ffc00-0xfe6fffff irq 19 at device 17.0 on pci0 ahci0: AHCI v1.20 with 4 3Gbps ports, Port Multiplier supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ahcich2: at channel 2 on ahci0 ahcich3: at channel 3 on ahci0 ohci0: mem 0xfe6fe000-0xfe6fefff irq 18 at device 18.0 on pci0 usbus0 on ohci0 ehci0: mem 0xfe6ff800-0xfe6ff8ff irq 17 at device 18.2 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 ohci1: mem 0xfe6fd000-0xfe6fdfff irq 18 at device 19.0 on pci0 usbus2 on ohci1 ehci1: mem 0xfe6ff400-0xfe6ff4ff irq 17 at device 19.2 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci1 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 20.1 on pci0 ata0: at channel 0 on atapci0 ata1: at channel 1 on atapci0 isab0: at device 20.3 on pci0 isa0: on isab0 pcib3: at device 20.4 on pci0 pci3: on pcib3 ohci2: mem 0xfe6fc000-0xfe6fcfff irq 18 at device 22.0 on pci0 usbus4 on ohci2 ehci2: mem 0xfe6ff000-0xfe6ff0ff irq 17 at device 22.2 on pci0 usbus5: EHCI version 1.0 usbus5 on ehci2 acpi_button0: on acpi0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: cannot reserve I/O port range acpi_throttle0: on cpu0 hwpstate0: on cpu0 random: unblocking device. usbus0: 12Mbps Full Speed USB v1.0 ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present; to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf. ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec usbus1: 480Mbps High Speed USB v2.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 480Mbps High Speed USB v2.0 ugen3.1: at usbus3 uhub0: on usbus3 ugen2.1: at usbus2 uhub1: on usbus2 ugen1.1: at usbus1 uhub2: on usbus1 ugen0.1: at usbus0 uhub3: on usbus0 ugen5.1: at usbus5 uhub4: on usbus5 ugen4.1: at usbus4 uhub5: on usbus4 uhub5: 4 ports with 4 removable, self powered uhub1: 5 ports with 5 removable, self powered uhub3: 5 ports with 5 removable, self powered uhub4: 4 ports with 4 removable, self powered uhub0: 5 ports with 5 removable, self powered uhub2: 5 ports with 5 removable, self powered ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-9 SATA 3.x device ada0: Serial Number WD-WCC4N76L0250 ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) ada0: quirks=0x1<4K> ada0: Previously was known as ad4 ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1: ATA-9 SATA 3.x device ada1: Serial Number WD-WCC4N8Y2X4N3 ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) ada1: quirks=0x1<4K> ada1: Previously was known as ad6 ada2 at ahcich2 bus 0 scbus2 target 0 lun 0 ada2: ATA-9 SATA 3.x device ada2: Serial Number WD-WCC4N30LC0LS ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada2: Command Queueing enabled ada2: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) ada2: quirks=0x1<4K> ada2: Previously was known as ad8 SMP: AP CPU #1 Launched! Timecounter "TSC-low" frequency 1098193690 Hz quality 800 GEOM_MIRROR: Device mirror/swapmirror launched (3/3). Trying to mount root from zfs:home-0/ROOT/default []... bridge0: Ethernet address: 02:c7:3d:75:ae:00 bridge1: Ethernet address: 02:c7:3d:75:ae:01 /etc/rc.conf: hostname="nas" cloned_interfaces="bridge0" ifconfig_bridge0="addm bge0 SYNCDHCP up" ifconfig_bge0="up" sshd_enable="YES" ntpd_enable="YES" dumpdev="AUTO" zfs_enable="YES" gateway_enable="YES" linux_enable="YES" sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" smartd_enable="YES" nfs_server_enable="YES" nfs_server_flags="-u -t -n 4" rpcbind_enable="YES" mountd_flags="-r" mountd_enable="YES" rpc_lockd_enable="YES" rpc_statd_enable="YES" jail_enable="YES" jail_list="jail1 jail2 jail3 jail4 jail5 jail6 jail7 jail8 jail9" /etc/jail.conf: allow.raw_sockets = "1"; allow.set_hostname = "0"; allow.sysvipc = "1"; allow.mount.devfs; vnet; vnet.interface = "epair${if}b"; host.hostname = "${name}.home"; path = "/usr/jails/${name}"; mount.fstab = "/etc/fstab.${name}"; mount.devfs = "1"; devfs_ruleset = "4"; exec.consolelog = "/var/log/${name}.console.log"; exec.prestart = "ifconfig epair${if} create up >/dev/null"; exec.prestart += "ifconfig bridge0 addm epair${if}a"; exec.start = "/sbin/ifconfig lo0 up 127.0.0.1"; exec.start += "/sbin/ifconfig epair${if}b up ${ipaddr}"; exec.start += "/sbin/route add default ${defaultroute}"; exec.start += "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; exec.poststop = "ifconfig epair${if}a destroy"; persist; jail1 { $if = 0; $ipaddr = 192.168.1.230; $defaultroute = 192.168.1.250; devfs_ruleset = "4"; } jail2 { $if = 1; $ipaddr = 192.168.1.231; $defaultroute = 192.168.1.250; devfs_ruleset = "4"; } jail3 { $if = 2; $ipaddr = 192.168.1.232; $defaultroute = 192.168.1.250; devfs_ruleset = "4"; } jail4 { $if = 3; $ipaddr = 192.168.1.233; $defaultroute = 192.168.1.250; devfs_ruleset = "4"; } jail5 { $if = 4; $ipaddr = 192.168.1.234; $defaultroute = 192.168.1.250; devfs_ruleset = "4"; } jail6 { $if = 5; $ipaddr = 192.168.1.235; $defaultroute = 192.168.1.250; devfs_ruleset = "4"; } jail7 { $if = 6; $ipaddr = 192.168.1.236; $defaultroute = 192.168.1.250; devfs_ruleset = "4"; } jail8 { $if = 7; $ipaddr = 192.168.1.237; $defaultroute = 192.168.1.250; devfs_ruleset = "4"; } jail9 { $if = 8; $ipaddr = 192.168.1.238; $defaultroute = 192.168.1.250; devfs_ruleset = "4"; }