From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 11:06: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]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1D3C6A21 for ; Mon, 11 Nov 2013 11:06:59 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0A8D52CD8 for ; Mon, 11 Nov 2013 11:06:59 +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 rABB6wMx082292 for ; Mon, 11 Nov 2013 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rABB6w9R082290 for freebsd-virtualization@FreeBSD.org; Mon, 11 Nov 2013 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Nov 2013 11:06:58 GMT Message-Id: <201311111106.rABB6w9R082290@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, 11 Nov 2013 11:06:59 -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/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 7 problems total. From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 12:38:41 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D740BA28 for ; Mon, 11 Nov 2013 12:38:41 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from mail-vc0-x22c.google.com (mail-vc0-x22c.google.com [IPv6:2607:f8b0:400c:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9BBBF2405 for ; Mon, 11 Nov 2013 12:38:41 +0000 (UTC) Received: by mail-vc0-f172.google.com with SMTP id ij19so785758vcb.31 for ; Mon, 11 Nov 2013 04:38:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=wmqrrEBMpeESGaCmt1tUJasOlvTzaEqpY+jpnUpAeCI=; b=Ov/7KHU1JPkmFIsZEhXWKCMKw1HDTkj/FpbA1U1yRDjHGSfkl3ztiMM0elkOvmkyn2 T442pQ+Cnvbt9r0rGr4ehblv3B96FQEagP8aZZszYOtvDLZhyieoMq2Fakt9DDmbffma iSggKwMTzcOAmD/J3rVNV0BjpCZetBev5vjhkI23GCELauQuAK6z6enH2vxCIGIfSv56 lCK1sHnPQ2CVgW5YmjvnW9fVa3qrxAGRjRT8oZzczCIukOMBYHmfgQhjsAEGcgh1i2Yf fSIpUKSa8VLKgc1Pm+7p7GB1StXNmXLGu12aokTpBQB3eiIILkbIGfwGh7x9TR6r84nq BMdA== MIME-Version: 1.0 X-Received: by 10.52.244.15 with SMTP id xc15mr2993vdc.52.1384173520684; Mon, 11 Nov 2013 04:38:40 -0800 (PST) Received: by 10.52.168.106 with HTTP; Mon, 11 Nov 2013 04:38:40 -0800 (PST) Date: Mon, 11 Nov 2013 16:38:40 +0400 Message-ID: Subject: Running `sysctl -a` causes crash (Hyper-V) From: Pavel Timofeev To: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=UTF-8 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, 11 Nov 2013 12:38:41 -0000 Hi! Can anybody confirm the subject? Every time when I run `sysctl -a` get this http://pastebin.com/Chf9qQTD Additional vmcore: http://yadi.sk/d/EAvZe3vZCVvp6 core.txt: http://yadi.sk/d/IBLJ8NVTCVvpn It's on Windows Server 2012 Datacenter From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 13:02:11 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C5DFD405 for ; Mon, 11 Nov 2013 13:02:11 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 653232590 for ; Mon, 11 Nov 2013 13:02:11 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id ez12so2125298wid.9 for ; Mon, 11 Nov 2013 05:02:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=O8QuG87dgJP/HyqeFPkG02nl42VQC1LYfjg4kPFI8zo=; b=SFZUcWlm0zpQloweQLkhakvDIkKhXue/cAp5sQbDXr1I2e075gFs2+QsrZe6rDDFR3 8TzSU3lpIi2U9hEscVhrqJWAdBesf9pxJCPDT2F7PaPVMdR7M0mYbTk4/uQX+tVJ1PEc 0vdyLc1yRvT8c72K3G09UpC4gBHnavLRLXMZjjOZUhBlTUd+MAAg0qZVnM/rNuRE4OJR 7vkiFbclONMHeSqYdmu/LGibDGzWd4J+v6Tc9PIjiJGHXZmOpPwvj9tgNs1Lolr7RWIW JlBcjnGcO5Zx6M03BwPcVvNrpUdPJcX24VMzxAmz1KegdT9ijTxMnztGcWFZoIZ03Nh0 VwaQ== MIME-Version: 1.0 X-Received: by 10.194.205.37 with SMTP id ld5mr632350wjc.67.1384174929601; Mon, 11 Nov 2013 05:02:09 -0800 (PST) Received: by 10.216.203.195 with HTTP; Mon, 11 Nov 2013 05:02:09 -0800 (PST) In-Reply-To: References: Date: Mon, 11 Nov 2013 17:02:09 +0400 Message-ID: Subject: Re: Running `sysctl -a` causes crash (Hyper-V) From: Sergey Kandaurov To: Pavel Timofeev 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: Mon, 11 Nov 2013 13:02:11 -0000 On 11 November 2013 16:38, Pavel Timofeev wrote: > Hi! Can anybody confirm the subject? > Every time when I run `sysctl -a` get this > > http://pastebin.com/Chf9qQTD Can you show 'p vm_guest' from core file? -- wbr, pluknet From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 13:06:29 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 464505EE for ; Mon, 11 Nov 2013 13:06:29 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from mail-ve0-x229.google.com (mail-ve0-x229.google.com [IPv6:2607:f8b0:400c:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 06CD825CC for ; Mon, 11 Nov 2013 13:06:28 +0000 (UTC) Received: by mail-ve0-f169.google.com with SMTP id pa12so662537veb.14 for ; Mon, 11 Nov 2013 05:06:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+rcufwCrJrLHuf9A86DXMAJBp2lrdvTFwyKgJJgiHSE=; b=xpEjoSh1TA2QsEjLyiEhOV/ZJb2tsSgbaTd8tGRFxhoGqJbjVqtJuhQie9dhE7494U 9h8yp+sBUmgVbu0HxqAjOFF82Ul0EmDVzKWjZS8fARMjX0AasOHRonpMTKgKEJ6rRsOe pENTD/IWvENFJn4anW/ThtDQUY1iNxM6pC6Qvru7QBRAX3UdmCpoDax6jOSc7H9X3K90 7w9ekZHDOsjMWlr4nhS+28YAt6W65yDxOpEmRjkAEv34XWyoAbn2E/umkigldis67+NS Autm+oW9hEpQ6VEEcQuaxCH9f9lN0mtMovOfnSWiTgGy/78VJ2JAljHXdFFgG2mL8Nw1 ef3g== MIME-Version: 1.0 X-Received: by 10.220.17.131 with SMTP id s3mr4932396vca.20.1384175188251; Mon, 11 Nov 2013 05:06:28 -0800 (PST) Received: by 10.52.168.106 with HTTP; Mon, 11 Nov 2013 05:06:28 -0800 (PST) In-Reply-To: References: Date: Mon, 11 Nov 2013 17:06:28 +0400 Message-ID: Subject: Re: Running `sysctl -a` causes crash (Hyper-V) From: Pavel Timofeev To: Sergey Kandaurov Content-Type: text/plain; charset=UTF-8 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, 11 Nov 2013 13:06:29 -0000 I'm sorry, could you explain how to do it? Which one is the 'core file', vmcore or core.txt? 2013/11/11 Sergey Kandaurov : > On 11 November 2013 16:38, Pavel Timofeev wrote: >> Hi! Can anybody confirm the subject? >> Every time when I run `sysctl -a` get this >> >> http://pastebin.com/Chf9qQTD > > Can you show 'p vm_guest' from core file? > > -- > wbr, > pluknet From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 13:12:47 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CA9C57C4 for ; Mon, 11 Nov 2013 13:12:47 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 68C322639 for ; Mon, 11 Nov 2013 13:12:47 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id hq4so1717570wib.10 for ; Mon, 11 Nov 2013 05:12:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cvGD/QDOnGnzDw7MAUXx/nfBP6rcslRr10Mi04YqPeY=; b=MRoFh6csY0lCVix5gMD6XpL7F2APRTK9WzG5a1xptqnk2IVdNTiKg5o16iLiAkBxGd J4Azz7gACgErvfAQqtrtvqgZKWW7vIDxtcDYADLy37P2NW24ZljmdtAL66c/NK9XwU8N qZl1a9mcsXMpuxF3J7+Oiir47Lqyr5uqT1Ef9ipASKh/9vRhQdSdM+mT+IFbqUg5SGVI xLHuud4oPbMwiAmYNLR40N2OfYZaRaTGMmMxYyusBiLNbUYr0ZPbGLkn5x0p2yVo6ZO/ X8C1ebmM73NXxkW/gi4ch2uhV4g42KBqdyyTnth88g8w9FAVeq6ihjZjiubDFmbI3mcd 2i/w== MIME-Version: 1.0 X-Received: by 10.194.20.202 with SMTP id p10mr1881151wje.39.1384175565830; Mon, 11 Nov 2013 05:12:45 -0800 (PST) Received: by 10.216.203.195 with HTTP; Mon, 11 Nov 2013 05:12:45 -0800 (PST) In-Reply-To: References: Date: Mon, 11 Nov 2013 17:12:45 +0400 Message-ID: Subject: Re: Running `sysctl -a` causes crash (Hyper-V) From: Sergey Kandaurov To: Pavel Timofeev 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: Mon, 11 Nov 2013 13:12:47 -0000 [Please, don't top-post.] On 11 November 2013 17:06, Pavel Timofeev wrote: > I'm sorry, could you explain how to do it? Which one is the 'core > file', vmcore or core.txt? > It's vmcore. kgdb /path/to/kernel /path/to/vmcore > 2013/11/11 Sergey Kandaurov : >> On 11 November 2013 16:38, Pavel Timofeev wrote: >>> Hi! Can anybody confirm the subject? >>> Every time when I run `sysctl -a` get this >>> >>> http://pastebin.com/Chf9qQTD >> >> Can you show 'p vm_guest' from core file? -- wbr, pluknet From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 14:13:46 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A290B3C6 for ; Mon, 11 Nov 2013 14:13:46 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from mail-vb0-x235.google.com (mail-vb0-x235.google.com [IPv6:2607:f8b0:400c:c02::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 607512A0E for ; Mon, 11 Nov 2013 14:13:46 +0000 (UTC) Received: by mail-vb0-f53.google.com with SMTP id i11so3231177vbh.26 for ; Mon, 11 Nov 2013 06:13:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=HKr4nhu/5Pp3eXaGDZ/M9Bqn6siBOV+YcphUKP19ewM=; b=VxNmc3/dFsgtE63VC4yuD5oEIgOzaYRwXdg8AOG4o2wxZZHKaWUaPPQFl+6ith5zX6 KclD4B0Tozi1VT99gH4bDx7w7vCsVCczL6zj6xGWHfSjJzNt7cuurJ6JcjNO6u/jBwA3 EL12VpVC1gT+YbLHJpBRmt0lbqP/B8bEhZMUgeUG8KKp3PKaguxcVG0/qmPNIhjqUSt8 rPRcPWrKQezmLXTF50ydm2AREKJbJlHEdiP/wUEPnUQjLCK3tCfbpuUaJsix6joDKrO3 ZjATp1KLjOUGkiwy3Ai3dWES1QFWbz943RyGnBWuw0/cgXwWyokhB7iw1XDKj1IEBEwc KHLg== MIME-Version: 1.0 X-Received: by 10.58.50.194 with SMTP id e2mr20085veo.54.1384179225424; Mon, 11 Nov 2013 06:13:45 -0800 (PST) Received: by 10.52.168.106 with HTTP; Mon, 11 Nov 2013 06:13:45 -0800 (PST) In-Reply-To: References: Date: Mon, 11 Nov 2013 18:13:45 +0400 Message-ID: Subject: Re: Running `sysctl -a` causes crash (Hyper-V) From: Pavel Timofeev To: Sergey Kandaurov Content-Type: text/plain; charset=UTF-8 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, 11 Nov 2013 14:13:46 -0000 root@bsdtest:~ # kgdb /boot/kernel/kernel ./vmcore.1 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid = 1; apic id = 01 fault virtual address = 0x0 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff8095d79b stack pointer = 0x28:0xfffffe003d31c8f0 frame pointer = 0x28:0xfffffe003d31c900 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 777 (sysctl) trap number = 12 panic: page fault cpuid = 1 KDB: stack backtrace: #0 0xffffffff808e7a90 at kdb_backtrace+0x60 #1 0xffffffff808af575 at panic+0x155 #2 0xffffffff80c8e272 at trap_fatal+0x3a2 #3 0xffffffff80c8e549 at trap_pfault+0x2c9 #4 0xffffffff80c8dcd6 at trap+0x5e6 #5 0xffffffff80c74f72 at calltrap+0x8 #6 0xffffffff808ea529 at sysctl_kern_vm_guest+0x29 #7 0xffffffff808baacf at sysctl_root+0x24f #8 0xffffffff808bb088 at userland_sysctl+0x1d8 #9 0xffffffff808bae74 at sys___sysctl+0x74 #10 0xffffffff80c8eb67 at amd64_syscall+0x357 #11 0xffffffff80c7525b at Xfast_syscall+0xfb Uptime: 30s Dumping 89 out of 1001 MB:..18%..36%..54%..72%..89% Reading symbols from /boot/kernel/fuse.ko.symbols...done. Loaded symbols for /boot/kernel/fuse.ko.symbols Reading symbols from /boot/kernel/fdescfs.ko.symbols...done. Loaded symbols for /boot/kernel/fdescfs.ko.symbols #0 doadump (textdump=) at pcpu.h:219 219 pcpu.h: No such file or directory. in pcpu.h (kgdb) p vm_guest $1 = 3 Current language: auto; currently minimal (kgdb) 2013/11/11 Sergey Kandaurov : > [Please, don't top-post.] > On 11 November 2013 17:06, Pavel Timofeev wrote: >> I'm sorry, could you explain how to do it? Which one is the 'core >> file', vmcore or core.txt? >> > > It's vmcore. > kgdb /path/to/kernel /path/to/vmcore > >> 2013/11/11 Sergey Kandaurov : >>> On 11 November 2013 16:38, Pavel Timofeev wrote: >>>> Hi! Can anybody confirm the subject? >>>> Every time when I run `sysctl -a` get this >>>> >>>> http://pastebin.com/Chf9qQTD >>> >>> Can you show 'p vm_guest' from core file? > > -- > wbr, > pluknet From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 14:31:12 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4C46B8C3 for ; Mon, 11 Nov 2013 14:31:12 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DD18C2B4C for ; Mon, 11 Nov 2013 14:31:11 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id x55so699388wes.10 for ; Mon, 11 Nov 2013 06:31:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7MjPpa3R9DT/tMetTf50FRFDBZt1biqKTuTOYM5GanM=; b=Afsmlmsd3vBbL7tLC1pLr1nK7CNlvT4Ja/wDKtqNaFzk77CjfTcHCaw90WGCtYW1w5 1DZ0A8eONEGeO2mhdd17n9ssMUc6VbJYgUUYoo86oK0q5kRUa6pzzjlZO7rwospB04Hw gLDvsBFmi6Z9Acz7ZTWbTgf3ljbn06onrbqYn3UxC+n6rMS0XLjfC/sMjMLqcrTL776d CbM8LOyaTAVwdLUhZ/1diLAGd13ZLiTpwWReuhNPOpOam46h7MmRyHD46sssFiGu+cOP aWeaPWGUzS8N2atXErz7g6evZIJBDUf21WReoFYvlmY/sl0njI20l3fejSBMQAya4KmC Ruiw== MIME-Version: 1.0 X-Received: by 10.180.184.14 with SMTP id eq14mr12550241wic.56.1384180269683; Mon, 11 Nov 2013 06:31:09 -0800 (PST) Received: by 10.216.203.195 with HTTP; Mon, 11 Nov 2013 06:31:09 -0800 (PST) In-Reply-To: References: Date: Mon, 11 Nov 2013 18:31:09 +0400 Message-ID: Subject: Re: Running `sysctl -a` causes crash (Hyper-V) From: Sergey Kandaurov To: Pavel Timofeev 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: Mon, 11 Nov 2013 14:31:12 -0000 On 11 November 2013 18:13, Pavel Timofeev wrote: > [...] > (kgdb) p vm_guest > $1 = 3 > Current language: auto; currently minimal > (kgdb) > What if you try this change? Index: sys/kern/subr_param.c =================================================================== --- sys/kern/subr_param.c (revision 257695) +++ sys/kern/subr_param.c (working copy) @@ -153,6 +153,7 @@ "none", "generic", "xen", + "hv", NULL }; From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 14:31:07 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 600278C2 for ; Mon, 11 Nov 2013 14:31:07 +0000 (UTC) (envelope-from vvm@tut.by) Received: from mail-ea0-x229.google.com (mail-ea0-x229.google.com [IPv6:2a00:1450:4013:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E2E9D2B4B for ; Mon, 11 Nov 2013 14:31:06 +0000 (UTC) Received: by mail-ea0-f169.google.com with SMTP id l9so7453eaj.14 for ; Mon, 11 Nov 2013 06:31:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tut.by; s=google; h=message-id:from:to:cc:references:subject:date:mime-version :content-type:content-transfer-encoding; bh=fMDxNsfVLQdVBYM8+w7ExvE6V5EF05LsmKeCZB4+dnI=; b=MnryMh4cVPR0pke4Q+f6bCo/SPGvQALlAOsbSJ7XQK5lpN9ZGBfoNNFjc9fv86AeTJ kmmK4DIXK6DOUUVH7hoY3GsKhBaf0TRLyZs+dPoSDBcevjQsnHfBuWIYh7g7AGhBwZMj IYiHrlIjmlrHNRKu/rzwqa6cON2BcVi/Y0yi4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:from:to:cc:references:subject:date :mime-version:content-type:content-transfer-encoding; bh=fMDxNsfVLQdVBYM8+w7ExvE6V5EF05LsmKeCZB4+dnI=; b=IwxpGvBD1WtN2sTzbLr553A0VU6XHJ6j/lk6lJ3p2RpxQk/iK20iIgyAZ2FkqDAHvE enwRi7je62/uotcllYUkMKF86hFrHGG/2tXaRMjuSIpJvZVOgLd3bqKL/0r3ndN3ezS5 CjyPEJUw5kjyIj+c7gPuaoSCPpI8DvnXG17EFWs8PLMmHeOm5rUpj5bDzWUmR9KQ7iPP iyu13T/tagP4QpnJWwMg4Qj55XB2DcSX/mfZ75Z18YTcXg2DALIooXWNg1JjjROvgiYf Vq+FJb04QVUfemKKwRlZMl7SEv2GzW5NV4NhT6UPid+ncnaBhNYCbzDkbqkAQQrY8D7V B2Vg== X-Gm-Message-State: ALoCoQmKCia9HHs2iDXY82TYszAPin0ig1XUTgagCpme9SWxzj9qP87uXV1gDvxHwbbc6MU9BnTI X-Received: by 10.14.212.72 with SMTP id x48mr35637686eeo.0.1384180265261; Mon, 11 Nov 2013 06:31:05 -0800 (PST) Received: from TSVVM2 (ns1.st.by. [217.23.123.90]) by mx.google.com with ESMTPSA id v45sm63488020eef.11.2013.11.11.06.31.04 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 11 Nov 2013 06:31:04 -0800 (PST) Message-ID: <2A62E98CF5D84CD2B6405CD18BE82C77@local.st.by> From: "Victor Miasnikov" To: "Pavel Timofeev" , References: Subject: And on Windows Server 2008 R2 Re: Running `sysctl -a` causes crash (Hyper-V) Date: Mon, 11 Nov 2013 17:31:02 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3790.4548 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4913 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, 11 Nov 2013 14:31:07 -0000 Hi! > Running `sysctl -a` causes crash (Hyper-V) >run `sysctl -a` get this > . . . >It's on Windows Server 2012 Datacenter And on Windows Server 2008 R2 :-( Tested with FreeBSD-10.0-BETA3-amd64-disc1.iso in LiveCD mode Best regards, Victor Miasnikov Blog: http://vvm.blog.tut.by/ ----- Original Message ----- From: "Pavel Timofeev" To: "Sergey Kandaurov" Cc: Sent: Monday, November 11, 2013 5:13 PM Subject: Re: Running `sysctl -a` causes crash (Hyper-V) . . . > (kgdb) p vm_guest > $1 = 3 . . . > 2013/11/11 Sergey Kandaurov . . . >> >>> 2013/11/11 Sergey Kandaurov >>>> On 11 November 2013 16:38, Pavel Timofeev wrote: >>>>> Hi! Can anybody confirm the subject? >>>>> Every time when I run `sysctl -a` get this >>>>> >>>>> http://pastebin.com/Chf9qQTD >>>> . . . From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 14:35:40 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 971F09C9 for ; Mon, 11 Nov 2013 14:35:40 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from mail-vb0-x22e.google.com (mail-vb0-x22e.google.com [IPv6:2607:f8b0:400c:c02::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 55DB82B84 for ; Mon, 11 Nov 2013 14:35:40 +0000 (UTC) Received: by mail-vb0-f46.google.com with SMTP id 10so3243875vbe.19 for ; Mon, 11 Nov 2013 06:35:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=oCIOuE+4AAbRntox2sEQPigWK/eGCgo+6/0/q2+k1uo=; b=AFL66B0iFBKqeufSDGcTJU7DzWtqu/IFJRA0yWCbUmI+gEitCZI8BslmUhYpRpnY/G 5q6k45M46dA1kqvHhNV2JfW5m/PPr4wS59Sk/m/o3aK+Lry4cbo7DOrqSps1y8rRMAh8 f45ILrz0q2D8aGKjZQ/A/IZKF5OCafSbVaTm3F0WfT5kJGHjcwLOdDGRPkRAX5M0rxei Nc9bW0ejUouRd6wuFqGZ+gzRIPSiMswGneeFlc38kVvQSKhzYrabG0NO0C6VpjECIQra ReGBfaBQ6JWIhVQsn4eb/2kULD8XpGMWv8jCAcjumFNo/E7poh91lr3ixTIfIDm+bqo8 jzwQ== MIME-Version: 1.0 X-Received: by 10.58.11.73 with SMTP id o9mr24112400veb.8.1384180539515; Mon, 11 Nov 2013 06:35:39 -0800 (PST) Received: by 10.52.168.106 with HTTP; Mon, 11 Nov 2013 06:35:39 -0800 (PST) In-Reply-To: References: Date: Mon, 11 Nov 2013 18:35:39 +0400 Message-ID: Subject: Re: Running `sysctl -a` causes crash (Hyper-V) From: Pavel Timofeev To: Sergey Kandaurov Content-Type: text/plain; charset=UTF-8 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, 11 Nov 2013 14:35:40 -0000 We'll see, I started kernel rebuilding. 2013/11/11 Sergey Kandaurov : > On 11 November 2013 18:13, Pavel Timofeev wrote: >> [...] >> (kgdb) p vm_guest >> $1 = 3 >> Current language: auto; currently minimal >> (kgdb) >> > > What if you try this change? > > Index: sys/kern/subr_param.c > =================================================================== > --- sys/kern/subr_param.c (revision 257695) > +++ sys/kern/subr_param.c (working copy) > @@ -153,6 +153,7 @@ > "none", > "generic", > "xen", > + "hv", > NULL > }; From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 15:49:28 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 79EBA7DC for ; Mon, 11 Nov 2013 15:49:28 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from mail-ve0-x229.google.com (mail-ve0-x229.google.com [IPv6:2607:f8b0:400c:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 389AC213F for ; Mon, 11 Nov 2013 15:49:28 +0000 (UTC) Received: by mail-ve0-f169.google.com with SMTP id pa12so861207veb.0 for ; Mon, 11 Nov 2013 07:49:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=m2J8RYgBQI5jJRveFw75DX/Mg40AACtcnUGMHMfWUQQ=; b=Lu6sPasBce7/4yYRu7N+MBOtO7NJtyz2wS7sqG4JIZ4zmjDfpAujebUbvpR+OVxaIw XBT6CoRb0s+ogP6T5iZsFCuMkIpYQ8P7/Oy/NLTLcSTi2CrCq0wL0/7dO1upRMz+3srS I1RMZBxPKXUC0RN0ISM16ChXXhuXw/Ws8dAD+338+HThssyWB0eM26Y9t+5c2N9E27aT V8HW04t6zUSifijXOIqJoH652l3ap7UJSv5vUFmZETH/C+vAALXNLoEMisAVOxy5X6pA 6L/++gjm6tU6N9CwNFvX9GQGjq6oi7g8cYYRMu3dTnOke+q85iCDXeLBNH2THw1LkZuj fxTA== MIME-Version: 1.0 X-Received: by 10.52.33.147 with SMTP id r19mr705563vdi.37.1384184967428; Mon, 11 Nov 2013 07:49:27 -0800 (PST) Received: by 10.52.168.106 with HTTP; Mon, 11 Nov 2013 07:49:27 -0800 (PST) In-Reply-To: References: Date: Mon, 11 Nov 2013 19:49:27 +0400 Message-ID: Subject: Re: Running `sysctl -a` causes crash (Hyper-V) From: Pavel Timofeev To: Sergey Kandaurov Content-Type: text/plain; charset=UTF-8 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, 11 Nov 2013 15:49:28 -0000 Great, it helped! Thanks a lot! 2013/11/11 Sergey Kandaurov : > On 11 November 2013 18:13, Pavel Timofeev wrote: >> [...] >> (kgdb) p vm_guest >> $1 = 3 >> Current language: auto; currently minimal >> (kgdb) >> > > What if you try this change? > > Index: sys/kern/subr_param.c > =================================================================== > --- sys/kern/subr_param.c (revision 257695) > +++ sys/kern/subr_param.c (working copy) > @@ -153,6 +153,7 @@ > "none", > "generic", > "xen", > + "hv", > NULL > }; From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 16:00:49 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 96B69A2D for ; Mon, 11 Nov 2013 16:00:49 +0000 (UTC) (envelope-from roger.pau@citrix.com) Received: from SMTP.CITRIX.COM (smtp.citrix.com [66.165.176.89]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D97CA21EF for ; Mon, 11 Nov 2013 16:00:48 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.93,678,1378857600"; d="scan'208";a="73191888" Received: from accessns.citrite.net (HELO FTLPEX01CL01.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 11 Nov 2013 16:00:42 +0000 Received: from [IPv6:::1] (10.80.16.47) by smtprelay.citrix.com (10.13.107.78) with Microsoft SMTP Server id 14.2.342.4; Mon, 11 Nov 2013 11:00:40 -0500 Message-ID: <5280FF27.1090405@citrix.com> Date: Mon, 11 Nov 2013 17:00:39 +0100 From: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Sergey Kandaurov , Pavel Timofeev Subject: Re: Running `sysctl -a` causes crash (Hyper-V) References: In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-DLP: MIA2 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, 11 Nov 2013 16:00:49 -0000 On 11/11/13 15:31, Sergey Kandaurov wrote: > On 11 November 2013 18:13, Pavel Timofeev wrote: >> [...] >> (kgdb) p vm_guest >> $1 = 3 >> Current language: auto; currently minimal >> (kgdb) >> > > What if you try this change? > > Index: sys/kern/subr_param.c > =================================================================== > --- sys/kern/subr_param.c (revision 257695) > +++ sys/kern/subr_param.c (working copy) > @@ -153,6 +153,7 @@ > "none", > "generic", > "xen", > + "hv", > NULL > }; This is my fault, I've added VM_GUEST_HV to the guest type enum without knowing there was another array in a completely different file that contained a description for those values. If you (or someone else) are going to commit this change, I would recommend adding a BIG comment in sys/systm.h above the declaration of VM_GUEST explaining that if you add a new guest type there you also need to add a description in subr_param.c, this will probably prevent something like this happening again. From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 16:21:09 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6BFD0445 for ; Mon, 11 Nov 2013 16:21:09 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 053BA237F for ; Mon, 11 Nov 2013 16:21:08 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id x13so878773wgg.16 for ; Mon, 11 Nov 2013 08:21:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=6/4LXSP5gfg682BgGpN9pnC8BURa6l9QxZQ8YCB5i1k=; b=cxxlG4np5w1nrhDX1zNSC4hVawtJnHBGHSz0l/pl0HwE6rAjz/FDPkuAqmP91hLjDS u0188e///K4mLhV/6IZB/PMD8rAtVLuf+NWnGKisssuZkGSpYFBgSi585DJD14FGmuPN 2ShonXt7a04rsvdB4+Rk4/qa6BPGezKiJW06JA8MuYzXgZJ2sslG8nQg49Jeb8A7Zkih 6OPMD+DBNE33ta2IPP3FKQhdONJZKjXCcawAQ2nrtuXh732eeWFByrPGhP918kFJihvC 5i9cFhCkfkbauwtKmVKWfcZp/qbsQEg1UUL/BYb5lkOp4MbMBY12xCaRIYe8jQOvLbuX 4AXg== MIME-Version: 1.0 X-Received: by 10.194.122.99 with SMTP id lr3mr22582773wjb.21.1384186867365; Mon, 11 Nov 2013 08:21:07 -0800 (PST) Received: by 10.216.203.195 with HTTP; Mon, 11 Nov 2013 08:21:07 -0800 (PST) In-Reply-To: <5280FF27.1090405@citrix.com> References: <5280FF27.1090405@citrix.com> Date: Mon, 11 Nov 2013 20:21:07 +0400 Message-ID: Subject: Re: Running `sysctl -a` causes crash (Hyper-V) From: Sergey Kandaurov To: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Pavel Timofeev , "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, 11 Nov 2013 16:21:09 -0000 On 11 November 2013 20:00, Roger Pau Monn=E9 wrote: > On 11/11/13 15:31, Sergey Kandaurov wrote: >> On 11 November 2013 18:13, Pavel Timofeev wrote: >>> [...] >>> (kgdb) p vm_guest >>> $1 =3D 3 >>> Current language: auto; currently minimal >>> (kgdb) >>> >> >> What if you try this change? >> >> Index: sys/kern/subr_param.c >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- sys/kern/subr_param.c (revision 257695) >> +++ sys/kern/subr_param.c (working copy) >> @@ -153,6 +153,7 @@ >> "none", >> "generic", >> "xen", >> + "hv", >> NULL >> }; > > This is my fault, I've added VM_GUEST_HV to the guest type enum without > knowing there was another array in a completely different file that > contained a description for those values. Ok, I committed the fix in r257996. > > If you (or someone else) are going to commit this change, I would > recommend adding a BIG comment in sys/systm.h above the declaration of > VM_GUEST explaining that if you add a new guest type there you also need > to add a description in subr_param.c, this will probably prevent > something like this happening again. > What about this change? Index: sys/sys/systm.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/sys/systm.h (revision 257695) +++ sys/sys/systm.h (working copy) @@ -70,6 +70,7 @@ * Detected virtual machine guest types. The intention is to expand * and/or add to the VM_GUEST_VM type if specific VM functionality is * ever implemented (e.g. vendor-specific paravirtualization features). + * Keep in sync with vm_guest_sysctl_names[]. */ enum VM_GUEST { VM_GUEST_NO =3D 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV = }; --=20 wbr, pluknet From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 16:26:20 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9108C662 for ; Mon, 11 Nov 2013 16:26:20 +0000 (UTC) (envelope-from roger.pau@citrix.com) Received: from SMTP.CITRIX.COM (smtp.citrix.com [66.165.176.89]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C5DF023E1 for ; Mon, 11 Nov 2013 16:26:19 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.93,679,1378857600"; d="scan'208";a="73206254" Received: from accessns.citrite.net (HELO FTLPEX01CL01.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 11 Nov 2013 16:26:17 +0000 Received: from [IPv6:::1] (10.80.16.47) by smtprelay.citrix.com (10.13.107.78) with Microsoft SMTP Server id 14.2.342.4; Mon, 11 Nov 2013 11:26:16 -0500 Message-ID: <52810527.8080603@citrix.com> Date: Mon, 11 Nov 2013 17:26:15 +0100 From: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Sergey Kandaurov Subject: Re: Running `sysctl -a` causes crash (Hyper-V) References: <5280FF27.1090405@citrix.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-DLP: MIA1 Cc: Pavel Timofeev , "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, 11 Nov 2013 16:26:20 -0000 On 11/11/13 17:21, Sergey Kandaurov wrote: > On 11 November 2013 20:00, Roger Pau Monné wrote: >> On 11/11/13 15:31, Sergey Kandaurov wrote: >>> On 11 November 2013 18:13, Pavel Timofeev wrote: >>>> [...] >>>> (kgdb) p vm_guest >>>> $1 = 3 >>>> Current language: auto; currently minimal >>>> (kgdb) >>>> >>> >>> What if you try this change? >>> >>> Index: sys/kern/subr_param.c >>> =================================================================== >>> --- sys/kern/subr_param.c (revision 257695) >>> +++ sys/kern/subr_param.c (working copy) >>> @@ -153,6 +153,7 @@ >>> "none", >>> "generic", >>> "xen", >>> + "hv", >>> NULL >>> }; >> >> This is my fault, I've added VM_GUEST_HV to the guest type enum without >> knowing there was another array in a completely different file that >> contained a description for those values. > > Ok, I committed the fix in r257996. > >> >> If you (or someone else) are going to commit this change, I would >> recommend adding a BIG comment in sys/systm.h above the declaration of >> VM_GUEST explaining that if you add a new guest type there you also need >> to add a description in subr_param.c, this will probably prevent >> something like this happening again. >> > > What about this change? > > Index: sys/sys/systm.h > =================================================================== > --- sys/sys/systm.h (revision 257695) > +++ sys/sys/systm.h (working copy) > @@ -70,6 +70,7 @@ > * Detected virtual machine guest types. The intention is to expand > * and/or add to the VM_GUEST_VM type if specific VM functionality is > * ever implemented (e.g. vendor-specific paravirtualization features). > + * Keep in sync with vm_guest_sysctl_names[]. > */ > enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV }; Looks good to me. From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 16:36:31 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0C8A7882 for ; Mon, 11 Nov 2013 16:36:31 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-pa0-x234.google.com (mail-pa0-x234.google.com [IPv6:2607:f8b0:400e:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D882D24B0 for ; Mon, 11 Nov 2013 16:36:30 +0000 (UTC) Received: by mail-pa0-f52.google.com with SMTP id kl14so41579pab.11 for ; Mon, 11 Nov 2013 08:36:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=izTDs1yjBaOnfHhOmOUpcz1wIZX03mY1h+klv52M13c=; b=vcwW1+hyZRIlag07Z88nCqTfp8EZcmaaiqXSDPoMn0gCp4/VN2snvTbN20sxZTjUFp ImFWgkbfA77c6jwMmaHM0PiIty8oFz/ZLu4DcCfFyx2hockxkK4DpLcWDw1G2WLDCHkm l9UtZAH+vst2i42rioQ004vCbo3bEoyRv4S8ylTul+H3EPrJWqlCsyCj66OPKVETw3nJ XaQ1kIdXqNVveArJXloG3DgBWiqDwnLAXsY57T3dNoyRqKDHIYe8oiypoez8GOy/S+wY 3HMkRDunIdVzKY05zpCAWhcLGiTzN1I0BoaO8m1hUR5p/90vwzDYGY4MjXyKa3ZqskgV eh2w== X-Received: by 10.66.142.193 with SMTP id ry1mr3770957pab.150.1384187790368; Mon, 11 Nov 2013 08:36:30 -0800 (PST) Received: from [192.168.0.101] (c-69-181-126-139.hsd1.ca.comcast.net. [69.181.126.139]) by mx.google.com with ESMTPSA id oj6sm37168051pab.9.2013.11.11.08.36.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Nov 2013 08:36:29 -0800 (PST) References: Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: X-Mailer: iPhone Mail (11B511) From: Neel Natu Subject: Re: Bhyve virtio-net on Linux guest Date: Mon, 11 Nov 2013 08:36:22 -0800 To: Tetsuya Mukawa 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, 11 Nov 2013 16:36:31 -0000 Hi, > On Nov 7, 2013, at 4:21 AM, Tetsuya Mukawa wrote: >=20 > Hi folks, >=20 > I want to run a Linux guest on Bhyve. > It seems very recently Bhyve supports a linux guest, so I am a bit worry > about I can use a virtio-net. > Someone, could you please let me know is it possible to use a virtio-net o= n > Linux guest? >=20 Yes it is possible to use virtio-net from a Linux guest inside a bhyve virtu= al machine. Best Neel > -- > Tetsuya > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freeb= sd.org" From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 18:19:50 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 28192EE7 for ; Mon, 11 Nov 2013 18:19:50 +0000 (UTC) (envelope-from abgupta@microsoft.com) Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2lp0235.outbound.protection.outlook.com [207.46.163.235]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DD9982BFE for ; Mon, 11 Nov 2013 18:19:48 +0000 (UTC) Received: from BL2PR03MB210.namprd03.prod.outlook.com (10.255.230.144) by BL2PR03MB212.namprd03.prod.outlook.com (10.255.230.151) with Microsoft SMTP Server (TLS) id 15.0.815.6; Mon, 11 Nov 2013 18:19:47 +0000 Received: from BL2PR03MB210.namprd03.prod.outlook.com ([169.254.1.137]) by BL2PR03MB210.namprd03.prod.outlook.com ([169.254.1.137]) with mapi id 15.00.0815.000; Mon, 11 Nov 2013 18:19:46 +0000 From: "Abhishek Gupta (LIS)" To: "freebsd-virtualization@freebsd.org" Subject: Use of Floppy Drive with FreeBSD Virtual Machines Thread-Topic: Use of Floppy Drive with FreeBSD Virtual Machines Thread-Index: Ac7fCkvDb2LXFSnUTum9MIIqNVfZtg== Date: Mon, 11 Nov 2013 18:19:45 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2001:4898:80e8:ed31::3] x-forefront-prvs: 0027ED21E7 x-forefront-antispam-report: SFV:NSPM; SFS:(189002)(199002)(164054003)(53754006)(74706001)(33646001)(49866001)(59766001)(77982001)(74502001)(74662001)(47446002)(76482001)(4396001)(31966008)(47736001)(77096001)(47976001)(50986001)(54316002)(81342001)(74316001)(56816003)(56776001)(83322001)(87266001)(46102001)(74876001)(54356001)(81816001)(51856001)(53806001)(81542001)(83072001)(69226001)(63696002)(2656002)(80022001)(85806002)(76176001)(74366001)(81686001)(76576001)(79102001)(80976001)(65816001)(76796001)(76786001)(87936001)(85306002)(3826001)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB212; H:BL2PR03MB210.namprd03.prod.outlook.com; CLIP:2001:4898:80e8:ed31::3; FPR:; RD:InfoNoRecords; MX:1; A:1; LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com 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, 11 Nov 2013 18:19:50 -0000 Hi everyone, Is anybody using floppy disk drives with virtual machines on Hyper-V or any= other hypervisor? I would be interested in knowing both common and obscure= scenarios. Please let me know if you have any thoughts in this direction. =20 Thanks, Abhishek Gupta Program Manager, BSD Integration Services Microsoft Corporation From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 18:21:39 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 312CAFAA for ; Mon, 11 Nov 2013 18:21:39 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-oa0-x235.google.com (mail-oa0-x235.google.com [IPv6:2607:f8b0:4003:c02::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EFA6A2C47 for ; Mon, 11 Nov 2013 18:21:38 +0000 (UTC) Received: by mail-oa0-f53.google.com with SMTP id k1so392519oag.12 for ; Mon, 11 Nov 2013 10:21:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mj6sKEJ8YHCXN1ifa3uJVAPsGmRuwYTsmeV/iAp3fQ4=; b=ItJaJkss1UlgTF72v9YGkUN53fG6o+3edgPRNwZAs0isOGIaAm3eXo6trytN7GcZCl GrWNiY+9ZQyeJkwQzwAKUcLvXl2+7PykKg7JtrpeL8yBma3MZwnDZhsXMF2n6pSLu39f 6wqTEEo03oTM2MCB4+jstxp9zeh5bhdeWFzymgjvE/xcmyNPcaPEXp5Q5aBhl4YI01zf 5aguQVb2THgFW2mYJ6/2XGItBmxUq7SaNk4B9hMeG9DG1AXBC+vJUJCnSecRItJ4f3IN xL28EFCCsqDSYpsmwZ6P25aLG9qmYxY/CJnokBPA1OoiuqfS4eBUqAg7uanVyFsK+2bw hn9g== MIME-Version: 1.0 X-Received: by 10.60.120.69 with SMTP id la5mr2562024oeb.86.1384194098207; Mon, 11 Nov 2013 10:21:38 -0800 (PST) Received: by 10.76.28.2 with HTTP; Mon, 11 Nov 2013 10:21:38 -0800 (PST) In-Reply-To: References: Date: Mon, 11 Nov 2013 13:21:38 -0500 Message-ID: Subject: Re: Use of Floppy Drive with FreeBSD Virtual Machines From: Outback Dingo To: "Abhishek Gupta (LIS)" 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, 11 Nov 2013 18:21:39 -0000 On Mon, Nov 11, 2013 at 1:19 PM, Abhishek Gupta (LIS) wrote: > Hi everyone, > > Is anybody using floppy disk drives with virtual machines on Hyper-V or > any other hypervisor? I would be interested in knowing both common and > obscure scenarios. Please let me know if you have any thoughts in this > direction. > > Thanks, > Abhishek Gupta > Program Manager, BSD Integration Services > Microsoft Corporation > kinda odd, as you cant even buy a floppy disk anymore > > _______________________________________________ > 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 Nov 11 18:23: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]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F1349FF9 for ; Mon, 11 Nov 2013 18:23:02 +0000 (UTC) (envelope-from abgupta@microsoft.com) Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2lp0240.outbound.protection.outlook.com [207.46.163.240]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ABA9F2C55 for ; Mon, 11 Nov 2013 18:23:02 +0000 (UTC) Received: from BL2PR03MB210.namprd03.prod.outlook.com (10.255.230.144) by BL2PR03MB212.namprd03.prod.outlook.com (10.255.230.151) with Microsoft SMTP Server (TLS) id 15.0.815.6; Mon, 11 Nov 2013 18:22:55 +0000 Received: from BL2PR03MB210.namprd03.prod.outlook.com ([169.254.1.137]) by BL2PR03MB210.namprd03.prod.outlook.com ([169.254.1.137]) with mapi id 15.00.0815.000; Mon, 11 Nov 2013 18:22:55 +0000 From: "Abhishek Gupta (LIS)" To: Outback Dingo Subject: RE: Use of Floppy Drive with FreeBSD Virtual Machines Thread-Topic: Use of Floppy Drive with FreeBSD Virtual Machines Thread-Index: Ac7fCkvDb2LXFSnUTum9MIIqNVfZtgAAJCYAAAAHk4A= Date: Mon, 11 Nov 2013 18:22:54 +0000 Message-ID: <3743122b16264bb3ae55f805937df77f@BL2PR03MB210.namprd03.prod.outlook.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2001:4898:80e8:ed31::3] x-forefront-prvs: 0027ED21E7 x-forefront-antispam-report: SFV:NSPM; SFS:(377454003)(189002)(199002)(164054003)(24454002)(53754006)(19609705001)(74706001)(33646001)(49866001)(59766001)(77982001)(74502001)(74662001)(47446002)(76482001)(4396001)(31966008)(47736001)(77096001)(47976001)(50986001)(15975445006)(54316002)(81342001)(74316001)(56816003)(16236675002)(56776001)(83322001)(19580405001)(87266001)(46102001)(74876001)(19580395003)(54356001)(1411001)(81816001)(51856001)(53806001)(81542001)(83072001)(69226001)(63696002)(2656002)(80022001)(85806002)(19300405004)(74366001)(81686001)(76576001)(15202345003)(79102001)(80976001)(65816001)(76796001)(76786001)(87936001)(85306002)(3826001)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB212; H:BL2PR03MB210.namprd03.prod.outlook.com; CLIP:2001:4898:80e8:ed31::3; FPR:; RD:InfoNoRecords; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-OriginatorOrg: microsoft.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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, 11 Nov 2013 18:23:03 -0000 Yep, completely agree but just want to know if someone has a use case. Thanks, Abhishek From: Outback Dingo [mailto:outbackdingo@gmail.com] Sent: Monday, November 11, 2013 10:22 AM To: Abhishek Gupta (LIS) Cc: freebsd-virtualization@freebsd.org Subject: Re: Use of Floppy Drive with FreeBSD Virtual Machines On Mon, Nov 11, 2013 at 1:19 PM, Abhishek Gupta (LIS) > wrote: Hi everyone, Is anybody using floppy disk drives with virtual machines on Hyper-V or any= other hypervisor? I would be interested in knowing both common and obscure= scenarios. Please let me know if you have any thoughts in this direction. Thanks, Abhishek Gupta Program Manager, BSD Integration Services Microsoft Corporation kinda odd, as you cant even buy a floppy disk anymore _______________________________________________ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebs= d.org" From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 18:25:57 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6C09EF4 for ; Mon, 11 Nov 2013 18:25:57 +0000 (UTC) (envelope-from Kamil.Choudhury@anserinae.net) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.225]) by mx1.freebsd.org (Postfix) with ESMTP id 2B47F2C72 for ; Mon, 11 Nov 2013 18:25:56 +0000 (UTC) Received: from [74.73.121.187] ([74.73.121.187:58071] helo=janus.anserinae.net) by cdptpa-oedge01 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 07/40-02506-33121825; Mon, 11 Nov 2013 18:25:56 +0000 Received: from JANUS.anserinae.net ([fe80::192c:4b89:9fe9:dc6d]) by janus.anserinae.net ([fe80::192c:4b89:9fe9:dc6d%11]) with mapi id 14.03.0123.003; Mon, 11 Nov 2013 13:25:55 -0500 From: Kamil Choudhury To: Outback Dingo , "Abhishek Gupta (LIS)" Subject: RE: Use of Floppy Drive with FreeBSD Virtual Machines Thread-Topic: Use of Floppy Drive with FreeBSD Virtual Machines Thread-Index: Ac7fCkvDb2LXFSnUTum9MIIqNVfZtgAKnlsA//+syn4= Date: Mon, 11 Nov 2013 18:25:54 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [204.4.182.16] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-RR-Connecting-IP: 107.14.168.118:25 X-Cloudmark-Score: 0 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, 11 Nov 2013 18:25:57 -0000 > kinda odd, as you cant even buy a floppy disk anymore=0A= =0A= Not so!=0A= =0A= I just bought one package of this as a gag gift for a friend's birthday: = =0A= =0A= http://www.amazon.com/Verbatim-3-5In-1-44MB-Pre-Fmt-10Pk/dp/B0000511BI/=0A= =0A= Paying $10 for ~15MB of storage was a mindblowing experience :) = From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 18:58:50 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C8741648 for ; Mon, 11 Nov 2013 18:58:50 +0000 (UTC) (envelope-from editor@callfortesting.org) Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9E1702E2A for ; Mon, 11 Nov 2013 18:58:50 +0000 (UTC) Received: by mail-pb0-f43.google.com with SMTP id md4so5579866pbc.16 for ; Mon, 11 Nov 2013 10:58:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=D5WXkN6XVGauR4rgDDn3lA6BcKZBNG8AIFegAFak/No=; b=NHGHagMtp5QjGIHULQ6Pa+7+L5ZctbUegYQi1B27ydQ1IrqmScYxCQcPd8N8UVkFC0 sqKVKUSls1jOZh4QjJsSW8NLqOAGrw0M8fkytKji9vndemUYbCqnRbjtp1hqCSXlnlsk lngyz05Zee+tgpaonrDdCmHBdOY1YUdChGq6PTF0Yz14j4EFZt6I471qP2ylBS5Qf9OT h0kt7XVZMSdcfxUpwVuSrAOrFUzP2/IjYByjHvUZR1fAHmaQRzHaOEcAmGanfnTo5e2K pqai9xbPfBDe9aKQA3jht1anfCqBTI7F6whd+7yZ0nLNOiVdu69Ayschw/c+BArmN3fs rtGQ== X-Gm-Message-State: ALoCoQmcMKRGdr/wDp76UT7eoy2cbjhFzckbhAt9B6UTyeHBbTRNcb1WHHD8oysaxo5e255lKb5x X-Received: by 10.66.139.130 with SMTP id qy2mr32718358pab.73.1384196324170; Mon, 11 Nov 2013 10:58:44 -0800 (PST) Received: from Michaels-MacBook-Pro.local (c-98-246-202-204.hsd1.or.comcast.net. [98.246.202.204]) by mx.google.com with ESMTPSA id vk17sm37886574pab.5.2013.11.11.10.58.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Nov 2013 10:58:43 -0800 (PST) Message-ID: <528128E2.6000006@callfortesting.org> Date: Mon, 11 Nov 2013 10:58:42 -0800 From: Michael Dexter User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org, "Abhishek Gupta (LIS)" Subject: Re: Use of Floppy Drive with FreeBSD Virtual Machines References: 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: Mon, 11 Nov 2013 18:58:50 -0000 Abhishek, My single use case this last few years has been for BIOS updates and given that one could use PCI pass-through to expose say, an LSI storage controller to a virtual machine, there may indeed be a use case. Michael Dexter On 11/11/13 10:19 AM, Abhishek Gupta (LIS) wrote: > Hi everyone, > > Is anybody using floppy disk drives with virtual machines on Hyper-V or any other hypervisor? I would be interested in knowing both common and obscure scenarios. Please let me know if you have any thoughts in this direction. > > Thanks, > Abhishek Gupta > Program Manager, BSD Integration Services > Microsoft Corporation > > _______________________________________________ > 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 Nov 11 19:37:23 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B01802A6 for ; Mon, 11 Nov 2013 19:37:23 +0000 (UTC) (envelope-from abgupta@microsoft.com) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1lp0152.outbound.protection.outlook.com [207.46.163.152]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6A19920FF for ; Mon, 11 Nov 2013 19:37:22 +0000 (UTC) Received: from BL2PR03MB210.namprd03.prod.outlook.com (10.255.230.144) by BL2PR03MB212.namprd03.prod.outlook.com (10.255.230.151) with Microsoft SMTP Server (TLS) id 15.0.815.6; Mon, 11 Nov 2013 19:37:15 +0000 Received: from BL2PR03MB210.namprd03.prod.outlook.com ([169.254.1.137]) by BL2PR03MB210.namprd03.prod.outlook.com ([169.254.1.137]) with mapi id 15.00.0815.000; Mon, 11 Nov 2013 19:37:14 +0000 From: "Abhishek Gupta (LIS)" To: Michael Dexter , "freebsd-virtualization@freebsd.org" Subject: RE: Use of Floppy Drive with FreeBSD Virtual Machines Thread-Topic: Use of Floppy Drive with FreeBSD Virtual Machines Thread-Index: Ac7fCkvDb2LXFSnUTum9MIIqNVfZtgABb40AAAE77pA= Date: Mon, 11 Nov 2013 19:37:13 +0000 Message-ID: <8c6f3f012fc94908bf6a40cdd0d235d7@BL2PR03MB210.namprd03.prod.outlook.com> References: <528128E2.6000006@callfortesting.org> In-Reply-To: <528128E2.6000006@callfortesting.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2001:4898:80e8:ed31::3] x-forefront-prvs: 0027ED21E7 x-forefront-antispam-report: SFV:NSPM; SFS:(53754006)(43784003)(51704005)(189002)(199002)(479174003)(377454003)(13464003)(164054003)(24454002)(81542001)(81816001)(53806001)(51856001)(80022001)(85806002)(69226001)(83072001)(63696002)(2656002)(19580405001)(56776001)(83322001)(87266001)(19580395003)(74876001)(54356001)(46102001)(80976001)(87936001)(76796001)(76786001)(85306002)(65816001)(74366001)(76576001)(79102001)(15202345003)(81686001)(4396001)(76482001)(47736001)(77096001)(31966008)(33646001)(74706001)(59766001)(77982001)(74662001)(47446002)(74502001)(49866001)(54316002)(81342001)(56816003)(74316001)(50986001)(15975445006)(47976001)(24736002)(3826001); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB212; H:BL2PR03MB210.namprd03.prod.outlook.com; CLIP:2001:4898:80e8:ed31::3; FPR:; RD:InfoNoRecords; MX:1; A:1; LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com 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, 11 Nov 2013 19:37:23 -0000 Hi Michael, Thanks so much for replying. Some follow up questions: a) Is it not possible to use an ISO file to do the BIOS updates? b) I did not quite understand your second comment on why PCI pass through m= ay promote floppy disk use. Please could you elaborate a bit more? Thanks again for your help with this. Regards, Abhishek =20 -----Original Message----- From: Michael Dexter [mailto:editor@callfortesting.org]=20 Sent: Monday, November 11, 2013 10:59 AM To: freebsd-virtualization@freebsd.org; Abhishek Gupta (LIS) Subject: Re: Use of Floppy Drive with FreeBSD Virtual Machines Abhishek, My single use case this last few years has been for BIOS updates and given = that one could use PCI pass-through to expose say, an LSI storage controlle= r to a virtual machine, there may indeed be a use case. Michael Dexter On 11/11/13 10:19 AM, Abhishek Gupta (LIS) wrote: > Hi everyone, >=20 > Is anybody using floppy disk drives with virtual machines on Hyper-V or a= ny other hypervisor? I would be interested in knowing both common and obscu= re scenarios. Please let me know if you have any thoughts in this direction= . > =20 > Thanks, > Abhishek Gupta > Program Manager, BSD Integration Services Microsoft Corporation >=20 > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list=20 > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@free= bsd.org" >=20 From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 21:33:33 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6262AB81 for ; Mon, 11 Nov 2013 21:33:33 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3191B295D for ; Mon, 11 Nov 2013 21:33:32 +0000 (UTC) Received: from julian-mbp3.pixel8networks.com (50-196-156-133-static.hfc.comcastbusiness.net [50.196.156.133]) (authenticated bits=0) by vps1.elischer.org (8.14.7/8.14.7) with ESMTP id rABLXQgh071703 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 11 Nov 2013 13:33:26 -0800 (PST) (envelope-from julian@freebsd.org) Message-ID: <52814D25.1050603@freebsd.org> Date: Mon, 11 Nov 2013 13:33:25 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: Re: Running `sysctl -a` causes crash (Hyper-V) 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: Mon, 11 Nov 2013 21:33:33 -0000 On 11/11/13, 7:49 AM, Pavel Timofeev wrote: > Great, it helped! Thanks a lot! the suggested change suggests fragile code. It should be able to handle unexpected input.. > > 2013/11/11 Sergey Kandaurov : >> On 11 November 2013 18:13, Pavel Timofeev wrote: >>> [...] >>> (kgdb) p vm_guest >>> $1 = 3 >>> Current language: auto; currently minimal >>> (kgdb) >>> >> What if you try this change? >> >> Index: sys/kern/subr_param.c >> =================================================================== >> --- sys/kern/subr_param.c (revision 257695) >> +++ sys/kern/subr_param.c (working copy) >> @@ -153,6 +153,7 @@ >> "none", >> "generic", >> "xen", >> + "hv", >> NULL >> }; > _______________________________________________ > 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 Nov 12 03:02:05 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 786162FB; Tue, 12 Nov 2013 03:02:05 +0000 (UTC) Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [IPv6:2a00:1450:400c:c00::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E1F6339CB; Tue, 12 Nov 2013 03:02:04 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id x12so964631wgg.13 for ; Mon, 11 Nov 2013 19:02:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=opjSfhJ/JucR8+28uShqpW91JlXrf1yufjva7yraYNY=; b=D0iEMx2aEfEJav0WDM/H8gZkKai5KA6ACLKNzflP0QSWp3YHRkAZdtUAKpOejuw7vu 3Y/XQH8rf3+w1nS9d2vjPKff72VI7mcWZJJwGZfmGcxe1yUTi6ZJZxHL0AWuZIrzEUjc nDWr5oT7mbQ8ieNeizYwTLDv95NePjGGQnpVUANH26MP/3q6xqEcqaqPJ7xk41Lzi28y KqTjzpQPpPDhVf7W7r5cVZ1WJDGEb3frqXLqvqY4837WOJeFk8r2A18AENqZZKPQEE20 O+dxznB1AkO3m8WygkOsx+UlBwy+31BZ/ANNWpz1O8pXcYKLNZ5lGQD8kfIeORvKzxp+ f3Yg== X-Received: by 10.180.211.237 with SMTP id nf13mr14338011wic.55.1384225319434; Mon, 11 Nov 2013 19:01:59 -0800 (PST) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPSA id gm2sm6246423wib.4.2013.11.11.19.01.57 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 11 Nov 2013 19:01:58 -0800 (PST) Date: Tue, 12 Nov 2013 04:01:55 +0100 From: Mateusz Guzik To: Julian Elischer Subject: Re: Running `sysctl -a` causes crash (Hyper-V) Message-ID: <20131112030154.GA29757@dft-labs.eu> References: <52814D25.1050603@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <52814D25.1050603@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 03:02:05 -0000 On Mon, Nov 11, 2013 at 01:33:25PM -0800, Julian Elischer wrote: > On 11/11/13, 7:49 AM, Pavel Timofeev wrote: > >Great, it helped! Thanks a lot! > > the suggested change suggests fragile code. It should be able to > handle unexpected input.. Indeed, I already suggested Sergey placing a compile time assertion to make sure vm_guest range is covered. > > > >2013/11/11 Sergey Kandaurov : > >>On 11 November 2013 18:13, Pavel Timofeev wrote: > >>>[...] > >>>(kgdb) p vm_guest > >>>$1 = 3 > >>>Current language: auto; currently minimal > >>>(kgdb) > >>> > >>What if you try this change? > >> > >>Index: sys/kern/subr_param.c > >>=================================================================== > >>--- sys/kern/subr_param.c (revision 257695) > >>+++ sys/kern/subr_param.c (working copy) > >>@@ -153,6 +153,7 @@ > >> "none", > >> "generic", > >> "xen", > >>+ "hv", > >> NULL > >> }; > >_______________________________________________ > >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" > > > > _______________________________________________ > 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" -- Mateusz Guzik From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 12 06:13:20 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F056ADE6 for ; Tue, 12 Nov 2013 06:13:20 +0000 (UTC) Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C7B1D220B for ; Tue, 12 Nov 2013 06:13:20 +0000 (UTC) Received: by mail-pd0-f174.google.com with SMTP id z10so6375336pdj.5 for ; Mon, 11 Nov 2013 22:13:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=6S0HlL3NE2jrdFj/oLDgw23GhZKbFyCxlluxV2ICCCs=; b=X6G/tBlKMKjfmkym2PVZe1OUHz/+a05weNeAdRjFeIrS1XcR0s6Ybb6dq7TmX6dGQy Df+V/NBOqWv5QsnrPrc7yPinZGdhIMcZ1XwwCQvMW4jzVhyzOosgIpMJ02kk11vdGy/m ZlKuqF+Bxp7g3V2OWtuZW7pfRC2NAn3fiKifai0aamtrWIy+kdF0C/kU/i6lUDn7+RSh Hhw9U9NhkC/QUaq0iP6lZRvmC+jOhVV1W1nThaBXkJr3OR/2KiapTcxkSP6jjICuyngF 1Q8uXxbI+1KfnC+GqJfjxONB5uuxy6orTHMdgTou6inDBj0Q6bD1uPx1pfVjBUxJOgkN uR8g== X-Gm-Message-State: ALoCoQm+uCmNrv3W/RxDEIfc3vN5lmU6K7cmzvFumyxlDWMy8zGDigJ0Ul36Z96jXcFy/HlSa3n7 X-Received: by 10.68.17.132 with SMTP id o4mr33881445pbd.44.1384236794576; Mon, 11 Nov 2013 22:13:14 -0800 (PST) Received: from Michaels-MacBook-Pro.local (c-98-246-202-204.hsd1.or.comcast.net. [98.246.202.204]) by mx.google.com with ESMTPSA id ef10sm14680305pac.1.2013.11.11.22.13.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Nov 2013 22:13:13 -0800 (PST) Message-ID: <5281C6F9.8040109@callfortesting.org> Date: Mon, 11 Nov 2013 22:13:13 -0800 From: Michael Dexter User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: "Abhishek Gupta (LIS)" , "freebsd-virtualization@freebsd.org" Subject: Re: Use of Floppy Drive with FreeBSD Virtual Machines References: <528128E2.6000006@callfortesting.org> <8c6f3f012fc94908bf6a40cdd0d235d7@BL2PR03MB210.namprd03.prod.outlook.com> In-Reply-To: <8c6f3f012fc94908bf6a40cdd0d235d7@BL2PR03MB210.namprd03.prod.outlook.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 06:13:21 -0000 Hello Abhishek, On 11/11/13 11:37 AM, Abhishek Gupta (LIS) wrote: > Thanks so much for replying. Some follow up questions: > > a) Is it not possible to use an ISO file to do the BIOS updates? I have not. > b) I did not quite understand your second comment on why PCI pass > through may promote floppy disk use. Please could you elaborate a bit > more? The scenario I see the most is a virtualized (HyperV, VMware etc.) FreeNAS guest to which you pass a PCIe storage controller card to so that ZFS is given "bare metal" access to hardware disks yet has the benefit of the fast internal backplane if you will for networking, rather than going over copper or optical network interfaces. Because the FreeNAS guest may be one among many, it would not be desirable to reboot the whole system and boot to a floppy to apply a BIOS update to a PCIe controller card. Again, I have not tried anything like this but it is a possible use case of what you describe. Also mind you I never want to see another floppy-based BIOS again but they are still out there. Michael From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 12 07:44:46 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 90EB3BBB for ; Tue, 12 Nov 2013 07:44:46 +0000 (UTC) Received: from mail-vb0-x22d.google.com (mail-vb0-x22d.google.com [IPv6:2607:f8b0:400c:c02::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4B83A2692 for ; Tue, 12 Nov 2013 07:44:46 +0000 (UTC) Received: by mail-vb0-f45.google.com with SMTP id p6so4031433vbe.32 for ; Mon, 11 Nov 2013 23:44:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=6JkjRlwrNtZmEE5RG8qLaQGDL4O2oifS7gXLJXulCdg=; b=asHWJWiwEGILixYIHP+xZQel5IYaVdlrqE+FH4VAAvH3shVQLibB4AOOUad68FD49B im/Hfv26LgfR6nsVdJQCjMKSJcTVzCzNGPCatB0lY51Gk4oWCTvvjXsqMScSKTVa0bj6 CcDrM01P9H+opZCAwDznEQvyJ1Fm3VymfPVSk5XHtWYfkJIBTeBwkca/iwAjLl02JBT7 ALUXJgZUuZLdBDRcPGeD4gGrNVOk49czRNAEwuqbTOuYJ+TKnIhpkDcmCe0Y/z0Jj/ZC cgNcbV4jzyxh1c1tRJsJvAQ6CuTCRUjU5zHsLlHnDro8qQQX6vA++WJ9qzDzndfp8Qev 6CJg== X-Received: by 10.58.118.84 with SMTP id kk20mr1581393veb.26.1384242285411; Mon, 11 Nov 2013 23:44:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.190.133 with HTTP; Mon, 11 Nov 2013 23:44:25 -0800 (PST) From: Prakhar Deep Date: Tue, 12 Nov 2013 13:14:25 +0530 Message-ID: Subject: 32-bit guest on Bhyve To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 07:44:46 -0000 Hi, We have a requirement to run a 32-bit propritery OS on Bhyve. While going through www.bhyve.org, i can across these 2 points: Q: What guest operating systems does bhyve support? A: bhyve supports any version of FreeBSD with VirtIO support, plus OpenBSD and GNU/Linux using the sysutils/grub2-bhyve port to load them: - FreeBSD 8.4-RELEASE and 8-STABLE - FreeBSD 9.2-RELEASE and 9-STABLE - FreeBSD 10 (All versions) - FreeBSD 11-CURRENT - OpenBSD HEAD as of late October, 2013 - GNU/Linux Q: Could bhyve support i386 VMs? A: Yes, in theory. What is your use case? In answer to first question it has been mentioned that ANY versions of FreeBSD can be run as Guest on Bhyve however the second point says i386 only in theory. What does this mean ? When i searched more on this i came across these two links: 1. http://freebsd.1045724.n5.nabble.com/Three-observations-on-Bhyve-td5854956.html This talks about not being able to boot i386 kernel ISO over Bhyve 2. http://feedbsd.org/discussion/380052/i386183400-bhyve-cannot-load-an-i386-kernel This bug report on the issue reported in link 1 above. This issue seems to be fairly recent. Can someone let me know which kernels does Bhyve support ? 32-bit or 64-bit ? From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 12 08:25:51 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8638A80E for ; Tue, 12 Nov 2013 08:25:51 +0000 (UTC) Received: from mail-pb0-f42.google.com (mail-pb0-f42.google.com [209.85.160.42]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5F4AD28EE for ; Tue, 12 Nov 2013 08:25:51 +0000 (UTC) Received: by mail-pb0-f42.google.com with SMTP id uo5so2374738pbc.29 for ; Tue, 12 Nov 2013 00:25:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=byYoDgSVyc4gx70MQJl4cKTwbSTCtIqz3NEZjOg5cPM=; b=ezfZciIuYmIG4Ekx7p5+dsOAITDOmRLSAaDDHwbkN0NgVp51aISWDi/Ictrs4UFkQ9 cZbkAakd7mpT32Akly+2yIMNhYlIbfdrrtgtd4znl9gWynPfES5KOb5bBzuSNY6yLSka u4sKxV1n0yQ3dfdT33oJru3rOxRz8ma1/uQVKf1gGXlvsP24XXvQXbAOnkLAdGlW9E3C Dfto40+JwhPOtgfbl8axSF+jSSJAm8oOuzAhI7lezRjDyyUDBPn+345tZCAIlDMSXpPx AIwrxP7l597RrHUAURnAEvP/iY12CDVfsBdEKIQQM5yR77NtslDJVnZ1H20c0svezEjq 8lkQ== X-Gm-Message-State: ALoCoQn3bZAwOTG3fGL8mS6qAb57YK7MEWBY6OUVWWgQQO/1GAFeDjgjnVS/QbAQe92w2Qw3IIn1 X-Received: by 10.66.118.71 with SMTP id kk7mr35440783pab.14.1384244744657; Tue, 12 Nov 2013 00:25:44 -0800 (PST) Received: from Michaels-MacBook-Pro.local (c-98-246-202-204.hsd1.or.comcast.net. [98.246.202.204]) by mx.google.com with ESMTPSA id pu5sm41919297pac.21.2013.11.12.00.25.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Nov 2013 00:25:43 -0800 (PST) Message-ID: <5281E606.5090902@callfortesting.org> Date: Tue, 12 Nov 2013 00:25:42 -0800 From: Michael Dexter User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Prakhar Deep Subject: Re: 32-bit guest on Bhyve References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 08:25:51 -0000 On 11/11/13 11:44 PM, Prakhar Deep wrote: > Can someone let me know which kernels does Bhyve support ? 32-bit or 64-bit? bhyve only supports amd64 VM kernels at this time and I have clarified this point on bhyve.org i386 support is indeed theoretically possible if your proprietary OS can provide VirtIO devices as needed for your application. Michael From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 12 08:50:30 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A82BA91 for ; Tue, 12 Nov 2013 08:50:30 +0000 (UTC) Received: from mail-pb0-f52.google.com (mail-pb0-f52.google.com [209.85.160.52]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 826412A3F for ; Tue, 12 Nov 2013 08:50:29 +0000 (UTC) Received: by mail-pb0-f52.google.com with SMTP id rr4so6573779pbb.25 for ; Tue, 12 Nov 2013 00:50:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=Ia5s2smj+ki381k65cXlBlZB5ScJPxXrWZBNRhnIz5I=; b=GdJRot7OHINob8c4Jb8itO8CCZqvzir9ZcQEINqdHzxdmKrEymOdY73SiCTlwynCAl E1G53GT3DvruomQ5dwWqnNw03NZigvpsfoRqyWM49IgGsaMxVUbJbaHBExc++JuloVEm D/fjaicY4GCyiyeUhzrWK2QchWy2noi+2Yip8iqwKLy8nj/gCLJ9kwbcsQGHZd5bQVHi wUzaomYVspIv21Rf/NeBvFCoE7ono2w80McHmaLCuSERZbbA6cKG3/rd2D9gof3/TBUH Op5Gz4CsrRJRhD4ZpjvmP5tXjrMAqsvj0uFL3yqi/j4iU5MBMzb7OaMY/P2e7m+f1FVe rwBA== X-Gm-Message-State: ALoCoQkGyY+zV+ZB6Tffh/kP402E7kaDIpwWFsOnZt11+ZQXDr247pgRKtSCdwKy9aJM8YzbOCyQ X-Received: by 10.66.25.239 with SMTP id f15mr10944728pag.136.1384246228568; Tue, 12 Nov 2013 00:50:28 -0800 (PST) Received: from Michaels-MacBook-Pro.local (c-98-246-202-204.hsd1.or.comcast.net. [98.246.202.204]) by mx.google.com with ESMTPSA id tu6sm35952340pbc.41.2013.11.12.00.50.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Nov 2013 00:50:27 -0800 (PST) Message-ID: <5281EBD2.2000305@callfortesting.org> Date: Tue, 12 Nov 2013 00:50:26 -0800 From: Michael Dexter User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: "freebsd-virtualization@freebsd.org" Subject: Updated bhyve-script for FreeBSD, FreeNAS, pfSense, OpenBSD and Linux VMs Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 08:50:30 -0000 Hello all, I have posted an updated bhyve-script.tar to bhyve.org that collectively includes preliminary support for amd64 FreeNAS, pfSense, OpenBSD and Linux VMs in addition to FreeBSD 9, 10 and 11 ones. http://bhyve.org/bhyve-script.tar This is all experimental and you will probably encounter flaws from a myriad of sources such as your CPU clock speed in some cases or QA shortcomings for want of a larger pool of beta testers. Everything included in the set of scripts is designed to speed bhyve testing and provide ideas for configuration possibilities. If all requirements are met, you should be able to simply type as root: sh vm0 provision sh vm-hostprep.sh sh vm0 start ... and end up with a booting FreeBSD 11 VM on a 10-BETA2 or BETA3 host. Read the vm0 script for the documentation and customization options and I have included helper scripts such as vm-copy.sh to quickly make copies of a provisioned VM for stress testing. Reminder: bhyve requires Extended Page Tables (EPT) which accompany "POPCNT" in your dmesg and should available on any Intel "Core i*" CPU. Feedback welcome! Michael Dexter bhyve Volunteer From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 12 10:38:25 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EED26697 for ; Tue, 12 Nov 2013 10:38:25 +0000 (UTC) Received: from mail-pb0-x229.google.com (mail-pb0-x229.google.com [IPv6:2607:f8b0:400e:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CDAEC2119 for ; Tue, 12 Nov 2013 10:38:25 +0000 (UTC) Received: by mail-pb0-f41.google.com with SMTP id jt11so478491pbb.14 for ; Tue, 12 Nov 2013 02:38:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=6tYIGSMsHwYqq4JH+dzL5iWjkIQEYoe/PV6eW808T58=; b=rY5saLcvq9NR18zkIHG3X6dCGmYhPhG/sVyCJj2uXoUZL/fpYkfw2hxsYL1OY948bl gyOEtO0Og7gUmEC3l6I5mZ99uDYjs7YKAGixpUOMnQXyaNJjKPca0jny/bXlUU6rHOtT 1L3/LQkyAa00b5TmjPeWftVO27kDDH7aR4mzCYfZn1GCY3Ml43l/m8NKQMY5nAMYHAv+ dFH/tgw3PCPBR2yX1RJC4fawngxMeUWA/7ROCPX/mr5udz7+9c3B1G3oF+JWAlBLFTxq GzOslu5EFUHw5T8di/3doFTjbG6olR2iSzh6NgVZpJxWJ3KCa2htJIZwJBlXWbw46O+0 lyfg== MIME-Version: 1.0 X-Received: by 10.66.118.233 with SMTP id kp9mr2194072pab.182.1384252705402; Tue, 12 Nov 2013 02:38:25 -0800 (PST) Received: by 10.68.185.130 with HTTP; Tue, 12 Nov 2013 02:38:25 -0800 (PST) Date: Tue, 12 Nov 2013 05:38:25 -0500 Message-ID: Subject: bhyve and guest rebooting From: Aryeh Friedman To: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 10:38:26 -0000 As far we can tell bhyve simply terminates on guest shutdown regardless of the reason (for example no difference [or we can find] in detecting if they typed "halt" or "reboot" {or some other internal method of shutting down the guest vm). Is there anyway for the caller to detect this and/or is it possible to set command line flags that enable bhyve to manage the reboot itself? From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 12 10:51:54 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 67E29C0F for ; Tue, 12 Nov 2013 10:51:54 +0000 (UTC) Received: from mail-vc0-x235.google.com (mail-vc0-x235.google.com [IPv6:2607:f8b0:400c:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 29CF621E5 for ; Tue, 12 Nov 2013 10:51:54 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id lf12so1816858vcb.12 for ; Tue, 12 Nov 2013 02:51:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pFcrFBX4hiBR3y4Yy9/CSeSUu9RbeVXoVIwO4FSlDEU=; b=kvSpSXS5vzzOakbFWJSYubjuuRYVOZ2W1duLCtkiFr6MpNcZEdC9VRCGpeFwSgNgqX ed/nvPEqJQ82nzzmHdf4Mq7TdNbJkEInBB70ghmyEH11cFgoQ/oapdVulzYnX7S10kcJ EPdMNRAVHKPZ7shyhAI5xoPxX5KYhyV3uYwiDD6A1Ct5xU7NN2YejTxvO/wgqoSlWEsz 8mm9ZX381sO0bATwDW1RynGCPFTmDtZTYHRR7B9HDik1dOAggW8zlSR6Y5jijSBVjPeF mgpgfvD6+xasjok6fKOOPW/hBRL/HH7R1tV9P2loDh59egwuGVmNAMM++WqDV4neTrop yHhg== MIME-Version: 1.0 X-Received: by 10.220.183.199 with SMTP id ch7mr2236470vcb.27.1384253512414; Tue, 12 Nov 2013 02:51:52 -0800 (PST) Received: by 10.52.168.106 with HTTP; Tue, 12 Nov 2013 02:51:52 -0800 (PST) In-Reply-To: References: <52794AB7.80600@freebsd.org> Date: Tue, 12 Nov 2013 14:51:52 +0400 Message-ID: Subject: Re: Hyper-V From: Pavel Timofeev To: Pavel Timofeev Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 10:51:54 -0000 So, we catched the bug that caused crash. Thanks to all. Cool! As regards the messages about "calcru": I tried to install CentOS 6.4 on new virt machine on same host system. Linux doesn't have any strange messages about time. I tried to migrate FreeBSD and CentOS virt machines to another host which has another hardware. Same story. For example, try to boot beta-3 in LIVE CD mode. You won't see calcru messages. But if you try to run 'dclient hn0' you'll see calcru message storm for some time. On already installed system I can cause messages by doing service zabbix_server start (even if it's not allowed in rc.conf (!)) But I can start mysql-server, zabbix_agentd, apache22 and it doesn't cause appearance of calcru messages. Any ideas? How and where can I dig? 2013/11/6 Pavel Timofeev : > Small fix: > kern.timecounter.hardware=TSC covered messages, but now it looks stange > % time sleep 30 > 20.24 real 0.00 user 0.00 sys > > 2013/11/6 Pavel Timofeev : >> I already tried disabling Hyper-v time syncing, setting >> kern.timecounter.hardware to different type from >> kern.timecounter.choice, setting kern.hz to different values. But >> nothing helped. >> I'll try to install CentOS 6.4 on this machine and see what happens. >> >> 2013/11/6 Pavel Timofeev : >>> Does anybody know how to disable Hyper-v time syncing it guest FreeBSD >>> OS? I'd like to try this one. >>> >>> 2013/11/6 Pavel Timofeev : >>>> Thank you very much! >>>> I started to dig, and found that I can reboot my server running under >>>> Hyper-V by doing 'sysctl -a'. >>>> Can anybody confirm same behavoiur? >>>> >>>> FreeBSD 10.0-BETA3, Win 2012 Datacenter >>>> >>>> 2013/11/5 Julian Elischer : >>>>> On 11/4/13, 11:13 PM, Pavel Timofeev wrote: >>>>>> >>>>>> Hi! I upgraded to 10.0-BETA3 but still see messages like >>>>>> >>>>>> Tue Nov 5 11:09:05 MSK 2013 >>>>>> calcru: runtime went backwards from 1728 usec to 889 usec for pid 981 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 1229 usec to 703 usec for pid 976 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 1019 usec to 595 usec for pid 978 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 3041 usec to 1611 usec for pid 969 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 1078 usec to 595 usec for pid 975 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 1114 usec to 617 usec for pid 980 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 1086 usec to 602 usec for pid 977 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 1195 usec to 782 usec for pid 970 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 3206 usec to 2157 usec for pid 979 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 2179 usec to 1542 usec for pid 972 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 1833 usec to 927 usec for pid 1026 >>>>>> (cron) >>>>>> calcru: runtime went backwards from 1091 usec to 551 usec for pid 1022 >>>>>> (sendmail) >>>>>> calcru: runtime went backwards from 823 usec to 416 usec for pid 1022 >>>>>> (sendmail) >>>>>> calcru: runtime went backwards from 4691 usec to 2735 usec for pid >>>>>> 1011 (sendmail) >>>>>> calcru: runtime went backwards from 1162 usec to 587 usec for pid 1011 >>>>>> (sendmail) >>>>>> calcru: runtime went backwards from 947 usec to 478 usec for pid 1010 >>>>>> (httpd) >>>>>> calcru: runtime went backwards from 895 usec to 452 usec for pid 1009 >>>>>> (httpd) >>>>>> calcru: runtime went backwards from 954 usec to 482 usec for pid 1008 >>>>>> (httpd) >>>>>> calcru: runtime went backwards from 909 usec to 459 usec for pid 1007 >>>>>> (httpd) >>>>>> calcru: runtime went backwards from 1214 usec to 653 usec for pid 1006 >>>>>> (httpd) >>>>>> calcru: runtime went backwards from 201793 usec to 102672 usec for pid >>>>>> 996 (httpd) >>>>>> calcru: runtime went backwards from 1105 usec to 1064 usec for pid 991 >>>>>> (sshd) >>>>>> calcru: runtime went backwards from 45196 usec to 23221 usec for pid >>>>>> 974 (zabbix_server) >>>>>> calcru: runtime went backwards from 2192 usec to 1436 usec for pid 973 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 605 usec to 306 usec for pid 968 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 626 usec to 316 usec for pid 967 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 773 usec to 391 usec for pid 966 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 663 usec to 335 usec for pid 965 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 799 usec to 404 usec for pid 964 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 37723 usec to 19422 usec for pid >>>>>> 963 (zabbix_server) >>>>>> calcru: runtime went backwards from 49425 usec to 26265 usec for pid >>>>>> 962 (zabbix_server) >>>>>> calcru: runtime went backwards from 38883 usec to 20993 usec for pid >>>>>> 961 (zabbix_server) >>>>>> calcru: runtime went backwards from 53478 usec to 27411 usec for pid >>>>>> 960 (zabbix_server) >>>>>> calcru: runtime went backwards from 40845 usec to 21750 usec for pid >>>>>> 959 (zabbix_server) >>>>>> calcru: runtime went backwards from 47835 usec to 24455 usec for pid >>>>>> 958 (zabbix_server) >>>>>> calcru: runtime went backwards from 2257 usec to 1612 usec for pid 957 >>>>>> (zabbix_server) >>>>>> calcru: runtime went backwards from 2361 usec to 1193 usec for pid 932 >>>>>> (zabbix_agentd) >>>>>> calcru: runtime went backwards from 32053 usec to 16204 usec for pid >>>>>> 928 (zabbix_server) >>>>>> calcru: runtime went backwards from 32517 usec to 19280 usec for pid 697 >>>>>> (sh) >>>>>> calcru: runtime went backwards from 1128021 usec to 868022 usec for pid >>>>>> 697 (sh) >>>>>> calcru: runtime went backwards from 9609 usec to 5601 usec for pid 601 >>>>>> (syslogd) >>>>>> calcru: runtime went backwards from 688 usec to 348 usec for pid 106 >>>>>> (adjkerntz) >>>>>> calcru: runtime went backwards from 12 usec to 6 usec for pid 3 >>>>>> (sctp_iterator) >>>>>> calcru: runtime went backwards from 5467 usec to 2853 usec for pid 2 >>>>>> (fdc0) >>>>>> calcru: runtime went backwards from 11306 usec to 8408 usec for pid 14 >>>>>> (rand_harvestq) >>>>>> calcru: runtime went backwards from 136242 usec to 76230 usec for pid 13 >>>>>> (geom) >>>>>> calcru: runtime went backwards from 156117 usec to 118882 usec for pid 12 >>>>>> (intr) >>>>>> calcru: runtime went backwards from 7820 usec to 4847 usec for pid 1 >>>>>> (init) >>>>>> calcru: runtime went backwards from 2340313 usec to 1226503 usec for >>>>>> pid 1 (init) >>>>>> calcru: runtime went backwards from 4114 usec to 2164 usec for pid 0 >>>>>> (kernel) >>>>>> >>>>>> >>>>>> Is it bad? Or I have to ignore them? >>>>> >>>>> >>>>> I'm not talking authoratatively but in some virtualization systems, if the >>>>> TSCs on the various processors are not sufficiently synchronized, then when >>>>> the hypervisor switches you from one CPU to another, you can get odd >>>>> (sometimes negative) time readings which give messages like this.. >>>>> >>>>>> _______________________________________________ >>>>>> 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 Nov 12 11:33:47 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 526459D1; Tue, 12 Nov 2013 11:33:47 +0000 (UTC) Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [IPv6:2a00:1450:400c:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BE446248E; Tue, 12 Nov 2013 11:33:46 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id q58so5850867wes.31 for ; Tue, 12 Nov 2013 03:33:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=d54FOU0IlWdRdsKCe+8IiFJMdh9InBgW1cNrtalYqz0=; b=ILM6PnZynwCHcDrKW80b/9yFOGvNBSMwXX7uuOQz2KrG2iGsiHXq5xm5Ex4ZkwR0t0 ugTSe4/PwWxfqouO7LWCr3M5HGs6liJSWK9qba47CHoZ7q5fsZjmRbpjxthJLQuiqGUJ 7j235Jpsm8U6yHE0PFcISl8FRT0aOO7tMh70gA3p0UMS5oO0y5+kQjZn+ulCuSeIHza6 qPR9lJX8E7/stgBDVeyRVfI42uZXbBJN4205PYC16zp20Q3QyKu7L9X2pR6AwVFJhxxl Y5mpTIguJsWYKRNz/VtwK0IMeuotocnkd7dp/z3cKJqApUVJDKSXcjtgJjjqCM+cs/CA 0Xbw== MIME-Version: 1.0 X-Received: by 10.194.20.202 with SMTP id p10mr2151442wje.39.1384256025245; Tue, 12 Nov 2013 03:33:45 -0800 (PST) Received: by 10.216.203.195 with HTTP; Tue, 12 Nov 2013 03:33:45 -0800 (PST) In-Reply-To: <20131112030154.GA29757@dft-labs.eu> References: <52814D25.1050603@freebsd.org> <20131112030154.GA29757@dft-labs.eu> Date: Tue, 12 Nov 2013 15:33:45 +0400 Message-ID: Subject: Re: Running `sysctl -a` causes crash (Hyper-V) From: Sergey Kandaurov To: Mateusz Guzik Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 11:33:47 -0000 On 12 November 2013 07:01, Mateusz Guzik wrote: > On Mon, Nov 11, 2013 at 01:33:25PM -0800, Julian Elischer wrote: >> On 11/11/13, 7:49 AM, Pavel Timofeev wrote: >> >Great, it helped! Thanks a lot! >> >> the suggested change suggests fragile code. It should be able to >> handle unexpected input.. > > Indeed, I already suggested Sergey placing a compile time assertion to > make sure vm_guest range is covered. I have the following change for this. Btw, the last element in vm_guest_sysctl_names is NULL, is it really needed for something? Unlike vm_bnames/vm_pnames, it seems not. Add CTASSERT to handle enum VM_GUEST and vm_guest_sysctl_names cooperation. Index: sys/sys/systm.h =================================================================== --- sys/sys/systm.h (revision 258036) +++ sys/sys/systm.h (working copy) @@ -72,7 +72,8 @@ extern int vm_guest; /* Running as virtual machin * ever implemented (e.g. vendor-specific paravirtualization features). * Keep in sync with vm_guest_sysctl_names[]. */ -enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV }; +enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV, + VM_LAST }; #if defined(WITNESS) || defined(INVARIANTS) void kassert_panic(const char *fmt, ...) __printflike(1, 2); Index: sys/kern/subr_param.c =================================================================== --- sys/kern/subr_param.c (revision 258036) +++ sys/kern/subr_param.c (working copy) @@ -156,6 +156,7 @@ static const char *const vm_guest_sysctl_names[] = "hv", NULL }; +CTASSERT(nitems(vm_guest_sysctl_names) - 1 == VM_LAST); #ifndef XEN static const char *const vm_bnames[] = { -- wbr, pluknet From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 12 13:31:43 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B644EFC1; Tue, 12 Nov 2013 13:31:43 +0000 (UTC) Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 296432C43; Tue, 12 Nov 2013 13:31:43 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id y10so2471848wgg.9 for ; Tue, 12 Nov 2013 05:31:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=AVabwv/D9+Cz7MIrjTlPiDfzBfCfrt+PMYx3Y0k4I0w=; b=SiZxouEdJZXQj/I5iLKOaDmaTNOeS+7XpBK8O9gsV/kRPN7frOMn9YjAj3ZdeM+oYg uS2Ur6Yb66zfLA3BFX4yoCDek/v3l9AoSz5uvJFuEyMywnI5VYAniL9mTmeX3OQu8p8G I7Lno2c8daz9kJjR/s1oiLhd9ef4Rn251hdLd8Xm6CKenMx9jgq+eaCEScHzkacub9ur Ir4hkYwVQTxt9ejwL13bhUL0AyTurR/QFjq75jvhRTg4VJYJf6sbNYzbA0BRgdjBsqoO kdWRLUvqE6jMHpwuLLvhrmEJdbCK/K/V1PdVES3AhBMz6qgQS0GsP6i2hFXA+Kfz7H4o CRyQ== X-Received: by 10.194.193.39 with SMTP id hl7mr11876wjc.91.1384263101625; Tue, 12 Nov 2013 05:31:41 -0800 (PST) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPSA id ey4sm44699996wic.11.2013.11.12.05.31.39 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 12 Nov 2013 05:31:40 -0800 (PST) Date: Tue, 12 Nov 2013 14:31:35 +0100 From: Mateusz Guzik To: Sergey Kandaurov Subject: Re: Running `sysctl -a` causes crash (Hyper-V) Message-ID: <20131112133135.GB29757@dft-labs.eu> References: <52814D25.1050603@freebsd.org> <20131112030154.GA29757@dft-labs.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 13:31:43 -0000 On Tue, Nov 12, 2013 at 03:33:45PM +0400, Sergey Kandaurov wrote: > On 12 November 2013 07:01, Mateusz Guzik wrote: > > On Mon, Nov 11, 2013 at 01:33:25PM -0800, Julian Elischer wrote: > >> On 11/11/13, 7:49 AM, Pavel Timofeev wrote: > >> >Great, it helped! Thanks a lot! > >> > >> the suggested change suggests fragile code. It should be able to > >> handle unexpected input.. > > > > Indeed, I already suggested Sergey placing a compile time assertion to > > make sure vm_guest range is covered. > > I have the following change for this. > Btw, the last element in vm_guest_sysctl_names is NULL, is it really needed > for something? Unlike vm_bnames/vm_pnames, it seems not. > No idea, I would leave it be. > Add CTASSERT to handle enum VM_GUEST and vm_guest_sysctl_names cooperation. > > Index: sys/sys/systm.h > =================================================================== > --- sys/sys/systm.h (revision 258036) > +++ sys/sys/systm.h (working copy) > @@ -72,7 +72,8 @@ extern int vm_guest; /* Running as virtual machin > * ever implemented (e.g. vendor-specific paravirtualization features). > * Keep in sync with vm_guest_sysctl_names[]. > */ > -enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV }; > +enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV, > + VM_LAST }; > > #if defined(WITNESS) || defined(INVARIANTS) > void kassert_panic(const char *fmt, ...) __printflike(1, 2); > Index: sys/kern/subr_param.c > =================================================================== > --- sys/kern/subr_param.c (revision 258036) > +++ sys/kern/subr_param.c (working copy) > @@ -156,6 +156,7 @@ static const char *const vm_guest_sysctl_names[] = > "hv", > NULL > }; > +CTASSERT(nitems(vm_guest_sysctl_names) - 1 == VM_LAST); > > #ifndef XEN > static const char *const vm_bnames[] = { > I can't test it right now, I presume it works :) With that in mind looks good to me, thanks! -- Mateusz Guzik From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 12 21:07:55 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7D29FDE7 for ; Tue, 12 Nov 2013 21:07:55 +0000 (UTC) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2lp0211.outbound.protection.outlook.com [207.46.163.211]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2BA9726A5 for ; Tue, 12 Nov 2013 21:07:54 +0000 (UTC) Received: from BL2PR03MB210.namprd03.prod.outlook.com (10.255.230.144) by BL2PR03MB209.namprd03.prod.outlook.com (10.255.230.140) with Microsoft SMTP Server (TLS) id 15.0.820.5; Tue, 12 Nov 2013 21:07:43 +0000 Received: from BL2PR03MB210.namprd03.prod.outlook.com ([169.254.1.22]) by BL2PR03MB210.namprd03.prod.outlook.com ([169.254.1.22]) with mapi id 15.00.0820.005; Tue, 12 Nov 2013 21:07:43 +0000 From: "Abhishek Gupta (LIS)" To: Michael Dexter , "freebsd-virtualization@freebsd.org" Subject: RE: Use of Floppy Drive with FreeBSD Virtual Machines Thread-Topic: Use of Floppy Drive with FreeBSD Virtual Machines Thread-Index: Ac7fCkvDb2LXFSnUTum9MIIqNVfZtgABb40AAAE77pAAFlK4gAAfLjBw Date: Tue, 12 Nov 2013 21:07:41 +0000 Message-ID: References: <528128E2.6000006@callfortesting.org> <8c6f3f012fc94908bf6a40cdd0d235d7@BL2PR03MB210.namprd03.prod.outlook.com> <5281C6F9.8040109@callfortesting.org> In-Reply-To: <5281C6F9.8040109@callfortesting.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2001:4898:80e8:ed31::2] x-forefront-prvs: 00286C0CA6 x-forefront-antispam-report: SFV:NSPM; SFS:(51694002)(199002)(189002)(13464003)(377454003)(51914003)(24454002)(479174003)(51704005)(43784003)(19580395003)(85306002)(83072001)(74316001)(63696002)(81686001)(74706001)(51856001)(74662001)(47446002)(74502001)(54356001)(31966008)(53806001)(59766001)(77982001)(80976001)(54316002)(79102001)(76482001)(65816001)(80022001)(81816001)(74876001)(85806002)(56776001)(19580405001)(83322001)(81342001)(74366001)(69226001)(87266001)(87936001)(2656002)(47736001)(49866001)(47976001)(50986001)(33646001)(4396001)(81542001)(76796001)(76576001)(46102001)(77096001)(76786001)(56816003)(3826001)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB209; H:BL2PR03MB210.namprd03.prod.outlook.com; CLIP:2001:4898:80e8:ed31::2; FPR:; RD:InfoNoRecords; A:1; MX:1; LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 21:07:55 -0000 Thanks for the response Michael! I understand now. Just wanted to let you k= now that Hyper-V Gen2 VMs do not have a virtual FDD. Not that we have FreeB= SD supported on it yet but the scenarios you describe may not work on Gen2 = FreeBSD virtual machines today. Thanks again for the feedback. Abhishek -----Original Message----- From: Michael Dexter [mailto:editor@callfortesting.org]=20 Sent: Monday, November 11, 2013 10:13 PM To: Abhishek Gupta (LIS); freebsd-virtualization@freebsd.org Subject: Re: Use of Floppy Drive with FreeBSD Virtual Machines Hello Abhishek, On 11/11/13 11:37 AM, Abhishek Gupta (LIS) wrote: > Thanks so much for replying. Some follow up questions: >=20 > a) Is it not possible to use an ISO file to do the BIOS updates? I have not. > b) I did not quite understand your second comment on why PCI pass=20 > through may promote floppy disk use. Please could you elaborate a bit=20 > more? The scenario I see the most is a virtualized (HyperV, VMware etc.) FreeNAS = guest to which you pass a PCIe storage controller card to so that ZFS is gi= ven "bare metal" access to hardware disks yet has the benefit of the fast i= nternal backplane if you will for networking, rather than going over copper= or optical network interfaces. Because the FreeNAS guest may be one among many, it would not be desirable = to reboot the whole system and boot to a floppy to apply a BIOS update to a= PCIe controller card. Again, I have not tried anything like this but it is= a possible use case of what you describe. Also mind you I never want to se= e another floppy-based BIOS again but they are still out there. Michael From owner-freebsd-virtualization@FreeBSD.ORG Tue Nov 12 21:48:48 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 41ED72D8 for ; Tue, 12 Nov 2013 21:48:48 +0000 (UTC) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0A16429ED for ; Tue, 12 Nov 2013 21:48:47 +0000 (UTC) Received: from julian-mbp3.pixel8networks.com (50-196-156-133-static.hfc.comcastbusiness.net [50.196.156.133]) (authenticated bits=0) by vps1.elischer.org (8.14.7/8.14.7) with ESMTP id rACLmed9075464 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 12 Nov 2013 13:48:41 -0800 (PST) (envelope-from julian@freebsd.org) Message-ID: <5282A233.9090401@freebsd.org> Date: Tue, 12 Nov 2013 13:48:35 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Mateusz Guzik , Sergey Kandaurov Subject: Re: Running `sysctl -a` causes crash (Hyper-V) References: <52814D25.1050603@freebsd.org> <20131112030154.GA29757@dft-labs.eu> <20131112133135.GB29757@dft-labs.eu> In-Reply-To: <20131112133135.GB29757@dft-labs.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 21:48:48 -0000 On 11/12/13, 5:31 AM, Mateusz Guzik wrote: > On Tue, Nov 12, 2013 at 03:33:45PM +0400, Sergey Kandaurov wrote: >> On 12 November 2013 07:01, Mateusz Guzik wrote: >>> On Mon, Nov 11, 2013 at 01:33:25PM -0800, Julian Elischer wrote: >>>> On 11/11/13, 7:49 AM, Pavel Timofeev wrote: >>>>> Great, it helped! Thanks a lot! >>>> the suggested change suggests fragile code. It should be able to >>>> handle unexpected input.. >>> Indeed, I already suggested Sergey placing a compile time assertion to >>> make sure vm_guest range is covered. >> I have the following change for this. >> Btw, the last element in vm_guest_sysctl_names is NULL, is it really needed >> for something? Unlike vm_bnames/vm_pnames, it seems not. >> > No idea, I would leave it be. > >> Add CTASSERT to handle enum VM_GUEST and vm_guest_sysctl_names cooperation. >> >> Index: sys/sys/systm.h >> =================================================================== >> --- sys/sys/systm.h (revision 258036) >> +++ sys/sys/systm.h (working copy) >> @@ -72,7 +72,8 @@ extern int vm_guest; /* Running as virtual machin >> * ever implemented (e.g. vendor-specific paravirtualization features). >> * Keep in sync with vm_guest_sysctl_names[]. >> */ >> -enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV }; >> +enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV, >> + VM_LAST }; >> >> #if defined(WITNESS) || defined(INVARIANTS) >> void kassert_panic(const char *fmt, ...) __printflike(1, 2); >> Index: sys/kern/subr_param.c >> =================================================================== >> --- sys/kern/subr_param.c (revision 258036) >> +++ sys/kern/subr_param.c (working copy) >> @@ -156,6 +156,7 @@ static const char *const vm_guest_sysctl_names[] = >> "hv", >> NULL >> }; >> +CTASSERT(nitems(vm_guest_sysctl_names) - 1 == VM_LAST); hmm. one learns something every day. nitems() is new to me.. yes assuming nitems is supported on all platforms then this adds a safety belt and is a good idea. >> >> #ifndef XEN >> static const char *const vm_bnames[] = { >> > I can't test it right now, I presume it works :) > > With that in mind looks good to me, thanks! > From owner-freebsd-virtualization@FreeBSD.ORG Wed Nov 13 01:08:25 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 47D548C7 for ; Wed, 13 Nov 2013 01:08:25 +0000 (UTC) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1E3612643 for ; Wed, 13 Nov 2013 01:08:24 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id fa1so4001287pad.2 for ; Tue, 12 Nov 2013 17:08:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=qMReRZ98ljkhmikQ+BD55u7FpHuk61UeeLUEJkBCE+o=; b=SPhcDpZOnRZxs9z74NxCIs78Mmk6NNOgU/mOWOZb0nHvL9+N9Rq2m+qAMbTPpTgeg2 b5U5r8KnIkqNPANWLBRehz51ILnBySh1Mc6dt/bc02oEt9Zpsw28L80Dg4UZxtzQSgtg hPBZV++iqQo7aOclt6b3iFZxGrOr0GGFxJpMhmcMwGtcz2BY97lZ5XXYKIdSZanm7JQo VTLC7JCRNGItsA1DAc077iQ4yjlSCMuy6TSZwMfvwjlm0i2Jt4tYJ4jciV/PdjpOUP3s Mw7GT+ncvVJdtuSco5/TaWikLDzZDBmbxXDb81W6V8g1e2ZCOPfsZ4XamiUgipF82K9+ encg== X-Gm-Message-State: ALoCoQl2h60GGOX2w911zRK6dL9KMDrIb79UNCmsAKgIQqulRFoc/Jghmgby80Ve09rAGMzIOGMV X-Received: by 10.68.235.72 with SMTP id uk8mr38601742pbc.93.1384304904012; Tue, 12 Nov 2013 17:08:24 -0800 (PST) Received: from Michaels-MacBook-Pro.local (c-98-246-202-204.hsd1.or.comcast.net. [98.246.202.204]) by mx.google.com with ESMTPSA id qn1sm25958953pbc.34.2013.11.12.17.08.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Nov 2013 17:08:23 -0800 (PST) Message-ID: <5282D105.7000804@callfortesting.org> Date: Tue, 12 Nov 2013 17:08:21 -0800 From: Michael Dexter User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: "Abhishek Gupta (LIS)" Subject: Re: Use of Floppy Drive with FreeBSD Virtual Machines References: <528128E2.6000006@callfortesting.org> <8c6f3f012fc94908bf6a40cdd0d235d7@BL2PR03MB210.namprd03.prod.outlook.com> <5281C6F9.8040109@callfortesting.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 13 Nov 2013 01:08:25 -0000 On 11/12/13 1:07 PM, Abhishek Gupta (LIS) wrote: > Thanks for the response Michael! I understand now. Just wanted to let > you know that Hyper-V Gen2 VMs do not have a virtual FDD. On the topic of passing a virtual FDD to a VM for a passed-through PCI* card BIOS update, a bhyve developer wrote: "Strictly speaking, it depends on the device: some can restart with a function-level reset, but more than likely they would require a power-cycle, and most systems don't provide the ability to power-cycle an individual card." Michael From owner-freebsd-virtualization@FreeBSD.ORG Wed Nov 13 03:56:05 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 80263E78 for ; Wed, 13 Nov 2013 03:56:05 +0000 (UTC) Received: from mail-pd0-x22c.google.com (mail-pd0-x22c.google.com [IPv6:2607:f8b0:400e:c02::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5DB102FE2 for ; Wed, 13 Nov 2013 03:56:05 +0000 (UTC) Received: by mail-pd0-f172.google.com with SMTP id w10so7903282pde.17 for ; Tue, 12 Nov 2013 19:56:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8HBLfZUjDnsPVwm9idjiC4DL4oXpc17uIUVEpgztqdQ=; b=rQTMnIDrYr61SRPc/lBbNL8OybZzUWTb07R5ZL9GJGPwFpjEqIgENwoKcBY0NN3f+0 DB7vup8kUT5SV+zMdPodG+UUO5vOBHkBRb/x9+LMqkmKfLsoQ1BJJ0t0j3lsOQ+92v43 I8IXT27QpRtqozdYL03N7fgkUzQwgr/r3O/LkOVDV3rDFHdsYyvELHvEQhjrNvCyjpjY BvvqkVppTlbo1jcBO6LcACWiDT+IHRHDdEJ9e/CQ7VVH47oJf8Hb0D91hkVYzpnrl+pP s/PZb0kfBZnNWGC5bWAV48JUn7rTc5leuTc0aRmY/1k9hq8V3Ug2Y9gsCZERiZzmL5hX 6o+w== MIME-Version: 1.0 X-Received: by 10.68.12.100 with SMTP id x4mr39323870pbb.7.1384314964478; Tue, 12 Nov 2013 19:56:04 -0800 (PST) Received: by 10.70.5.164 with HTTP; Tue, 12 Nov 2013 19:56:04 -0800 (PST) In-Reply-To: References: Date: Wed, 13 Nov 2013 12:56:04 +0900 Message-ID: Subject: Re: Bhyve virtio-net on Linux guest From: Tetsuya Mukawa To: Neel Natu Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 13 Nov 2013 03:56:05 -0000 Hi, > Yes it is possible to use virtio-net from a Linux guest inside a bhyve virtual machine. Thank you so much for your replying. I will try to do. Regards, Tetsuya > > Best > Neel > >> -- >> Tetsuya >> _______________________________________________ >> 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 Wed Nov 13 04:08:03 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 545ABF96 for ; Wed, 13 Nov 2013 04:08:03 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1lp0151.outbound.protection.outlook.com [207.46.163.151]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0A596207A for ; Wed, 13 Nov 2013 04:08:02 +0000 (UTC) Received: from BL2PR03MB210.namprd03.prod.outlook.com (10.255.230.144) by BL2PR03MB210.namprd03.prod.outlook.com (10.255.230.144) with Microsoft SMTP Server (TLS) id 15.0.820.5; Wed, 13 Nov 2013 04:07:56 +0000 Received: from BL2PR03MB210.namprd03.prod.outlook.com ([169.254.1.22]) by BL2PR03MB210.namprd03.prod.outlook.com ([169.254.1.22]) with mapi id 15.00.0820.005; Wed, 13 Nov 2013 04:07:55 +0000 From: "Abhishek Gupta (LIS)" To: Michael Dexter Subject: RE: Use of Floppy Drive with FreeBSD Virtual Machines Thread-Topic: Use of Floppy Drive with FreeBSD Virtual Machines Thread-Index: Ac7fCkvDb2LXFSnUTum9MIIqNVfZtgABb40AAAE77pAAFlK4gAAfLjBwAAh2soAABkKhWg== Date: Wed, 13 Nov 2013 04:07:55 +0000 Message-ID: <6b5e798a69db469381e169e37460ce35@BL2PR03MB210.namprd03.prod.outlook.com> References: <528128E2.6000006@callfortesting.org> <8c6f3f012fc94908bf6a40cdd0d235d7@BL2PR03MB210.namprd03.prod.outlook.com> <5281C6F9.8040109@callfortesting.org> , <5282D105.7000804@callfortesting.org> In-Reply-To: <5282D105.7000804@callfortesting.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [71.227.189.220] x-forefront-prvs: 0029F17A3F x-forefront-antispam-report: SFV:NSPM; SFS:(51914003)(24454002)(377454003)(479174003)(51694002)(199002)(189002)(79102001)(50986001)(66066001)(47976001)(85806002)(80022001)(54356001)(19580405001)(83322001)(83072001)(53806001)(49866001)(47736001)(19580395003)(4396001)(74316001)(33646001)(74366001)(76786001)(76796001)(80976001)(81816001)(56816003)(77096001)(76576001)(65816001)(81342001)(87936001)(74876001)(81542001)(63696002)(74662001)(2656002)(74502001)(87266001)(31966008)(74706001)(77982001)(47446002)(59766001)(76482001)(51856001)(81686001)(46102001)(85306002)(56776001)(69226001)(54316002)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB210; H:BL2PR03MB210.namprd03.prod.outlook.com; CLIP:71.227.189.220; FPR:; RD:InfoNoRecords; A:1; MX:1; LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 13 Nov 2013 04:08:03 -0000 Thanks for the insight Michael. Duly noted.=0A= Abhishek=0A= ________________________________________=0A= From: Michael Dexter =0A= Sent: Tuesday, November 12, 2013 5:08 PM=0A= To: Abhishek Gupta (LIS)=0A= Cc: freebsd-virtualization@freebsd.org=0A= Subject: Re: Use of Floppy Drive with FreeBSD Virtual Machines=0A= =0A= On 11/12/13 1:07 PM, Abhishek Gupta (LIS) wrote:=0A= > Thanks for the response Michael! I understand now. Just wanted to let=0A= > you know that Hyper-V Gen2 VMs do not have a virtual FDD.=0A= =0A= On the topic of passing a virtual FDD to a VM for a passed-through PCI*=0A= card BIOS update, a bhyve developer wrote:=0A= =0A= "Strictly speaking, it depends on the device: some can=0A= restart with a function-level reset, but more than likely they would=0A= require a power-cycle, and most systems don't provide the ability to=0A= power-cycle an individual card."=0A= =0A= Michael=0A= From owner-freebsd-virtualization@FreeBSD.ORG Wed Nov 13 06:14: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]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6FC9C770 for ; Wed, 13 Nov 2013 06:14:00 +0000 (UTC) Received: from mail-vb0-x22f.google.com (mail-vb0-x22f.google.com [IPv6:2607:f8b0:400c:c02::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2D31426B8 for ; Wed, 13 Nov 2013 06:14:00 +0000 (UTC) Received: by mail-vb0-f47.google.com with SMTP id g10so2742020vbg.34 for ; Tue, 12 Nov 2013 22:13:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bE2MJP2fFRotbeRGnE1gJb+ZUar3APLAGLvd2MaHhns=; b=R8ujkITQtdEZZtp4pKH0Q9IpFM+7MEN7bceSDyrRbPoVEcEZYVWX3jpxj0V5ri1w10 ahsog0WJ4jrghhohBvC12HfiGhGCDgm7ELwVeZ1wiyEftPxyCfJRAExpuVahM+1mNCv2 KKD65gjzpZxkM9jAls68t1Ytlb7iL3EFIQz5vA3hOARL8/XOXkKxLe5sATEP8b0XTxWr w060Vg17VWkcYNdXjLmMhwIWMQJlnDIOtGXsddlG6LLhydUmbpO4FlQu3kKUU+46FIzj /p3dlFU+W1ja/3+jk2eVtvYuwqyLnKiRe1JRD+e4F1lXmispp1n3nFxUh1Oer1aOP2Ac 6w4g== MIME-Version: 1.0 X-Received: by 10.221.47.193 with SMTP id ut1mr32693167vcb.8.1384323239301; Tue, 12 Nov 2013 22:13:59 -0800 (PST) Received: by 10.52.168.106 with HTTP; Tue, 12 Nov 2013 22:13:59 -0800 (PST) In-Reply-To: <52810527.8080603@citrix.com> References: <5280FF27.1090405@citrix.com> <52810527.8080603@citrix.com> Date: Wed, 13 Nov 2013 10:13:59 +0400 Message-ID: Subject: Re: Running `sysctl -a` causes crash (Hyper-V) From: Pavel Timofeev To: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 13 Nov 2013 06:14:00 -0000 I hope all these changes you have done will be included in FreeBSD 10-RELEASE. From owner-freebsd-virtualization@FreeBSD.ORG Wed Nov 13 06:32:21 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C8A31AEE for ; Wed, 13 Nov 2013 06:32:21 +0000 (UTC) Received: from mail-qc0-x231.google.com (mail-qc0-x231.google.com [IPv6:2607:f8b0:400d:c01::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 83DDF2799 for ; Wed, 13 Nov 2013 06:32:21 +0000 (UTC) Received: by mail-qc0-f177.google.com with SMTP id b10so3519364qcw.22 for ; Tue, 12 Nov 2013 22:32:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=hcPlSAaH415rz04aNpo4NDM+bujODn38jCAEtS6AsdA=; b=aqdEwLCLclvM0NOsGXt+rzTdg3E9DNwqsslj07ApYZ2CNvxmX4msQwFRIvhqz2QCWt bzelxIxJfqT7LbHpHB87Zn+BsEqWda/KwUjY3Xs6dvTVphEBMVIqRdJM017o/yG8ptlm LOAvg6H6JBbyz4/hiznSxdCEXWbRzV95H2LZM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=hcPlSAaH415rz04aNpo4NDM+bujODn38jCAEtS6AsdA=; b=bUZmmBrsirld7pJjoi1AvPS5tzRLMjHJSmR18Dx3X1p97pwYdfXHcD6xDKTmD7ryFz Pi+Jotse71YjUKOnS4RrttJBShEF5df0wx0XbRStFQE6g1YnInR4j0m44o+77lrohSVE 6kDgO2MMZlQc9bns0UE7Xz2VQ4OiEmVeAPBFnKLw+zoXG1ztP4toN7v71FFiLE0A/ugb oet2knKKHBquY31kvuo3iwRT/nIiW9FOsXslGD6D1c2u9AiBcpXNSRx/3m3ytD7/6sQq i9+D1S42X2rDJkWucJXfDbTokhD79GyNyVzk/OHLdWAYJ0BwbDSfkjoV/wV5hYwxFW/y ZErw== X-Gm-Message-State: ALoCoQmtYjQt6S8EZsE5pHCQYoNmJs38HufCJDpjsK6GOWorpB9/59kqhFvsyohV48sPU9+gzYtj X-Received: by 10.224.69.132 with SMTP id z4mr64446333qai.78.1384324340666; Tue, 12 Nov 2013 22:32:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.96.63.101 with HTTP; Tue, 12 Nov 2013 22:31:50 -0800 (PST) In-Reply-To: <5282A233.9090401@freebsd.org> References: <52814D25.1050603@freebsd.org> <20131112030154.GA29757@dft-labs.eu> <20131112133135.GB29757@dft-labs.eu> <5282A233.9090401@freebsd.org> From: Eitan Adler Date: Wed, 13 Nov 2013 01:31:50 -0500 Message-ID: Subject: Re: Running `sysctl -a` causes crash (Hyper-V) To: Julian Elischer Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 13 Nov 2013 06:32:21 -0000 On Tue, Nov 12, 2013 at 4:48 PM, Julian Elischer wrote: > On 11/12/13, 5:31 AM, Mateusz Guzik wrote: >> >> On Tue, Nov 12, 2013 at 03:33:45PM +0400, Sergey Kandaurov wrote:> hmm. one learns something every day. nitems() is new to me.. > yes assuming nitems is supported on all platforms then this adds a safety > belt > and is a good idea. /usr/include/sys/param.h:#define nitems(x) (sizeof((x)) / sizeof((x)[0])) -- Eitan Adler From owner-freebsd-virtualization@FreeBSD.ORG Wed Nov 13 07:17:55 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7ACEA441 for ; Wed, 13 Nov 2013 07:17:55 +0000 (UTC) Received: from mail-ve0-x22e.google.com (mail-ve0-x22e.google.com [IPv6:2607:f8b0:400c:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3BEB0297E for ; Wed, 13 Nov 2013 07:17:55 +0000 (UTC) Received: by mail-ve0-f174.google.com with SMTP id cz12so6540veb.5 for ; Tue, 12 Nov 2013 23:17:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=dhkGjgoHqmkOGWesVRBw4QhHs8tPGqX+MW8oltlSVvM=; b=axD87F+t8z2xx1FQXHRsAGSozm1WrXbohbHo7bOIai4R4o0H+TfTRBV2RvP8w3ApKK wFNBKPNoPAdOxtYeMACgU/y57jbU6qucR4aYcb7oXBu3UrHZ5sWd5llMn+a6whwKUMlE BFKWrQYtqKpO/hRG5kw9QuLtJh4llouaZ6SQNLn4XJmHRIlDSddjpRrVD8/l4bxC0OrB dgExNdEMpgAplRzWfGzPOuBy0HzK2O7R4bmZ0JtupMBB9Qodk6hEEVzAOYfJXz5Fr5Fu 5j4OE8COKsXQc4dgkyoPZ/er3EWnmbib0x9hdQvC6T2tDMSQtDGl2sYdIMqZWiu+fbVt jkgg== MIME-Version: 1.0 X-Received: by 10.52.230.35 with SMTP id sv3mr9601904vdc.27.1384327073662; Tue, 12 Nov 2013 23:17:53 -0800 (PST) Received: by 10.52.168.106 with HTTP; Tue, 12 Nov 2013 23:17:53 -0800 (PST) In-Reply-To: References: <52794AB7.80600@freebsd.org> Date: Wed, 13 Nov 2013 11:17:53 +0400 Message-ID: Subject: Re: Hyper-V From: Pavel Timofeev Cc: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 13 Nov 2013 07:17:55 -0000 I figured out another operations that cause caclru message appearance, such as 'top -n', car /proc/0/status, etc. But I tried these on 9.2-RELEASE LIVE CD and I saw calcru messages. So it seems like it's not related to brand new hyper-v integrated components. It's related to whole FreeBSD system. Which part? I don't know. 2013/11/12 Pavel Timofeev : > So, we catched the bug that caused crash. Thanks to all. Cool! > > As regards the messages about "calcru": I tried to install CentOS 6.4 > on new virt machine on same host system. Linux doesn't have any > strange messages about time. > I tried to migrate FreeBSD and CentOS virt machines to another host > which has another hardware. Same story. > > For example, try to boot beta-3 in LIVE CD mode. You won't see calcru > messages. But if you try to run 'dclient hn0' you'll see calcru > message storm for some time. > On already installed system I can cause messages by doing > service zabbix_server start (even if it's not allowed in rc.conf (!)) > > But I can start mysql-server, zabbix_agentd, apache22 and it doesn't > cause appearance of calcru messages. > > > Any ideas? How and where can I dig? > > 2013/11/6 Pavel Timofeev : >> Small fix: >> kern.timecounter.hardware=TSC covered messages, but now it looks stange >> % time sleep 30 >> 20.24 real 0.00 user 0.00 sys >> >> 2013/11/6 Pavel Timofeev : >>> I already tried disabling Hyper-v time syncing, setting >>> kern.timecounter.hardware to different type from >>> kern.timecounter.choice, setting kern.hz to different values. But >>> nothing helped. >>> I'll try to install CentOS 6.4 on this machine and see what happens. >>> >>> 2013/11/6 Pavel Timofeev : >>>> Does anybody know how to disable Hyper-v time syncing it guest FreeBSD >>>> OS? I'd like to try this one. >>>> >>>> 2013/11/6 Pavel Timofeev : >>>>> Thank you very much! >>>>> I started to dig, and found that I can reboot my server running under >>>>> Hyper-V by doing 'sysctl -a'. >>>>> Can anybody confirm same behavoiur? >>>>> >>>>> FreeBSD 10.0-BETA3, Win 2012 Datacenter >>>>> >>>>> 2013/11/5 Julian Elischer : >>>>>> On 11/4/13, 11:13 PM, Pavel Timofeev wrote: >>>>>>> >>>>>>> Hi! I upgraded to 10.0-BETA3 but still see messages like >>>>>>> >>>>>>> Tue Nov 5 11:09:05 MSK 2013 >>>>>>> calcru: runtime went backwards from 1728 usec to 889 usec for pid 981 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 1229 usec to 703 usec for pid 976 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 1019 usec to 595 usec for pid 978 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 3041 usec to 1611 usec for pid 969 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 1078 usec to 595 usec for pid 975 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 1114 usec to 617 usec for pid 980 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 1086 usec to 602 usec for pid 977 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 1195 usec to 782 usec for pid 970 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 3206 usec to 2157 usec for pid 979 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 2179 usec to 1542 usec for pid 972 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 1833 usec to 927 usec for pid 1026 >>>>>>> (cron) >>>>>>> calcru: runtime went backwards from 1091 usec to 551 usec for pid 1022 >>>>>>> (sendmail) >>>>>>> calcru: runtime went backwards from 823 usec to 416 usec for pid 1022 >>>>>>> (sendmail) >>>>>>> calcru: runtime went backwards from 4691 usec to 2735 usec for pid >>>>>>> 1011 (sendmail) >>>>>>> calcru: runtime went backwards from 1162 usec to 587 usec for pid 1011 >>>>>>> (sendmail) >>>>>>> calcru: runtime went backwards from 947 usec to 478 usec for pid 1010 >>>>>>> (httpd) >>>>>>> calcru: runtime went backwards from 895 usec to 452 usec for pid 1009 >>>>>>> (httpd) >>>>>>> calcru: runtime went backwards from 954 usec to 482 usec for pid 1008 >>>>>>> (httpd) >>>>>>> calcru: runtime went backwards from 909 usec to 459 usec for pid 1007 >>>>>>> (httpd) >>>>>>> calcru: runtime went backwards from 1214 usec to 653 usec for pid 1006 >>>>>>> (httpd) >>>>>>> calcru: runtime went backwards from 201793 usec to 102672 usec for pid >>>>>>> 996 (httpd) >>>>>>> calcru: runtime went backwards from 1105 usec to 1064 usec for pid 991 >>>>>>> (sshd) >>>>>>> calcru: runtime went backwards from 45196 usec to 23221 usec for pid >>>>>>> 974 (zabbix_server) >>>>>>> calcru: runtime went backwards from 2192 usec to 1436 usec for pid 973 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 605 usec to 306 usec for pid 968 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 626 usec to 316 usec for pid 967 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 773 usec to 391 usec for pid 966 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 663 usec to 335 usec for pid 965 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 799 usec to 404 usec for pid 964 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 37723 usec to 19422 usec for pid >>>>>>> 963 (zabbix_server) >>>>>>> calcru: runtime went backwards from 49425 usec to 26265 usec for pid >>>>>>> 962 (zabbix_server) >>>>>>> calcru: runtime went backwards from 38883 usec to 20993 usec for pid >>>>>>> 961 (zabbix_server) >>>>>>> calcru: runtime went backwards from 53478 usec to 27411 usec for pid >>>>>>> 960 (zabbix_server) >>>>>>> calcru: runtime went backwards from 40845 usec to 21750 usec for pid >>>>>>> 959 (zabbix_server) >>>>>>> calcru: runtime went backwards from 47835 usec to 24455 usec for pid >>>>>>> 958 (zabbix_server) >>>>>>> calcru: runtime went backwards from 2257 usec to 1612 usec for pid 957 >>>>>>> (zabbix_server) >>>>>>> calcru: runtime went backwards from 2361 usec to 1193 usec for pid 932 >>>>>>> (zabbix_agentd) >>>>>>> calcru: runtime went backwards from 32053 usec to 16204 usec for pid >>>>>>> 928 (zabbix_server) >>>>>>> calcru: runtime went backwards from 32517 usec to 19280 usec for pid 697 >>>>>>> (sh) >>>>>>> calcru: runtime went backwards from 1128021 usec to 868022 usec for pid >>>>>>> 697 (sh) >>>>>>> calcru: runtime went backwards from 9609 usec to 5601 usec for pid 601 >>>>>>> (syslogd) >>>>>>> calcru: runtime went backwards from 688 usec to 348 usec for pid 106 >>>>>>> (adjkerntz) >>>>>>> calcru: runtime went backwards from 12 usec to 6 usec for pid 3 >>>>>>> (sctp_iterator) >>>>>>> calcru: runtime went backwards from 5467 usec to 2853 usec for pid 2 >>>>>>> (fdc0) >>>>>>> calcru: runtime went backwards from 11306 usec to 8408 usec for pid 14 >>>>>>> (rand_harvestq) >>>>>>> calcru: runtime went backwards from 136242 usec to 76230 usec for pid 13 >>>>>>> (geom) >>>>>>> calcru: runtime went backwards from 156117 usec to 118882 usec for pid 12 >>>>>>> (intr) >>>>>>> calcru: runtime went backwards from 7820 usec to 4847 usec for pid 1 >>>>>>> (init) >>>>>>> calcru: runtime went backwards from 2340313 usec to 1226503 usec for >>>>>>> pid 1 (init) >>>>>>> calcru: runtime went backwards from 4114 usec to 2164 usec for pid 0 >>>>>>> (kernel) >>>>>>> >>>>>>> >>>>>>> Is it bad? Or I have to ignore them? >>>>>> >>>>>> >>>>>> I'm not talking authoratatively but in some virtualization systems, if the >>>>>> TSCs on the various processors are not sufficiently synchronized, then when >>>>>> the hypervisor switches you from one CPU to another, you can get odd >>>>>> (sometimes negative) time readings which give messages like this.. >>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 Wed Nov 13 09:16:17 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6D6D6753 for ; Wed, 13 Nov 2013 09:16:17 +0000 (UTC) Received: from mail-pd0-x232.google.com (mail-pd0-x232.google.com [IPv6:2607:f8b0:400e:c02::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4AA902091 for ; Wed, 13 Nov 2013 09:16:17 +0000 (UTC) Received: by mail-pd0-f178.google.com with SMTP id p10so137667pdj.37 for ; Wed, 13 Nov 2013 01:16:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=UyK0uM/VO+QZv9K8MzC8QkqLT9qhtwvjGX7IkkYP2yM=; b=kJ60+J+Xg0fxs9gZdu5unxAwGiKw69ScOeeEvrsvH/hlNZtxGNLRU6u8youoUG2fKn vG9E2hX4kiGgTNAVlZP165t9pYlsma8RJ38ZTGBoQLuv7pvGNfpCMHTNz+doQ4arcdjp hRPaWQcZeVXepjzYzW65wAoz/CkKhiUVF0iMjRaIkl6qCAvQq9aYCKuMDGLJ/zAkFQWj c2xSjNXY7t7zthzeKAaUwYtZ6LWMX8oUvuEo43SoX949Pq9M+cBgilAaDy9hvS/JN7A8 daGVjygDoF9L/Gv8l0z4tcQ76L/NcL7Q+a9S/maQnHSX49GzGe/tVimziNZmzzmepGJw ZnSg== MIME-Version: 1.0 X-Received: by 10.66.218.10 with SMTP id pc10mr40308026pac.111.1384334176729; Wed, 13 Nov 2013 01:16:16 -0800 (PST) Received: by 10.68.185.130 with HTTP; Wed, 13 Nov 2013 01:16:16 -0800 (PST) In-Reply-To: References: Date: Wed, 13 Nov 2013 04:16:16 -0500 Message-ID: Subject: Re: bhyve and guest rebooting From: Aryeh Friedman To: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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, 13 Nov 2013 09:16:17 -0000 A quick follow up... it seems if you halt(8) a gust bhyve never terminates but if you call reboot(8) it does?!?!?!?!?!?!! On Tue, Nov 12, 2013 at 5:38 AM, Aryeh Friedman wrote: > As far we can tell bhyve simply terminates on guest shutdown regardless of > the reason (for example no difference [or we can find] in detecting if they > typed "halt" or "reboot" {or some other internal method of shutting down > the guest vm). Is there anyway for the caller to detect this and/or is it > possible to set command line flags that enable bhyve to manage the reboot > itself? > From owner-freebsd-virtualization@FreeBSD.ORG Wed Nov 13 22:24:46 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D54BBDF7 for ; Wed, 13 Nov 2013 22:24:46 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 99953252D for ; Wed, 13 Nov 2013 22:24:46 +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 CE24A122C1; Thu, 14 Nov 2013 08:24:38 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BQB08480 (AUTH peterg@ptree32.com.au); Thu, 14 Nov 2013 08:24:38 +1000 Message-ID: <5283FC24.9020404@freebsd.org> Date: Wed, 13 Nov 2013 14:24:36 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Aryeh Friedman , "freebsd-virtualization@freebsd.org" Subject: Re: bhyve and guest rebooting 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.16 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, 13 Nov 2013 22:24:46 -0000 Hi Aryeh, > A quick follow up... it seems if you halt(8) a gust bhyve never terminates > but if you call reboot(8) it does?!?!?!?!?!?!! That's how FreeBSD works and is expected: a halt will drop to the 'hit any key to reboot' prompt. later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Thu Nov 14 09:02:24 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DCBB054D for ; Thu, 14 Nov 2013 09:02:23 +0000 (UTC) Received: from hapkido.dreamhost.com (hapkido.dreamhost.com [66.33.216.122]) by mx1.freebsd.org (Postfix) with ESMTP id B6F8428A2 for ; Thu, 14 Nov 2013 09:02:23 +0000 (UTC) Received: from homiemail-a110.g.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by hapkido.dreamhost.com (Postfix) with ESMTP id 71D6FDE08F for ; Thu, 14 Nov 2013 01:02:23 -0800 (PST) Received: from homiemail-a110.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a110.g.dreamhost.com (Postfix) with ESMTP id 5FB7C2005D909 for ; Thu, 14 Nov 2013 01:02:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=nyclocal.net; h=message-id :date:subject:from:to:mime-version:content-type :content-transfer-encoding; s=nyclocal.net; bh=Xfxm7yFna0hfzLve2 88QzEnBRDE=; b=i1JaxmZgp9GWxPx6WoFXofP5IwF6G+A/5HRH1g74LaAoy5Bx6 dU/NAv7YpTcT54rSXAFxidHWAx9i6UqISqdMrrJydmp0l+3ENHtcmU/lvZrddQ/s VEPvIQ6N1mhBK5jvLgXaPodlOSEtSgJpIUF7GqK7RVZ5PozL+gwBHAbnBg= Received: from webmail.nyclocal.net (caiajhbihbdd.dreamhost.com [208.97.187.133]) (Authenticated sender: dnixon-fnre@nyclocal.net) by homiemail-a110.g.dreamhost.com (Postfix) with ESMTPA id 5CFD32005D908 for ; Thu, 14 Nov 2013 01:02:17 -0800 (PST) Received: from 50.14.66.127 (proxying for 50.14.66.127) (SquirrelMail authenticated user dnixon-fnre@nyclocal.net) by webmail.nyclocal.net with HTTP; Thu, 14 Nov 2013 04:02:17 -0500 Message-ID: Date: Thu, 14 Nov 2013 04:02:17 -0500 Subject: RFD: Remote console access to bhyve guest instances? From: "Dee Nixon" To: "FreeBSD virtualization" User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2013 09:02:24 -0000 Problem scenario: A cloud provider (defined as someone who allows multiple end-users to create and manage their own guest instances without direct access to the host's operating system) needs to provide console access to each instance in a secure manner. If a cloud provider were to use bhyve in its current form, a cloud end-user could SSH into a guest instance, provided the instance is already installed and running, but the user could NOT do the following tasks, which can be performed only at the console: * OS installation * Recovering from a virtual =93hardware=94 or OS failure * Rebooting a halted machine A cloud end-user needs to be able to perform the above tasks on a guest instance without compromising the security of the host. Thus the end-user needs access to a virtual guest =93console=94 that enables the above tasks to be performed on a virtual machine =96 just as, on a physical machine, the above tasks could be performed via the physical machine's console. However, bhyve does not currently provide any means by which users can access a guest console without first logging into the host's console and/or performing some other task that is quite likely to have security issues. A few possible solutions: * Use some external program to pipe console I/O via a socket to the end-user? (but this would be hard to standardize) * Restricted login? (but this would have concurrency issues as to which user can access which guest instance) * Perhaps bhyve could add a console socket port for each guest instance? (Aryeh Friedman and I favor this idea, unless someone can suggest something better. If others think this is a good idea, we can write this addition to bhyve.) Does anyone have any other suggestions? The discussion of how to handle this problem should consider the following issues: * The solution must allow access to multiple guest consoles at once by multiple users * The solution must not require users of guest instances to have access to the host console, although these users may have limited access to the host by other means, such as SSH to a port dedicated to a specific guest. * The solution must not expose the host OS to other possible security issues either (remember, bhyve runs as root) * The solution must be scriptable. * A virtual machine should, as much as possible, behave like an actual physical machine in its interactions with its designated user, despite the user's lack of access to the host console. From owner-freebsd-virtualization@FreeBSD.ORG Thu Nov 14 17:50:53 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DC3C45B8 for ; Thu, 14 Nov 2013 17:50:53 +0000 (UTC) Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B46862F5E for ; Thu, 14 Nov 2013 17:50:53 +0000 (UTC) Received: by mail-pd0-f170.google.com with SMTP id q10so2308167pdj.15 for ; Thu, 14 Nov 2013 09:50:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ELlEChRVzchj25M4R+LDsggoaEdSnWCAzWDqt+mWKDc=; b=HBh9VzKmdtl0hWmOOqc2ePNuAFiMk1ViJFFb7NW+yTknmwsP9YGWbsefGcxbTqGlUB +3tj8+c4NSZ8jsJN1gBg62DHZL72TmABrVYsGaC/JqI1W9WV8ufC3zEZNwAN5F4hCQ+N 3lB0FEjQgqba6EtyT4eIuOANgmaD+A2ljdaDkTDO5GPNC0C2PB3MKLSe4jn6rFM1ZvD7 TZBXwRWTuZEglbL2zuA2ScNCDnidaKh5DsUse6ECZMhzhk7d6XdkXDcdIbw6KDVSlwOs RkRqulFucdcWhBccga3P5y8+XLHf7a+T+BrCnusg5szQRiQOCgqqwQBbny5KoNorIv6W 48Og== X-Gm-Message-State: ALoCoQn8efoLfBPKJ3STSpf1sTw2EufZk7xO3q+ALsO5RKrE061wY3cfM6lqSmbt9BE3o1hdsEWY X-Received: by 10.66.242.17 with SMTP id wm17mr2657984pac.102.1384451098236; Thu, 14 Nov 2013 09:44:58 -0800 (PST) Received: from Michaels-MacBook-Pro.local (c-98-246-202-204.hsd1.or.comcast.net. [98.246.202.204]) by mx.google.com with ESMTPSA id gh3sm52939621pbb.2.2013.11.14.09.44.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Nov 2013 09:44:57 -0800 (PST) Message-ID: <52850C18.1070408@callfortesting.org> Date: Thu, 14 Nov 2013 09:44:56 -0800 From: Michael Dexter User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org, Dee Nixon Subject: Re: RFD: Remote console access to bhyve guest instances? References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2013 17:50:53 -0000 Dee, Your needs are not unique and a solution is already in the works. Thank you for your use case examples and usability concerns. When you say "write this addition", are you suggesting you have solid development resources to contribute to this effort? All the best, Michael Dexter bhyve Volunteer On 11/14/13 1:02 AM, Dee Nixon wrote: > Problem scenario: > > A cloud provider (defined as someone who allows multiple end-users > to create and manage their own guest instances without direct access > to the host's operating system) needs to provide console access to > each instance in a secure manner. If a cloud provider were to use > bhyve in its current form, a cloud end-user could SSH into a guest > instance, provided the instance is already installed and running, > but the user could NOT do the following tasks, which can be > performed only at the console: > > * OS installation > * Recovering from a virtual “hardware” or OS failure > * Rebooting a halted machine > > A cloud end-user needs to be able to perform the above tasks on a > guest instance without compromising the security of the host. Thus > the end-user needs access to a virtual guest “console” that enables > the above tasks to be performed on a virtual machine – just as, on a > physical machine, the above tasks could be performed via the > physical machine's console. > > However, bhyve does not currently provide any means by which users > can access a guest console without first logging into the host's > console and/or performing some other task that is quite likely to > have security issues. > > A few possible solutions: > > * Use some external program to pipe console I/O via a socket to the > end-user? (but this would be hard to standardize) > * Restricted login? (but this would have concurrency issues as to > which user can access which guest instance) > * Perhaps bhyve could add a console socket port for each guest > instance? (Aryeh Friedman and I favor this idea, unless someone can > suggest something better. If others think this is a good idea, we > can write this addition to bhyve.) > > Does anyone have any other suggestions? > > The discussion of how to handle this problem should consider the > following issues: > > * The solution must allow access to multiple guest consoles at once > by multiple users > * The solution must not require users of guest instances to have > access to the host console, although these users may have limited > access to the host by other means, such as SSH to a port dedicated > to a specific guest. > * The solution must not expose the host OS to other possible > security issues either (remember, bhyve runs as root) > * The solution must be scriptable. > * A virtual machine should, as much as possible, behave like an > actual physical machine in its interactions with its designated > user, despite the user's lack of access to the host console. > > > _______________________________________________ > 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 Sat Nov 16 05:13:20 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6D850AAA for ; Sat, 16 Nov 2013 05:13:20 +0000 (UTC) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 35D372CC0 for ; Sat, 16 Nov 2013 05:13:20 +0000 (UTC) Received: from mouf.net (swills@mouf [199.48.129.64]) by mouf.net (8.14.5/8.14.5) with ESMTP id rAG5DAXa090554 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 16 Nov 2013 05:13:15 GMT (envelope-from swills@mouf.net) Received: (from swills@localhost) by mouf.net (8.14.5/8.14.5/Submit) id rAG5DAEG090553 for freebsd-virtualization@freebsd.org; Sat, 16 Nov 2013 05:13:10 GMT (envelope-from swills) Date: Sat, 16 Nov 2013 05:13:10 +0000 From: Steve Wills To: freebsd-virtualization@freebsd.org Subject: emulators/open-vm-tools updated Message-ID: <20131116051309.GA90096@mouf.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mouf.net [199.48.129.64]); Sat, 16 Nov 2013 05:13:15 +0000 (UTC) X-Spam-Status: No, score=0.0 required=4.5 tests=none autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.97.8 at mouf.net X-Virus-Status: Clean X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Nov 2013 05:13:20 -0000 Hi All, I've just committed an update to the emulators/open-vm-tools port which updates it to the 9.2.3 release of open-vm-tools and fixes the build on FreeBSD 11-CURRENT. I'm still having trouble with the 9.4.0 release of open-vm-tools, but this at least gets us closer to the latest and greatest. Please let me know if you find any issues with it. Steve