From owner-freebsd-virtualization@FreeBSD.ORG Sun Jun 23 23:52:26 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 586E1620 for ; Sun, 23 Jun 2013 23:52:26 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-pa0-x232.google.com (mail-pa0-x232.google.com [IPv6:2607:f8b0:400e:c03::232]) by mx1.freebsd.org (Postfix) with ESMTP id 3B3BB1294 for ; Sun, 23 Jun 2013 23:52:26 +0000 (UTC) Received: by mail-pa0-f50.google.com with SMTP id fb1so10171805pad.9 for ; Sun, 23 Jun 2013 16:52:26 -0700 (PDT) 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=ru9cIa3aFQYmQzvhQ7DIUdUU/IMNck2cHhR8HLVTl7I=; b=q0Ldefwnbt+eDo9crGBC3bY80P4K8pvvz3KLmAUeh8NB+WUDt1tItoNQJiEiuLrs0g ITYevjAlNI9XbHGIU4hpT3KCMmQpQxox5kO+GNSVQEFRVHislsEQiUXIANRm4dH5B3mr eW/DXevUi8e1ZAowD/nGc8iSW8LjwPF3TeayJ+HvGFYyq+PSf8W0DQxv+T+EYMtfqWRP IQXcNn7YCL+G5L6T7cUW9y4HfXDe+5LaW3kItQVn3zAhngUWSGblp9rIpUVbNz58jjw1 /VccVH61QkJFxjx94htMk0CbnWKEHYWp0DFLxspWg+RHjWQAIGnbZYD7jhFiFuZLBTZ4 vNUg== MIME-Version: 1.0 X-Received: by 10.68.250.5 with SMTP id yy5mr21119778pbc.93.1372031546070; Sun, 23 Jun 2013 16:52:26 -0700 (PDT) Received: by 10.68.130.133 with HTTP; Sun, 23 Jun 2013 16:52:26 -0700 (PDT) Date: Sun, 23 Jun 2013 19:52:26 -0400 Message-ID: Subject: installing 9.1-RELEASE guest on byhve From: Aryeh Friedman To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Sun, 23 Jun 2013 23:52:26 -0000 I have byhve up and running on a 10-CURRENT machine and want to know the best way to install from CD 9.1 on it. Any references I should look at? From owner-freebsd-virtualization@FreeBSD.ORG Mon Jun 24 00:22:40 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 D5377AED for ; Mon, 24 Jun 2013 00:22:40 +0000 (UTC) (envelope-from editor@callfortesting.org) Received: from mail-yh0-x234.google.com (mail-yh0-x234.google.com [IPv6:2607:f8b0:4002:c01::234]) by mx1.freebsd.org (Postfix) with ESMTP id 9BB2F1391 for ; Mon, 24 Jun 2013 00:22:40 +0000 (UTC) Received: by mail-yh0-f52.google.com with SMTP id f10so4607475yha.39 for ; Sun, 23 Jun 2013 17:22:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=7O219qjhb+qW/w67fjKdmp+Z6AifxFTjwlllVTYZFiU=; b=hGOLDDaCRuBX0l6khEF5/bLFn9b1d71JAflJJiiQonzfz2Tz/0dmD4aVaFuXnakfsA uJUPEE0RUdru1xoVyNn4u0tTO6JW5ZVR3JUoMzJnlhNC6DPakrXlieQI26ee1pGWqBlP Q6HQC859iIIn4sAgmRMznb6mS34fhLJiy83RQcmcq7qyVjpbvHZ3gcO6gRf/H1W/YQ0p Q8oG+1NY58WzLkwiOkpG6S7GljAEvpc2yPB0xMWcG1CW6hN1rmoIRU09B0kMInWsp5Wh dfwdInLWnkldiBVD8dqt/tVLTQRndme2+ZL3KI4Ra7kF7398ud5J0Xbm8EzHUKtEozsM cEzQ== X-Received: by 10.236.180.3 with SMTP id i3mr2202284yhm.139.1372033360252; Sun, 23 Jun 2013 17:22:40 -0700 (PDT) Received: from MacBook-4.local (ip24-254-82-222.sb.sd.cox.net. [24.254.82.222]) by mx.google.com with ESMTPSA id q7sm26888636yhm.8.2013.06.23.17.22.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Jun 2013 17:22:39 -0700 (PDT) Message-ID: <51C7914E.4010200@callfortesting.org> Date: Sun, 23 Jun 2013 17:22:38 -0700 From: Michael Dexter User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Aryeh Friedman , freebsd-virtualization@freebsd.org Subject: Re: installing 9.1-RELEASE guest on byhve References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmZJUphXi2KBOmWFTSf01P3ZhMaGJFVJOYyhKT0PyJ4XTx0YQp7SdsVG4BHJfLl03FXsu86 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: Mon, 24 Jun 2013 00:22:40 -0000 On 6/23/13 4:52 PM, Aryeh Friedman wrote: > I have byhve up and running on a 10-CURRENT machine and want to know > the best way to install from CD 9.1 on it. Any references I should > look at? You will need to install 9-CURRENT as 9.1 did not ship with VirtIO drivers. May I suggest: http://bhyve.org for information and installation scripts. Michael From owner-freebsd-virtualization@FreeBSD.ORG Mon Jun 24 00:34:44 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 3E50CE5B for ; Mon, 24 Jun 2013 00:34:44 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-pb0-x231.google.com (mail-pb0-x231.google.com [IPv6:2607:f8b0:400e:c01::231]) by mx1.freebsd.org (Postfix) with ESMTP id 1DE351457 for ; Mon, 24 Jun 2013 00:34:44 +0000 (UTC) Received: by mail-pb0-f49.google.com with SMTP id jt11so10229143pbb.36 for ; Sun, 23 Jun 2013 17:34:44 -0700 (PDT) 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 :content-type; bh=Vsrg3Pma/kK4vt9aJ3yehbQb0dNj27SZEpfLLihky/s=; b=bKmQh4m6zvOq7UkX1GWz7MWrLcBXHQ10phbw0fFSDdCSWSt8n7zZOAw7vz6gSNbqhb aC8MYmyutGBiTfXUe02dfuj26N4DI3ouHhGOLqT5qcsox4agiKgYnctm8nr6CUb0c+cz J2HH03Pngk4ow4Qz53YHxqdiebPhN718kgIelQUnCB4ICM/0w4KMS+JHCzXwtT4yFiJk M+uTbNRYWr0b+2nbwvWdAVNn/Xx+g9Mlg96Iiv3mNsXsBnmiHRqjml35+8/uR03szxvw ycBizAZndDOSQXPlAGfcDXhsn5c8ZtIMg0FXUquut8fMXf3gqMAczZvpSIyWHrjDyzct OvMg== MIME-Version: 1.0 X-Received: by 10.68.224.161 with SMTP id rd1mr21401891pbc.121.1372034083946; Sun, 23 Jun 2013 17:34:43 -0700 (PDT) Received: by 10.68.130.133 with HTTP; Sun, 23 Jun 2013 17:34:43 -0700 (PDT) In-Reply-To: <51C7914E.4010200@callfortesting.org> References: <51C7914E.4010200@callfortesting.org> Date: Sun, 23 Jun 2013 20:34:43 -0400 Message-ID: Subject: Re: installing 9.1-RELEASE guest on byhve From: Aryeh Friedman To: Michael Dexter , freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Mon, 24 Jun 2013 00:34:44 -0000 This is a critical deficiency I need to be able to install *ANY* OS for what I have in mind. Note I do have 10-CURRENT up as a guest. I am attempting to use bhyve as the foundation of a cross platform testing lab and thus needs to support FB (8,9 and 10), Linux (Ubuntu 12.04 LTS at a min) and Windows. Also it is 9.1 not 9-RELEASE (I thought 9.1 was 9-RELEASE) On Sun, Jun 23, 2013 at 8:22 PM, Michael Dexter wrote: > On 6/23/13 4:52 PM, Aryeh Friedman wrote: >> >> I have byhve up and running on a 10-CURRENT machine and want to know >> the best way to install from CD 9.1 on it. Any references I should >> look at? > > > You will need to install 9-CURRENT as 9.1 did not ship with VirtIO drivers. > May I suggest: http://bhyve.org for information and installation scripts. > > Michael > From owner-freebsd-virtualization@FreeBSD.ORG Mon Jun 24 11:06:56 2013 Return-Path: Delivered-To: freebsd-virtualization@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1D921178 for ; Mon, 24 Jun 2013 11:06:56 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 0F7781DE0 for ; Mon, 24 Jun 2013 11:06:56 +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 r5OB6tdu001181 for ; Mon, 24 Jun 2013 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r5OB6t2V001179 for freebsd-virtualization@FreeBSD.org; Mon, 24 Jun 2013 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 24 Jun 2013 11:06:55 GMT Message-Id: <201306241106.r5OB6t2V001179@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.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: Mon, 24 Jun 2013 11:06:56 -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/170096 virtualization[vimage] Dynamically-attached network interface will c o kern/169991 virtualization[run] [vimage] panic after device plugged in 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 a kern/141696 virtualization[rum] [vimage] [panic] rum(4)+ vimage = kernel panic 10 problems total. From owner-freebsd-virtualization@FreeBSD.ORG Mon Jun 24 12:46:34 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E2227550 for ; Mon, 24 Jun 2013 12:46:34 +0000 (UTC) (envelope-from mack@macktronics.com) Received: from borg.macktronics.com (borg.macktronics.com [209.181.253.68]) by mx1.freebsd.org (Postfix) with ESMTP id A2C0A1615 for ; Mon, 24 Jun 2013 12:46:34 +0000 (UTC) Received: from [172.22.30.42] (dulse.macktronics.com [209.181.253.69]) by borg.macktronics.com (Postfix) with ESMTP id 711A8266; Sun, 23 Jun 2013 09:02:04 -0500 (CDT) From: Dan Mack Date: Sun, 23 Jun 2013 09:02:04 -0500 Subject: bhyve hangs on init on recent 10-CURRENT To: freebsd-virtualization@freebsd.org Message-Id: <3F80B754-2000-4C30-8386-22E16FE415F4@macktronics.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) X-Mailer: Apple Mail (2.1508) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Mon, 24 Jun 2013 12:46:34 -0000 Is this just me? When I start a new bhyve instance, it hangs on = /sbin/init. top shows bhyve consuming about 1 host core of CPU. This = is on a real recent current. =20 root@darkstor:/vms/porter # ./vmrun.sh porter Launching virtual machine "porter" ... Consoles: userboot =20 FreeBSD/amd64 User boot, Revision 1.1 (root@darkstor.macktronics.com, Sat Jun 22 22:31:58 CDT 2013) Loading /boot/defaults/loader.conf=20 /boot/kernel/kernel text=3D0x6c21c7 data=3D0xa43b8+0xfa338 = syms=3D[0x8+0xe76a8+0x8+0x147ee8] \ ______ ____ _____ _____ =20 | ____| | _ \ / ____| __ \=20 | |___ _ __ ___ ___ | |_) | (___ | | | | | ___| '__/ _ \/ _ \| _ < \___ \| | | | | | | | | __/ __/| |_) |____) | |__| | | | | | | | || | | | |_| |_| \___|\___||____/|_____/|_____/ ``` = ` s` `.....---.......--.``` = -/ +------------Welcome to FreeBSD-----------+ +o .--` /y:` = +. | | yo`:. :o = `+- | 1. Back to Main Menu [Backspace] | y/ -/` = -o/ | 2. Load System [D]efaults | .- = ::/sy+:. | | / `-- = / | Boot Options: | `: = :` | 3. Safe [M]ode... off | `: = :` | 4. [S]ingle User. off | / = / | 5. [V]erbose..... On | .- = -. | | -- = -. | | `:` `:` | | .-- `--. | | .---.....----. +-----------------------------------------+ =20 Booting... GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb SMAP type=3D01 base=3D0000000000000000 len=3D00000000000a0000 SMAP type=3D01 base=3D0000000000100000 len=3D0000000089300000 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) MADT: Found CPU APIC ID 1 ACPI ID 1: enabled SMP: Added CPU 1 (AP) 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 #9 r251956: Tue Jun 18 12:25:25 CDT 2013 root@darkstor.macktronics.com:/usr/obj/usr/src/sys/MACKGEN amd64 FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff80e91000. Hypervisor: Origin =3D "BHyVBHyVBHyV" Calibrating TSC clock ... TSC clock: 3299774008 Hz CPU: Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz (3299.77-MHz K8-class = CPU) Origin =3D "GenuineIntel" Id =3D 0x306a9 Family =3D 0x6 Model =3D = 0x3a Stepping =3D 9 = Features=3D0x8fa3ab7f = Features2=3D0xe3bae257 AMD Features=3D0x28100800 AMD Features2=3D0x1 TSC: P-state invariant real memory =3D 2302672896 (2196 MB) Physical memory chunk(s): 0x0000000000001000 - 0x000000000009bfff, 634880 bytes (155 pages) 0x0000000000100000 - 0x00000000001fffff, 1048576 bytes (256 pages) 0x0000000000eb1000 - 0x0000000085bc1fff, 2228293632 bytes (544017 pages) avail memory =3D 2133233664 (2034 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: INTR: Adding local APIC 1 as a target FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 2 package(s) x 1 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 x86bios: IVT 0x000000-0x0004ff at 0xfffffe0000000000 x86bios: SSEG 0x001000-0x001fff at 0xffffff800022e000 x86bios: ROM 0x0a0000-0x0fefff at 0xfffffe00000a0000 APIC: CPU 0 has ACPI ID 0 APIC: CPU 1 has ACPI ID 1 random device not loaded; using insecure entropy ULE: setup cpu 0 ULE: setup cpu 1 ACPI: RSDP 0xf0400 00024 (v02 BHYVE ) ACPI: XSDT 0xf0480 00034 (v01 BHYVE BVXSDT 00000001 INTL 20130517) ACPI: APIC 0xf0500 00052 (v01 BHYVE BVMADT 00000001 INTL 20130517) ACPI: FACP 0xf0600 0010C (v05 BHYVE BVFACP 00000001 INTL 20130517) ACPI: DSDT 0xf0800 000F2 (v02 BHYVE BVDSDT 00000001 INTL 20130517) ACPI: FACS 0xf0780 00040 MADT: Found IO APIC ID 2, Interrupt 0 at 0xfec00000 ioapic0: Changing APIC ID to 2 ioapic0: Routing external 8259A's -> intpin 0 MADT: Interrupt override: source 9, irq 9 ioapic0: intpin 9 trigger: level ioapic0: intpin 9 polarity: low ioapic0 irqs 0-16 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 null: random: module_register_init: MOD_LOAD (vesa, 0xffffffff807b7950, 0) error 19 io: kbd0 at kbdmux0 nfslock: pseudo-device mem: acpi0: on motherboard ACPI: All ACPI Tables successfully acquired ioapic0: routing intpin 9 (ISA IRQ 9) to lapic 0 vector 48 atrtc0: port 0x70-0x71,0x72-0x77 irq 8 on acpi0 atrtc0: registered as a time-of-day clock (resolution 1000000us, = adjustment 0.500000000s) ioapic0: routing intpin 8 (ISA IRQ 8) to lapic 0 vector 49 Event timer "RTC" frequency 32768 Hz quality 0 ACPI timer: 1/6 1/5 1/6 1/5 1/7 1/5 1/4 1/4 1/4 1/4 -> 10 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 pcib0: decoding 4 range 0-0xcf7 pcib0: decoding 4 range 0xd00-0xffff pcib0: could not get PCI interrupt routing table for \_SB_.PCI0 - = AE_NOT_FOUND pci0: on pcib0 pci0: domain=3D0, physical bus=3D0 found-> vendor=3D0x1275, dev=3D0x1275, revid=3D0x00 domain=3D0, bus=3D0, slot=3D0, func=3D0 class=3D06-00-00, hdrtype=3D0x01, mfdev=3D0 cmdreg=3D0x0007, statreg=3D0x0010, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 = ns) found-> vendor=3D0x1af4, dev=3D0x1000, revid=3D0x00 domain=3D0, bus=3D0, slot=3D1, func=3D0 class=3D02-00-00, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0007, statreg=3D0x0010, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 = ns) MSI-X supports 3 messages in map 0x14 map[10]: type I/O Port, range 32, base 0x2000, size 5, enabled pcib0: allocated type 4 (0x2000-0x201f) for rid 10 of pci0:0:1:0 map[14]: type Memory, range 32, base 0xc0000000, size 13, = enabled found-> vendor=3D0x1af4, dev=3D0x1001, revid=3D0x00 domain=3D0, bus=3D0, slot=3D2, func=3D0 class=3D01-00-00, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0007, statreg=3D0x0010, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 = ns) MSI-X supports 2 messages in map 0x14 map[10]: type I/O Port, range 32, base 0x2040, size 6, enabled pcib0: allocated type 4 (0x2040-0x207f) for rid 10 of pci0:0:2:0 map[14]: type Memory, range 32, base 0xc0002000, size 13, = enabled found-> vendor=3D0x1af4, dev=3D0x1001, revid=3D0x00 domain=3D0, bus=3D0, slot=3D3, func=3D0 class=3D01-00-00, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0007, statreg=3D0x0010, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 = ns) MSI-X supports 2 messages in map 0x14 map[10]: type I/O Port, range 32, base 0x2080, size 6, enabled pcib0: allocated type 4 (0x2080-0x20bf) for rid 10 of pci0:0:3:0 map[14]: type Memory, range 32, base 0xc0004000, size 13, = enabled found-> vendor=3D0x131f, dev=3D0x2000, revid=3D0x00 domain=3D0, bus=3D0, slot=3D31, func=3D0 class=3D07-00-00, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0007, statreg=3D0x0000, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 = ns) intpin=3Da, irq=3D4 map[10]: type I/O Port, range 32, base 0x3f8, size 3, enabled pcib0: allocated type 4 (0x3f8-0x3ff) for rid 10 of pci0:0:31:0 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: 0x1018020 = virtio_pci0: negotiated features: 0x1018020 = virtio_pci0: virtqueue 1 (vtnet0 transmit) requested indirect = descriptors but not negotiated vtnet0: bpf attached vtnet0: Ethernet address: 00:a0:98:fd:e2:7e virtio_pci0: attempting to allocate 3 MSI-X vectors (3 supported) msi: routing MSI-X IRQ 256 to local APIC 0 vector 50 msi: routing MSI-X IRQ 257 to local APIC 0 vector 51 msi: routing MSI-X IRQ 258 to local APIC 0 vector 52 virtio_pci0: using IRQs 256-258 for MSI-X virtio_pci0: using per VQ MSIX interrupts virtio_pci1: port 0x2040-0x207f mem = 0xc0002000-0xc0003fff at device 2.0 on pci0 vtblk0: on virtio_pci1 virtio_pci1: host features: 0x10000004 virtio_pci1: negotiated features: 0x10000004 virtio_pci1: attempting to allocate 2 MSI-X vectors (2 supported) msi: routing MSI-X IRQ 259 to local APIC 0 vector 53 msi: routing MSI-X IRQ 260 to local APIC 0 vector 54 virtio_pci1: using IRQs 259-260 for MSI-X virtio_pci1: using per VQ MSIX interrupts vtblk0: 18432MB (37748736 512 byte sectors) virtio_pci2: port 0x2080-0x20bf mem = 0xc0004000-0xc0005fff at device 3.0 on pci0 vtblk1: on virtio_pci2 virtio_pci2: host features: 0x10000004 virtio_pci2: negotiated features: 0x10000004 virtio_pci2: attempting to allocate 2 MSI-X vectors (2 supported) msi: routing MSI-X IRQ 261 to local APIC 0 vector 55 msi: routing MSI-X IRQ 262 to local APIC 0 vector 56 virtio_pci2: using IRQs 261-262 for MSI-X virtio_pci2: using per VQ MSIX interrupts vtblk1: 683MB (1400648 512 byte sectors) uart2: <16550 or compatible> port 0x3f8-0x3ff irq 4 at device 31.0 on = pci0 ioapic0: routing intpin 4 (ISA IRQ 4) to lapic 0 vector 57 uart2: fast interrupt uart2: console (9600,n,8,1) acpi0: wakeup code va 0xffffff80002c5000 pa 0x4000 ctl: CAM Target Layer loaded Device configuration finished. procfs registered lapic: Divisor 2, Frequency 1650046000 Hz Timecounters tick every 10.000 msec vlan: initialized, using hash tables with chaining tcp_init: net.inet.tcp.tcbhashsize auto tuned to 32768 lo0: bpf attached GEOM: new disk vtbd0 GEOM: new disk vtbd1 SMP: AP CPU #1 Launched! cpu1 AP: ID: 0x01000000 VER: 0x00000011 LDR: 0x00000000 DFR: 0xffffffff lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 ioapic0: routing intpin 9 (ISA IRQ 9) to lapic 1 vector 48 msi: Assigning MSI-X IRQ 257 to local APIC 1 vector 49 msi: Assigning MSI-X IRQ 259 to local APIC 1 vector 50 msi: Assigning MSI-X IRQ 261 to local APIC 1 vector 51 TSC timecounter discards lower 1 bit(s) Timecounter "TSC-low" frequency 1649887004 Hz quality -100 Trying to mount root from cd9660:/dev/iso9660/FREEBSD_INSTALL [ro]... cd9660: RockRidge Extension start_init: trying /sbin/init [ hangs indefinitely ] CPUs on the host look like this: root@darkstor:~ # top -bHI last pid: 7781; load averages: 1.00, 0.93, 0.62 up 0+00:51:59 = 07:32:45 28 processes: 2 running, 26 sleeping Mem: 31M Active, 27M Inact, 5408M Wired, 4096K Cache, 26G Free ARC: 1642M Total, 628M MFU, 992M MRU, 16K Anon, 7038K Header, 15M Other Swap:=20 PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND 7757 root 88 0 2221M 5160K CPU1 1 2:30 54.20% = bhyve{porter vcpu 0} 7757 root 36 0 2221M 5160K vmidle 3 5:02 48.19% = bhyve{porter vcpu 1} root@darkstor:~ # uname -a FreeBSD darkstor.macktronics.com 10.0-CURRENT FreeBSD 10.0-CURRENT #11 = r252104: Sat Jun 22 22:45:53 CDT 2013 = root@darkstor.macktronics.com:/usr/obj/usr/src/sys/MACKGEN amd64 From owner-freebsd-virtualization@FreeBSD.ORG Mon Jun 24 22:46:29 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B4F8CE9C for ; Mon, 24 Jun 2013 22:46:29 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-pa0-x22c.google.com (mail-pa0-x22c.google.com [IPv6:2607:f8b0:400e:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 991861396 for ; Mon, 24 Jun 2013 22:46:29 +0000 (UTC) Received: by mail-pa0-f44.google.com with SMTP id lj1so11691944pab.31 for ; Mon, 24 Jun 2013 15:46:29 -0700 (PDT) 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=zeg7Zyg48n3aZOn4bIaQf4MdeNqxMQ3wQ/FwFWC5XIw=; b=OABkUm6U2MmH3HVv+5O+BxwiQhnCqanfI0UsLbiCZoiRM7UPUh9zlhaZTxFEqhzE5M xhhiSSeN6sCqMhhLRTazgG8uswTyBlGEgIHErZuN5WgchUUko2cJSEgNqde/6TQmHjha ywHUQuOtYWzf4vPjNcg1phUuOMNximd7eWrWd0lUVoPXxymu9xh0AjSKsVK7+vBA5q11 4F1rVlAczVckn89VR4/r+L/hgtD+djUoqcc3qI/zwV0uCD7XwDAyMp+IEacKCiWtaJUA 014BY6wBxkfoeSxfi2pcmIM8qLtXYiUKbhI9ZaCdiuVZpJwpW1qXYcrelrLipJzKKDuP JuTQ== MIME-Version: 1.0 X-Received: by 10.66.37.43 with SMTP id v11mr29197995paj.108.1372113989424; Mon, 24 Jun 2013 15:46:29 -0700 (PDT) Received: by 10.68.130.133 with HTTP; Mon, 24 Jun 2013 15:46:29 -0700 (PDT) Date: Mon, 24 Jun 2013 18:46:29 -0400 Message-ID: Subject: recursive bhyve From: Aryeh Friedman To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Mon, 24 Jun 2013 22:46:29 -0000 Is it possible to run bhyve on a guest that was started from bhyve? From owner-freebsd-virtualization@FreeBSD.ORG Mon Jun 24 22:54:04 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 89448127 for ; Mon, 24 Jun 2013 22:54:04 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-pa0-x233.google.com (mail-pa0-x233.google.com [IPv6:2607:f8b0:400e:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id 6D010145D for ; Mon, 24 Jun 2013 22:54:04 +0000 (UTC) Received: by mail-pa0-f51.google.com with SMTP id lf11so11658925pab.10 for ; Mon, 24 Jun 2013 15:54:04 -0700 (PDT) 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=H7N4kPl4hZMrgPs9UNdmR5MwvwnYOA/VF6civuinPO0=; b=01cIdwthv4VC7r9FWo5CwMuMt2IZlcqUYph0vwJkjD1FeWALkLnAaHKpoRdNcqwT4F PMEiQZZo5cBQmO0TdSRyebUiAb9P+wEcU36znbU5lANKHyPS0jBN/mz7i/cd8DohsEMT d0aduBEWugx5JjI/i6hNXJyNY43scAh0NOJg7aN8UJ3JHIbLTvwCJjVj5ezD5iKeuUh5 VojpZCy7LVFlmRoc1Elz4+VPDwaYGNPE5oflpKbzVgtfsKrt4mAgHAkQQjsfkDZtD9Cl dMphHx/VbfrzptsBSX9c02j3DWhrGH8kY24Efy1UAeaqSRxCa4qJf1nJaqRiuRGXTyMc uvQA== MIME-Version: 1.0 X-Received: by 10.66.67.5 with SMTP id j5mr29508551pat.176.1372114444225; Mon, 24 Jun 2013 15:54:04 -0700 (PDT) Received: by 10.68.130.133 with HTTP; Mon, 24 Jun 2013 15:54:04 -0700 (PDT) Date: Mon, 24 Jun 2013 18:54:04 -0400 Message-ID: Subject: headerless guest under bhyve From: Aryeh Friedman To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Mon, 24 Jun 2013 22:54:04 -0000 How do I make it so I do not need to allocate a xterm to being the console for a bhyve guest? (so far I have not been able to make it so I can break the connection to the console and the guest doesn't crash) Related question when using vmrun.sh it seems like the vtnet on the guest becomes unusable after reboot of the guest (rebooting the host is the only solution I can find) is there a work around for this? (I tried toggling the state of if_tap and if_bridge) From owner-freebsd-virtualization@FreeBSD.ORG Mon Jun 24 23:23:02 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 12795519 for ; Mon, 24 Jun 2013 23:23:02 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id DD38B1673 for ; Mon, 24 Jun 2013 23:23:01 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id s9so26390427iec.13 for ; Mon, 24 Jun 2013 16:23:01 -0700 (PDT) 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=uOlsB6eLBGub2tlwvZ0CSoJIXL+IrVANKNhh7JCF/GU=; b=t0ch3/Ttz4EFx0Mi/KAsWRYt8H23Y+ZUyapnKAra07KjiR7lvIstZyx8HkNPJFEMJT H6Tlj/zNG2MGq0nsQ61DXdMdpqHP/Gl2/t19BtHBg445QYvYABVtKVwPBuZp4gtBupVv hYsp3efkAUXipuHeCaNJFNa9aA/27x0KkrYI2PP1ZQy1MhV4+77+e/WcyQSlgT+QLlDk bxJSm8mAYBGCNtN9NrsU4vCwQMaDR+y5GSXjrO0iqHQe2uMI6C/VTBaqmrW3Cb0+8RTa zRq+DFDdCTKjS25CJz/e/oh/1WflLi81jedBm/LP2jXGKLCVsNCscHHcm7XL5T8ObT2G u5wA== MIME-Version: 1.0 X-Received: by 10.50.11.103 with SMTP id p7mr7103940igb.24.1372116181579; Mon, 24 Jun 2013 16:23:01 -0700 (PDT) Received: by 10.42.151.74 with HTTP; Mon, 24 Jun 2013 16:23:01 -0700 (PDT) In-Reply-To: References: Date: Mon, 24 Jun 2013 16:23:01 -0700 Message-ID: Subject: Re: headerless guest under bhyve From: Neel Natu To: Aryeh Friedman Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Mon, 24 Jun 2013 23:23:02 -0000 Hi Aryeh, On Mon, Jun 24, 2013 at 3:54 PM, Aryeh Friedman wrote: > How do I make it so I do not need to allocate a xterm to being the > console for a bhyve guest? (so far I have not been able to make it so > I can break the connection to the console and the guest doesn't crash) > > Yeah, this is because bhyve is exiting when it gets a SIGHUP. Here is a patch that may help you sidestep this problem for now: Index: bhyverun.c =================================================================== --- bhyverun.c (revision 252047) +++ bhyverun.c (working copy) @@ -679,6 +679,17 @@ vmname = argv[0]; + { + struct sigaction sa; + + sigemptyset(&sa.sa_mask); + sa.sa_flags = 0; + sa.sa_handler = SIG_IGN; + + err = sigaction(SIGHUP, &sa, NULL); + assert(err == 0); + } + The right way to fix this is to have a configurable backend (terminal, network port, pipe) for the virtual serial port. > Related question when using vmrun.sh it seems like the vtnet on the > guest becomes unusable after reboot of the guest (rebooting the host > is the only solution I can find) is there a work around for this? (I > tried toggling the state of if_tap and if_bridge) > If you could provide some more details I will try to reproduce it. For e.g. IP address assigned to the guest, host networking setup etc. best Neel > _______________________________________________ > 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 Mon Jun 24 23:25:32 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5F1E256D for ; Mon, 24 Jun 2013 23:25:32 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-pa0-x230.google.com (mail-pa0-x230.google.com [IPv6:2607:f8b0:400e:c03::230]) by mx1.freebsd.org (Postfix) with ESMTP id 427AA1684 for ; Mon, 24 Jun 2013 23:25:32 +0000 (UTC) Received: by mail-pa0-f48.google.com with SMTP id kp12so11704952pab.35 for ; Mon, 24 Jun 2013 16:25:32 -0700 (PDT) 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=SLxBhAVW1GIOsrn3zWnV0eOQtAmmJOkY6kCa20oKcIk=; b=pt/4FkFcPFhbqqCniHdhrl3gFctl5v/BY63jPMDYTlWb5mI7riVaJWHOUROxmBuA6/ NNWCNnrY86BTUx/9yH9LVeQoQuRy7uZZEmhi22eHdFjUECRndBPvhscEqvBxRCqkcSR9 zY2poEnfVq7qH4sYvRtKBGT5a5+RYEv2/nGHVJ6cobsQJj0F2H9vZCP43vblHJYkMaxM sbl9coXT4NA/BnyXxY+GB69oQNPTZvqCTmMMSc451K2Opb/0y6486sSM+F+9+WG2E69N 0jCntE0BRmZcxNBOqOBrl1nMSso0DapzKzHzmguzF4WIecb//Q+MwgTQ6JDW59aqYsyu Sk7A== MIME-Version: 1.0 X-Received: by 10.66.178.174 with SMTP id cz14mr2304541pac.136.1372116332086; Mon, 24 Jun 2013 16:25:32 -0700 (PDT) Received: by 10.68.130.133 with HTTP; Mon, 24 Jun 2013 16:25:32 -0700 (PDT) Date: Mon, 24 Jun 2013 19:25:32 -0400 Message-ID: Subject: bhyve guest dies on building java/openjdk6 From: Aryeh Friedman To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Mon, 24 Jun 2013 23:25:32 -0000 As soon as java/openjdk6 starts its build process (fdesc and procfs both are present as per pkg-message) bhyve dies with: vm exit[0] reason VMX rip 0x00000008032322ac inst_length 2 error 0 exit_reason 10 qualification 0x0000000000000000 From owner-freebsd-virtualization@FreeBSD.ORG Tue Jun 25 00:11:18 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6CAE4CC3 for ; Tue, 25 Jun 2013 00:11:18 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com [IPv6:2607:f8b0:4001:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id 4582717E9 for ; Tue, 25 Jun 2013 00:11:18 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id c10so26237098ieb.38 for ; Mon, 24 Jun 2013 17:11:18 -0700 (PDT) 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=QPfS6xLERg63bRYs5elQEp+XdtM/qubWvtUDsuYvzpw=; b=Qk/XSzeJaWiTTn8LKSwns44qtcMfontd2lN+iDSInu1nhqwzpbhm3n0XT75xzC03FF Bsj2epx/oAn1L87LX4eM5pF5OcWTbqZYDcWHXyIPORnwX0YPtQfjcuRN1hJbNA8ZEFDj Bam8/FrCS9jdll7aujZ9+NXK9Ff2HwdhWq9s9oF6+kyhP0ukq7qHtXIYWBGGH89siCWk emGbxMxC+bTmgFLnHypeElk5VcrvxWq0Kj4jyVAZEochiDcVatv9+rp2nhs2WGHmFypg tF7zyDD87/4Xtp3o5l1yStGlI04lZtoLXC70ZyyusdDmVMyBAXoDs+V00J2facDYuqAu otmQ== MIME-Version: 1.0 X-Received: by 10.42.36.3 with SMTP id s3mr8029096icd.42.1372119078017; Mon, 24 Jun 2013 17:11:18 -0700 (PDT) Received: by 10.42.151.74 with HTTP; Mon, 24 Jun 2013 17:11:17 -0700 (PDT) In-Reply-To: References: Date: Mon, 24 Jun 2013 17:11:17 -0700 Message-ID: Subject: Re: bhyve guest dies on building java/openjdk6 From: Neel Natu To: Aryeh Friedman Content-Type: text/plain; charset=ISO-8859-1 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: Tue, 25 Jun 2013 00:11:18 -0000 Hi Aryeh, On Mon, Jun 24, 2013 at 4:25 PM, Aryeh Friedman wrote: > > As soon as java/openjdk6 starts its build process (fdesc and procfs > both are present as per pkg-message) bhyve dies with: > > vm exit[0] > reason VMX > rip 0x00000008032322ac > > inst_length 2 > > error 0 > > exit_reason 10 Thanks for reporting this. The exit reason indicates bhyve is not happy with the cpuid leaf that the guest is querying. Tycho Nightingale has a patch to the cpuid emulation that should fix the issue you are seeing. Could you give it a spin? Index: x86.c =================================================================== --- x86.c (revision 251672) +++ x86.c (working copy) @@ -45,7 +45,7 @@ #define CPUID_VM_HIGH 0x40000000 -static const char bhyve_id[12] = "BHyVE BHyVE "; +static const char bhyve_id[12] = "bhyve bhyve "; int x86_emulate_cpuid(struct vm *vm, int vcpu_id, @@ -80,12 +80,10 @@ case CPUID_0000_0000: case CPUID_0000_0002: case CPUID_0000_0003: - case CPUID_0000_000A: cpuid_count(*eax, *ecx, regs); break; case CPUID_8000_0000: - case CPUID_8000_0001: case CPUID_8000_0002: case CPUID_8000_0003: case CPUID_8000_0004: @@ -94,6 +92,15 @@ cpuid_count(*eax, *ecx, regs); break; + case CPUID_8000_0001: + /* + * Hide rdtscp/ia32_tsc_aux until we know how + * to deal with them. + */ + cpuid_count(*eax, *ecx, regs); + regs[3] &= ~AMDID_RDTSCP; + break; + case CPUID_8000_0007: cpuid_count(*eax, *ecx, regs); /* @@ -151,6 +158,11 @@ regs[2] &= ~CPUID2_MON; /* + * Hide the performance and debug features. + */ + regs[2] &= ~CPUID2_PDCM; + + /* * Hide thermal monitoring */ regs[3] &= ~(CPUID_ACPI | CPUID_TM); @@ -161,6 +173,11 @@ */ regs[3] &= ~(CPUID_MCA | CPUID_MCE | CPUID_MTRR); + /* + * Hide the debug store capability. + */ + regs[3] &= ~CPUID_DS; + /* * Disable multi-core. */ @@ -180,6 +197,7 @@ case CPUID_0000_0006: case CPUID_0000_0007: + case CPUID_0000_000A: /* * Handle the access, but report 0 for * all options @@ -203,12 +221,17 @@ case 0x40000000: regs[0] = CPUID_VM_HIGH; bcopy(bhyve_id, ®s[1], 4); - bcopy(bhyve_id, ®s[2], 4); - bcopy(bhyve_id, ®s[3], 4); + bcopy(bhyve_id + 4, ®s[2], 4); + bcopy(bhyve_id + 8, ®s[3], 4); break; + default: - /* XXX: Leaf 5? */ - return (0); + /* + * The leaf value has already been clamped, so + * simply pass this through + */ + cpuid_count(*eax, *ecx, regs); + break; } *eax = regs[0]; best Neel > qualification 0x0000000000000000 > _______________________________________________ > 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 Tue Jun 25 00:45:45 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id ADEDD476 for ; Tue, 25 Jun 2013 00:45:45 +0000 (UTC) (envelope-from editor@callfortesting.org) Received: from mail-yh0-x233.google.com (mail-yh0-x233.google.com [IPv6:2607:f8b0:4002:c01::233]) by mx1.freebsd.org (Postfix) with ESMTP id 732A31900 for ; Tue, 25 Jun 2013 00:45:45 +0000 (UTC) Received: by mail-yh0-f51.google.com with SMTP id l109so5365256yhq.38 for ; Mon, 24 Jun 2013 17:45:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=xHFaxTwCfsHKFrF2nAK0DZiU6064xz8lq8Lzmh+1kvw=; b=o6GD2i0IXlwYGBLnTgzMSx71jKOABlgF/CE3p8F3HxyMR/dVeGErwq9syfz/xdBP85 OTQZtitxmMKlAfD9KFLoVCs4By2cyZ/L6kfRkWaIWtfRV7pSc27QmBq4H8VqA6ZKN7o1 RZxZAyB1RJZavO7g4RTimMWO+G08Glu4qLgKVB+PwgCKI9rZ9CvGp+SXXunVeRfZzSTU SMyrAjCyeJa7ulwYhsx6Q8Bo6tp+1icCGkDW8SUNIkhZ+6rTv9VT8tbSgzAAIx3AVoP9 2qCMPapHRk00tM6ahiPOJh/EepCC9BxBidRv4mp+E6iNQESauh0Zhrp9ebAmdfr1Ed7L 90Jg== X-Received: by 10.236.15.7 with SMTP id e7mr14127212yhe.186.1372121144728; Mon, 24 Jun 2013 17:45:44 -0700 (PDT) Received: from MacBook-4.local (ip24-254-82-222.sb.sd.cox.net. [24.254.82.222]) by mx.google.com with ESMTPSA id u69sm34165283yhf.23.2013.06.24.17.45.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Jun 2013 17:45:44 -0700 (PDT) Message-ID: <51C8E836.1090200@callfortesting.org> Date: Mon, 24 Jun 2013 17:45:42 -0700 From: Michael Dexter User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Aryeh Friedman , freebsd-virtualization@freebsd.org Subject: Re: installing 9.1-RELEASE guest on byhve References: <51C7914E.4010200@callfortesting.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlymge9mW0aBZg0yzeAsALpmUolS0J9bL/K1zkTT3gEor49Kq3Aek41iIgptgP4kxRD+IUm 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: Tue, 25 Jun 2013 00:45:45 -0000 My mistake: 9-STABLE which is 9* (incl. 9.1) with VirtIO drivers. You can relatively easily backport VirtIO drivers to 9.1 if you really need 9.1 Yep. Linux and Windows support will be great and at least one is has been demonstrated. Michael On 6/23/13 5:34 PM, Aryeh Friedman wrote: > This is a critical deficiency I need to be able to install *ANY* OS > for what I have in mind. Note I do have 10-CURRENT up as a guest. > I am attempting to use bhyve as the foundation of a cross platform > testing lab and thus needs to support FB (8,9 and 10), Linux (Ubuntu > 12.04 LTS at a min) and Windows. Also it is 9.1 not 9-RELEASE (I > thought 9.1 was 9-RELEASE) > > On Sun, Jun 23, 2013 at 8:22 PM, Michael Dexter > wrote: >> On 6/23/13 4:52 PM, Aryeh Friedman wrote: >>> >>> I have byhve up and running on a 10-CURRENT machine and want to know >>> the best way to install from CD 9.1 on it. Any references I should >>> look at? >> >> >> You will need to install 9-CURRENT as 9.1 did not ship with VirtIO drivers. >> May I suggest: http://bhyve.org for information and installation scripts. >> >> Michael >> From owner-freebsd-virtualization@FreeBSD.ORG Tue Jun 25 04:26:43 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 C476DC50 for ; Tue, 25 Jun 2013 04:26:43 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 9B2ED1197 for ; Tue, 25 Jun 2013 04:26:43 +0000 (UTC) Received: by mail-ie0-f172.google.com with SMTP id 16so26800756iea.17 for ; Mon, 24 Jun 2013 21:26:43 -0700 (PDT) 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=Z+tZfoSb5vTE3k6JGjgzsyQkU0ANuJZwk0tLAmnPiCg=; b=CS/G1P3XZAjuTH1NF4jzCtzIKH14t62MEoHMTASS+Cg58s+GJWAkHaGnZwBXhJCHBm 7JRfp3s/+6T0ogeCpYxXDMY0/cldazjMZy1oZmCbkMmnVnjnV4tQXGX9OtlAyOGnQiqk /vhwvvzdeNr6l5feHMzm0UAdVajlW1sfYLQq2zgT925UBAxDib4deB4yFaXAD8BlhoiM HMfdlgQKfcpuvnaWoFJ/udyw+QcMDQfyQrW0AC+ddw+pgqXVbRgqcYmU8wpchmFT7qqg 7t1hUp++Ioi2Cuz8nWfP+dK0+umiNko/SEKE8gLINxJvocMibY183qR1kNaneOWm7zLc 5aiw== MIME-Version: 1.0 X-Received: by 10.50.11.103 with SMTP id p7mr7581281igb.24.1372134403305; Mon, 24 Jun 2013 21:26:43 -0700 (PDT) Received: by 10.42.151.74 with HTTP; Mon, 24 Jun 2013 21:26:43 -0700 (PDT) In-Reply-To: <3F80B754-2000-4C30-8386-22E16FE415F4@macktronics.com> References: <3F80B754-2000-4C30-8386-22E16FE415F4@macktronics.com> Date: Mon, 24 Jun 2013 21:26:43 -0700 Message-ID: Subject: Re: bhyve hangs on init on recent 10-CURRENT From: Neel Natu To: Dan Mack Content-Type: text/plain; charset=ISO-8859-1 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: Tue, 25 Jun 2013 04:26:43 -0000 Hi Dan, On Sun, Jun 23, 2013 at 7:02 AM, Dan Mack wrote: > Is this just me? When I start a new bhyve instance, it hangs on /sbin/init. top shows bhyve consuming about 1 host core of CPU. This is on a real recent current. > I don't see it on my system with this: FreeBSD 10.0-CURRENT (GENERIC) #0: Sun Jun 23 02:55:37 UTC 2013 My system has a much lower clock speed that yours - 2GHz versus 3.2GHz, but other than that I kept everything else similar to your setup. Is this a new system or were you able to use this successfully in the past to run bhyve? best Neel > > > root@darkstor:/vms/porter # ./vmrun.sh porter > Launching virtual machine "porter" ... > Consoles: userboot > > FreeBSD/amd64 User boot, Revision 1.1 > (root@darkstor.macktronics.com, Sat Jun 22 22:31:58 CDT 2013) > Loading /boot/defaults/loader.conf > /boot/kernel/kernel text=0x6c21c7 data=0xa43b8+0xfa338 syms=[0x8+0xe76a8+0x8+0x147ee8] > \ > ______ ____ _____ _____ > | ____| | _ \ / ____| __ \ > | |___ _ __ ___ ___ | |_) | (___ | | | | > | ___| '__/ _ \/ _ \| _ < \___ \| | | | > | | | | | __/ __/| |_) |____) | |__| | > | | | | | | || | | | > |_| |_| \___|\___||____/|_____/|_____/ ``` ` > s` `.....---.......--.``` -/ > +------------Welcome to FreeBSD-----------+ +o .--` /y:` +. > | | yo`:. :o `+- > | 1. Back to Main Menu [Backspace] | y/ -/` -o/ > | 2. Load System [D]efaults | .- ::/sy+:. > | | / `-- / > | Boot Options: | `: :` > | 3. Safe [M]ode... off | `: :` > | 4. [S]ingle User. off | / / > | 5. [V]erbose..... On | .- -. > | | -- -. > | | `:` `:` > | | .-- `--. > | | .---.....----. > +-----------------------------------------+ > > > Booting... > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > SMAP type=01 base=0000000000000000 len=00000000000a0000 > SMAP type=01 base=0000000000100000 len=0000000089300000 > 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) > MADT: Found CPU APIC ID 1 ACPI ID 1: enabled > SMP: Added CPU 1 (AP) > 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 #9 r251956: Tue Jun 18 12:25:25 CDT 2013 > root@darkstor.macktronics.com:/usr/obj/usr/src/sys/MACKGEN amd64 > FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 > Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff80e91000. > Hypervisor: Origin = "BHyVBHyVBHyV" > Calibrating TSC clock ... TSC clock: 3299774008 Hz > CPU: Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz (3299.77-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 = 2302672896 (2196 MB) > Physical memory chunk(s): > 0x0000000000001000 - 0x000000000009bfff, 634880 bytes (155 pages) > 0x0000000000100000 - 0x00000000001fffff, 1048576 bytes (256 pages) > 0x0000000000eb1000 - 0x0000000085bc1fff, 2228293632 bytes (544017 pages) > avail memory = 2133233664 (2034 MB) > Event timer "LAPIC" quality 400 > ACPI APIC Table: > INTR: Adding local APIC 1 as a target > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > FreeBSD/SMP: 2 package(s) x 1 core(s) > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > x86bios: IVT 0x000000-0x0004ff at 0xfffffe0000000000 > x86bios: SSEG 0x001000-0x001fff at 0xffffff800022e000 > x86bios: ROM 0x0a0000-0x0fefff at 0xfffffe00000a0000 > APIC: CPU 0 has ACPI ID 0 > APIC: CPU 1 has ACPI ID 1 > random device not loaded; using insecure entropy > ULE: setup cpu 0 > ULE: setup cpu 1 > ACPI: RSDP 0xf0400 00024 (v02 BHYVE ) > ACPI: XSDT 0xf0480 00034 (v01 BHYVE BVXSDT 00000001 INTL 20130517) > ACPI: APIC 0xf0500 00052 (v01 BHYVE BVMADT 00000001 INTL 20130517) > ACPI: FACP 0xf0600 0010C (v05 BHYVE BVFACP 00000001 INTL 20130517) > ACPI: DSDT 0xf0800 000F2 (v02 BHYVE BVDSDT 00000001 INTL 20130517) > ACPI: FACS 0xf0780 00040 > MADT: Found IO APIC ID 2, Interrupt 0 at 0xfec00000 > ioapic0: Changing APIC ID to 2 > ioapic0: Routing external 8259A's -> intpin 0 > MADT: Interrupt override: source 9, irq 9 > ioapic0: intpin 9 trigger: level > ioapic0: intpin 9 polarity: low > ioapic0 irqs 0-16 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 > null: > random: > module_register_init: MOD_LOAD (vesa, 0xffffffff807b7950, 0) error 19 > io: > kbd0 at kbdmux0 > nfslock: pseudo-device > mem: > acpi0: on motherboard > ACPI: All ACPI Tables successfully acquired > ioapic0: routing intpin 9 (ISA IRQ 9) to lapic 0 vector 48 > atrtc0: port 0x70-0x71,0x72-0x77 irq 8 on acpi0 > atrtc0: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s) > ioapic0: routing intpin 8 (ISA IRQ 8) to lapic 0 vector 49 > Event timer "RTC" frequency 32768 Hz quality 0 > ACPI timer: 1/6 1/5 1/6 1/5 1/7 1/5 1/4 1/4 1/4 1/4 -> 10 > 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 > pcib0: decoding 4 range 0-0xcf7 > pcib0: decoding 4 range 0xd00-0xffff > pcib0: could not get PCI interrupt routing table for \_SB_.PCI0 - AE_NOT_FOUND > pci0: on pcib0 > pci0: domain=0, physical bus=0 > found-> vendor=0x1275, dev=0x1275, revid=0x00 > domain=0, bus=0, slot=0, func=0 > class=06-00-00, hdrtype=0x01, mfdev=0 > cmdreg=0x0007, statreg=0x0010, cachelnsz=0 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > found-> vendor=0x1af4, dev=0x1000, revid=0x00 > domain=0, bus=0, slot=1, func=0 > class=02-00-00, hdrtype=0x00, mfdev=0 > cmdreg=0x0007, statreg=0x0010, cachelnsz=0 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > MSI-X supports 3 messages in map 0x14 > map[10]: type I/O Port, range 32, base 0x2000, size 5, enabled > pcib0: allocated type 4 (0x2000-0x201f) for rid 10 of pci0:0:1:0 > map[14]: type Memory, range 32, base 0xc0000000, size 13, enabled > found-> vendor=0x1af4, dev=0x1001, revid=0x00 > domain=0, bus=0, slot=2, func=0 > class=01-00-00, hdrtype=0x00, mfdev=0 > cmdreg=0x0007, statreg=0x0010, cachelnsz=0 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > MSI-X supports 2 messages in map 0x14 > map[10]: type I/O Port, range 32, base 0x2040, size 6, enabled > pcib0: allocated type 4 (0x2040-0x207f) for rid 10 of pci0:0:2:0 > map[14]: type Memory, range 32, base 0xc0002000, size 13, enabled > found-> vendor=0x1af4, dev=0x1001, revid=0x00 > domain=0, bus=0, slot=3, func=0 > class=01-00-00, hdrtype=0x00, mfdev=0 > cmdreg=0x0007, statreg=0x0010, cachelnsz=0 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > MSI-X supports 2 messages in map 0x14 > map[10]: type I/O Port, range 32, base 0x2080, size 6, enabled > pcib0: allocated type 4 (0x2080-0x20bf) for rid 10 of pci0:0:3:0 > map[14]: type Memory, range 32, base 0xc0004000, size 13, enabled > found-> vendor=0x131f, dev=0x2000, revid=0x00 > domain=0, bus=0, slot=31, func=0 > class=07-00-00, hdrtype=0x00, mfdev=0 > cmdreg=0x0007, statreg=0x0000, cachelnsz=0 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > intpin=a, irq=4 > map[10]: type I/O Port, range 32, base 0x3f8, size 3, enabled > pcib0: allocated type 4 (0x3f8-0x3ff) for rid 10 of pci0:0:31:0 > 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: 0x1018020 > virtio_pci0: negotiated features: 0x1018020 > virtio_pci0: virtqueue 1 (vtnet0 transmit) requested indirect descriptors but not negotiated > vtnet0: bpf attached > vtnet0: Ethernet address: 00:a0:98:fd:e2:7e > virtio_pci0: attempting to allocate 3 MSI-X vectors (3 supported) > msi: routing MSI-X IRQ 256 to local APIC 0 vector 50 > msi: routing MSI-X IRQ 257 to local APIC 0 vector 51 > msi: routing MSI-X IRQ 258 to local APIC 0 vector 52 > virtio_pci0: using IRQs 256-258 for MSI-X > virtio_pci0: using per VQ MSIX interrupts > virtio_pci1: port 0x2040-0x207f mem 0xc0002000-0xc0003fff at device 2.0 on pci0 > vtblk0: on virtio_pci1 > virtio_pci1: host features: 0x10000004 > virtio_pci1: negotiated features: 0x10000004 > virtio_pci1: attempting to allocate 2 MSI-X vectors (2 supported) > msi: routing MSI-X IRQ 259 to local APIC 0 vector 53 > msi: routing MSI-X IRQ 260 to local APIC 0 vector 54 > virtio_pci1: using IRQs 259-260 for MSI-X > virtio_pci1: using per VQ MSIX interrupts > vtblk0: 18432MB (37748736 512 byte sectors) > virtio_pci2: port 0x2080-0x20bf mem 0xc0004000-0xc0005fff at device 3.0 on pci0 > vtblk1: on virtio_pci2 > virtio_pci2: host features: 0x10000004 > virtio_pci2: negotiated features: 0x10000004 > virtio_pci2: attempting to allocate 2 MSI-X vectors (2 supported) > msi: routing MSI-X IRQ 261 to local APIC 0 vector 55 > msi: routing MSI-X IRQ 262 to local APIC 0 vector 56 > virtio_pci2: using IRQs 261-262 for MSI-X > virtio_pci2: using per VQ MSIX interrupts > vtblk1: 683MB (1400648 512 byte sectors) > uart2: <16550 or compatible> port 0x3f8-0x3ff irq 4 at device 31.0 on pci0 > ioapic0: routing intpin 4 (ISA IRQ 4) to lapic 0 vector 57 > uart2: fast interrupt > uart2: console (9600,n,8,1) > acpi0: wakeup code va 0xffffff80002c5000 pa 0x4000 > ctl: CAM Target Layer loaded > Device configuration finished. > procfs registered > lapic: Divisor 2, Frequency 1650046000 Hz > Timecounters tick every 10.000 msec > vlan: initialized, using hash tables with chaining > tcp_init: net.inet.tcp.tcbhashsize auto tuned to 32768 > lo0: bpf attached > GEOM: new disk vtbd0 > GEOM: new disk vtbd1 > SMP: AP CPU #1 Launched! > cpu1 AP: > ID: 0x01000000 VER: 0x00000011 LDR: 0x00000000 DFR: 0xffffffff > lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff > timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 > ioapic0: routing intpin 9 (ISA IRQ 9) to lapic 1 vector 48 > msi: Assigning MSI-X IRQ 257 to local APIC 1 vector 49 > msi: Assigning MSI-X IRQ 259 to local APIC 1 vector 50 > msi: Assigning MSI-X IRQ 261 to local APIC 1 vector 51 > TSC timecounter discards lower 1 bit(s) > Timecounter "TSC-low" frequency 1649887004 Hz quality -100 > Trying to mount root from cd9660:/dev/iso9660/FREEBSD_INSTALL [ro]... > cd9660: RockRidge Extension > start_init: trying /sbin/init > > [ hangs indefinitely ] > > CPUs on the host look like this: > > root@darkstor:~ # top -bHI > last pid: 7781; load averages: 1.00, 0.93, 0.62 up 0+00:51:59 07:32:45 > 28 processes: 2 running, 26 sleeping > > Mem: 31M Active, 27M Inact, 5408M Wired, 4096K Cache, 26G Free > ARC: 1642M Total, 628M MFU, 992M MRU, 16K Anon, 7038K Header, 15M Other > Swap: > > > PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 7757 root 88 0 2221M 5160K CPU1 1 2:30 54.20% bhyve{porter vcpu 0} > 7757 root 36 0 2221M 5160K vmidle 3 5:02 48.19% bhyve{porter vcpu 1} > > root@darkstor:~ # uname -a > FreeBSD darkstor.macktronics.com 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r252104: Sat Jun 22 22:45:53 CDT 2013 root@darkstor.macktronics.com:/usr/obj/usr/src/sys/MACKGEN amd64 > > > > > > _______________________________________________ > 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 Tue Jun 25 06:57:26 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 17AE699A for ; Tue, 25 Jun 2013 06:57:26 +0000 (UTC) (envelope-from kron24@gmail.com) Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com [IPv6:2a00:1450:400c:c05::22d]) by mx1.freebsd.org (Postfix) with ESMTP id A1C9C171B for ; Tue, 25 Jun 2013 06:57:25 +0000 (UTC) Received: by mail-wi0-f173.google.com with SMTP id hq4so408428wib.12 for ; Mon, 24 Jun 2013 23:57:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=skYzU2sE/5vkskbIx95zFKeFJeUaYNR5C6QE6FTorBs=; b=VkakjwjCf/8TS8z5cP0f+8Q/c14Hb6WCXTq5jhaZCIkSuarG/l+nfzJJ+rpQA+goTp lRJJl6sVEXGkwDFrbpk3R+yivSBWo1um05fBYS44MnbU14auEnXhf6G0YMamj5uoi1zV jL7q2emsJwi1X/mqwWVnXcniyL8fghXCE3jKbXiVOz60OYTiSKvcbtNpRMiag5nm4cGe LWtpRRVzlBfYr5LgemG1HjntFOyGv0saPg0HC7+BTvUjkX9fLLOnwQyiCmqGA387FT1z wIde9DcYfzq8yZmesyBbMqKgxjOGNah9eWf2aBi2w/j3nG8OhEsrCgOlC4SeFlBTQ9XH kAZA== X-Received: by 10.194.2.13 with SMTP id 13mr19125156wjq.74.1372143443986; Mon, 24 Jun 2013 23:57:23 -0700 (PDT) Received: from nbvk.local (uidzr185150.sattnet.cz. [212.96.185.150]) by mx.google.com with ESMTPSA id fo10sm1948219wib.8.2013.06.24.23.57.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Jun 2013 23:57:22 -0700 (PDT) Message-ID: <51C93F52.4050209@gmail.com> Date: Tue, 25 Jun 2013 08:57:22 +0200 From: kron User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130602 Thunderbird/17.0.6 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: VirtualBox: The value of the Base Memory field on the System page is not complete Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: Tue, 25 Jun 2013 06:57:26 -0000 Greetings, I'm running virtualbox-ose-4.2.14 on FreeBSD 9.1-STABLE r252094M amd64. The GUI of VirtualBox cannot create/update virtual box definitions (the *.vbox) files. The scrollbar and the form field for "Base Memory" are broken and the following error message is displayed: "The value of the Base Memory field on the System page is not complete." I guess it comes from the base memory upper bound preset to zero but I have no clue what's the source for the zero value. The problem is just in the GUI: - I can create or update VMs using the CLI - the VMs created in older VirtualBox versions run fine I anyone facing the same problem? BR, Oli From owner-freebsd-virtualization@FreeBSD.ORG Tue Jun 25 07:16:58 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 713E2E32 for ; Tue, 25 Jun 2013 07:16:58 +0000 (UTC) (envelope-from m.tsatsenko@gmail.com) Received: from mail-vb0-x234.google.com (mail-vb0-x234.google.com [IPv6:2607:f8b0:400c:c02::234]) by mx1.freebsd.org (Postfix) with ESMTP id 3999617B0 for ; Tue, 25 Jun 2013 07:16:58 +0000 (UTC) Received: by mail-vb0-f52.google.com with SMTP id f12so8977605vbg.25 for ; Tue, 25 Jun 2013 00:16:57 -0700 (PDT) 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=OZxGjkaNS6lG3Q6g+G2QNX67FXHa8g0OlvFTalhiaA8=; b=CxTmh8MAPUobZKKIq2Tp10fkii21f3a7ENWRoSKCj4sWOgaAf34E430BEolyDGM/q+ h4iev6EzMe6kXe6ekvs1kVKIJgDo/NBWd1tmRyTDrxV9Vwq5QNeQ2Z+MMNSAzyzj7bwJ zu0se3NZe08ZDsiGl83BzZRTvOiX61rPwog1OnG07LUIq6rH46bXQB30YJKOez0sGwlj qvqB4sMfccLx2e6rCQGR7NO8G3NRLsIyh6Dm8nVZFVoOVvlCuFxatmKms/fM1Ueg58PF Agv9NcEW7Fk9haMePbVvFU8vc2KQB4jPeyJRllHSQs4rLXYDOrs+qHlHR/dr2K7fdw3J Nm+A== MIME-Version: 1.0 X-Received: by 10.52.32.133 with SMTP id j5mr11402708vdi.103.1372144617673; Tue, 25 Jun 2013 00:16:57 -0700 (PDT) Received: by 10.58.206.108 with HTTP; Tue, 25 Jun 2013 00:16:57 -0700 (PDT) In-Reply-To: <51C93F52.4050209@gmail.com> References: <51C93F52.4050209@gmail.com> Date: Tue, 25 Jun 2013 11:16:57 +0400 Message-ID: Subject: Re: VirtualBox: The value of the Base Memory field on the System page is not complete From: Mikhail Tsatsenko To: kron Content-Type: text/plain; charset=ISO-8859-1 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: Tue, 25 Jun 2013 07:16:58 -0000 2013/6/25 kron : > Greetings, > > I'm running virtualbox-ose-4.2.14 on FreeBSD 9.1-STABLE r252094M > amd64. The GUI of VirtualBox cannot create/update virtual box > definitions (the *.vbox) files. The scrollbar and the form field > for "Base Memory" are broken and the following error message > is displayed: > > "The value of the Base Memory field on the System page is not > complete." > > I guess it comes from the base memory upper bound preset to zero > but I have no clue what's the source for the zero value. > > The problem is just in the GUI: > - I can create or update VMs using the CLI > - the VMs created in older VirtualBox versions run fine > > I anyone facing the same problem? I confirm the problem. Apparently this is a regression in the latest version. Currently I'm looking at full diff between VirtualBox 4.2.12 and 4.2.14, but still can't find a change which could cause the issue. > BR, > Oli > _______________________________________________ > 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" -- Mikhail From owner-freebsd-virtualization@FreeBSD.ORG Tue Jun 25 10:18:33 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 8DBCB48D for ; Tue, 25 Jun 2013 10:18:33 +0000 (UTC) (envelope-from kron24@gmail.com) Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) by mx1.freebsd.org (Postfix) with ESMTP id 076301FF9 for ; Tue, 25 Jun 2013 10:18:32 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id d10so856859lbj.28 for ; Tue, 25 Jun 2013 03:18:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=Is6nSN9RIrLPF/C/pfjidMThP8W4kDKBxXnJ+RT3b5k=; b=XcIRkQb0hZnAq3Afvwal44oecCX/gNZ4mHC/FZ8PUzuNOXcJYGSTavldUW/CI9pl08 zIQyZuP3V2Vqh1JPI+ogN00Uy/1FuBBUrzNnOczQlIYoXRJfCzpO5VqRfDj9ZuicJ/4h zHukrtv7zRGMDRqVxWLdp8NE8fUXbjp2897akxtOgwPtSJUhs6N3dsga1SAYBMCy6wxu nAxKKC2DYIM24umwU4yNAfs4Kl50XegdzpcQjKEzfO2bW13d+FW13fUtupx0S8ZZ2epY VFHrPcMp+ffqpi4cK1vff5qbduMXVNM9ak3FS30fgi5iPRgNgI9n1GCRVsVces6TypAO m4mg== X-Received: by 10.112.5.97 with SMTP id r1mr14545931lbr.76.1372155511895; Tue, 25 Jun 2013 03:18:31 -0700 (PDT) Received: from nbvk.local (uidzr185150.sattnet.cz. [212.96.185.150]) by mx.google.com with ESMTPSA id b8sm6074007lbr.12.2013.06.25.03.18.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Jun 2013 03:18:31 -0700 (PDT) Message-ID: <51C96E75.2020103@gmail.com> Date: Tue, 25 Jun 2013 12:18:29 +0200 From: kron User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130602 Thunderbird/17.0.6 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: Re: VirtualBox: The value of the Base Memory field on the System page is not complete References: <51C93F52.4050209@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Tue, 25 Jun 2013 10:18:33 -0000 On 2013/06/25 09:16, Mikhail Tsatsenko wrote: > 2013/6/25 kron : >> Greetings, >> >> I'm running virtualbox-ose-4.2.14 on FreeBSD 9.1-STABLE r252094M >> amd64. The GUI of VirtualBox cannot create/update virtual box >> definitions (the *.vbox) files. The scrollbar and the form field >> for "Base Memory" are broken and the following error message >> is displayed: >> >> "The value of the Base Memory field on the System page is not >> complete." >> >> I guess it comes from the base memory upper bound preset to zero >> but I have no clue what's the source for the zero value. >> >> The problem is just in the GUI: >> - I can create or update VMs using the CLI >> - the VMs created in older VirtualBox versions run fine >> >> I anyone facing the same problem? > I confirm the problem. Apparently this is a regression in the latest version. > > Currently I'm looking at full diff between VirtualBox 4.2.12 and > 4.2.14, but still can't find a change which could cause the issue. At a first glance, RTSystemQueryAvailableRam? I see some new occurrences in the diff. Unfortunately, it's one of the OS dependent functions. However, I don't speak C++, so I'm just guessing... Oli From owner-freebsd-virtualization@FreeBSD.ORG Tue Jun 25 14:07:45 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7535CD93 for ; Tue, 25 Jun 2013 14:07:45 +0000 (UTC) (envelope-from mack@macktronics.com) Received: from borg.macktronics.com (borg.macktronics.com [209.181.253.68]) by mx1.freebsd.org (Postfix) with ESMTP id 2A63B1D11 for ; Tue, 25 Jun 2013 14:07:44 +0000 (UTC) Received: from olive.macktronics.com (olive.macktronics.com [209.181.253.67]) by borg.macktronics.com (Postfix) with ESMTP id 249496B8; Tue, 25 Jun 2013 09:07:38 -0500 (CDT) Date: Tue, 25 Jun 2013 09:07:38 -0500 (CDT) From: Dan Mack To: Neel Natu Subject: Re: bhyve hangs on init on recent 10-CURRENT In-Reply-To: Message-ID: References: <3F80B754-2000-4C30-8386-22E16FE415F4@macktronics.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: Tue, 25 Jun 2013 14:07:45 -0000 Thanks, I think I just tracked it down to the release.iso image I built with with r251956. I tried an older release.iso and it didn't hang. I'll double check with a recent build and see if this continues or not, I suspect it's just a problem with that build. Dan On Mon, 24 Jun 2013, Neel Natu wrote: > Hi Dan, > > On Sun, Jun 23, 2013 at 7:02 AM, Dan Mack wrote: >> Is this just me? When I start a new bhyve instance, it hangs on /sbin/init. top shows bhyve consuming about 1 host core of CPU. This is on a real recent current. >> > > I don't see it on my system with this: > FreeBSD 10.0-CURRENT (GENERIC) #0: Sun Jun 23 02:55:37 UTC 2013 > > My system has a much lower clock speed that yours - 2GHz versus > 3.2GHz, but other than that I kept everything else similar to your > setup. > > Is this a new system or were you able to use this successfully in the > past to run bhyve? > > best > Neel > >> >> >> root@darkstor:/vms/porter # ./vmrun.sh porter >> Launching virtual machine "porter" ... >> Consoles: userboot >> >> FreeBSD/amd64 User boot, Revision 1.1 >> (root@darkstor.macktronics.com, Sat Jun 22 22:31:58 CDT 2013) >> Loading /boot/defaults/loader.conf >> /boot/kernel/kernel text=0x6c21c7 data=0xa43b8+0xfa338 syms=[0x8+0xe76a8+0x8+0x147ee8] >> \ >> ______ ____ _____ _____ >> | ____| | _ \ / ____| __ \ >> | |___ _ __ ___ ___ | |_) | (___ | | | | >> | ___| '__/ _ \/ _ \| _ < \___ \| | | | >> | | | | | __/ __/| |_) |____) | |__| | >> | | | | | | || | | | >> |_| |_| \___|\___||____/|_____/|_____/ ``` ` >> s` `.....---.......--.``` -/ >> +------------Welcome to FreeBSD-----------+ +o .--` /y:` +. >> | | yo`:. :o `+- >> | 1. Back to Main Menu [Backspace] | y/ -/` -o/ >> | 2. Load System [D]efaults | .- ::/sy+:. >> | | / `-- / >> | Boot Options: | `: :` >> | 3. Safe [M]ode... off | `: :` >> | 4. [S]ingle User. off | / / >> | 5. [V]erbose..... On | .- -. >> | | -- -. >> | | `:` `:` >> | | .-- `--. >> | | .---.....----. >> +-----------------------------------------+ >> >> >> Booting... >> GDB: no debug ports present >> KDB: debugger backends: ddb >> KDB: current backend: ddb >> SMAP type=01 base=0000000000000000 len=00000000000a0000 >> SMAP type=01 base=0000000000100000 len=0000000089300000 >> 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) >> MADT: Found CPU APIC ID 1 ACPI ID 1: enabled >> SMP: Added CPU 1 (AP) >> 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 #9 r251956: Tue Jun 18 12:25:25 CDT 2013 >> root@darkstor.macktronics.com:/usr/obj/usr/src/sys/MACKGEN amd64 >> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 >> Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff80e91000. >> Hypervisor: Origin = "BHyVBHyVBHyV" >> Calibrating TSC clock ... TSC clock: 3299774008 Hz >> CPU: Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz (3299.77-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 = 2302672896 (2196 MB) >> Physical memory chunk(s): >> 0x0000000000001000 - 0x000000000009bfff, 634880 bytes (155 pages) >> 0x0000000000100000 - 0x00000000001fffff, 1048576 bytes (256 pages) >> 0x0000000000eb1000 - 0x0000000085bc1fff, 2228293632 bytes (544017 pages) >> avail memory = 2133233664 (2034 MB) >> Event timer "LAPIC" quality 400 >> ACPI APIC Table: >> INTR: Adding local APIC 1 as a target >> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs >> FreeBSD/SMP: 2 package(s) x 1 core(s) >> cpu0 (BSP): APIC ID: 0 >> cpu1 (AP): APIC ID: 1 >> x86bios: IVT 0x000000-0x0004ff at 0xfffffe0000000000 >> x86bios: SSEG 0x001000-0x001fff at 0xffffff800022e000 >> x86bios: ROM 0x0a0000-0x0fefff at 0xfffffe00000a0000 >> APIC: CPU 0 has ACPI ID 0 >> APIC: CPU 1 has ACPI ID 1 >> random device not loaded; using insecure entropy >> ULE: setup cpu 0 >> ULE: setup cpu 1 >> ACPI: RSDP 0xf0400 00024 (v02 BHYVE ) >> ACPI: XSDT 0xf0480 00034 (v01 BHYVE BVXSDT 00000001 INTL 20130517) >> ACPI: APIC 0xf0500 00052 (v01 BHYVE BVMADT 00000001 INTL 20130517) >> ACPI: FACP 0xf0600 0010C (v05 BHYVE BVFACP 00000001 INTL 20130517) >> ACPI: DSDT 0xf0800 000F2 (v02 BHYVE BVDSDT 00000001 INTL 20130517) >> ACPI: FACS 0xf0780 00040 >> MADT: Found IO APIC ID 2, Interrupt 0 at 0xfec00000 >> ioapic0: Changing APIC ID to 2 >> ioapic0: Routing external 8259A's -> intpin 0 >> MADT: Interrupt override: source 9, irq 9 >> ioapic0: intpin 9 trigger: level >> ioapic0: intpin 9 polarity: low >> ioapic0 irqs 0-16 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 >> null: >> random: >> module_register_init: MOD_LOAD (vesa, 0xffffffff807b7950, 0) error 19 >> io: >> kbd0 at kbdmux0 >> nfslock: pseudo-device >> mem: >> acpi0: on motherboard >> ACPI: All ACPI Tables successfully acquired >> ioapic0: routing intpin 9 (ISA IRQ 9) to lapic 0 vector 48 >> atrtc0: port 0x70-0x71,0x72-0x77 irq 8 on acpi0 >> atrtc0: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s) >> ioapic0: routing intpin 8 (ISA IRQ 8) to lapic 0 vector 49 >> Event timer "RTC" frequency 32768 Hz quality 0 >> ACPI timer: 1/6 1/5 1/6 1/5 1/7 1/5 1/4 1/4 1/4 1/4 -> 10 >> 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 >> pcib0: decoding 4 range 0-0xcf7 >> pcib0: decoding 4 range 0xd00-0xffff >> pcib0: could not get PCI interrupt routing table for \_SB_.PCI0 - AE_NOT_FOUND >> pci0: on pcib0 >> pci0: domain=0, physical bus=0 >> found-> vendor=0x1275, dev=0x1275, revid=0x00 >> domain=0, bus=0, slot=0, func=0 >> class=06-00-00, hdrtype=0x01, mfdev=0 >> cmdreg=0x0007, statreg=0x0010, cachelnsz=0 (dwords) >> lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) >> found-> vendor=0x1af4, dev=0x1000, revid=0x00 >> domain=0, bus=0, slot=1, func=0 >> class=02-00-00, hdrtype=0x00, mfdev=0 >> cmdreg=0x0007, statreg=0x0010, cachelnsz=0 (dwords) >> lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) >> MSI-X supports 3 messages in map 0x14 >> map[10]: type I/O Port, range 32, base 0x2000, size 5, enabled >> pcib0: allocated type 4 (0x2000-0x201f) for rid 10 of pci0:0:1:0 >> map[14]: type Memory, range 32, base 0xc0000000, size 13, enabled >> found-> vendor=0x1af4, dev=0x1001, revid=0x00 >> domain=0, bus=0, slot=2, func=0 >> class=01-00-00, hdrtype=0x00, mfdev=0 >> cmdreg=0x0007, statreg=0x0010, cachelnsz=0 (dwords) >> lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) >> MSI-X supports 2 messages in map 0x14 >> map[10]: type I/O Port, range 32, base 0x2040, size 6, enabled >> pcib0: allocated type 4 (0x2040-0x207f) for rid 10 of pci0:0:2:0 >> map[14]: type Memory, range 32, base 0xc0002000, size 13, enabled >> found-> vendor=0x1af4, dev=0x1001, revid=0x00 >> domain=0, bus=0, slot=3, func=0 >> class=01-00-00, hdrtype=0x00, mfdev=0 >> cmdreg=0x0007, statreg=0x0010, cachelnsz=0 (dwords) >> lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) >> MSI-X supports 2 messages in map 0x14 >> map[10]: type I/O Port, range 32, base 0x2080, size 6, enabled >> pcib0: allocated type 4 (0x2080-0x20bf) for rid 10 of pci0:0:3:0 >> map[14]: type Memory, range 32, base 0xc0004000, size 13, enabled >> found-> vendor=0x131f, dev=0x2000, revid=0x00 >> domain=0, bus=0, slot=31, func=0 >> class=07-00-00, hdrtype=0x00, mfdev=0 >> cmdreg=0x0007, statreg=0x0000, cachelnsz=0 (dwords) >> lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) >> intpin=a, irq=4 >> map[10]: type I/O Port, range 32, base 0x3f8, size 3, enabled >> pcib0: allocated type 4 (0x3f8-0x3ff) for rid 10 of pci0:0:31:0 >> 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: 0x1018020 >> virtio_pci0: negotiated features: 0x1018020 >> virtio_pci0: virtqueue 1 (vtnet0 transmit) requested indirect descriptors but not negotiated >> vtnet0: bpf attached >> vtnet0: Ethernet address: 00:a0:98:fd:e2:7e >> virtio_pci0: attempting to allocate 3 MSI-X vectors (3 supported) >> msi: routing MSI-X IRQ 256 to local APIC 0 vector 50 >> msi: routing MSI-X IRQ 257 to local APIC 0 vector 51 >> msi: routing MSI-X IRQ 258 to local APIC 0 vector 52 >> virtio_pci0: using IRQs 256-258 for MSI-X >> virtio_pci0: using per VQ MSIX interrupts >> virtio_pci1: port 0x2040-0x207f mem 0xc0002000-0xc0003fff at device 2.0 on pci0 >> vtblk0: on virtio_pci1 >> virtio_pci1: host features: 0x10000004 >> virtio_pci1: negotiated features: 0x10000004 >> virtio_pci1: attempting to allocate 2 MSI-X vectors (2 supported) >> msi: routing MSI-X IRQ 259 to local APIC 0 vector 53 >> msi: routing MSI-X IRQ 260 to local APIC 0 vector 54 >> virtio_pci1: using IRQs 259-260 for MSI-X >> virtio_pci1: using per VQ MSIX interrupts >> vtblk0: 18432MB (37748736 512 byte sectors) >> virtio_pci2: port 0x2080-0x20bf mem 0xc0004000-0xc0005fff at device 3.0 on pci0 >> vtblk1: on virtio_pci2 >> virtio_pci2: host features: 0x10000004 >> virtio_pci2: negotiated features: 0x10000004 >> virtio_pci2: attempting to allocate 2 MSI-X vectors (2 supported) >> msi: routing MSI-X IRQ 261 to local APIC 0 vector 55 >> msi: routing MSI-X IRQ 262 to local APIC 0 vector 56 >> virtio_pci2: using IRQs 261-262 for MSI-X >> virtio_pci2: using per VQ MSIX interrupts >> vtblk1: 683MB (1400648 512 byte sectors) >> uart2: <16550 or compatible> port 0x3f8-0x3ff irq 4 at device 31.0 on pci0 >> ioapic0: routing intpin 4 (ISA IRQ 4) to lapic 0 vector 57 >> uart2: fast interrupt >> uart2: console (9600,n,8,1) >> acpi0: wakeup code va 0xffffff80002c5000 pa 0x4000 >> ctl: CAM Target Layer loaded >> Device configuration finished. >> procfs registered >> lapic: Divisor 2, Frequency 1650046000 Hz >> Timecounters tick every 10.000 msec >> vlan: initialized, using hash tables with chaining >> tcp_init: net.inet.tcp.tcbhashsize auto tuned to 32768 >> lo0: bpf attached >> GEOM: new disk vtbd0 >> GEOM: new disk vtbd1 >> SMP: AP CPU #1 Launched! >> cpu1 AP: >> ID: 0x01000000 VER: 0x00000011 LDR: 0x00000000 DFR: 0xffffffff >> lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff >> timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 >> ioapic0: routing intpin 9 (ISA IRQ 9) to lapic 1 vector 48 >> msi: Assigning MSI-X IRQ 257 to local APIC 1 vector 49 >> msi: Assigning MSI-X IRQ 259 to local APIC 1 vector 50 >> msi: Assigning MSI-X IRQ 261 to local APIC 1 vector 51 >> TSC timecounter discards lower 1 bit(s) >> Timecounter "TSC-low" frequency 1649887004 Hz quality -100 >> Trying to mount root from cd9660:/dev/iso9660/FREEBSD_INSTALL [ro]... >> cd9660: RockRidge Extension >> start_init: trying /sbin/init >> >> [ hangs indefinitely ] >> >> CPUs on the host look like this: >> >> root@darkstor:~ # top -bHI >> last pid: 7781; load averages: 1.00, 0.93, 0.62 up 0+00:51:59 07:32:45 >> 28 processes: 2 running, 26 sleeping >> >> Mem: 31M Active, 27M Inact, 5408M Wired, 4096K Cache, 26G Free >> ARC: 1642M Total, 628M MFU, 992M MRU, 16K Anon, 7038K Header, 15M Other >> Swap: >> >> >> PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND >> 7757 root 88 0 2221M 5160K CPU1 1 2:30 54.20% bhyve{porter vcpu 0} >> 7757 root 36 0 2221M 5160K vmidle 3 5:02 48.19% bhyve{porter vcpu 1} >> >> root@darkstor:~ # uname -a >> FreeBSD darkstor.macktronics.com 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r252104: Sat Jun 22 22:45:53 CDT 2013 root@darkstor.macktronics.com:/usr/obj/usr/src/sys/MACKGEN amd64 >> >> >> >> >> >> _______________________________________________ >> 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" > dan -- Dan Mack From owner-freebsd-virtualization@FreeBSD.ORG Tue Jun 25 14:16:42 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 562E0F90 for ; Tue, 25 Jun 2013 14:16:42 +0000 (UTC) (envelope-from mack@macktronics.com) Received: from borg.macktronics.com (borg.macktronics.com [209.181.253.68]) by mx1.freebsd.org (Postfix) with ESMTP id 354BF1D74 for ; Tue, 25 Jun 2013 14:16:42 +0000 (UTC) Received: from olive.macktronics.com (olive.macktronics.com [209.181.253.67]) by borg.macktronics.com (Postfix) with ESMTP id 922666C3; Tue, 25 Jun 2013 09:16:41 -0500 (CDT) Date: Tue, 25 Jun 2013 09:16:41 -0500 (CDT) From: Dan Mack To: Aryeh Friedman Subject: Re: headerless guest under bhyve In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: Tue, 25 Jun 2013 14:16:42 -0000 On Mon, 24 Jun 2013, Aryeh Friedman wrote: > How do I make it so I do not need to allocate a xterm to being the > console for a bhyve guest? (so far I have not been able to make it so > I can break the connection to the console and the guest doesn't crash) I have a screen session running and keep all the bhyves running in it ... # screen -S bhyve # cd /vms/system1 # ./vmrun.sh system1 # I would prefer a serial console based scheme obviously where they could run completely headless. Screen is nice because at least I have configurable scrollback and such. dan -- Dan Mack From owner-freebsd-virtualization@FreeBSD.ORG Tue Jun 25 14:18:16 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 3503977 for ; Tue, 25 Jun 2013 14:18:16 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [IPv6:2607:f8b0:400e:c03::22b]) by mx1.freebsd.org (Postfix) with ESMTP id 144C61D9F for ; Tue, 25 Jun 2013 14:18:16 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id hz11so12713044pad.2 for ; Tue, 25 Jun 2013 07:18:15 -0700 (PDT) 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=Mg/GYnmALkP4Jfnw/jIG0O7p6cJThvmpIt/K7W7oZoU=; b=XWG08F45PvJoA8fJb9GilEZDGPyjZ2HuO3sTkGxpdEFzNrnC08BtuPyDDhH9+Qgkuv 2tZQ9syw79LDnb5AIKzIYPGv0uwNdWp3s/ZjhenP4rTk4B//Et1NRFSJy2JKFd3XAHZA JmvkR34iV0VIIwzhhDVPyDyjyODnjdRFVTw1iOR/N70wGM2NaF8mUwaFru7nHJQpe0Xp pVUzBi3aiHUpWr31RXZuG5VwpOAbMrLGA0NIr+oYXBVDQ9QAAsX5X03GzPJd/6cE9ay+ e7UOu64iOejIlDDbdPb3hcLJsUnlsnMn9zOt3FPspt4lESKfdDoAr9nQfxQ/WXHNOive R6Lg== MIME-Version: 1.0 X-Received: by 10.66.178.174 with SMTP id cz14mr12082pac.136.1372169895809; Tue, 25 Jun 2013 07:18:15 -0700 (PDT) Received: by 10.68.130.133 with HTTP; Tue, 25 Jun 2013 07:18:15 -0700 (PDT) In-Reply-To: References: Date: Tue, 25 Jun 2013 10:18:15 -0400 Message-ID: Subject: Re: headerless guest under bhyve From: Aryeh Friedman To: Dan Mack Content-Type: text/plain; charset=ISO-8859-1 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: Tue, 25 Jun 2013 14:18:16 -0000 On Tue, Jun 25, 2013 at 10:16 AM, Dan Mack wrote: > On Mon, 24 Jun 2013, Aryeh Friedman wrote: > >> How do I make it so I do not need to allocate a xterm to being the >> console for a bhyve guest? (so far I have not been able to make it so >> I can break the connection to the console and the guest doesn't crash) > > > I have a screen session running and keep all the bhyves running in it ... > > # screen -S bhyve > # cd /vms/system1 > # ./vmrun.sh system1 > # > > I would prefer a serial console based scheme obviously where they could run > completely headless. Screen is nice because at least I have configurable > scrollback and such. Neel gave me a patch to try last night that fixed this From owner-freebsd-virtualization@FreeBSD.ORG Tue Jun 25 15:09:59 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 DC0062C4 for ; Tue, 25 Jun 2013 15:09:59 +0000 (UTC) (envelope-from lars@netapp.com) Received: from mx12.netapp.com (mx12.netapp.com [216.240.18.77]) by mx1.freebsd.org (Postfix) with ESMTP id C7F151056 for ; Tue, 25 Jun 2013 15:09:59 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.87,937,1363158000"; d="scan'208";a="68678605" Received: from vmwexceht03-prd.hq.netapp.com ([10.106.76.241]) by mx12-out.netapp.com with ESMTP; 25 Jun 2013 08:09:58 -0700 Received: from SACEXCMBX01-PRD.hq.netapp.com ([169.254.2.35]) by vmwexceht03-prd.hq.netapp.com ([10.106.76.241]) with mapi id 14.03.0123.003; Tue, 25 Jun 2013 08:09:58 -0700 From: "Eggert, Lars" To: Dan Mack Subject: Re: bhyve hangs on init on recent 10-CURRENT Thread-Topic: bhyve hangs on init on recent 10-CURRENT Thread-Index: AQHOcNjtexT/wszr506Bse+638bJPJlG/8MA Date: Tue, 25 Jun 2013 15:09:57 +0000 Message-ID: <2C85A6BF-6D94-44F7-ACC4-77E116403ABA@netapp.com> References: <3F80B754-2000-4C30-8386-22E16FE415F4@macktronics.com> In-Reply-To: <3F80B754-2000-4C30-8386-22E16FE415F4@macktronics.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.106.53.51] Content-Type: text/plain; charset="us-ascii" Content-ID: <9A0133F87C3B8640BBE8034FC87C38B4@hq.netapp.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "" 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: Tue, 25 Jun 2013 15:09:59 -0000 Hi, On Jun 23, 2013, at 16:02, Dan Mack wrote: > Is this just me? When I start a new bhyve instance, it hangs on /sbin/in= it. I just stated playing with booting -CURRENT as a PV Xen guest with an NFS r= oot, and I see a similar hang. Basically, the kernel pulls in /sbin/init over NFS but keeps re-reading the= last 8K of the file over and over and over... Not sure if it's related to your issue? Lars= From owner-freebsd-virtualization@FreeBSD.ORG Tue Jun 25 16:23:08 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DECA1EFA for ; Tue, 25 Jun 2013 16:23:08 +0000 (UTC) (envelope-from m.tsatsenko@gmail.com) Received: from mail-vc0-x22c.google.com (mail-vc0-x22c.google.com [IPv6:2607:f8b0:400c:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id A52E416D2 for ; Tue, 25 Jun 2013 16:23:08 +0000 (UTC) Received: by mail-vc0-f172.google.com with SMTP id ib11so798131vcb.3 for ; Tue, 25 Jun 2013 09:23:08 -0700 (PDT) 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:content-transfer-encoding; bh=VRs+H+9niu9FsyyA1pQsGy1bzRpNFPyYFpffv2etSlo=; b=vMEm3LjU1p510q68lVTEucUCgx3YcA2bpES7od3Vs4xICF0q3Nyp7S/gazw/j++9vi p4VKP/ZoLCPTgiiMQAdyoUGJ+UwGUH5ei/ob4pw4RyBSBKyjTLCIHSlt8N/kGTGqcrJi iVU9fYZni0MEuzqn19sqXxs1INaUyCJLJ00fu2WPkx0zoiiLozQOS+4RDKwVs4Dfbpu0 k3Tg6GVFIK8lyW5GcT4ZSQUYAClbbyjBERCV6rBUWzWli8m3fpBjrns4zg/pZ2kzJ1a2 aR6sPvKlKzpqQeqvUloRa2eIciHauMuLcCAdWQiZ6eEn7oz0mRRRq2KLvWtJ9BBiJs3c whWQ== MIME-Version: 1.0 X-Received: by 10.52.32.133 with SMTP id j5mr12379070vdi.103.1372177388102; Tue, 25 Jun 2013 09:23:08 -0700 (PDT) Received: by 10.58.206.108 with HTTP; Tue, 25 Jun 2013 09:23:08 -0700 (PDT) In-Reply-To: <51C96E75.2020103@gmail.com> References: <51C93F52.4050209@gmail.com> <51C96E75.2020103@gmail.com> Date: Tue, 25 Jun 2013 20:23:08 +0400 Message-ID: Subject: Re: VirtualBox: The value of the Base Memory field on the System page is not complete From: Mikhail Tsatsenko To: kron Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable 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: Tue, 25 Jun 2013 16:23:08 -0000 2013/6/25 kron : > On 2013/06/25 09:16, Mikhail Tsatsenko wrote: >> 2013/6/25 kron : >>> Greetings, >>> >>> I'm running virtualbox-ose-4.2.14 on FreeBSD 9.1-STABLE r252094M >>> amd64. The GUI of VirtualBox cannot create/update virtual box >>> definitions (the *.vbox) files. The scrollbar and the form field >>> for "Base Memory" are broken and the following error message >>> is displayed: >>> >>> "The value of the Base Memory field on the System page is not >>> complete." >>> >>> I guess it comes from the base memory upper bound preset to zero >>> but I have no clue what's the source for the zero value. >>> >>> The problem is just in the GUI: >>> - I can create or update VMs using the CLI >>> - the VMs created in older VirtualBox versions run fine >>> >>> I anyone facing the same problem? >> I confirm the problem. Apparently this is a regression in the latest ver= sion. >> >> Currently I'm looking at full diff between VirtualBox 4.2.12 and >> 4.2.14, but still can't find a change which could cause the issue. > > At a first glance, RTSystemQueryAvailableRam? I see some > new occurrences in the diff. Unfortunately, it's one of > the OS dependent functions. However, I don't speak C++, > so I'm just guessing... Thanks for suggestion. Perhaps you are right, furthermore I can not see FreeBSD version of that function, so currently we have at least two different approaches: - Rollback to an old version of system memory calculation method (which was a dirty hack,according to code comments) - Or just implement such function and send it upstream. The second way seems to me more preferable. It takes me a few days, until that you have to use cli tools or previous VirtualBox port revision from svn. > > Oli > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@free= bsd.org" -- =ED=C9=C8=C1=C9=CC From owner-freebsd-virtualization@FreeBSD.ORG Tue Jun 25 16:44:11 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 43227371 for ; Tue, 25 Jun 2013 16:44:11 +0000 (UTC) (envelope-from kron24@gmail.com) Received: from mail-bk0-x236.google.com (mail-bk0-x236.google.com [IPv6:2a00:1450:4008:c01::236]) by mx1.freebsd.org (Postfix) with ESMTP id C918B17C4 for ; Tue, 25 Jun 2013 16:44:10 +0000 (UTC) Received: by mail-bk0-f54.google.com with SMTP id it16so4547841bkc.13 for ; Tue, 25 Jun 2013 09:44:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=31qTi4NysI9rgZfSUhg2Saias5ODh7Iw/SDEZ868310=; b=BGwK+IyWxoKXn66XVzAXjGQGBK6N2ZXKyMtDyGjhj039R3/KBAv9RyZXd9pgswDLP7 FuMrYFjXaWTKBfoOEEQs8ufEWZhn2qTIJUPwfapDpQG6etQMmZefW6mPQQ/+s8Zsy39T V6Vhvo1c57cYBLc22TCymXLI0NKjIsIs4M88s4WI0WvQPt8rA/O9cOw4tcnEgUcBQG3k u+xHwZV8V7MEBoUyWfguj6b2CL1bECnwgp5g43kJ/Pz5NHqfvQDcHVqtemsEkGpTh1OZ zd1MosamU8vof0BsJ5WCJDthE1jjMHJybXwGjoM3ynfKn8vqPmT/iyDHBzmO94wqU8Ta C1TQ== X-Received: by 10.204.76.72 with SMTP id b8mr139538bkk.67.1372178649820; Tue, 25 Jun 2013 09:44:09 -0700 (PDT) Received: from nbvk.local (uidzr185150.sattnet.cz. [212.96.185.150]) by mx.google.com with ESMTPSA id ch16sm6716544bkb.17.2013.06.25.09.44.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Jun 2013 09:44:09 -0700 (PDT) Message-ID: <51C9C8D8.6080103@gmail.com> Date: Tue, 25 Jun 2013 18:44:08 +0200 From: kron User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130602 Thunderbird/17.0.6 MIME-Version: 1.0 To: Mikhail Tsatsenko Subject: Re: VirtualBox: The value of the Base Memory field on the System page is not complete References: <51C93F52.4050209@gmail.com> <51C96E75.2020103@gmail.com> In-Reply-To: Content-Type: text/plain; charset=KOI8-R 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: Tue, 25 Jun 2013 16:44:11 -0000 On 2013/06/25 18:23, Mikhail Tsatsenko wrote: > 2013/6/25 kron : >> On 2013/06/25 09:16, Mikhail Tsatsenko wrote: >>> 2013/6/25 kron : >>>> Greetings, >>>> >>>> I'm running virtualbox-ose-4.2.14 on FreeBSD 9.1-STABLE r252094M >>>> amd64. The GUI of VirtualBox cannot create/update virtual box >>>> definitions (the *.vbox) files. The scrollbar and the form field >>>> for "Base Memory" are broken and the following error message >>>> is displayed: >>>> >>>> "The value of the Base Memory field on the System page is not >>>> complete." >>>> >>>> I guess it comes from the base memory upper bound preset to zero >>>> but I have no clue what's the source for the zero value. >>>> >>>> The problem is just in the GUI: >>>> - I can create or update VMs using the CLI >>>> - the VMs created in older VirtualBox versions run fine >>>> >>>> I anyone facing the same problem? >>> I confirm the problem. Apparently this is a regression in the latest version. >>> >>> Currently I'm looking at full diff between VirtualBox 4.2.12 and >>> 4.2.14, but still can't find a change which could cause the issue. >> >> At a first glance, RTSystemQueryAvailableRam? I see some >> new occurrences in the diff. Unfortunately, it's one of >> the OS dependent functions. However, I don't speak C++, >> so I'm just guessing... ... or RTSystemQueryTotalRam ... > Thanks for suggestion. > Perhaps you are right, furthermore I can not see FreeBSD version of > that function, so currently we have at least two different approaches: > - Rollback to an old version of system memory calculation method > (which was a dirty hack,according to code comments) > - Or just implement such function and send it upstream. Agreed. > The second way seems to me more preferable. It takes me a few days, > until that you have to use cli tools or previous VirtualBox port > revision from svn. I am OK with the CLI tools. Thank you very much for taking this! BR, Oli From owner-freebsd-virtualization@FreeBSD.ORG Wed Jun 26 00:09:27 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 7E79D92 for ; Wed, 26 Jun 2013 00:09:27 +0000 (UTC) (envelope-from tycho.nightingale@pluribusnetworks.com) Received: from p3plsmtpa11-03.prod.phx3.secureserver.net (p3plsmtpa11-03.prod.phx3.secureserver.net [68.178.252.104]) by mx1.freebsd.org (Postfix) with ESMTP id 66F7B1D67 for ; Wed, 26 Jun 2013 00:09:27 +0000 (UTC) Received: from macbookpro101.pluribusnetworks.com ([50.203.11.18]) by p3plsmtpa11-03.prod.phx3.secureserver.net with id so7q1l0010PMgmi01o7q1p; Tue, 25 Jun 2013 17:07:50 -0700 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: recursive bhyve From: Tycho Nightingale In-Reply-To: Date: Tue, 25 Jun 2013 20:07:49 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <4C2C50BA-8A92-443D-B62F-A0F2B81C5360@pluribusnetworks.com> References: To: Aryeh Friedman X-Mailer: Apple Mail (2.1508) 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: Wed, 26 Jun 2013 00:09:27 -0000 On Jun 24, 2013, at 6:46 PM, Aryeh Friedman = wrote: > Is it possible to run bhyve on a guest that was started from bhyve? No, at this there is no emulation of the vmx-related instructions so = nested virtualization isn't supported. Tycho From owner-freebsd-virtualization@FreeBSD.ORG Wed Jun 26 01:38:13 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A9E0247B for ; Wed, 26 Jun 2013 01:38:13 +0000 (UTC) (envelope-from Cy.Schubert@komquats.com) Received: from smtp-out-05.shaw.ca (smtp-out-05.shaw.ca [64.59.134.13]) by mx1.freebsd.org (Postfix) with ESMTP id 7A5B61058 for ; Wed, 26 Jun 2013 01:38:13 +0000 (UTC) X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=7/EMZfWbaVtDMdTqnk9efwidrOfQb3DZMdpNhNw5Oc4= c=1 sm=1 a=8kH30pTDz5EA:10 a=QrugwKR0C_UA:10 a=wAGQQ9Az6v0A:10 a=BLceEmwcHowA:10 a=ICAaq7hcmGcA:10 a=8nJEP1OIZ-IA:10 a=IbtKDeXwb2+SRU442/pi3A==:17 a=pGLkceISAAAA:8 a=BWvPGDcYAAAA:8 a=6I5d2MoRAAAA:8 a=2bEeW3B-gFl1O6axoeYA:9 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 a=V7tsTZBp22UA:10 a=SV7veod9ZcQA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO spqr.komquats.com) ([96.50.7.119]) by smtp-out-05.shaw.ca with ESMTP; 25 Jun 2013 19:38:06 -0600 Received: from slippy.cwsent.com (slippy8 [10.2.2.6]) by spqr.komquats.com (Postfix) with ESMTP id 35E9A80; Tue, 25 Jun 2013 18:38:06 -0700 (PDT) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.14.7/8.14.7) with ESMTP id r5Q1c5Fn003324; Tue, 25 Jun 2013 18:38:05 -0700 (PDT) (envelope-from Cy.Schubert@komquats.com) Message-Id: <201306260138.r5Q1c5Fn003324@slippy.cwsent.com> X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.5 From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.komquats.com/ To: Mikhail Tsatsenko Subject: Re: VirtualBox: The value of the Base Memory field on the System page is not complete In-Reply-To: Message from Mikhail Tsatsenko of "Tue, 25 Jun 2013 20:23:08 +0400." Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Tue, 25 Jun 2013 18:38:05 -0700 Cc: kron , freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Cy Schubert List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jun 2013 01:38:13 -0000 In message , Mikhail Tsatsenko writes: > 2013/6/25 kron : > > On 2013/06/25 09:16, Mikhail Tsatsenko wrote: > >> 2013/6/25 kron : > >>> Greetings, > >>> > >>> I'm running virtualbox-ose-4.2.14 on FreeBSD 9.1-STABLE r252094M > >>> amd64. The GUI of VirtualBox cannot create/update virtual box > >>> definitions (the *.vbox) files. The scrollbar and the form field > >>> for =22Base Memory=22 are broken and the following error message > >>> is displayed: > >>> > >>> =22The value of the Base Memory field on the System page is not > >>> complete.=22 > >>> > >>> I guess it comes from the base memory upper bound preset to zero > >>> but I have no clue what's the source for the zero value. > >>> > >>> The problem is just in the GUI: > >>> - I can create or update VMs using the CLI > >>> - the VMs created in older VirtualBox versions run fine > >>> > >>> I anyone facing the same problem? > >> I confirm the problem. Apparently this is a regression in the latest= versi > on. > >> > >> Currently I'm looking at full diff between VirtualBox 4.2.12 and > >> 4.2.14, but still can't find a change which could cause the issue. > > > > At a first glance, RTSystemQueryAvailableRam? I see some > > new occurrences in the diff. Unfortunately, it's one of > > the OS dependent functions. However, I don't speak C++, > > so I'm just guessing... > Thanks for suggestion. > Perhaps you are right, furthermore I can not see FreeBSD version of > that function, so currently we have at least two different approaches: > - Rollback to an old version of system memory calculation method > (which was a dirty hack,according to code comments) > - Or just implement such function and send it upstream. > The second way seems to me more preferable. It takes me a few days, > until that you have to use cli tools or previous VirtualBox port > revision from svn. Here's a partial patch. The patch relies on devel/sysinfo. All you need t= o=20 do is find a way to link libsysinfo.so and libkvm.so in. I simply hacked = it=20 for now just to prove it can be done. A native solution would be better=20 though. --- src/VBox/Runtime/Makefile.kmk.orig 2013-06-21 05:27:18.000000000 -070= 0 +++ src/VBox/Runtime/Makefile.kmk 2013-06-25 13:52:25.971618756 -0700 =40=40 -73,7 +73,7 =40=40 include =24(PATH_SUB_CURRENT)/tools/Makefile.kmk =20 BLDPROGS +=3D uniread - LIBRARIES +=3D RuntimeR3 RuntimeBldProg RuntimeR0 RuntimeEFCPP=20 RuntimeR3NoCRTGCC + LIBRARIES +=3D RuntimeR3 RuntimeBldProg RuntimeR0 RuntimeEFCPP=20 RuntimeR3NoCRTGCC -lsysinfo -lkvm LIBRARIES.solaris +=3D RuntimeR0Stub LIBRARIES.win +=3D RuntimeR0Stub ifdef VBOX_WITH_RAW_MODE =40=40 -837,6 +837,7 =40=40 generic/RTProcDaemonize-generic.cpp =5C generic/RTProcIsRunningByName-generic.cpp =5C generic/RTThreadGetNativeState-generic.cpp =5C + r3/linux/systemmem-linux.cpp =5C r3/freebsd/mp-freebsd.cpp =5C r3/freebsd/rtProcInitExePath-freebsd.cpp =5C r3/posix/RTFileQueryFsSizes-posix.cpp =5C =40=40 -844,7 +845,6 =40=40 r3/posix/RTMemProtect-posix.cpp =5C r3/posix/RTPathUserHome-posix.cpp =5C r3/posix/RTSystemQueryOSInfo-posix.cpp =5C - r3/posix/RTSystemQueryTotalRam-posix.cpp =5C r3/posix/RTTimeNow-posix.cpp =5C r3/posix/RTTimeSet-posix.cpp =5C r3/posix/dir-posix.cpp =5C --=20 Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org From owner-freebsd-virtualization@FreeBSD.ORG Fri Jun 28 05:50:47 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9A7A7DC0; Fri, 28 Jun 2013 05:50:47 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-pb0-x235.google.com (mail-pb0-x235.google.com [IPv6:2607:f8b0:400e:c01::235]) by mx1.freebsd.org (Postfix) with ESMTP id 787DE1359; Fri, 28 Jun 2013 05:50:47 +0000 (UTC) Received: by mail-pb0-f53.google.com with SMTP id xb12so1847924pbc.26 for ; Thu, 27 Jun 2013 22:50:47 -0700 (PDT) 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=il5GymCXqUkRJsuFgyLuLNUoL+KgX37SGDR8QIc9Ycs=; b=lSAIIzqiQ4VU5335NtMVkOU5KHADRAYWoVwq2se7bPT4HOUAftZZTvPqRTMvv2f3QP 6hO5Ic/M3qFa9fDLulJNiItVaUef0PI9ovn2DrQ+41gxRMHPTXDlsmznUhNHAJfHHHld oliZt/I/Txd3VXVo7ekaneggZ+HXAazqa7YlU3RdGWMwzspf6UUQxpiXkLcH6ZJi/MWY VXMViYmn6fBTs2c9vywu13QFxdSujs4SRfN+NAt5afa4sJzHUY7LUv/7KjIGZmeBHJGH B0JmqIjM7dYKWUMzb6hLP66+BiwcB5FXtkI+nc1GKjCU9G0On3ZBeJQKIAT+Jg0H1JEp gy5A== MIME-Version: 1.0 X-Received: by 10.68.241.193 with SMTP id wk1mr9808673pbc.5.1372398647327; Thu, 27 Jun 2013 22:50:47 -0700 (PDT) Received: by 10.68.130.133 with HTTP; Thu, 27 Jun 2013 22:50:47 -0700 (PDT) Date: Fri, 28 Jun 2013 01:50:47 -0400 Message-ID: Subject: making bhyve 100% silent From: Aryeh Friedman To: freebsd-virtualization@freebsd.org, FreeBSD Current Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 28 Jun 2013 05:50:47 -0000 bhyve(8) seems to bypass the standard stdin/out/err and send it's output directly to the TTY when handling guest console I/O. I need to make it so it is 100% silent (and/or send all it's output to a file and accept no input at all). How can I do this? From owner-freebsd-virtualization@FreeBSD.ORG Fri Jun 28 06:01:23 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 032F4190 for ; Fri, 28 Jun 2013 06:01:23 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id BCC031459 for ; Fri, 28 Jun 2013 06:01:22 +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 4B69F11C6E; Fri, 28 Jun 2013 16:01:21 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BMZ47913 (AUTH peterg@ptree32.com.au); Fri, 28 Jun 2013 16:01:20 +1000 Message-ID: <51CD26AE.4050806@freebsd.org> Date: Thu, 27 Jun 2013 23:01:18 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: Aryeh Friedman Subject: Re: making bhyve 100% silent 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.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: Fri, 28 Jun 2013 06:01:23 -0000 Hi Aryeh, > bhyve(8) seems to bypass the standard stdin/out/err and send it's > output directly to the TTY when handling guest console I/O. I need > to make it so it is 100% silent (and/or send all it's output to a file > and accept no input at all). How can I do this? For now, edirect bhyveload's output to /dev/null, and remove the ",stdio" part of uart slot configuration. e.g. change "-S 10,uart,stdio" to "-S 10,uart" I should be doing some enhancements in this area in the near future that will make this a bit easier. later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Fri Jun 28 06:07:58 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 11701897; Fri, 28 Jun 2013 06:07:58 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-pb0-x22c.google.com (mail-pb0-x22c.google.com [IPv6:2607:f8b0:400e:c01::22c]) by mx1.freebsd.org (Postfix) with ESMTP id E0A4C16D9; Fri, 28 Jun 2013 06:07:57 +0000 (UTC) Received: by mail-pb0-f44.google.com with SMTP id uo1so1860690pbc.31 for ; Thu, 27 Jun 2013 23:07:57 -0700 (PDT) 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 :content-type; bh=VL/jRK5RG3p9GRxPxDpPzw/iAZE0dcBP01xj9nYWAcc=; b=hjf8NNhlhIYJLQWXbh6G999bEh7bKrmo2C6WYX+xQLGBybHQoRk7GU+w+jQpy0taxI 2EAL6TG9fEFLpNQVRTGqgK09Anm9gzA1DyYvHmkgFocXcbIpiXimzOujKjagerE9SCZS AfRzVj3BlqX2AAj6O4NPmaMY1zPvDnrz8LwGn4QzrPMZfdDDF+3MUtaTmYohqvmHRiWi yybpgMNvmaPOrB0Pj6/rk/Qo+CGKp7/POAbSHkJV/UbOPIiIDz0LoQsAfsdQlR6MjyYb 3Hh1wsGoHfqamNqF3ZE/nkhRV1FQyVE4i36VjrXWILlBTZG72iRzy4BDzLRmJUE9zIAc pENg== MIME-Version: 1.0 X-Received: by 10.68.160.226 with SMTP id xn2mr9932778pbb.174.1372399677663; Thu, 27 Jun 2013 23:07:57 -0700 (PDT) Received: by 10.68.130.133 with HTTP; Thu, 27 Jun 2013 23:07:57 -0700 (PDT) In-Reply-To: <51CD26AE.4050806@freebsd.org> References: <51CD26AE.4050806@freebsd.org> Date: Fri, 28 Jun 2013 02:07:57 -0400 Message-ID: Subject: Re: making bhyve 100% silent From: Aryeh Friedman To: Peter Grehan , freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 28 Jun 2013 06:07:58 -0000 Thanks an other issue is tap needs to be reset on reboot of the guest is there anyway around this? On Fri, Jun 28, 2013 at 2:01 AM, Peter Grehan wrote: > Hi Aryeh, > > >> bhyve(8) seems to bypass the standard stdin/out/err and send it's >> output directly to the TTY when handling guest console I/O. I need >> to make it so it is 100% silent (and/or send all it's output to a file >> and accept no input at all). How can I do this? > > > For now, edirect bhyveload's output to /dev/null, and remove the ",stdio" > part of uart slot configuration. > > e.g. change "-S 10,uart,stdio" to "-S 10,uart" > > I should be doing some enhancements in this area in the near future that > will make this a bit easier. > > later, > > Peter. From owner-freebsd-virtualization@FreeBSD.ORG Fri Jun 28 06:13:02 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 34378923 for ; Fri, 28 Jun 2013 06:13:02 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id EB748170F for ; Fri, 28 Jun 2013 06:13:01 +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 15D6A12226; Fri, 28 Jun 2013 16:13:00 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BMZ48624 (AUTH peterg@ptree32.com.au); Fri, 28 Jun 2013 16:12:59 +1000 Message-ID: <51CD2968.8060209@freebsd.org> Date: Thu, 27 Jun 2013 23:12:56 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: Aryeh Friedman Subject: Re: making bhyve 100% silent References: <51CD26AE.4050806@freebsd.org> 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: Fri, 28 Jun 2013 06:13:02 -0000 > Thanks an other issue is tap needs to be reset on reboot of the guest > is there anyway around this? No, need to do some work on tap to fix that :( later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Fri Jun 28 06:19:00 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 CA071ABB; Fri, 28 Jun 2013 06:19:00 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-pd0-x22c.google.com (mail-pd0-x22c.google.com [IPv6:2607:f8b0:400e:c02::22c]) by mx1.freebsd.org (Postfix) with ESMTP id A48C8174E; Fri, 28 Jun 2013 06:19:00 +0000 (UTC) Received: by mail-pd0-f172.google.com with SMTP id z10so830289pdj.31 for ; Thu, 27 Jun 2013 23:19:00 -0700 (PDT) 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=w52QMMbkahL6Hja09nOmYGc9ZfuE4131L5/ShMfxq38=; b=ctFWZ0cUiz6lxRDdUmbgWjalcAExiKuWuWgVSLMiwUysCygWXPVam7JdXAKNzA6WBL 5t1n33CAg4ySTp0IM5BPuRptmku6mR1g++T0K4qrQV5AzL0DkxNdOq8G99EHZpPfc0uI Sr5Bx36a2g4X5uv4H0j7VRR+Fhf4m0nE5YXdUYqWisgly4HuPsH3NTYNI74uAsjJeweC PLvVyNOZ6tovz65SVS6KMGInlp26GqkpJn3BCZN9L69/iqETBwGfyD9wB5hGIGeo7W6g GJXUcjewAhuReH+kut4D4i1VUqK6FgRT1FOIfKR3TLhdweGsCUUm4d42FeL2exgwOdUa oo/Q== MIME-Version: 1.0 X-Received: by 10.66.163.73 with SMTP id yg9mr9849197pab.77.1372400340310; Thu, 27 Jun 2013 23:19:00 -0700 (PDT) Received: by 10.68.130.133 with HTTP; Thu, 27 Jun 2013 23:19:00 -0700 (PDT) In-Reply-To: <51CD26AE.4050806@freebsd.org> References: <51CD26AE.4050806@freebsd.org> Date: Fri, 28 Jun 2013 02:19:00 -0400 Message-ID: Subject: Re: making bhyve 100% silent From: Aryeh Friedman To: Peter Grehan Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 28 Jun 2013 06:19:00 -0000 removing stdio makes a 10-CURRENT guest unbootable (it freezes immediately after the boot menu) On Fri, Jun 28, 2013 at 2:01 AM, Peter Grehan wrote: > Hi Aryeh, > > >> bhyve(8) seems to bypass the standard stdin/out/err and send it's >> output directly to the TTY when handling guest console I/O. I need >> to make it so it is 100% silent (and/or send all it's output to a file >> and accept no input at all). How can I do this? > > > For now, edirect bhyveload's output to /dev/null, and remove the ",stdio" > part of uart slot configuration. > > e.g. change "-S 10,uart,stdio" to "-S 10,uart" > > I should be doing some enhancements in this area in the near future that > will make this a bit easier. > > later, > > Peter. From owner-freebsd-virtualization@FreeBSD.ORG Fri Jun 28 06:24:06 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 F3CCCCAF for ; Fri, 28 Jun 2013 06:24:05 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id B7BA71781 for ; Fri, 28 Jun 2013 06:24:05 +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 9D6E311C1F; Fri, 28 Jun 2013 16:24:03 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BMZ49241 (AUTH peterg@ptree32.com.au); Fri, 28 Jun 2013 16:24:02 +1000 Message-ID: <51CD2C00.6000007@freebsd.org> Date: Thu, 27 Jun 2013 23:24:00 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: Aryeh Friedman Subject: Re: making bhyve 100% silent References: <51CD26AE.4050806@freebsd.org> 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: Fri, 28 Jun 2013 06:24:06 -0000 > removing stdio makes a 10-CURRENT guest unbootable (it freezes > immediately after the boot menu) It's should be working - there's just no console output. Do you have a network port that you can ping/log into ? later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Fri Jun 28 09:27:39 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 EADA0FD5 for ; Fri, 28 Jun 2013 09:27:39 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [IPv6:2607:f8b0:400e:c03::229]) by mx1.freebsd.org (Postfix) with ESMTP id CDE651DA5 for ; Fri, 28 Jun 2013 09:27:39 +0000 (UTC) Received: by mail-pa0-f41.google.com with SMTP id bj3so2230338pad.0 for ; Fri, 28 Jun 2013 02:27:39 -0700 (PDT) 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=S5V5Lp8UzQIyCl6SAcWtefjYECEhCFGzAhg48Pmuh5E=; b=FlWBYOanZXMQ5i+WCxDgNELh+4e41mNx95iKBdd5elf3bxSv4JDQeH5qvcy9wIrZmN CxQ2yfjiGIfzge2AfTnZZYh8Y8efdKBki9S+EgzJchMDQ7yGgGG5Ed2hSIKf7E5SR+Mu c/7VjCUgJ2+NBIPMz4+ZR72rKfEfsGlaFhTUFvgqMSMx6Qo5yc5cQ+IHBCVzug5QFPAW bJzjebXkKCsGumyEVGZx0lp5lG012+HGZbdy6X75JmDfDmt+4fos3yjfvRe4C4496IcP Dlmcot2b8eiTEwDVTPsF6w74b9hoc3+cQli7w3gI8F2DeyZ2ctpTXfJlyE4c2eijJFSk LuLg== MIME-Version: 1.0 X-Received: by 10.66.163.99 with SMTP id yh3mr10550592pab.22.1372411659570; Fri, 28 Jun 2013 02:27:39 -0700 (PDT) Received: by 10.68.130.133 with HTTP; Fri, 28 Jun 2013 02:27:39 -0700 (PDT) Date: Fri, 28 Jun 2013 05:27:39 -0400 Message-ID: Subject: questions on if_bridge and if_tap From: Aryeh Friedman To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 28 Jun 2013 09:27:40 -0000 1. Is there a upper limit on the number of bridges and/or taps and if so what is it? 2. Does each tap need a corresponding bridge or can they all go through the same bridge? From owner-freebsd-virtualization@FreeBSD.ORG Fri Jun 28 15:07:12 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 09A9BE1E for ; Fri, 28 Jun 2013 15:07:12 +0000 (UTC) (envelope-from lidl@pix.net) Received: from hydra.pix.net (hydra.pix.net [IPv6:2001:470:e254::3c]) by mx1.freebsd.org (Postfix) with ESMTP id D3D381196 for ; Fri, 28 Jun 2013 15:07:11 +0000 (UTC) Received: from torb.pix.net (torb.pix.net [IPv6:2001:470:e254:10:12dd:b1ff:febf:eca9]) (authenticated bits=0) by hydra.pix.net (8.14.5/8.14.5) with ESMTP id r5SF7AMU072901 for ; Fri, 28 Jun 2013 11:07:10 -0400 (EDT) (envelope-from lidl@pix.net) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.97.8 at mail.pix.net Message-ID: <51CDA69E.9040407@pix.net> Date: Fri, 28 Jun 2013 11:07:10 -0400 From: Kurt Lidl User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: Re: making bhyve 100% silent References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 28 Jun 2013 15:07:12 -0000 > Thanks an other issue is tap needs to be reset on reboot of the guest > is there anyway around this? > > On Fri, Jun 28, 2013 at 2:01 AM, Peter Grehan wrote: >> Hi Aryeh, >> >> >>> bhyve(8) seems to bypass the standard stdin/out/err and send it's >>> output directly to the TTY when handling guest console I/O. I need >>> to make it so it is 100% silent (and/or send all it's output to a file >>> and accept no input at all). How can I do this? >> >> >> For now, edirect bhyveload's output to /dev/null, and remove the ",stdio" >> part of uart slot configuration. >> >> e.g. change "-S 10,uart,stdio" to "-S 10,uart" >> >> I should be doing some enhancements in this area in the near future that >> will make this a bit easier. >> >> later, >> >> Peter. I have had good success setting the following my /etc/sysctl.conf on the hosting machine: net.link.tap.up_on_open=1 It allows me to to run a cycle of: bhyveload bhyve bhvyectl --destroy To keep virtual machines happy. -Kurt From owner-freebsd-virtualization@FreeBSD.ORG Fri Jun 28 17:29:52 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 01D2D8C6 for ; Fri, 28 Jun 2013 17:29:51 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id BA2BA1A42 for ; Fri, 28 Jun 2013 17:29:51 +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 0FCE812269; Sat, 29 Jun 2013 03:29:51 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BMZ71348 (AUTH peterg@ptree32.com.au); Sat, 29 Jun 2013 03:29:50 +1000 Message-ID: <51CDC80C.7070709@freebsd.org> Date: Fri, 28 Jun 2013 10:29:48 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: Aryeh Friedman Subject: Re: questions on if_bridge and if_tap 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.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: Fri, 28 Jun 2013 17:29:52 -0000 > 1. Is there a upper limit on the number of bridges and/or taps and if > so what is it? The if_index field for an interface is 16 bits so I guess there may be an upper bound of 64K. That might start to stretch limits of FreeBSD in other areas. > 2. Does each tap need a corresponding bridge or can they all go > through the same bridge? They can all go through the same bridge if that's what you want (the same broadcoast domain). later, Peter.