From owner-freebsd-virtualization@FreeBSD.ORG Mon Feb 17 02:08:18 2014 Return-Path: Delivered-To: freebsd-virtualization@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 39F95DBE; Mon, 17 Feb 2014 02:08:18 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0C2991434; Mon, 17 Feb 2014 02:08:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1H28Hg4044437; Mon, 17 Feb 2014 02:08:17 GMT (envelope-from rodrigc@freefall.freebsd.org) Received: (from rodrigc@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1H28HHX044436; Sun, 16 Feb 2014 18:08:17 -0800 (PST) (envelope-from rodrigc) Date: Sun, 16 Feb 2014 18:08:17 -0800 (PST) Message-Id: <201402170208.s1H28HHX044436@freefall.freebsd.org> To: rodrigc@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-virtualization@FreeBSD.org From: rodrigc@FreeBSD.org Subject: Re: kern/183835: Kernel panic with VIMAGE on insertion of axe USB network interface X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Mon, 17 Feb 2014 02:08:18 -0000 Synopsis: Kernel panic with VIMAGE on insertion of axe USB network interface Responsible-Changed-From-To: freebsd-bugs->freebsd-virtualization Responsible-Changed-By: rodrigc Responsible-Changed-When: Sun Feb 16 18:07:56 PST 2014 Responsible-Changed-Why: Throwing in with other VIMAGE bugs. http://www.freebsd.org/cgi/query-pr.cgi?pr=183835 From owner-freebsd-virtualization@FreeBSD.ORG Mon Feb 17 11:06:58 2014 Return-Path: Delivered-To: freebsd-virtualization@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CB4F1E0C for ; Mon, 17 Feb 2014 11:06:58 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B304411DE for ; Mon, 17 Feb 2014 11:06:58 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1HB6wDB033263 for ; Mon, 17 Feb 2014 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1HB6wn0033261 for freebsd-virtualization@FreeBSD.org; Mon, 17 Feb 2014 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 17 Feb 2014 11:06:58 GMT Message-Id: <201402171106.s1HB6wn0033261@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-virtualization@FreeBSD.org Subject: Current problem reports assigned to freebsd-virtualization@FreeBSD.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Mon, 17 Feb 2014 11:06:58 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/183835 virtualizationKernel panic with VIMAGE on insertion of axe USB netwo o kern/165252 virtualization[vimage] [pf] [panic] kernel panics with VIMAGE and PF o kern/161094 virtualization[vimage] [pf] [panic] kernel panic with pf + VIMAGE wh o kern/160541 virtualization[vimage][pf][patch] panic: userret: Returning on td 0x o kern/160496 virtualization[vimage] [pf] [patch] kernel panic with pf + VIMAGE o kern/148155 virtualization[vimage] [pf] Kernel panic with PF + VIMAGE kernel opt a kern/147950 virtualization[vimage] [carp] VIMAGE + CARP = kernel crash s kern/143808 virtualization[pf] pf does not work inside jail 8 problems total. From owner-freebsd-virtualization@FreeBSD.ORG Tue Feb 18 01:24:41 2014 Return-Path: Delivered-To: freebsd-virtualization@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BB53A18B; Tue, 18 Feb 2014 01:24:41 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8E91D168D; Tue, 18 Feb 2014 01:24:41 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1I1OfBJ016637; Tue, 18 Feb 2014 01:24:41 GMT (envelope-from rodrigc@freefall.freebsd.org) Received: (from rodrigc@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1I1OePR016630; Mon, 17 Feb 2014 17:24:40 -0800 (PST) (envelope-from rodrigc) Date: Mon, 17 Feb 2014 17:24:40 -0800 (PST) Message-Id: <201402180124.s1I1OePR016630@freefall.freebsd.org> To: elakin@infohell.net, rodrigc@FreeBSD.org, freebsd-virtualization@FreeBSD.org From: rodrigc@FreeBSD.org Subject: Re: kern/183835: Kernel panic with VIMAGE on insertion of axe USB network interface X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Tue, 18 Feb 2014 01:24:41 -0000 Synopsis: Kernel panic with VIMAGE on insertion of axe USB network interface State-Changed-From-To: open->patched State-Changed-By: rodrigc State-Changed-When: Mon Feb 17 17:24:11 PST 2014 State-Changed-Why: Patched. http://www.freebsd.org/cgi/query-pr.cgi?pr=183835 From owner-freebsd-virtualization@FreeBSD.ORG Tue Feb 18 01:30:01 2014 Return-Path: Delivered-To: freebsd-virtualization@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 446CA32B for ; Tue, 18 Feb 2014 01:30:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2AF1116BC for ; Tue, 18 Feb 2014 01:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1I1U01l017156 for ; Tue, 18 Feb 2014 01:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1I1U0As017155; Tue, 18 Feb 2014 01:30:00 GMT (envelope-from gnats) Date: Tue, 18 Feb 2014 01:30:00 GMT Message-Id: <201402180130.s1I1U0As017155@freefall.freebsd.org> To: freebsd-virtualization@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: kern/183835: commit references a PR X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: dfilter service List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Feb 2014 01:30:01 -0000 The following reply was made to PR kern/183835; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/183835: commit references a PR Date: Tue, 18 Feb 2014 01:20:34 +0000 (UTC) Author: rodrigc Date: Tue Feb 18 01:20:26 2014 New Revision: 262142 URL: http://svnweb.freebsd.org/changeset/base/262142 Log: In ue_attach_post_task(), initialize curvnet to vnet0 before calling if_attach(). Before this patch, curvnet was NULL. When the VIMAGE kernel option is enabled, this eliminates kernel panics when USB ethernet devices are plugged in. PR: 183835 Submitted by: Hiroo Oono Modified: head/sys/dev/usb/net/usb_ethernet.c Modified: head/sys/dev/usb/net/usb_ethernet.c ============================================================================== --- head/sys/dev/usb/net/usb_ethernet.c Tue Feb 18 01:15:32 2014 (r262141) +++ head/sys/dev/usb/net/usb_ethernet.c Tue Feb 18 01:20:26 2014 (r262142) @@ -208,6 +208,7 @@ ue_attach_post_task(struct usb_proc_msg sysctl_ctx_init(&ue->ue_sysctl_ctx); error = 0; + CURVNET_SET_QUIET(vnet0); ifp = if_alloc(IFT_ETHER); if (ifp == NULL) { device_printf(ue->ue_dev, "could not allocate ifnet\n"); @@ -254,6 +255,8 @@ ue_attach_post_task(struct usb_proc_msg if (ifp->if_capabilities & IFCAP_VLAN_MTU) ifp->if_hdrlen = sizeof(struct ether_vlan_header); + CURVNET_RESTORE(); + snprintf(num, sizeof(num), "%u", ue->ue_unit); ue->ue_sysctl_oid = SYSCTL_ADD_NODE(&ue->ue_sysctl_ctx, &SYSCTL_NODE_CHILDREN(_net, ue), @@ -267,6 +270,7 @@ ue_attach_post_task(struct usb_proc_msg return; fail: + CURVNET_RESTORE(); free_unr(ueunit, ue->ue_unit); if (ue->ue_ifp != NULL) { if_free(ue->ue_ifp); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-virtualization@FreeBSD.ORG Tue Feb 18 04:27:38 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9FEADA87; Tue, 18 Feb 2014 04:27:38 +0000 (UTC) Received: from mail-pd0-x231.google.com (mail-pd0-x231.google.com [IPv6:2607:f8b0:400e:c02::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 664F11911; Tue, 18 Feb 2014 04:27:38 +0000 (UTC) Received: by mail-pd0-f177.google.com with SMTP id x10so15670996pdj.36 for ; Mon, 17 Feb 2014 20:27:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RTQMjJL1j1RvbHo8nBtjzQaRro8D6EDxcxBfx6YVU8Y=; b=VC2SekgetizpzKzRiWnfpg231R+DZX7hvlIn9Mu5heKtEmnzmsC24EbU8q0/PzUTAG mipJxFn0zGfV0JiMz/9K2MSWHeN0FK5UzCrOiGoEnbDS0UZhneeppX441YqiEhKCeei8 cOrYXvSQcIO/sI9wTGP9vrMJ/sjvAR3IoEq37IcO404KPbi6bVG+nZqOUehWuS+cgXYa 0e1o6JMyMyUmdPvS/eSC8GEvb61U7ePRNWMhVzK8btUhX0Tfbz59QoZDdKxj+35wNowS yKaAS4c0c4IJ8mgsBbWzxlDUFECE8OCVZzZ8f3CdfPSJfAZbQIRPnnl/YtWH0/9VNsGQ oWOQ== MIME-Version: 1.0 X-Received: by 10.69.19.139 with SMTP id gu11mr7548225pbd.149.1392697657919; Mon, 17 Feb 2014 20:27:37 -0800 (PST) Received: by 10.68.155.38 with HTTP; Mon, 17 Feb 2014 20:27:37 -0800 (PST) In-Reply-To: <52FB9382.8000401@freebsd.org> References: <52F6953D.2010400@callfortesting.org> <52F7C9FC.5070409@digiware.nl> <52F8735E.8020701@callfortesting.org> <52F8ECC2.2060805@digiware.nl> <52F97A84.90308@callfortesting.org> <52FAB720.7070206@freebsd.org> <52FABB9A.6000908@freebsd.org> <52FB9382.8000401@freebsd.org> Date: Mon, 17 Feb 2014 23:27:37 -0500 Message-ID: Subject: Re: Fwd: CFT: bhyve AMD snapshot From: Aryeh Friedman To: Peter Grehan Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Tue, 18 Feb 2014 04:27:38 -0000 Sorry for taking so long (forgot to say orginally this is the guest) On Wed, Feb 12, 2014 at 10:30 AM, Peter Grehan wrote: > Hi Aryeh, > > kernel panic during boot >> > > Can you post a verbose boot log with the panic (i.e. "boot -v" from the > loader prompt) ?OK boot -v > Booting... > SMAP type=01 base=0000000000000000 len=00000000000a0000 > SMAP type=01 base=0000000000100000 len=000000001ff00000 > Table 'APIC' at 0xf0500 > APIC: Found table at 0xf0500 > APIC: Using the MADT enumerator. > MADT: Found CPU APIC ID 0 ACPI ID 0: enabled > SMP: Added CPU 0 (AP) > 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.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 > root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 > Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff817f2000. > Hypervisor: Origin = "bhyve bhyve " > Calibrating TSC clock ... TSC clock: 2595069727 Hz > CPU: AMD A6-3650 APU with Radeon(tm) HD Graphics (2595.07-MHz K8-class CPU) > Origin = "AuthenticAMD" Id = 0x300f10 Family = 0x12 Model = 0x1 > Stepping = 0 > > Features=0x783ab7f > Features2=0x80a02001 > AMD > Features=0xe6505880<,SYSCALL,,,NX,MMX+,FFXSR,Page1GB,LM,3DNow!+,3DNow!> > AMD > Features2=0x37ff > TSC: P-state invariant > L1 2MB data TLB: 48 entries, fully associative > L1 2MB instruction TLB: 16 entries, fully associative > L1 4KB data TLB: 48 entries, fully associative > L1 4KB instruction TLB: 32 entries, fully associative > L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative > L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way > associative > L2 2MB data TLB: 128 entries, 2-way associative > L2 2MB instruction TLB: 0 entries, 2-way associative > L2 4KB data TLB: 1024 entries, 4-way associative > L2 4KB instruction TLB: 1024 entries, 4-way associative > L2 unified cache: 1024 kbytes, 64 bytes/line, 1 lines/tag, 16-way > associative > real memory = 536870912 (512 MB) > Physical memory chunk(s): > 0x0000000000001000 - 0x000000000009bfff, 634880 bytes (155 pages) > 0x0000000000100000 - 0x00000000001fffff, 1048576 bytes (256 pages) > 0x000000000181a000 - 0x000000001f29ffff, 497573888 bytes (121478 pages) > avail memory = 492273664 (469 MB) > Event timer "LAPIC" quality 400 > ACPI APIC Table: > APIC: CPU 0 has ACPI ID 0 > x86bios: IVT 0x000000-0x0004ff at 0xfffff80000000000 > x86bios: SSEG 0x001000-0x001fff at 0xfffffe002c174000 > x86bios: ROM 0x0a0000-0x0fefff at 0xfffff800000a0000 > XEN: CPU 0 has VCPU ID 0 > random device not loaded; using insecure entropy > ULE: setup cpu 0 > ACPI: RSDP 0xf0400 00024 (v02 BHYVE ) > ACPI: XSDT 0xf0480 0003C (v01 BHYVE BVXSDT 00000001 INTL 20130823) > ACPI: APIC 0xf0500 00054 (v01 BHYVE BVMADT 00000001 INTL 20130823) > ACPI: FACP 0xf0600 0010C (v05 BHYVE BVFACP 00000001 INTL 20130823) > ACPI: DSDT 0xf0800 0012F (v02 BHYVE BVDSDT 00000001 INTL 20130823) > ACPI: FACS 0xf0780 00040 > ACPI: HPET 0xf0740 00038 (v01 BHYVE BVHPET 00000001 INTL 20130823) > MADT: Found IO APIC ID 0, Interrupt 0 at 0xfec00000 > ioapic0: Routing external 8259A's -> intpin 0 > MADT: Interrupt override: source 0, irq 2 > ioapic0: Routing IRQ 0 -> intpin 2 > MADT: Interrupt override: source 9, irq 9 > ioapic0: intpin 9 trigger: level > ioapic0: intpin 9 polarity: low > ioapic0 irqs 0-23 on motherboard > cpu0 BSP: > ID: 0x00000000 VER: 0x00000011 LDR: 0x00000000 DFR: 0xffffffff > lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff > timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 > wlan: <802.11 Link Layer> > snd_unit_init() u=0x00ff8000 [512] d=0x00007c00 [32] c=0x000003ff [1024] > feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=5 > feeder_rate_min=1 feeder_rate_max=2016000 feeder_rate_round=25 > Hardware, Intel IvyBridge+ RNG: RDRAND is not present > Hardware, VIA Nehemiah Padlock RNG: VIA Padlock RNG not present > kbd0 at kbdmux0 > mem: > null: > nfslock: pseudo-device > Falling back to random adaptor > random: initialized > module_register_init: MOD_LOAD (vesa, 0xffffffff80cfa5e0, 0) error 19 > io: > VMBUS: load > hptnr: R750/DC7280 controller driver v1.0 > hpt27xx: RocketRAID 27xx controller driver v1.1 > hptrr: RocketRAID 17xx/2xxx SATA controller driver v1.2 > > > Fatal trap 30: reserved (unknown) fault while in kernel mode > cpuid = 0; apic id = 00 > instruction pointer = 0x20:0xffffffff80d1d3af > stack pointer = 0x28:0xffffffff817f6b10 > frame pointer = 0x28:0xffffffff817f6b40 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, IOPL = 0 > current process = 0 (swapper) > trap number = 30 > panic: reserved (unknown) fault > cpuid = 0 > KDB: stack backtrace: > #0 0xffffffff808e7dd0 at kdb_backtrace+0x60 > #1 0xffffffff808af8b5 at panic+0x155 > #2 0xffffffff80c8e692 at trap_fatal+0x3a2 > #3 0xffffffff80c8e2cf at trap+0x7bf > #4 0xffffffff80c75392 at calltrap+0x8 > #5 0xffffffff80d1e59e at vmbus_identify+0xe > #6 0xffffffff808e02d7 at bus_generic_probe+0x77 > #7 0xffffffff80c7314a at nexus_acpi_attach+0x1a > #8 0xffffffff808df242 at device_attach+0x3a2 > #9 0xffffffff808e07b9 at bus_generic_new_pass+0xe9 > #10 0xffffffff808dd0af at bus_set_pass+0x8f > #11 0xffffffff80c7472a at configure+0xa > #12 0xffffffff80861238 at mi_startup+0x118 > #13 0xffffffff802d3e0c at btext+0x2c > Uptime: 1s > Automatic reboot in 15 seconds - press a key on the console to abort > > -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org From owner-freebsd-virtualization@FreeBSD.ORG Wed Feb 19 08:17:11 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E9C8CE8F for ; Wed, 19 Feb 2014 08:17:11 +0000 (UTC) Received: from mail.monkeybrains.net (mail.monkeybrains.net [208.69.40.19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CE142182E for ; Wed, 19 Feb 2014 08:17:11 +0000 (UTC) Received: from Birdhouse-o-My.local (208-90-212-98.PUBLIC.monkeybrains.net [208.90.212.98]) (authenticated bits=0) by mail.monkeybrains.net (8.14.7/8.14.7) with ESMTP id s1J7rwmB099020 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 18 Feb 2014 23:53:58 -0800 (PST) (envelope-from crapsh@monkeybrains.net) X-Authentication-Warning: mail.monkeybrains.net: Host 208-90-212-98.PUBLIC.monkeybrains.net [208.90.212.98] claimed to be Birdhouse-o-My.local Message-ID: <53046315.5090804@monkeybrains.net> Date: Tue, 18 Feb 2014 23:53:57 -0800 From: "Rudy (bulk)" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: New to Bhyve -- help setting up /dev/sda1 and /dev/vda1 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.1 at mail.monkeybrains.net X-Virus-Status: Clean X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Wed, 19 Feb 2014 08:17:12 -0000 I am trying this method and can't quite figure out what root device to pass grub. # Step 0, clear old vm1 bhyvectl --vm=vm1 --destroy # Step 1, Launch grub-bhyve and configure grub. grub-bhyve -r hd0 -m ./device.map -v -M 2048 vm1 # Step 2, type in the following commands set root=(hd0,msdos1) linux /vmlinuz root=/dev/vda1 initrd /initrd.img boot # Step 3, launch bhyve bhyve -c 2 -m 2048M -A -H -P -s 0:0,amd_hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-blk,vm1.img -l com1,stdio -W vm1 [...snip...] [ 1.998485] Freeing unused kernel memory: 836K (ffff880001b2f000 - ffff880001c00000) Loading, please wait... [ 2.012707] systemd-udevd[98]: starting version 204 Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... [ 2.729112] Switched to clocksource tsc done. mount: can't read '/etc/fstab': No such file or directory Begin: Running /scripts/local-bottom ... done. done. Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory done. mount: mounting /sys on /root/sys failed: No such file or directory mount: mounting /proc on /root/proc failed: No such file or directory Target filesystem doesn't have requested /sbin/init. No init found. Try passing init= bootarg. BusyBox v1.20.2 (Ubuntu 1:1.20.0-8.1ubuntu1) built-in shell (ash) Enter 'help' for a list of built-in commands. (initramfs) No vda or sda in /dev/... Do I need a custom initrd that supports virtio? Trying AHCI-HD doesn't make anything better. Redo Step 0 and Step 1, and use sda in Step 2: linux /vmlinuz root=/dev/sda1 # Step 0, clear old vm1 bhyvectl --vm=vm1 --destroy # Step 1, Launch grub-bhyve and configure grub. grub-bhyve -r hd0 -m ./device.map -v -M 2048 vm1 # Step 2, type in the following commands set root=(hd0,msdos1) linux /vmlinuz root=/dev/sda1 initrd /initrd.img boot # Step 3, launch bhyve bhyve -c 2 -m 2048M -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 1:1,ahci-hd,vm1.img -s 4,ahci-cd,vm1.iso -l com1,stdio -W vm1 but that gives a CORE DUMPED... [..snip..] Begin: Mounting root file system ... [ 2.035418] scsi2 : ahci Begin: Running /scripts/local-top ... done. [ 2.037537] scsi3 : ahci [ 2.039652] scsi4 : ahci [ 2.040360] scsi5 : ahci [ 2.040750] ata1: SATA max UDMA/133 abar m1024@0xc0000000 port 0xc0000100 irq 33 [ 2.041552] ata2: DUMMY [ 2.041828] ata3: DUMMY [ 2.042103] ata4: DUMMY [ 2.042377] ata5: DUMMY [ 2.042653] ata6: DUMMY [ 2.043880] ahci: SSS flag set, parallel bus scan disabled [ 2.044683] ahci 0000:00:04.0: AHCI 0001.0300 16 slots 6 ports 6 Gbps 0x1 impl SATA mode [ 2.045583] ahci 0000:00:04.0: flags: 64bit ncq sntf ilck stag pm led clo pio slum part sxs apst [ 2.047250] scsi6 : ahci [ 2.047695] scsi7 : ahci [ 2.048082] scsi8 : ahci [ 2.048500] scsi9 : ahci [ 2.048916] scsi10 : ahci [ 2.049332] scsi11 : ahci [ 2.049696] ata7: SATA max UDMA/133 abar m1024@0xc0000400 port 0xc0000500 irq 34 [ 2.050503] ata8: DUMMY [ 2.050784] ata9: DUMMY [ 2.051063] ata10: DUMMY [ 2.051346] ata11: DUMMY [ 2.051660] ata12: DUMMY [ 2.361125] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) [ 2.361872] ata1.00: ATA-8: BHYVE SATA DISK, 001, max UDMA/133 [ 2.362499] ata1.00: 4194304 sectors, multi 128: LBA48 NCQ (depth 31/32) [ 2.363224] ata1.00: applying bridge limits [ 2.363776] ata1.00: configured for UDMA/100 [ 2.364383] scsi 0:0:0:0: Direct-Access ATA BHYVE SATA DISK 001 PQ: 0 ANSI: 5 [ 2.365424] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 2.365451] sd 0:0:0:0: [sda] 4194304 512-byte logical blocks: (2.14 GB/2.00 GiB) [ 2.365547] sd 0:0:0:0: [sda] Write Protect is off [ 2.365589] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 2.369088] sda: sda1 sda2 < sda5 > [ 2.370173] sd 0:0:0:0: [sda] Attached SCSI disk [ 2.372461] ata7: SATA link up 3.0 Gbps (SStatus 123 SControl 300) [ 2.373257] ata7.00: ATAPI: BHYVE SATA DVD ROM, 001, max UDMA/133 [ 2.374038] ata7.00: configured for UDMA/133 [ 2.374714] scsi 6:0:0:0: CD-ROM BHYVE BHYVE DVD-ROM 001 PQ: 0 ANSI: 5 [ 2.375801] sr0: scsi3-mmc drive: 0x/0x xa/form2 caddy [ 2.376399] cdrom: Uniform CD-ROM driver Revision: 3.20 [ 2.377096] sr 6:0:0:0: Attached scsi generic sg1 type 5 Begin: Running /scripts/local-premount ... done. [ 2.497631] EXT4-fs (sda1): INFO: recovery required on readonly filesystem [ 2.498397] EXT4-fs (sda1): write access will be enabled during recovery [ 2.501272] EXT4-fs (sda1): recovery complete [ 2.501927] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) Begin: Running /scripts/local-bottom ... done. done. Begin: Running /scripts/init-bottom ... done. [ 2.728969] Switched to clocksource tsc Assertion failed: (aior != NULL), function ahci_handle_dma, file /usr/src/usr.sbin/bhyve/pci_ahci.c, line 445. Abort (core dumped) 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 (root@bami) 524> kldstat Id Refs Address Size Name 1 32 0xffffffff80200000 15f0310 kernel 2 1 0xffffffff81a12000 1546d8 zfs.ko 3 1 0xffffffff81b67000 3858 opensolaris.ko 4 1 0xffffffff81b6b000 aa35 if_lagg.ko 5 1 0xffffffff81b76000 34d8 ums.ko 6 1 0xffffffff81b7a000 802e ipmi.ko 7 1 0xffffffff81b83000 ae4 smbus.ko 8 1 0xffffffff81b84000 5545 if_tap.ko 9 2 0xffffffff81b8a000 52a4 bridgestp.ko 10 1 0xffffffff81b90000 947f if_bridge.ko 11 1 0xffffffff81b9a000 16efe5 vmm.ko Thanks in advance, Rudy From owner-freebsd-virtualization@FreeBSD.ORG Wed Feb 19 08:50:36 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 79DF2D29 for ; Wed, 19 Feb 2014 08:50:36 +0000 (UTC) Received: from mail.monkeybrains.net (mail.monkeybrains.net [208.69.40.19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5E7CF1AED for ; Wed, 19 Feb 2014 08:50:35 +0000 (UTC) Received: from Birdhouse-o-My.local (208-90-212-98.PUBLIC.monkeybrains.net [208.90.212.98]) (authenticated bits=0) by mail.monkeybrains.net (8.14.7/8.14.7) with ESMTP id s1J8oZwj004400 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 19 Feb 2014 00:50:35 -0800 (PST) (envelope-from crapsh@monkeybrains.net) X-Authentication-Warning: mail.monkeybrains.net: Host 208-90-212-98.PUBLIC.monkeybrains.net [208.90.212.98] claimed to be Birdhouse-o-My.local Message-ID: <5304705B.8000901@monkeybrains.net> Date: Wed, 19 Feb 2014 00:50:35 -0800 From: "Rudy (bulk)" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: SOLVED - Re: New to Bhyve -- help setting up /dev/sda1 and /dev/vda1 References: <53046315.5090804@monkeybrains.net> In-Reply-To: <53046315.5090804@monkeybrains.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.1 at mail.monkeybrains.net X-Virus-Status: Clean X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Wed, 19 Feb 2014 08:50:36 -0000 On 2/18/14, 11:53 PM, Rudy (bulk) wrote: > > I am trying this method and can't quite figure out what root device to > pass grub. > > # Step 0, clear old vm1 > bhyvectl --vm=vm1 --destroy > > # Step 1, Launch grub-bhyve and configure grub. > grub-bhyve -r hd0 -m ./device.map -v -M 2048 vm1 > > # Step 2, type in the following commands > set root=(hd0,msdos1) > linux /vmlinuz root=/dev/vda1 > initrd /initrd.img > boot > > # Step 3, launch bhyve > bhyve -c 2 -m 2048M -A -H -P -s 0:0,amd_hostbridge -s 1:0,lpc -s > 2:0,virtio-net,tap0 -s 3:0,virtio-blk,vm1.img -l com1,stdio -W vm1 Getting rid of the W flag fixed my issues. I have a Ubnutu log-in prompt! Also, I switched to zvol. cat device.map (hd0) /dev/zvol/data/vm1 (cd0) /data/images/vm1/vm1.iso Here was the installation step: bhyvectl --vm=vm1 --destroy grub-bhyve -r cd0 -m ./device.map -v -M 2048 vm1 bhyve -c 2 -m 2048M -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 4,virtio-blk,/dev/zvol/data/vm1 -s 3,ahci-cd,vm1.iso -l com1,stdio -A vm1 And here is how to launch: bhyvectl --vm=vm1 --destroy grub-bhyve -r hd0 -m ./device.map -v -M 2048 vm1 set root=(hd0,msdos1) linux /vmlinuz root=/dev/vda1 initrd /initrd.img boot bhyve -c 2 -m 2048M -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 4,virtio-blk,/dev/zvol/data/vm1 -s 3,ahci-cd,vm1.iso -l com1,stdio -A vm1 Rudy From owner-freebsd-virtualization@FreeBSD.ORG Wed Feb 19 09:02:54 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E52DD985 for ; Wed, 19 Feb 2014 09:02:54 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id A54B71C51 for ; Wed, 19 Feb 2014 09:02:54 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id 424CB123E3; Wed, 19 Feb 2014 19:02:52 +1000 (EST) Received: from Peters-MacBook-Pro.local (c-67-161-27-37.hsd1.ca.comcast.net [67.161.27.37]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BRY03826 (AUTH peterg@ptree32.com.au); Wed, 19 Feb 2014 19:02:51 +1000 Message-ID: <53047333.6050501@freebsd.org> Date: Wed, 19 Feb 2014 01:02:43 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "Rudy (bulk)" Subject: Re: SOLVED - Re: New to Bhyve -- help setting up /dev/sda1 and /dev/vda1 References: <53046315.5090804@monkeybrains.net> <5304705B.8000901@monkeybrains.net> In-Reply-To: <5304705B.8000901@monkeybrains.net> 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.17 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: Wed, 19 Feb 2014 09:02:55 -0000 Hi Rudy, > And here is how to launch: > bhyvectl --vm=vm1 --destroy > grub-bhyve -r hd0 -m ./device.map -v -M 2048 vm1 > set root=(hd0,msdos1) > linux /vmlinuz root=/dev/vda1 > initrd /initrd.img > boot You can avoid the command prompt by using the '-r' parameter to specify the root device i.e. grub-bhyve -r hd0,msdos1 -m ./device.map -M 2048 vm1 This should allow grub-bhyve to pick up the Ubuntu grub scripts automatically. later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Wed Feb 19 11:08:38 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 546CD987 for ; Wed, 19 Feb 2014 11:08:38 +0000 (UTC) Received: from mail-yh0-x233.google.com (mail-yh0-x233.google.com [IPv6:2607:f8b0:4002:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 151DD18A4 for ; Wed, 19 Feb 2014 11:08:38 +0000 (UTC) Received: by mail-yh0-f51.google.com with SMTP id t59so188358yho.24 for ; Wed, 19 Feb 2014 03:08:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irrelevant.org; s=irrelevant; h=mime-version:date:message-id:subject:from:to:content-type; bh=JyJ7iMNTiy4Jf134kG21Bw2sCADLnPcZFxSsxDkHP+c=; b=Ba9MmcD4AykKF2uC8u1XtQgrYPB0Kh11n9C653pHsiylMS50AzEUKiZRooXq3M1qiD K9q2guX5UFv+PcGi4i6SlBwtoAtPnvHZ2zIC4ZWNOHwF5uF0y8MNGtLa91MU8ukJbVS7 uUVekWd5I7jYK29P/Fp/M7NYw17EpC2Nu1p5I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=JyJ7iMNTiy4Jf134kG21Bw2sCADLnPcZFxSsxDkHP+c=; b=kQ59LBglk3DDuZve7BGW2hEXS5TnAnSKn6qJdHNw+0Ohl016p+1JuH0vGTHGDWC1k/ DfsKZt2q4oM5pyUeU7QFBuJEjLJ6zwK/q068LHIbB+7S1SUuypCTNICMtpR23wUM/QhM Wex+P9o1pEG/3VUrS3P8BOXGbvWj8h59zNq35Ic6hZdCiyNGg+FzooDQjhmm58hHU+fh 3BWfaSFkgxIcoztgqkKrTikpnvrEYJrBxm/cpgySnoQb6Wp0xnbk6zpfiZqqWdUY3/kk wwdSLtnrRV345mkWEAs5PDq6R+H6QzrVsRzhb1LWPDXwBxe9xhW0uF5/GI9vPZJzl+2g H3QA== X-Gm-Message-State: ALoCoQkcoFCysb+XZ6GcatuKEZmho3M2HS8egSqnv2oiFbtIuUVQdPZ3p4yr4wfnVD2wc3+pOK9A MIME-Version: 1.0 X-Received: by 10.236.165.74 with SMTP id d50mr42085155yhl.7.1392808117150; Wed, 19 Feb 2014 03:08:37 -0800 (PST) Received: by 10.170.77.87 with HTTP; Wed, 19 Feb 2014 03:08:36 -0800 (PST) X-Originating-IP: [94.31.26.101] Date: Wed, 19 Feb 2014 11:08:36 +0000 Message-ID: Subject: bhyve and FreeBSD 8.1 From: Simon Dick To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Wed, 19 Feb 2014 11:08:38 -0000 Is there any way to get FreeBSD 8.1 working under bhyve? I've read the FAQ and it says 8.4 upwards, but thought it was worth asking here just in case it can be done just not in a supported way... :) Thanks From owner-freebsd-virtualization@FreeBSD.ORG Wed Feb 19 17:04:26 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3751C528 for ; Wed, 19 Feb 2014 17:04:26 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id EBCCB1C92 for ; Wed, 19 Feb 2014 17:04:25 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id 5877C122A1; Thu, 20 Feb 2014 03:04:23 +1000 (EST) Received: from Peters-MacBook-Pro.local (c-67-161-27-37.hsd1.ca.comcast.net [67.161.27.37]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BRY15532 (AUTH peterg@ptree32.com.au); Thu, 20 Feb 2014 03:04:22 +1000 Message-ID: <5304E410.8010704@freebsd.org> Date: Wed, 19 Feb 2014 09:04:16 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Simon Dick Subject: Re: bhyve and FreeBSD 8.1 References: 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.17 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: Wed, 19 Feb 2014 17:04:26 -0000 > Is there any way to get FreeBSD 8.1 working under bhyve? I've read > the FAQ and it says 8.4 upwards, but thought it was worth asking here > just in case it can be done just not in a supported way... :) You'll need to backport the virtio drivers. There is a port that advertizes 8.2 as the minimum, so I'm not sure if there's extra work required to get that built on 8.1. http://www.freshports.org/emulators/virtio-kmod/ later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Wed Feb 19 17:38:03 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 77F13B2 for ; Wed, 19 Feb 2014 17:38:03 +0000 (UTC) Received: from mail-qa0-x235.google.com (mail-qa0-x235.google.com [IPv6:2607:f8b0:400d:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 36D16106D for ; Wed, 19 Feb 2014 17:38:03 +0000 (UTC) Received: by mail-qa0-f53.google.com with SMTP id cm18so989804qab.12 for ; Wed, 19 Feb 2014 09:38:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=oisHFqaKCjrwW6JiWNaE0ZxREUQ6YAVmRUaQ0HLto1w=; b=ZlgCTaApcQkOCKKLb0sZqmmqwfdEibJH1frOreZuZhOpJpk1mYQDaNLXdY9DJAaWfW jM4bZwRk1id5r/nXNy9WgFWQQgTqylCbe3UjsukN/SVk6Gnvu3VftWHRpAFgV/0ShSxs oTZFxHvDUeRUu/A2ufiZFabn8ccX/sF7RTqMn1g83A3paeLcAjZpf/PNa9D3SpcajGTM YIUKVJ5mLLqUaYbObVeIOCddZ/COKGoEF87uD0yELJYxVu5mJJAUaxUQeEbT2iMmlPWF XjgCh03bFUpbpfAme15Frgshy7oPnpAAwfMbGr8XTCn4/bCTL8bd2xWh1ldm1O7cVcWV KOyA== MIME-Version: 1.0 X-Received: by 10.140.88.180 with SMTP id t49mr2487990qgd.97.1392831482415; Wed, 19 Feb 2014 09:38:02 -0800 (PST) Received: by 10.140.51.176 with HTTP; Wed, 19 Feb 2014 09:38:02 -0800 (PST) Date: Wed, 19 Feb 2014 09:38:02 -0800 Message-ID: Subject: VirtIo errors inside VM with UFS-in-zvol From: Stephen Stuart To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Wed, 19 Feb 2014 17:38:03 -0000 I have VMs running on FreeBSD 10.0, for which I made zvols to provide the block IO device for bhyve. When I boot from the installation ISO, gpart works inside the VM, but newfs does not, reporting vtbd0 errors. Likewise, dump does not work inside the VM (failing with too many vtbd0 hard errors), but if I shut down the VM and dump the filesystem by specifying the partition name in the host machine's ZFS space (/dev/zvol/zroot/VOLNAMEp2), dump works just fine. With a different VM, where I got smart and did all the gpart and newfs work outside the VM: zfs create -V 10g zroot/WORKING gpart create -s GPT /dev/zvol/zroot/WORKING gpart add -t freebsd-boot -s 64k /dev/zvol/zroot/WORKING gpart add -t freebsd-ufs -s 7525m /dev/zvol/zroot/WORKING gpart add -t freebsd-swap /dev/zvol/zroot/WORKING newfs /dev/zvol/zroot/WORKINGp2 then install works fine inside the VM when I mount the filesystem and create fstab by hand, and dump inside the VM works fine. There's a somewhat related post here: https://groups.google.com/forum/#!msg/mailing.freebsd.fs/Iw7aONDm-3Y/gecBCQls8oYJ but I don't see anything specific to this issue. I'd like dump from inside the VM to work, the fact that it doesn't makes me concerned that there are issues lurking that might lead to data loss. Where do I go from here? Thanks, Stephen From owner-freebsd-virtualization@FreeBSD.ORG Wed Feb 19 20:47:23 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8BB1DEDF for ; Wed, 19 Feb 2014 20:47:23 +0000 (UTC) Received: from mail.monkeybrains.net (mail.monkeybrains.net [208.69.40.19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 721171293 for ; Wed, 19 Feb 2014 20:47:23 +0000 (UTC) Received: from [10.6.35.14] (192-195-81-185.PUBLIC.monkeybrains.net [192.195.81.185]) (authenticated bits=0) by mail.monkeybrains.net (8.14.7/8.14.7) with ESMTP id s1JKlMlf096642 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 19 Feb 2014 12:47:23 -0800 (PST) (envelope-from crapsh@monkeybrains.net) X-Authentication-Warning: mail.monkeybrains.net: Host 192-195-81-185.PUBLIC.monkeybrains.net [192.195.81.185] claimed to be [10.6.35.14] Message-ID: <5305185A.9060801@monkeybrains.net> Date: Wed, 19 Feb 2014 12:47:22 -0800 From: Rudy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: bhyve crashes... tip to /dev/nmdm1B Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.1 at mail.monkeybrains.net X-Virus-Status: Clean X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Wed, 19 Feb 2014 20:47:23 -0000 # grep vm1 /etc/remote vm1:dv=/dev/nmdm1B:br#9600:pa=none: # tip vm1 Could not open backing file: No such file or directory connected {...I hit ENTER 5 times here...} [1] Segmentation fault bhyve -c 2 -m 2048M -H -P -A -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3,ahci-cd,vm1.iso -l com1,/dev/nmdm1A -s 4,virtio-blk,/dev/zvol/data/vm1 vm1 (core dumped) I relaunched the VM and it works now... Anyone seen issues with nmdm? Rudy From owner-freebsd-virtualization@FreeBSD.ORG Wed Feb 19 22:33:33 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 44BF1680 for ; Wed, 19 Feb 2014 22:33:33 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 04B081BDA for ; Wed, 19 Feb 2014 22:33:32 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id 316E112456; Thu, 20 Feb 2014 08:33:31 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BRY24676 (AUTH peterg@ptree32.com.au); Thu, 20 Feb 2014 08:33:30 +1000 Message-ID: <53053138.6020003@freebsd.org> Date: Wed, 19 Feb 2014 14:33:28 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Rudy Subject: Re: bhyve crashes... tip to /dev/nmdm1B References: <5305185A.9060801@monkeybrains.net> In-Reply-To: <5305185A.9060801@monkeybrains.net> 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.17 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: Wed, 19 Feb 2014 22:33:33 -0000 Hi Rudy, > # tip vm1 > Could not open backing file: No such file or directory This is a valid error message from bhyve, and happens when the file attached to a block device can't be opened. > connected > > {...I hit ENTER 5 times here...} This is probably the delay due to core being dumped. > [1] Segmentation fault bhyve -c 2 -m 2048M -H -P -A -s > 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3,ahci-cd,vm1.iso -l > com1,/dev/nmdm1A -s 4,virtio-blk,/dev/zvol/data/vm1 vm1 (core dumped) > > > I relaunched the VM and it works now... Anyone seen issues with nmdm? Try running in the foreground (-l com1,stdio) to see if bhyve can access the iso and zvol OK. (There is a bug here in that bhyve should just exit out if the backing image doesn't exist rather than dumping core.) later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Thu Feb 20 06:44:31 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 733EBA87; Thu, 20 Feb 2014 06:44:31 +0000 (UTC) Received: from mail-pa0-x231.google.com (mail-pa0-x231.google.com [IPv6:2607:f8b0:400e:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 37453191E; Thu, 20 Feb 2014 06:44:31 +0000 (UTC) Received: by mail-pa0-f49.google.com with SMTP id hz1so1489288pad.8 for ; Wed, 19 Feb 2014 22:44:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=MAXq5+DXwdeDyV2abm/GicpGPAggmcTdtSGkLZB5zxk=; b=cEn0ZAib7m9UTZBSfNtif1Ve2rmvx+vnpATp2/Ue8A9XjlmKpa8DEILC269foIC1Zu dqH1t6SaM7fhmsShfcOM2OwG3GSh3JdI5u3rMTD1UhP4S/IjCWpt3vRGKqF1ePkWXxGO WzG6vkSq3hTvtlKK2eA0K5r7sTc6ZVKZtPjPl6syGUJpwKsKj7aagQCwhgl5bkk1jMKg eldyuPYVJut9i1dqIanTZoDkhR2aJ/vlqNJwCI30kGP0NgawCPfiWV+DJI/4y+BBQscP SRHai/yOreDctOF+wdRki2p5Fvt5z4CPWApPrDl5FXacKLCyPxBZOtttWAizuNZeN4ps 8s6g== X-Received: by 10.67.1.69 with SMTP id be5mr50019pad.103.1392878670829; Wed, 19 Feb 2014 22:44:30 -0800 (PST) Received: from [192.168.1.11] (c-24-6-79-58.hsd1.ca.comcast.net. [24.6.79.58]) by mx.google.com with ESMTPSA id e3sm7386912pbc.17.2014.02.19.22.44.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Feb 2014 22:44:23 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: CFT: bhyve AMD snapshot From: Anish Gupta In-Reply-To: Date: Wed, 19 Feb 2014 22:44:17 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <52F6953D.2010400@callfortesting.org> <52F7C9FC.5070409@digiware.nl> <52F8735E.8020701@callfortesting.org> <52F8ECC2.2060805@digiware.nl> <52F97A84.90308@callfortesting.org> <52FAB720.7070206@freebsd.org> <52FABB9A.6000908@freebsd.org> <52FB9382.8000401@freebsd.org> To: Aryeh Friedman X-Mailer: Apple Mail (2.1510) Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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, 20 Feb 2014 06:44:31 -0000 Hi Aryeh, You need to destroy the VM before creating new one with same name, so = between bhyve and bhyveload, you should use "bhyvectl --destroy --vm=3D. This fixed the problem "Fatal trap 30: reserved = (unknown) fault while in kernel mode" which I was able to reproduce on = my Phenom box. bhyveload=85..vm1 bhyve=85..vm1 =85 bhyvectl --destroy --vm=3Dvm1 << bhyveload =85vm1 bhyve=85..vm1 =85. Thanks for your help in testing bhyve_svm and bhyve. -Anish On Feb 17, 2014, at 8:27 PM, Aryeh Friedman = wrote: > Sorry for taking so long (forgot to say orginally this is the guest) >=20 >=20 > On Wed, Feb 12, 2014 at 10:30 AM, Peter Grehan = wrote: >=20 >> Hi Aryeh, >>=20 >> kernel panic during boot >>>=20 >>=20 >> Can you post a verbose boot log with the panic (i.e. "boot -v" from = the >> loader prompt) ?OK boot -v >> Booting... >> SMAP type=3D01 base=3D0000000000000000 len=3D00000000000a0000 >> SMAP type=3D01 base=3D0000000000100000 len=3D000000001ff00000 >> Table 'APIC' at 0xf0500 >> APIC: Found table at 0xf0500 >> APIC: Using the MADT enumerator. >> MADT: Found CPU APIC ID 0 ACPI ID 0: enabled >> SMP: Added CPU 0 (AP) >> 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.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 >> root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 >> Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff817f2000. >> Hypervisor: Origin =3D "bhyve bhyve " >> Calibrating TSC clock ... TSC clock: 2595069727 Hz >> CPU: AMD A6-3650 APU with Radeon(tm) HD Graphics (2595.07-MHz = K8-class CPU) >> Origin =3D "AuthenticAMD" Id =3D 0x300f10 Family =3D 0x12 Model =3D= 0x1 >> Stepping =3D 0 >>=20 >> = Features=3D0x783ab7f >> Features2=3D0x80a02001 >> AMD >> = Features=3D0xe6505880<,SYSCALL,,,NX,MMX+,FFXSR,Page1GB,LM,3D= Now!+,3DNow!> >> AMD >> = Features2=3D0x37ff >> TSC: P-state invariant >> L1 2MB data TLB: 48 entries, fully associative >> L1 2MB instruction TLB: 16 entries, fully associative >> L1 4KB data TLB: 48 entries, fully associative >> L1 4KB instruction TLB: 32 entries, fully associative >> L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way = associative >> L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way >> associative >> L2 2MB data TLB: 128 entries, 2-way associative >> L2 2MB instruction TLB: 0 entries, 2-way associative >> L2 4KB data TLB: 1024 entries, 4-way associative >> L2 4KB instruction TLB: 1024 entries, 4-way associative >> L2 unified cache: 1024 kbytes, 64 bytes/line, 1 lines/tag, 16-way >> associative >> real memory =3D 536870912 (512 MB) >> Physical memory chunk(s): >> 0x0000000000001000 - 0x000000000009bfff, 634880 bytes (155 pages) >> 0x0000000000100000 - 0x00000000001fffff, 1048576 bytes (256 pages) >> 0x000000000181a000 - 0x000000001f29ffff, 497573888 bytes (121478 = pages) >> avail memory =3D 492273664 (469 MB) >> Event timer "LAPIC" quality 400 >> ACPI APIC Table: >> APIC: CPU 0 has ACPI ID 0 >> x86bios: IVT 0x000000-0x0004ff at 0xfffff80000000000 >> x86bios: SSEG 0x001000-0x001fff at 0xfffffe002c174000 >> x86bios: ROM 0x0a0000-0x0fefff at 0xfffff800000a0000 >> XEN: CPU 0 has VCPU ID 0 >> random device not loaded; using insecure entropy >> ULE: setup cpu 0 >> ACPI: RSDP 0xf0400 00024 (v02 BHYVE ) >> ACPI: XSDT 0xf0480 0003C (v01 BHYVE BVXSDT 00000001 INTL 20130823) >> ACPI: APIC 0xf0500 00054 (v01 BHYVE BVMADT 00000001 INTL 20130823) >> ACPI: FACP 0xf0600 0010C (v05 BHYVE BVFACP 00000001 INTL 20130823) >> ACPI: DSDT 0xf0800 0012F (v02 BHYVE BVDSDT 00000001 INTL 20130823) >> ACPI: FACS 0xf0780 00040 >> ACPI: HPET 0xf0740 00038 (v01 BHYVE BVHPET 00000001 INTL 20130823) >> MADT: Found IO APIC ID 0, Interrupt 0 at 0xfec00000 >> ioapic0: Routing external 8259A's -> intpin 0 >> MADT: Interrupt override: source 0, irq 2 >> ioapic0: Routing IRQ 0 -> intpin 2 >> MADT: Interrupt override: source 9, irq 9 >> ioapic0: intpin 9 trigger: level >> ioapic0: intpin 9 polarity: low >> ioapic0 irqs 0-23 on motherboard >> cpu0 BSP: >> ID: 0x00000000 VER: 0x00000011 LDR: 0x00000000 DFR: 0xffffffff >> lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff >> timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 >> wlan: <802.11 Link Layer> >> snd_unit_init() u=3D0x00ff8000 [512] d=3D0x00007c00 [32] c=3D0x000003ff= [1024] >> feeder_register: snd_unit=3D-1 snd_maxautovchans=3D16 latency=3D5 >> feeder_rate_min=3D1 feeder_rate_max=3D2016000 feeder_rate_round=3D25 >> Hardware, Intel IvyBridge+ RNG: RDRAND is not present >> Hardware, VIA Nehemiah Padlock RNG: VIA Padlock RNG not present >> kbd0 at kbdmux0 >> mem: >> null: >> nfslock: pseudo-device >> Falling back to random adaptor >> random: initialized >> module_register_init: MOD_LOAD (vesa, 0xffffffff80cfa5e0, 0) error 19 >> io: >> VMBUS: load >> hptnr: R750/DC7280 controller driver v1.0 >> hpt27xx: RocketRAID 27xx controller driver v1.1 >> hptrr: RocketRAID 17xx/2xxx SATA controller driver v1.2 >>=20 >>=20 >> Fatal trap 30: reserved (unknown) fault while in kernel mode >> cpuid =3D 0; apic id =3D 00 >> instruction pointer =3D 0x20:0xffffffff80d1d3af >> stack pointer =3D 0x28:0xffffffff817f6b10 >> frame pointer =3D 0x28:0xffffffff817f6b40 >> code segment =3D base 0x0, limit 0xfffff, type 0x1b >> =3D DPL 0, pres 1, long 1, def32 0, gran 1 >> processor eflags =3D interrupt enabled, IOPL =3D 0 >> current process =3D 0 (swapper) >> trap number =3D 30 >> panic: reserved (unknown) fault >> cpuid =3D 0 >> KDB: stack backtrace: >> #0 0xffffffff808e7dd0 at kdb_backtrace+0x60 >> #1 0xffffffff808af8b5 at panic+0x155 >> #2 0xffffffff80c8e692 at trap_fatal+0x3a2 >> #3 0xffffffff80c8e2cf at trap+0x7bf >> #4 0xffffffff80c75392 at calltrap+0x8 >> #5 0xffffffff80d1e59e at vmbus_identify+0xe >> #6 0xffffffff808e02d7 at bus_generic_probe+0x77 >> #7 0xffffffff80c7314a at nexus_acpi_attach+0x1a >> #8 0xffffffff808df242 at device_attach+0x3a2 >> #9 0xffffffff808e07b9 at bus_generic_new_pass+0xe9 >> #10 0xffffffff808dd0af at bus_set_pass+0x8f >> #11 0xffffffff80c7472a at configure+0xa >> #12 0xffffffff80861238 at mi_startup+0x118 >> #13 0xffffffff802d3e0c at btext+0x2c >> Uptime: 1s >> Automatic reboot in 15 seconds - press a key on the console to abort >>=20 >>=20 > --=20 > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to = "freebsd-virtualization-unsubscribe@freebsd.org" From owner-freebsd-virtualization@FreeBSD.ORG Thu Feb 20 07:16:51 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E9999E8E; Thu, 20 Feb 2014 07:16:50 +0000 (UTC) Received: from mail-pb0-x22f.google.com (mail-pb0-x22f.google.com [IPv6:2607:f8b0:400e:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ADB201B25; Thu, 20 Feb 2014 07:16:50 +0000 (UTC) Received: by mail-pb0-f47.google.com with SMTP id rp16so1517728pbb.34 for ; Wed, 19 Feb 2014 23:16:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/kxPCTzAadm1FpEltB0GbUjif6FzbLy2ztgyFRlEMk4=; b=SBPmZKSGWZ2Bfx97ZnfmCyxKOJV2DGQmKJf3T9Zrdl66HfKmXjMP+8X0bAlQ00nz5j laWmxkO4KMCLhdN4thyZpM0lGiCsrK13xpQH6Athtl4FBp8EM/O6M7P2P084M+gBNwrB nscj88fv8YZLOpJnGlJbe/o3mgPM8rRjTH8tarJ2tL2PX2/7ZcM62Dxb+S1Zf3MU5H0u p/Tx34ZT9t2gqY/jTfu5rc0ZOLQTqb+6HR3JgKvpMvO+bpSeD+ZbN6sTjPUV1B5gfqZJ zwDzz0QAaHHM+P9qjtYQYQk3eXEGsejskLVtXvWxuCW2Ijl1+c+JoOBrCD6RjOx9F9Y5 Gywg== MIME-Version: 1.0 X-Received: by 10.66.192.74 with SMTP id he10mr304760pac.126.1392880609840; Wed, 19 Feb 2014 23:16:49 -0800 (PST) Received: by 10.68.155.38 with HTTP; Wed, 19 Feb 2014 23:16:49 -0800 (PST) In-Reply-To: References: <52F6953D.2010400@callfortesting.org> <52F7C9FC.5070409@digiware.nl> <52F8735E.8020701@callfortesting.org> <52F8ECC2.2060805@digiware.nl> <52F97A84.90308@callfortesting.org> <52FAB720.7070206@freebsd.org> <52FABB9A.6000908@freebsd.org> <52FB9382.8000401@freebsd.org> Date: Thu, 20 Feb 2014 02:16:49 -0500 Message-ID: Subject: Re: CFT: bhyve AMD snapshot From: Aryeh Friedman To: Anish Gupta Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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, 20 Feb 2014 07:16:51 -0000 Just to let people know destroying it does work... now I do not need to test PC on a production host thanks!!!! (just saved hours or headache with this about $2k in money) On Thu, Feb 20, 2014 at 1:44 AM, Anish Gupta wrote: > Hi Aryeh, > > You need to destroy the VM before creating new one with same name, so > between bhyve and bhyveload, you should use "bhyvectl --destroy --vm= name=t4n1ustl23>. This fixed the problem "Fatal trap 30: reserved (unknown) > fault while in kernel mode" which I was able to reproduce on my Phenom box. > > bhyveload.....vm1 > bhyve.....vm1 > ... > bhyvectl --destroy --vm=vm1 << > bhyveload ...vm1 > bhyve.....vm1 > .... > > Thanks for your help in testing bhyve_svm and bhyve. > > -Anish > > On Feb 17, 2014, at 8:27 PM, Aryeh Friedman > wrote: > > > Sorry for taking so long (forgot to say orginally this is the guest) > > > > > > On Wed, Feb 12, 2014 at 10:30 AM, Peter Grehan > wrote: > > > >> Hi Aryeh, > >> > >> kernel panic during boot > >>> > >> > >> Can you post a verbose boot log with the panic (i.e. "boot -v" from the > >> loader prompt) ?OK boot -v > >> Booting... > >> SMAP type=01 base=0000000000000000 len=00000000000a0000 > >> SMAP type=01 base=0000000000100000 len=000000001ff00000 > >> Table 'APIC' at 0xf0500 > >> APIC: Found table at 0xf0500 > >> APIC: Using the MADT enumerator. > >> MADT: Found CPU APIC ID 0 ACPI ID 0: enabled > >> SMP: Added CPU 0 (AP) > >> 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.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 > >> root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > >> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 > >> Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff817f2000. > >> Hypervisor: Origin = "bhyve bhyve " > >> Calibrating TSC clock ... TSC clock: 2595069727 Hz > >> CPU: AMD A6-3650 APU with Radeon(tm) HD Graphics (2595.07-MHz K8-class > CPU) > >> Origin = "AuthenticAMD" Id = 0x300f10 Family = 0x12 Model = 0x1 > >> Stepping = 0 > >> > >> > Features=0x783ab7f > >> Features2=0x80a02001 > >> AMD > >> > Features=0xe6505880<,SYSCALL,,,NX,MMX+,FFXSR,Page1GB,LM,3DNow!+,3DNow!> > >> AMD > >> > Features2=0x37ff > >> TSC: P-state invariant > >> L1 2MB data TLB: 48 entries, fully associative > >> L1 2MB instruction TLB: 16 entries, fully associative > >> L1 4KB data TLB: 48 entries, fully associative > >> L1 4KB instruction TLB: 32 entries, fully associative > >> L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative > >> L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way > >> associative > >> L2 2MB data TLB: 128 entries, 2-way associative > >> L2 2MB instruction TLB: 0 entries, 2-way associative > >> L2 4KB data TLB: 1024 entries, 4-way associative > >> L2 4KB instruction TLB: 1024 entries, 4-way associative > >> L2 unified cache: 1024 kbytes, 64 bytes/line, 1 lines/tag, 16-way > >> associative > >> real memory = 536870912 (512 MB) > >> Physical memory chunk(s): > >> 0x0000000000001000 - 0x000000000009bfff, 634880 bytes (155 pages) > >> 0x0000000000100000 - 0x00000000001fffff, 1048576 bytes (256 pages) > >> 0x000000000181a000 - 0x000000001f29ffff, 497573888 bytes (121478 pages) > >> avail memory = 492273664 (469 MB) > >> Event timer "LAPIC" quality 400 > >> ACPI APIC Table: > >> APIC: CPU 0 has ACPI ID 0 > >> x86bios: IVT 0x000000-0x0004ff at 0xfffff80000000000 > >> x86bios: SSEG 0x001000-0x001fff at 0xfffffe002c174000 > >> x86bios: ROM 0x0a0000-0x0fefff at 0xfffff800000a0000 > >> XEN: CPU 0 has VCPU ID 0 > >> random device not loaded; using insecure entropy > >> ULE: setup cpu 0 > >> ACPI: RSDP 0xf0400 00024 (v02 BHYVE ) > >> ACPI: XSDT 0xf0480 0003C (v01 BHYVE BVXSDT 00000001 INTL 20130823) > >> ACPI: APIC 0xf0500 00054 (v01 BHYVE BVMADT 00000001 INTL 20130823) > >> ACPI: FACP 0xf0600 0010C (v05 BHYVE BVFACP 00000001 INTL 20130823) > >> ACPI: DSDT 0xf0800 0012F (v02 BHYVE BVDSDT 00000001 INTL 20130823) > >> ACPI: FACS 0xf0780 00040 > >> ACPI: HPET 0xf0740 00038 (v01 BHYVE BVHPET 00000001 INTL 20130823) > >> MADT: Found IO APIC ID 0, Interrupt 0 at 0xfec00000 > >> ioapic0: Routing external 8259A's -> intpin 0 > >> MADT: Interrupt override: source 0, irq 2 > >> ioapic0: Routing IRQ 0 -> intpin 2 > >> MADT: Interrupt override: source 9, irq 9 > >> ioapic0: intpin 9 trigger: level > >> ioapic0: intpin 9 polarity: low > >> ioapic0 irqs 0-23 on motherboard > >> cpu0 BSP: > >> ID: 0x00000000 VER: 0x00000011 LDR: 0x00000000 DFR: 0xffffffff > >> lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff > >> timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 > >> wlan: <802.11 Link Layer> > >> snd_unit_init() u=0x00ff8000 [512] d=0x00007c00 [32] c=0x000003ff [1024] > >> feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=5 > >> feeder_rate_min=1 feeder_rate_max=2016000 feeder_rate_round=25 > >> Hardware, Intel IvyBridge+ RNG: RDRAND is not present > >> Hardware, VIA Nehemiah Padlock RNG: VIA Padlock RNG not present > >> kbd0 at kbdmux0 > >> mem: > >> null: > >> nfslock: pseudo-device > >> Falling back to random adaptor > >> random: initialized > >> module_register_init: MOD_LOAD (vesa, 0xffffffff80cfa5e0, 0) error 19 > >> io: > >> VMBUS: load > >> hptnr: R750/DC7280 controller driver v1.0 > >> hpt27xx: RocketRAID 27xx controller driver v1.1 > >> hptrr: RocketRAID 17xx/2xxx SATA controller driver v1.2 > >> > >> > >> Fatal trap 30: reserved (unknown) fault while in kernel mode > >> cpuid = 0; apic id = 00 > >> instruction pointer = 0x20:0xffffffff80d1d3af > >> stack pointer = 0x28:0xffffffff817f6b10 > >> frame pointer = 0x28:0xffffffff817f6b40 > >> code segment = base 0x0, limit 0xfffff, type 0x1b > >> = DPL 0, pres 1, long 1, def32 0, gran 1 > >> processor eflags = interrupt enabled, IOPL = 0 > >> current process = 0 (swapper) > >> trap number = 30 > >> panic: reserved (unknown) fault > >> cpuid = 0 > >> KDB: stack backtrace: > >> #0 0xffffffff808e7dd0 at kdb_backtrace+0x60 > >> #1 0xffffffff808af8b5 at panic+0x155 > >> #2 0xffffffff80c8e692 at trap_fatal+0x3a2 > >> #3 0xffffffff80c8e2cf at trap+0x7bf > >> #4 0xffffffff80c75392 at calltrap+0x8 > >> #5 0xffffffff80d1e59e at vmbus_identify+0xe > >> #6 0xffffffff808e02d7 at bus_generic_probe+0x77 > >> #7 0xffffffff80c7314a at nexus_acpi_attach+0x1a > >> #8 0xffffffff808df242 at device_attach+0x3a2 > >> #9 0xffffffff808e07b9 at bus_generic_new_pass+0xe9 > >> #10 0xffffffff808dd0af at bus_set_pass+0x8f > >> #11 0xffffffff80c7472a at configure+0xa > >> #12 0xffffffff80861238 at mi_startup+0x118 > >> #13 0xffffffff802d3e0c at btext+0x2c > >> Uptime: 1s > >> Automatic reboot in 15 seconds - press a key on the console to abort > >> > >> > > -- > > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org > > _______________________________________________ > > freebsd-virtualization@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > > To unsubscribe, send any mail to " > freebsd-virtualization-unsubscribe@freebsd.org" > > -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org From owner-freebsd-virtualization@FreeBSD.ORG Thu Feb 20 07:51:00 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9C363969 for ; Thu, 20 Feb 2014 07:51:00 +0000 (UTC) Received: from mail.monkeybrains.net (mail.monkeybrains.net [208.69.40.19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 660471DF9 for ; Thu, 20 Feb 2014 07:51:00 +0000 (UTC) Received: from Birdhouse-o-My.local (208-90-212-98.PUBLIC.monkeybrains.net [208.90.212.98]) (authenticated bits=0) by mail.monkeybrains.net (8.14.7/8.14.7) with ESMTP id s1K7oxI1063626 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 19 Feb 2014 23:50:59 -0800 (PST) (envelope-from rudy@monkeybrains.net) X-Authentication-Warning: mail.monkeybrains.net: Host 208-90-212-98.PUBLIC.monkeybrains.net [208.90.212.98] claimed to be Birdhouse-o-My.local Message-ID: <5305B3E2.8040506@monkeybrains.net> Date: Wed, 19 Feb 2014 23:50:58 -0800 From: Rudy Rucker User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: Re: [PATCH] Support for S5 (soft power off) in bhyve References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.1 at mail.monkeybrains.net X-Virus-Status: Clean X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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, 20 Feb 2014 07:51:00 -0000 Is this only in HEAD and not 10.0? Looking for the power button for those VMs. Thanks, Rudy From owner-freebsd-virtualization@FreeBSD.ORG Thu Feb 20 18:14:30 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A724F2FF for ; Thu, 20 Feb 2014 18:14:30 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 645691DEB for ; Thu, 20 Feb 2014 18:14:30 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id 110BC123C1; Fri, 21 Feb 2014 04:14:23 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local ([198.95.226.236]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BRZ00628 (AUTH peterg@ptree32.com.au); Fri, 21 Feb 2014 04:14:21 +1000 Message-ID: <530645F2.4080201@freebsd.org> Date: Thu, 20 Feb 2014 10:14:10 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Rudy Rucker Subject: Re: [PATCH] Support for S5 (soft power off) in bhyve References: <5305B3E2.8040506@monkeybrains.net> In-Reply-To: <5305B3E2.8040506@monkeybrains.net> 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.17 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, 20 Feb 2014 18:14:30 -0000 Hi Rudy, > Is this only in HEAD and not 10.0? > > Looking for the power button for those VMs. Not in 10.0 :( In HEAD, and mfc'd to 10-stable with r261090. later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Fri Feb 21 17:31:35 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9D755D37 for ; Fri, 21 Feb 2014 17:31:35 +0000 (UTC) Received: from mail.monkeybrains.net (mail.monkeybrains.net [208.69.40.19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6A5B21876 for ; Fri, 21 Feb 2014 17:31:35 +0000 (UTC) Received: from [10.6.35.14] (192-195-81-185.PUBLIC.monkeybrains.net [192.195.81.185]) (authenticated bits=0) by mail.monkeybrains.net (8.14.7/8.14.7) with ESMTP id s1LHVTC5094254 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 21 Feb 2014 09:31:29 -0800 (PST) (envelope-from crapsh@monkeybrains.net) X-Authentication-Warning: mail.monkeybrains.net: Host 192-195-81-185.PUBLIC.monkeybrains.net [192.195.81.185] claimed to be [10.6.35.14] Message-ID: <53078D71.5030308@monkeybrains.net> Date: Fri, 21 Feb 2014 09:31:29 -0800 From: Rudy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: [how-to] ubuntu guest in bhyve Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.1 at mail.monkeybrains.net X-Virus-Status: Clean X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Fri, 21 Feb 2014 17:31:35 -0000 There are plenty of how to docs on byhve, so I wrote another one. :) My experience setting up bhyve: https://www.monkeybrains.net/support/bhyve Rudy From owner-freebsd-virtualization@FreeBSD.ORG Sat Feb 22 20:16:27 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1A15F4B3 for ; Sat, 22 Feb 2014 20:16:26 +0000 (UTC) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5BBF61940 for ; Sat, 22 Feb 2014 20:16:26 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id CABD71534C4 for ; Sat, 22 Feb 2014 21:16:21 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b5BAReU7DCGD; Sat, 22 Feb 2014 21:16:19 +0100 (CET) Received: from [192.168.10.9] (vaio [192.168.10.9]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 8AAE2153448 for ; Sat, 22 Feb 2014 21:16:19 +0100 (CET) Message-ID: <53090599.5000505@digiware.nl> Date: Sat, 22 Feb 2014 21:16:25 +0100 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: virtualization@freebsd.org Subject: Bhyve and booting a ZFS-on-root system Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Sat, 22 Feb 2014 20:16:27 -0000 Hi, Just for the fun of it, I tried my build zfs-system scripts in a bhyve-vm. I use the 10.0-RELEASE iso to get to a shell, config and interface and download my script. Installing does work, and on a regular system we can go and boot into a ZFS-on-Root system. In bhyve I get the following, on reboot: ----- freetest# vmrun.sh -d test10zfs -t tap1 -m 2048 test10zfs Launching virtual machine "test10zfs" ... Consoles: userboot FreeBSD/amd64 User boot, Revision 1.1 (root@freetest.digiware.nl, Tue Feb 11 10:03:58 CET 2014) \ can't load 'kernel' Type '?' for a list of commands, 'help' for more detailed help. OK ------ And there is no known way (to me) to educate the loader to understand zfs disks.... Which loader is is used in booting? a special bhyve-loader the bootloader in the boot-partition. It seems this is the first one. If so I'm wondering if the grub-bhyve would be a trick to boot the Root-on-ZFS system.... But then the first question is: where do I find grub-bhyve Any suggestion is welcome... BTW: this is on a AMD system. BTW2: I read that there could be interest for a dedicated opteron-server to do bhyve development on.... I'm more than willing to put my test server in a slot in our datacenter for people to do testing on. ---- CPU: AMD Phenom(tm) II X6 1075T Processor (3013.84-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x100fa0 Family = 0x10 Model = 0xa Stepping = 0 Features=0x178bfbff Features2=0x802009 AMDFeatures=0xee500800 AMDFeatures2=0x37ff --WjW From owner-freebsd-virtualization@FreeBSD.ORG Sat Feb 22 20:18:45 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 50C81643 for ; Sat, 22 Feb 2014 20:18:45 +0000 (UTC) Received: from mail-pa0-x22c.google.com (mail-pa0-x22c.google.com [IPv6:2607:f8b0:400e:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 273101961 for ; Sat, 22 Feb 2014 20:18:45 +0000 (UTC) Received: by mail-pa0-f44.google.com with SMTP id kq14so4862611pab.3 for ; Sat, 22 Feb 2014 12:18:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zN/qFmdMLI9cGlcX1Shd0Wkn8amzG4fkkC/5AAOoTH4=; b=uI4nkEFzfThx21S1h3ld7q9n9GYW4vrasDrHXZUhE6nCbeKi/b7jWQsCQwZ6klJaGr G/9hLn8fA0k66qTwGD5NG/jAD8pjwi+Tt24bby2e+aLRuXNUDQLLMxljkJKLf5Mk6ytx UfjpFd+MnK9a6TNQVg+dUpZttfW7WTPBKZY1p2MIG7yXPOL9y3ea4aRz1jbLmlNQgC8r xcamKwYtbukI/zFlCE8JnwSQmnMcvC9dixAo4gVd6Gn196xJsG8xGfiDPz5jrSNSTpug 9MzhLlIBpn7SYL0RtcY0bEoqY1tEblNgxUaMs7yoYl0sC2BS18ixoMrnGnWmSecAwHb9 IDzw== MIME-Version: 1.0 X-Received: by 10.68.171.229 with SMTP id ax5mr16240662pbc.125.1393100324328; Sat, 22 Feb 2014 12:18:44 -0800 (PST) Received: by 10.68.155.38 with HTTP; Sat, 22 Feb 2014 12:18:44 -0800 (PST) In-Reply-To: <53090599.5000505@digiware.nl> References: <53090599.5000505@digiware.nl> Date: Sat, 22 Feb 2014 15:18:44 -0500 Message-ID: Subject: Re: Bhyve and booting a ZFS-on-root system From: Aryeh Friedman To: Willem Jan Withagen Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Sat, 22 Feb 2014 20:18:45 -0000 You need a special branch of bhyve to work on AMD (see recent thread on the topic) On Sat, Feb 22, 2014 at 3:16 PM, Willem Jan Withagen wrote: > Hi, > > Just for the fun of it, I tried my build zfs-system scripts in a bhyve-vm. > > I use the 10.0-RELEASE iso to get to a shell, config and interface and > download my script. Installing does work, and on a regular system we can > go and boot into a ZFS-on-Root system. > > In bhyve I get the following, on reboot: > ----- > freetest# vmrun.sh -d test10zfs -t tap1 -m 2048 test10zfs > Launching virtual machine "test10zfs" ... > Consoles: userboot > > FreeBSD/amd64 User boot, Revision 1.1 > (root@freetest.digiware.nl, Tue Feb 11 10:03:58 CET 2014) > \ > can't load 'kernel' > > Type '?' for a list of commands, 'help' for more detailed help. > OK > ------ > > And there is no known way (to me) to educate the loader to understand > zfs disks.... > > Which loader is is used in booting? > a special bhyve-loader > the bootloader in the boot-partition. > > It seems this is the first one. > > If so I'm wondering if the grub-bhyve would be a trick to boot the > Root-on-ZFS system.... > > But then the first question is: > where do I find grub-bhyve > > Any suggestion is welcome... > > BTW: this is on a AMD system. > > BTW2: I read that there could be interest for a dedicated opteron-server > to do bhyve development on.... > I'm more than willing to put my test server in a slot in our datacenter > for people to do testing on. > ---- > CPU: AMD Phenom(tm) II X6 1075T Processor (3013.84-MHz K8-class CPU) > Origin = "AuthenticAMD" Id = 0x100fa0 Family = 0x10 Model = 0xa > Stepping = 0 > > Features=0x178bfbff > Features2=0x802009 > > AMDFeatures=0xee500800 > > AMDFeatures2=0x37ff > > --WjW > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to " > freebsd-virtualization-unsubscribe@freebsd.org" > -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org From owner-freebsd-virtualization@FreeBSD.ORG Sat Feb 22 21:28:21 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 982AFE8C for ; Sat, 22 Feb 2014 21:28:21 +0000 (UTC) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [IPv6:2a00:1450:4010:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1BE0F1DFB for ; Sat, 22 Feb 2014 21:28:20 +0000 (UTC) Received: by mail-la0-f41.google.com with SMTP id gl10so821657lab.0 for ; Sat, 22 Feb 2014 13:28:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Uvo5z182crby97Wk4RwL9grtRl8vpvWeXoBHinQzu04=; b=t4N+FOWSDDICZPmMqbF89HfPo2XFny8r1PvqxQVpK1dB/v1Ohf3djG0L2TKjdtJ3QO CDGJWZZTID9+7PkuoGxL7ONRw3m8OTyA6KsSXCxikTh9Ixitf+Vp7NtUxSTxegtY0aG2 sz7zFZyE8B0p8BGOhmounjKksW72A16iiJJ1y4QBHPXnm/Z5Fo+isyYZeLwUN9vrZBlo 3ZBpml2yACZC4gX/w/wxeuD4VWvFQCy8JZGWnY0kgZrnC2Cw0/vspwKxjRpCe0SqfzZU cvpr/+b4WTwcusRlnFbpUdpGZUQNZ/hKvaZF2cjqAnrFrErOxdbFU0kowr0KEozUYuEW TqqA== MIME-Version: 1.0 X-Received: by 10.112.38.4 with SMTP id c4mr2708294lbk.84.1393104498573; Sat, 22 Feb 2014 13:28:18 -0800 (PST) Sender: crodr001@gmail.com Received: by 10.112.30.211 with HTTP; Sat, 22 Feb 2014 13:28:18 -0800 (PST) In-Reply-To: <53090599.5000505@digiware.nl> References: <53090599.5000505@digiware.nl> Date: Sat, 22 Feb 2014 13:28:18 -0800 X-Google-Sender-Auth: IduEmBnlhBbMxZ2ULFz6MWQzp64 Message-ID: Subject: Re: Bhyve and booting a ZFS-on-root system From: Craig Rodrigues To: Willem Jan Withagen Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Sat, 22 Feb 2014 21:28:21 -0000 On Sat, Feb 22, 2014 at 12:16 PM, Willem Jan Withagen wrote: > Hi, > > Just for the fun of it, I tried my build zfs-system scripts in a bhyve-vm. > > I use the 10.0-RELEASE iso to get to a shell, config and interface and > download my script. Installing does work, and on a regular system we can > go and boot into a ZFS-on-Root system. > ZFS on Root inside a BHyve VM was not working until today. If you you have a FreeBSD-CURRENT system and then update to this revision: http://lists.freebsd.org/pipermail/svn-src-all/2014-February/081210.html then you can try it out. -- Craig From owner-freebsd-virtualization@FreeBSD.ORG Sat Feb 22 21:43:49 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CABEE561 for ; Sat, 22 Feb 2014 21:43:49 +0000 (UTC) Received: from mail-la0-x235.google.com (mail-la0-x235.google.com [IPv6:2a00:1450:4010:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4DEC61098 for ; Sat, 22 Feb 2014 21:43:49 +0000 (UTC) Received: by mail-la0-f53.google.com with SMTP id e16so3795712lan.26 for ; Sat, 22 Feb 2014 13:43:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=fy/3MXGkWhA7rb/2QvHqOqjAXwXkK2L9QVYlnB9djuo=; b=SKeN5oPYw+7MyuD4hTarabAvuG7W0IxNxUXcZJLwo33zkblU7DS0HUe0+oj+5pizn8 EatWlEaO9GyIM0i4r6GZOR+Tr1UGyWTNQJCBsVKcaNwUyL/38NYALKdidrdSof46eYdG Ni6MGxYG3tmxf56EPxL+7pH+EWQ/4bpI3XkBIyvNBX0I2iVwwithXtXvtZTh2xAhyTPx qrss0+ntschEv7DPKXW9QrhzSu8NsbYERCzsSREAO9wsf7tDPP8D6NPAeqTkTCOffepv eRs24B+WFT40bsnlDAy/z3pbxwdomEMc0oIavptsrjodNuY2Fhx0VhM4A7/XFSXpLuNY bq7w== MIME-Version: 1.0 X-Received: by 10.152.143.231 with SMTP id sh7mr7973781lab.26.1393105427277; Sat, 22 Feb 2014 13:43:47 -0800 (PST) Sender: crodr001@gmail.com Received: by 10.112.30.211 with HTTP; Sat, 22 Feb 2014 13:43:47 -0800 (PST) In-Reply-To: <53090599.5000505@digiware.nl> References: <53090599.5000505@digiware.nl> Date: Sat, 22 Feb 2014 13:43:47 -0800 X-Google-Sender-Auth: TeoyaOdceHxcZL0__B0ZqUXm3jA Message-ID: Subject: Re: Bhyve and booting a ZFS-on-root system From: Craig Rodrigues To: Willem Jan Withagen Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Sat, 22 Feb 2014 21:43:49 -0000 On Sat, Feb 22, 2014 at 12:16 PM, Willem Jan Withagen wrote: > > CPU: AMD Phenom(tm) II X6 1075T Processor (3013.84-MHz K8-class CPU) > Origin = "AuthenticAMD" Id = 0x100fa0 Family = 0x10 Model = 0xa > Also, as Aryeh has pointed out, you cannot run BHyve on an AMD processor unless you check out the code from a special branch. Michael Dexter has provided a snapshot from the branch: http://lists.freebsd.org/pipermail/freebsd-virtualization/2014-February/002227.html but that snapshot doesn't have the ZFS on Root change. -- Craig From owner-freebsd-virtualization@FreeBSD.ORG Sat Feb 22 21:45:04 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 03B635B6; Sat, 22 Feb 2014 21:45:04 +0000 (UTC) Received: from mail-pd0-x233.google.com (mail-pd0-x233.google.com [IPv6:2607:f8b0:400e:c02::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C7E0810A8; Sat, 22 Feb 2014 21:45:03 +0000 (UTC) Received: by mail-pd0-f179.google.com with SMTP id fp1so4716641pdb.38 for ; Sat, 22 Feb 2014 13:45:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=irVxXr/pC/2vLvsDHpxU1r/xFzfLCIKkKM7pbFeGsUo=; b=xHMM1JwKWYvaWn0PrA4bODPeQeQG7IyFUO6+IfI7/vHoaDgOED9dCffiE6+9rUSRE9 5a7r0Oid2ghkGKEkshjmP4qn2xsiPO6OkS6NJxH+7k2xmxICSW/YqpxTJsl8IQzqiQXn YIqhodQTvxL0hM79Rh/jjHKscwTxuBX0PhCha2aE1TUzUpxXj/ETsCP531RclBsj1Viz 3QgLK47ayUg5SRh7oQQaH2CgLf9RADi7DfBibea+8jyCLjILS+4e3wLM9GbADGZut0ln REZo3kRT0x07g9Z//Ab+FksvE/OI/2nEtqKw79GcHacWxXfr4fPFRq9lByc/Q44UaL8Z s0Ow== MIME-Version: 1.0 X-Received: by 10.68.87.98 with SMTP id w2mr16592096pbz.2.1393105503418; Sat, 22 Feb 2014 13:45:03 -0800 (PST) Received: by 10.68.155.38 with HTTP; Sat, 22 Feb 2014 13:45:03 -0800 (PST) In-Reply-To: References: <53090599.5000505@digiware.nl> Date: Sat, 22 Feb 2014 16:45:03 -0500 Message-ID: Subject: Re: Bhyve and booting a ZFS-on-root system From: Aryeh Friedman To: Craig Rodrigues Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Sat, 22 Feb 2014 21:45:04 -0000 On Sat, Feb 22, 2014 at 4:43 PM, Craig Rodrigues wrote: > On Sat, Feb 22, 2014 at 12:16 PM, Willem Jan Withagen >wrote: > > > > > CPU: AMD Phenom(tm) II X6 1075T Processor (3013.84-MHz K8-class CPU) > > Origin = "AuthenticAMD" Id = 0x100fa0 Family = 0x10 Model = 0xa > > > > Also, as Aryeh has pointed out, > you cannot run BHyve on an AMD processor unless you check out the > code from a special branch. Michael Dexter has provided a snapshot > from the branch: > > > http://lists.freebsd.org/pipermail/freebsd-virtualization/2014-February/002227.html > > but that snapshot doesn't have the ZFS on Root change. > Even though I have not tried the patch looks compatible with SVM branch -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org