From owner-freebsd-virtualization@FreeBSD.ORG Thu Feb 7 23:19:19 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4EE0889B for ; Thu, 7 Feb 2013 23:19:19 +0000 (UTC) (envelope-from venture37@gmail.com) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) by mx1.freebsd.org (Postfix) with ESMTP id C9953681 for ; Thu, 7 Feb 2013 23:19:18 +0000 (UTC) Received: by mail-bk0-f53.google.com with SMTP id j10so1401767bkw.26 for ; Thu, 07 Feb 2013 15:19:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=nHvybm3+oCwFauiojeN70Oc+J/bsmyMm3XfHS0R9SNM=; b=Q9TxccDZwUUkWxCZpA5fvr2NT2WEfEaOLBCdZKHhmSI+z3l3FoBAr+0mjP2wCSbK9O Pn48qdgS53E4abkY4dDZIMqh8rwu8LHsXzfuBlg6f9+eJwkNH60DGgNbNYMEMhzO9qji 6CokjPx8YjhCqrN4OR8bqniApVabwXp/I5jlnRzSLX2bdXBrBF7QY2taf8SpZFtPkGQ1 07uaLzS2uYDhAsE7BsGDEDAQpuEvqj6aC3CizUQ336gM+Xa1LvRdX8oq6Yi5rkW1IPXM ZsjXdZxs6QRtZpZlcSn//eBhhQDQZ60xwDuhvE217lMpAN5N8FDXUiPuxS1AY9Z08EB1 ffRw== X-Received: by 10.204.8.15 with SMTP id f15mr920462bkf.88.1360279157621; Thu, 07 Feb 2013 15:19:17 -0800 (PST) Received: from Sevans-MacBook-Pro.local ([83.167.125.235]) by mx.google.com with ESMTPS id ge12sm9575676bkc.19.2013.02.07.15.19.07 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Feb 2013 15:19:16 -0800 (PST) Message-ID: <5114361F.8060303@gmail.com> Date: Fri, 08 Feb 2013 03:17:51 +0400 From: Sevan / Venture37 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Neel Natu Subject: Re: bhyve hangs on going multi user References: <51132599.60506@gmail.com> <51136892.1020505@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2013 23:19:19 -0000 On 07/02/2013 22:16, Neel Natu wrote: > Hi Sevan, > > On Thu, Feb 7, 2013 at 7:12 AM, Sevan / Venture37 > wrote: >> On 7 Feb 2013, at 12:40 PM, Sevan / Venture37 >> wrote: >> >>> Will try building a new world with without a make.conf & use that >>> as the basis for a new VM & see if that makes a difference. >> >> It did, will follow up later with instruction once I have a working >> system, I'm now trying to get networking going. > > That's great. I am interested in knowing how make options resulted > in illegal instruction traps in guest userspace. Previous make.conf STRIP= CFLAGS+=-fno-omit-frame-pointer CFLAGS= -O2 -fno-strict-aliasing -pipe COPTFLAGS= -O -pipe CXXFLAGS+= -fconserve-space CPUTYPE?=corei7-avx >> If I run tcpdump on guest, I see traffic showing up destined for >> the host. I do not see the traffic make it back out however. >> > Could you share output of "ifconfig" and "netstat -rn" from the > guest as well as the host? Problem solved, need to wait for a bit after bringing tap/bridge up otherwise traffic wont pass. (see working dmesg at the bottom of the page) I can now make a guest panic if I assign 4GB or more RAM. GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2013 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.0-CURRENT #0 r246446: Thu Feb 7 12:21:37 UTC 2013 :/usr/obj/usr/src/sys/GENERIC amd64 FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 WARNING: WITNESS option enabled, expect reduced performance. CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (3399.72-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x306a9 Family = 0x6 Model = 0x3a Stepping = 9 Features=0x8fa3ab7f Features2=0xe3bae257 AMD Features=0x28100800 AMD Features2=0x1 TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 4114264064 (3923 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: random device not loaded; using insecure entropy ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-0 on motherboard module_register_init: MOD_LOAD (vesa, 0xffffffff80c28300, 0) error 19 kbd0 at kbdmux0 ctl: CAM Target Layer loaded acpi0: on motherboard acpi0: could not allocate interrupt ACPI Exception: AE_ALREADY_EXISTS, Unable to install System Control Interrupt handler (20130117/evevent-152) acpi0: Could not enable ACPI: AE_ALREADY_EXISTS device_attach: acpi0 attach returned 6 Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x60 fault code = supervisor write data, page not present instruction pointer = 0x20:0xffffffff80c9c813 stack pointer = 0x28:0xffffffff8182ab70 frame pointer = 0x28:0xffffffff8182aba0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 0 (swapper) [ thread pid 0 tid 100000 ] Stopped at acpi_install_wakeup_handler+0x113: movq %r14,0x60(%r15) Tracing pid 0 tid 100000 td 0xffffffff814f8ff0 acpi_install_wakeup_handler() at acpi_install_wakeup_handler+0x113/frame 0xffffffff8182aba0 nexus_acpi_attach() at nexus_acpi_attach+0x8c/frame 0xffffffff8182abd0 device_attach() at device_attach+0x396/frame 0xffffffff8182ac20 bus_generic_new_pass() at bus_generic_new_pass+0x116/frame 0xffffffff8182ac50 bus_set_pass() at bus_set_pass+0x8f/frame 0xffffffff8182ac80 configure() at configure+0xa/frame 0xffffffff8182ac90 mi_startup() at mi_startup+0x118/frame 0xffffffff8182acb0 btext() at btext+0x2c pid ppid pgrp uid state wmesg wchan cmd 2 0 0 0 RL [ctl_thrd] 13 0 0 0 RL (threaded) [geom] 100009 RunQ [g_down] 100008 RunQ [g_up] 100007 RunQ [g_event] 12 0 0 0 WL (threaded) [intr] 100019 I [swi5: fast taskq] 100017 I [swi6: Giant taskq] 100016 I [swi6: task queue] 100012 I [swi2: cambio] 100006 I [swi3: vm] 100005 I [swi4: clock] 100004 I [swi1: netisr 0] 11 0 0 0 RL [idle: cpu0] 1 0 0 0 ?L [kernel] 10 0 0 0 RL [audit] 0 0 0 0 RLs (threaded) [kernel] 100020 RunQ [kqueue taskq] 100018 RunQ [thread taskq] 100015 RunQ [acpi_task_2] 100014 RunQ [acpi_task_1] 100013 RunQ [acpi_task_0] 100011 RunQ [ffs_trim taskq] 100010 RunQ [firmware taskq] 100000 Run CPU 0 [swapper] GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2013 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.0-CURRENT #0 r246446: Thu Feb 7 12:21:37 UTC 2013 :/usr/obj/usr/src/sys/GENERIC amd64 FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 WARNING: WITNESS option enabled, expect reduced performance. CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (3399.75-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x306a9 Family = 0x6 Model = 0x3a Stepping = 9 Features=0x8fa3ab7f Features2=0xe3bae257 AMD Features=0x28100800 AMD Features2=0x1 TSC: P-state invariant real memory = 3221225472 (3072 MB) avail memory = 3078328320 (2935 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: random device not loaded; using insecure entropy ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-16 on motherboard module_register_init: MOD_LOAD (vesa, 0xffffffff80c28300, 0) error 19 kbd0 at kbdmux0 ctl: CAM Target Layer loaded acpi0: on motherboard atrtc0: port 0x70-0x71,0x72-0x77 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib0: no PRT entry for 0.31.INTA virtio_pci0: port 0x2000-0x201f mem 0xc0000000-0xc0001fff at device 1.0 on pci0 vtnet0: on virtio_pci0 virtio_pci0: host features: 0x18020 virtio_pci0: negotiated features: 0x18020 vtnet0: Ethernet address: 00:a0:98:a0:46:9c virtio_pci1: host features: 0x10000004 virtio_pci1: negotiated features: 0x10000004 vtblk0: 4096MB (8388608 512 byte sectors) uart2: <16550 or compatible> port 0x3f8-0x3ff irq 4 at device 31.0 on pci0 uart2: console (9600,n,8,1) Timecounters tick every 10.000 msec g_handleattr: vtbd0 bio_length 24 len 28 -> EFAULT g_handleattr: vtbd0 bio_length 24 len 28 -> EFAULT g_handleattr: vtbd0 bio_length 24 len 28 -> EFAULT g_handleattr: vtbd0 bio_length 24 len 28 -> EFAULT Timecounter "TSC-low" frequency 1699875246 Hz quality 1000 WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:/dev/vtbd0s1a [rw]... Setting hostuuid: 04124b58-712c-11e2-b131-cdebce931f3f. Setting hostid: 0x44378452. No suitable dump device was found. Entropy harvesting:. Starting file system checks: /dev/vtbd0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/vtbd0s1a: clean, 647080 free (760 frags, 80790 blocks, 0.1% fragmentation) g_handleattr: vtbd0 bio_length 24 len 28 -> EFAULT g_handleattr: vtbd0 bio_length 24 len 28 -> EFAULT g_handleattr: vtbd0 bio_length 24 len 28 -> EFAULT g_handleattr: vtbd0 bio_length 24 len 28 -> EFAULT Mounting local file systems:.