From owner-freebsd-virtualization@FreeBSD.ORG Sun Apr 1 12:25:10 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7887C106566C; Sun, 1 Apr 2012 12:25:10 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9A87C8FC17; Sun, 1 Apr 2012 12:25:09 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so2006754bkc.13 for ; Sun, 01 Apr 2012 05:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:x-comment-to:sender:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=YloAN7S0g7zEzM7SqrVG8ea/twl04TJBZVRK8dhRSbg=; b=NxZKeHfa0EqgSI8yEuOZPzKnK+aYLatqmRxYxvR/jvjb5m/BXzu/JfjnTjS8brVdGG /4m0K/LBGDMsGKE7/oSaWD6SKXugW4AEPKUPL+8PYWT/XMe5RuMKuMVeWv+C+XacEGxL utBZv2cWm23N64p5fnkUPIqEfG2gU5w/7wfuKbmAHv67nAwDYnZkiz5EvNbWg2ufG9t1 jf+j6ZkP+l2Tw9x59K9fbmBcJfI42ECOUFZML45/wickIEeADZVRofdiUS4DeMVj6s+0 A+Ttwn01Utv2dcd0gRHqjGM7YmdflScJvWkxldj3LpZc+bBhOPIwAM+YfoHlY6mJ56jQ ZOrQ== Received: by 10.204.152.72 with SMTP id f8mr1986243bkw.103.1333283107602; Sun, 01 Apr 2012 05:25:07 -0700 (PDT) Received: from localhost ([95.69.173.122]) by mx.google.com with ESMTPS id zx16sm31619605bkb.13.2012.04.01.05.25.05 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 01 Apr 2012 05:25:06 -0700 (PDT) From: Mikolaj Golub To: Bernhard Froehlich References: <867gyg77h0.fsf@kopusha.home.net> <12f5de744d0ca920d3b204aa291b4084@bluelife.at> X-Comment-To: Bernhard Froehlich Sender: Mikolaj Golub Date: Sun, 01 Apr 2012 15:25:03 +0300 In-Reply-To: <12f5de744d0ca920d3b204aa291b4084@bluelife.at> (Bernhard Froehlich's message of "Fri, 30 Mar 2012 10:13:57 +0200") Message-ID: <86iphjiqqo.fsf@kopusha.home.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Cc: freebsd-emulation@freebsd.org, freebsd-virtualization@freebsd.org Subject: Re: [patch] VirtualBox-4.0.14 + FreeBSD/CURRENT + VIMAGE: crash on vm shutdown X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2012 12:25:10 -0000 --=-=-= Hi, On Fri, 30 Mar 2012 10:13:57 +0200 Bernhard Froehlich wrote: BF> Sorry for the late response and thanks for the patch. Is this patch BF> still required for 4.1.8? My guess is yes but it would be great if you BF> could confirm that with the latest port. Sorry, it required some time to check -- I upgraded my box to the latest current and had some instabilities to fix before testing vbox. So on the recent current and VirtualBox-4.1.10 (the latest version I have found in the ports) the VBoxNetFlt patch is still required but VBoxNetAdp also needs patching: I had a crash on vm start: #0 doadump (textdump=-2022600704) at pcpu.h:244 #1 0x8051af69 in db_fncall (dummy1=1, dummy2=0, dummy3=-2127583648, dummy4=0xdcb61838 "") at /home/golub/freebsd/base/head/sys/ddb/db_command.c:573 #2 0x8051b361 in db_command (last_cmdp=0x811221fc, cmd_table=0x0, dopager=1) at /home/golub/freebsd/base/head/sys/ddb/db_command.c:449 #3 0x8051b4ba in db_command_loop () at /home/golub/freebsd/base/head/sys/ddb/db_command.c:502 #4 0x8051d4ad in db_trap (type=12, code=0) at /home/golub/freebsd/base/head/sys/ddb/db_main.c:229 #5 0x80a81d96 in kdb_trap (type=12, code=0, tf=0xdcb61ad4) at /home/golub/freebsd/base/head/sys/kern/subr_kdb.c:629 #6 0x80dd22af in trap_fatal (frame=0xdcb61ad4, eva=24) at /home/golub/freebsd/base/head/sys/i386/i386/trap.c:1014 #7 0x80dd2387 in trap_pfault (frame=0xdcb61ad4, usermode=0, eva=24) at /home/golub/freebsd/base/head/sys/i386/i386/trap.c:835 #8 0x80dd3451 in trap (frame=0xdcb61ad4) at /home/golub/freebsd/base/head/sys/i386/i386/trap.c:547 #9 0x80dbccac in calltrap () at /home/golub/freebsd/base/head/sys/i386/i386/exception.s:169 #10 0x80b0633e in ifindex_alloc_locked (idxp=0xdcb61b56) at /home/golub/freebsd/base/head/sys/net/if.c:279 #11 0x80b09172 in if_alloc (type=6 '\006') at /home/golub/freebsd/base/head/sys/net/if.c:435 #12 0x8b01e8e7 in vboxNetAdpOsCreate () from /boot/modules/vboxnetadp.ko #13 0x8b01ef00 in vboxNetAdpCreate () from /boot/modules/vboxnetadp.ko #14 0x8b01ecd8 in VBoxNetAdpFreeBSDCtrlioctl () from /boot/modules/vboxnetadp.ko #15 0x8095c6bb in devfs_ioctl_f (fp=0x8b6f8118, com=3223352833, data=0x8b022360, cred=0x87759b00, td=0x89fdf2e0) at /home/golub/freebsd/base/head/sys/fs/devfs/devfs_vnops.c:757 #16 0x80a9b4ed in kern_ioctl (td=0x89fdf2e0, fd=3, com=3223352833, data=0x8b022360 "vboxnet0") at file.h:287 #17 0x80a9b674 in sys_ioctl (td=0x89fdf2e0, uap=0xdcb61cec) at /home/golub/freebsd/base/head/sys/kern/sys_generic.c:691 #18 0x80dd29ae in syscall (frame=0xdcb61d28) at subr_syscall.c:135 I am attaching two patches: the first one is for VBoxNetFlt (the same I sent to the list but against 4.1.10) and the second one for VBoxNetAdp (a fix for the panic above). BF> Do you aggree that this patch is under MIT License so that I can push BF> it upstream? Sure for both patches. Thanks for taking it! -- Mikolaj Golub --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=VirtualBox-4.1.10.VBoxNetFlt.freebsd.VIMAGE.patch diff -rpu VirtualBox-4.1.10.orig/src/VBox/HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c VirtualBox-4.1.10/src/VBox/HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c --- VirtualBox-4.1.10.orig/src/VBox/HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c 2012-03-13 15:15:44.000000000 +0200 +++ VirtualBox-4.1.10/src/VBox/HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c 2012-04-01 13:43:02.000000000 +0300 @@ -651,13 +651,13 @@ bool vboxNetFltOsMaybeRediscovered(PVBOX ng_rmnode_self(pThis->u.s.node); pThis->u.s.node = NULL; } + VBOXCURVNET_RESTORE(); if (ifp0 != NULL) { vboxNetFltOsDeleteInstance(pThis); vboxNetFltOsInitInstance(pThis, NULL); } - VBOXCURVNET_RESTORE(); return !ASMAtomicUoReadBool(&pThis->fDisconnectedFromHost); } @@ -671,8 +671,10 @@ void vboxNetFltOsDeleteInstance(PVBOXNET mtx_destroy(&pThis->u.s.inq.ifq_mtx); mtx_destroy(&pThis->u.s.outq.ifq_mtx); + VBOXCURVNET_SET_FROM_UCRED(); if (pThis->u.s.node != NULL) ng_rmnode_self(pThis->u.s.node); + VBOXCURVNET_RESTORE(); pThis->u.s.node = NULL; } --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=VirtualBox-4.1.10.VBoxNetAdp.freebsd.VIMAGE.patch diff -rpu VirtualBox-4.1.10.orig/src/VBox/HostDrivers/VBoxNetAdp/freebsd/Makefile VirtualBox-4.1.10/src/VBox/HostDrivers/VBoxNetAdp/freebsd/Makefile --- VirtualBox-4.1.10.orig/src/VBox/HostDrivers/VBoxNetAdp/freebsd/Makefile 2012-03-13 15:15:44.000000000 +0200 +++ VirtualBox-4.1.10/src/VBox/HostDrivers/VBoxNetAdp/freebsd/Makefile 2012-04-01 13:27:16.000000000 +0300 @@ -18,7 +18,7 @@ KMOD = vboxnetadp -CFLAGS += -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -Iinclude -I. -Ir0drv -w -DVBOX_WITH_HARDENING +CFLAGS += -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -Iinclude -I. -Ir0drv -w -DVBOX_WITH_HARDENING -DVIMAGE .if (${MACHINE_ARCH} == "i386") CFLAGS += -DRT_ARCH_X86 diff -rpu VirtualBox-4.1.10.orig/src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c VirtualBox-4.1.10/src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c --- VirtualBox-4.1.10.orig/src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c 2012-03-13 15:15:44.000000000 +0200 +++ VirtualBox-4.1.10/src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c 2012-04-01 13:23:58.000000000 +0300 @@ -68,6 +68,22 @@ #define VBOXNETADP_OS_SPECFIC 1 #include "../VBoxNetAdpInternal.h" +#if defined(__FreeBSD_version) && __FreeBSD_version >= 800500 +# include +# include + +# define VBOXCURVNET_SET(arg) CURVNET_SET_QUIET(arg) +# define VBOXCURVNET_SET_FROM_UCRED() VBOXCURVNET_SET(CRED_TO_VNET(curthread->td_ucred)) +# define VBOXCURVNET_RESTORE() CURVNET_RESTORE() + +#else /* !defined(__FreeBSD_version) || __FreeBSD_version < 800500 */ + +# define VBOXCURVNET_SET(arg) +# define VBOXCURVNET_SET_FROM_UCRED() +# define VBOXCURVNET_RESTORE() + +#endif /* !defined(__FreeBSD_version) || __FreeBSD_version < 800500 */ + static int VBoxNetAdpFreeBSDCtrlioctl(struct cdev *, u_long, caddr_t, int flags, struct thread *); static struct cdevsw vboxnetadp_cdevsw = @@ -260,6 +276,7 @@ int vboxNetAdpOsCreate(PVBOXNETADP pThis { struct ifnet *ifp; + VBOXCURVNET_SET_FROM_UCRED(); ifp = if_alloc(IFT_ETHER); if (ifp == NULL) return VERR_NO_MEMORY; @@ -279,6 +296,7 @@ int vboxNetAdpOsCreate(PVBOXNETADP pThis strncpy(pThis->szName, ifp->if_xname, VBOXNETADP_MAX_NAME_LEN); pThis->u.s.ifp = ifp; + VBOXCURVNET_RESTORE(); return 0; } @@ -286,7 +304,9 @@ void vboxNetAdpOsDestroy(PVBOXNETADP pTh { struct ifnet *ifp; + VBOXCURVNET_SET(ifp->if_vnet); ifp = pThis->u.s.ifp; ether_ifdetach(ifp); if_free(ifp); + VBOXCURVNET_RESTORE(); } --=-=-=-- From owner-freebsd-virtualization@FreeBSD.ORG Sun Apr 1 23:55:22 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 254C71065672 for ; Sun, 1 Apr 2012 23:55:22 +0000 (UTC) (envelope-from petro.rossini@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id D49248FC1D for ; Sun, 1 Apr 2012 23:55:21 +0000 (UTC) Received: by vcmm1 with SMTP id m1so1983338vcm.13 for ; Sun, 01 Apr 2012 16:55:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3mwcB3Zva4sLc1dhWzcoJrm2gjZ92wAWCzsINvkj+VY=; b=0Ha5899ovmd9N3iH9IGZ2Dsfcf6LZAbHfII5yVR7F6KJtOEHLh4Svk88vp+zRIahdM 4prkmNnOGE3CtCru/QOJ/zDXa+MxAFokluW3VEPPt5PGynV8KEflLCQrskhVuu502zJp wqTuujN7t9bqir2IJ4hbs5nRKEzcPWkgRJQRS2frDCTWWLUJwwA5mBoJar5yRDTswsZ6 XimNaD0TvC4dbVMyExDaEeP8H45lx0ILi/H4F/J49+KQ1/7AsLew0naZWfspvA9vEtTt EHUGMxz/Nhx6vYVQ61oIgZimORyLlyIFVasq6TTmcN2JEM1h1o4Mf0FKve9pv2GfqHkw lknQ== MIME-Version: 1.0 Received: by 10.220.79.134 with SMTP id p6mr2988604vck.51.1333324520843; Sun, 01 Apr 2012 16:55:20 -0700 (PDT) Received: by 10.220.99.20 with HTTP; Sun, 1 Apr 2012 16:55:20 -0700 (PDT) Date: Mon, 2 Apr 2012 09:55:20 +1000 Message-ID: From: Petro Rossini To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: VirtualBox drama - failing VDI disks, VM not starting headless, Rebuild problems on 8.2 (clang related problem?) and 9-STABLE (libpcre.so.0) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2012 23:55:22 -0000 Hi all, I had some VirtualBox hassle over the weekend. It started with thes messages inside the VM, a Ubuntu 10.04 Server (running Zimbra). 2012-03-30T18:37:11.581591+11:00 mail kernel: [4520695.304357] sd 4:0:0:0: [sdd] Unhandled error code 2012-03-30T18:37:15.201744+11:00 mail kernel: [4520695.304362] sd 4:0:0:0: [sdd] Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT 2012-03-30T18:37:15.201753+11:00 mail kernel: [4520695.304366] sd 4:0:0:0: [sdd] CDB: Write(10): 2a 00 02 1d 44 f8 00 00 08 00 2012-03-30T18:37:15.201756+11:00 mail kernel: [4520695.304457] end_request: I/O error, dev sdd, sector 35472632 2012-03-30T18:37:15.201758+11:00 mail kernel: [4520695.312601] __ratelimit: 9 callbacks suppressed 2012-03-30T18:37:15.201761+11:00 mail kernel: [4520695.312604] Buffer I/O error on device sdd, logical block 4434079 2012-03-30T18:37:15.201763+11:00 mail kernel: [4520695.321978] lost page write due to I/O error on sdd Two hours later it moves to another disk: "sd 3:0:0:0: [sdc] Unhandled error code" The Linux reacts with a read-only remount - practically the box is falling over. The VDI disks are on a ZFS filesystem, and I scrubbed the ZVolume and looked for other possible problems - host-side all seamt to be okay. I restarted the system once - and for a few hours it worked, untiul I see the same problem again. A second reboot is not that successful, I cannot start the VM headless anymore, getting a Result Code: NS_ERROR_FAILURE (0x00004005) I have a second machine with the same setup and continous mirroring of the disks (zfs send/receive) - the same result. Tried an older ZFS snapshot of the VDI disks - still not starting. It was FreeBSD 8.2 and VirtualBox 4.0.4, and some people with similar problems when the VirtualBox kernel module and system where outy of sync. I did some port upgrades recently but left VirtualBox alone. Hmmh.. Anyway, I started upgading to the newest VirtualBox in the ports(4.1.18). Under 8.2 the rebuild does not seem to work anymore, it has some clang related compile errors (apologize that I do not have the detail, it is a dodgy macro with "clang" in it). So I upgraded the base system to 9-STABLE first and was able to build VirtualBox 4.1.18 now. (with a minor hickup, libpcre.so.0 not found, I just symlinked .1 against ist) Still the same error: Result Code: NS_ERROR_FAILURE (0x00004005) So I decided to go home to get access to the X11-GUI (on the road I had ssh only). I thought of rebuilding a new VM with the same disks (because of some forum suggestions the config could be corrupted). To my astonishment the system started! And now I can start it headless again! I am at loss to explain it, maybe someone else may have a clue? Regards Peter From owner-freebsd-virtualization@FreeBSD.ORG Mon Apr 2 03:54:13 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F0831065677 for ; Mon, 2 Apr 2012 03:54:13 +0000 (UTC) (envelope-from petro.rossini@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0DCE58FC18 for ; Mon, 2 Apr 2012 03:54:12 +0000 (UTC) Received: by vbmv11 with SMTP id v11so2086048vbm.13 for ; Sun, 01 Apr 2012 20:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=IeQluEnPLbKqV0bxsVGLybxMB/fXjeaFN1ZqkMugoRo=; b=DiWUC9wWUm689vFOPf1BbSmysM8PC8dvpGQTYIL6bO1d705rFKPobzzYgMSRbsGW1h EG6H2ALuEK+ywapM+7ycBfYTsKD8OpdTio89i7AOkXTMq5M8re9uB4R8isW1KXSDsFee bBBs0sX4+o+qypZwRynn/ld9qyp7g+Vftg++gGBQnja4bMw1KzN5YI4M9O4i1XiFbtE9 FTcqa0qh6nPs9mnceL5HboTmLmptYpti3c2e7yDGQfLjXVPmJxsnnEH8qqnEVI04f6pQ l9uqCUUi3CLMwGkt6JTm5yP8XwHIRxVyoKr8rhpptEhZ/mZAyy2wJfO80vGg1JareDej 8ojg== MIME-Version: 1.0 Received: by 10.52.67.199 with SMTP id p7mr2643603vdt.75.1333338850712; Sun, 01 Apr 2012 20:54:10 -0700 (PDT) Received: by 10.220.99.20 with HTTP; Sun, 1 Apr 2012 20:54:09 -0700 (PDT) In-Reply-To: References: Date: Mon, 2 Apr 2012 13:54:09 +1000 Message-ID: From: Petro Rossini To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: VirtualBox drama - failing VDI disks, VM not starting headless, Rebuild problems on 8.2 (clang related problem?) and 9-STABLE (libpcre.so.0) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 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, 02 Apr 2012 03:54:13 -0000 On Mon, Apr 2, 2012 at 9:55 AM, Petro Rossini wrote: > Hi all, > > I had some VirtualBox hassle over the weekend. ... > Anyway, I started upgading to the newest VirtualBox in the > ports(4.1.18). Sorry, it is 4.1.8. Regards Peter From owner-freebsd-virtualization@FreeBSD.ORG Mon Apr 2 04:08:26 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 702431065672 for ; Mon, 2 Apr 2012 04:08:26 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by mx1.freebsd.org (Postfix) with ESMTP id F1AE58FC0C for ; Mon, 2 Apr 2012 04:08:25 +0000 (UTC) Received: by wibhr17 with SMTP id hr17so2119411wib.1 for ; Sun, 01 Apr 2012 21:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NRYc1CHX3g8pnGqOzSyDtfJnopv67N3QcfjaprM1dK0=; b=RL4ldLtrA+6Ekdu35l8mlIJJW6RsLQfzVj1b1Tr8Lsb4Kk332e37FlJIkQ5VA8b2+y tR8ttrG/fpAibUt4yaZwhwA7A0KR5VZD76h4hKVBg5ERHB4yPKtOaJ7iFgpsMASyMkO4 5ZRGMUZ+5UybTmZkhXTJt2v1fS0r5vDCk34jLQ5EnrC0e0cWXj16dF7vAelvxls19Uzy qghnmliB4XIDEg3XCHGbqCyVXJBNJGnaiMLoc+0YTBp4J3d3DgbnwyVg1ST806Q6UiqJ Oix+YgE8T3TUFP/4Qc/Lu8IQ88dtwNUeN6+mD82AEvjD4owATrabkt7taOag//h054aq Fcmg== MIME-Version: 1.0 Received: by 10.180.24.66 with SMTP id s2mr20733567wif.7.1333339705033; Sun, 01 Apr 2012 21:08:25 -0700 (PDT) Received: by 10.223.94.73 with HTTP; Sun, 1 Apr 2012 21:08:25 -0700 (PDT) In-Reply-To: References: Date: Sun, 1 Apr 2012 23:08:25 -0500 Message-ID: From: Adam Vande More To: Petro Rossini Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-virtualization@freebsd.org Subject: Re: VirtualBox drama - failing VDI disks, VM not starting headless, Rebuild problems on 8.2 (clang related problem?) and 9-STABLE (libpcre.so.0) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 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, 02 Apr 2012 04:08:26 -0000 On Sun, Apr 1, 2012 at 10:54 PM, Petro Rossini wrote: > On Mon, Apr 2, 2012 at 9:55 AM, Petro Rossini > wrote: > > Hi all, > > > > I had some VirtualBox hassle over the weekend. > ... > > Anyway, I started upgading to the newest VirtualBox in the > > ports(4.1.18). > > Sorry, it is 4.1.8. > This mailing list is used for virtualization issues like VIMAGE. Questions concerning VirtualBox go to freebsd-emulation@ AFAICT, that error message is related to a permissions issue. Can you supply the VM log when you post the question to emulation? -- Adam Vande More From owner-freebsd-virtualization@FreeBSD.ORG Mon Apr 2 11:07:21 2012 Return-Path: Delivered-To: freebsd-virtualization@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05BBB1065676 for ; Mon, 2 Apr 2012 11:07:21 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E2EFE8FC16 for ; Mon, 2 Apr 2012 11:07:20 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q32B7KIo046963 for ; Mon, 2 Apr 2012 11:07:20 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q32B7KDn046961 for freebsd-virtualization@FreeBSD.org; Mon, 2 Apr 2012 11:07:20 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 2 Apr 2012 11:07:20 GMT Message-Id: <201204021107.q32B7KDn046961@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 Cc: Subject: Current problem reports assigned to freebsd-virtualization@FreeBSD.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 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, 02 Apr 2012 11:07:21 -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/158686 virtualization[vimage] [tap] [patch] Add VIMAGE support to if_tap a kern/152047 virtualization[vimage] [panic] TUN\TAP under jail with vimage crashe o kern/148155 virtualization[vimage] [pf] Kernel panic with PF/IPFilter + VIMAGE k a kern/147950 virtualization[vimage] [carp] VIMAGE + CARP = kernel crash s kern/143808 virtualization[pf] pf does not work inside jail a kern/141696 virtualization[rum] [vimage] [panic] rum(4)+ vimage = kernel panic 10 problems total. From owner-freebsd-virtualization@FreeBSD.ORG Mon Apr 2 19:02:01 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A643A1065673; Mon, 2 Apr 2012 19:02:01 +0000 (UTC) (envelope-from sree.openwrk@gmail.com) Received: from mail-ob0-f196.google.com (mail-ob0-f196.google.com [209.85.214.196]) by mx1.freebsd.org (Postfix) with ESMTP id 5BF4A8FC12; Mon, 2 Apr 2012 19:02:01 +0000 (UTC) Received: by obbup19 with SMTP id up19so840190obb.7 for ; Mon, 02 Apr 2012 12:02:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=TOjQEx8RfawmqL7yOgZ81IIzHdH8vN8vNIXUyVZifFs=; b=ePFSEGF6C981ciSdrT22wa1f8Z7sVjq/y+ixg6ZnOG3e+BG3yxM+IRQSdDhCjmvV9M qFhp+Ki0/AzRg7rfzCvlfIMdhb52P8ELfXkZ1YDyvp3ntUGxet30PsA8cr4xv3K54emf ttZ7jCmKuRlgqlI000axpTgWhYfSIYWg2hXHBcXwHK80l9vbtw7nBOhM+G02gVvzDPlE uID8FHiqC69hD1GlI+wd6XlDR+DpnToNjtv/16p2lCyZEEu/4diMaE+qXPYlFhJVaQnH SVDPpCbq58R6K7R9b+TCB8Gv9vxlmurDzYZTyyLqxyAVXS4sRRG5mwbJbfACbOmcz38H 9mwA== MIME-Version: 1.0 Received: by 10.182.86.200 with SMTP id r8mr14548234obz.20.1333393320593; Mon, 02 Apr 2012 12:02:00 -0700 (PDT) Received: by 10.60.16.2 with HTTP; Mon, 2 Apr 2012 12:02:00 -0700 (PDT) In-Reply-To: <4F74ECA0.9040809@freebsd.org> References: <4F73C5A7.4040801@freebsd.org> <4F74ECA0.9040809@freebsd.org> Date: Mon, 2 Apr 2012 12:02:00 -0700 Message-ID: From: s vas To: Peter Grehan Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-virtualization@freebsd.org Subject: Re: bhyve installation problem freebsd 8.3 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 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, 02 Apr 2012 19:02:01 -0000 Hi Peter I was able to successfully run through the steps and start running the virtual machine. However, once I start the guest, the host freebsd machine hangs. I have installed the freebsd host in x86_64 machine. This is the hw spec. sysctl -a | egrep -i 'hw.machine|hw.model|hw.ncpu' hw.machine: amd64 hw.model: Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz hw.ncpu: 2 hw.machine_arch: amd64 1. Is it that Bhyve is not fully running in 64 bit amd or x86 processor? Or 2. Is it that Byhve runs on 64 bit x86 but not 64 bit amd? If so, then I will send the steps I followed along with the dump details. Thanks On Thu, Mar 29, 2012 at 4:13 PM, Peter Grehan wrote: > Hi, > > > I was able to make progress. But I still have an issue. >> In the step '9' >> (http://people.freebsd.org/~**neel/bhyve/bhyve_instructions.**txt), >> I am >> being asked to copy the guest file system. However I could not find any >> file with the name 'filesystem' in the entire filesystem. Am I missing >> any step here? Where is the right path to copy from? >> > > If you used the vm1.tar.gz in the instructions, you shouldn't have to do > anything - the 'mdroot' file is already in there and in the right place. > > later, > > Peter. > From owner-freebsd-virtualization@FreeBSD.ORG Mon Apr 2 19:28:48 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A70B51065670 for ; Mon, 2 Apr 2012 19:28:48 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 5ABEB8FC0C for ; Mon, 2 Apr 2012 19:28:48 +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 93B051218D; Tue, 3 Apr 2012 05:28:39 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro.local (pos-ext.netapp.com [198.95.226.40]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BDA95698 (AUTH peterg@ptree32.com.au); Tue, 3 Apr 2012 05:28:37 +1000 Message-ID: <4F79FDE3.9070701@freebsd.org> Date: Mon, 02 Apr 2012 13:28:35 -0600 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: s vas References: <4F73C5A7.4040801@freebsd.org> <4F74ECA0.9040809@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Junkmail-Info: SPF_SOFTFAIL X-Junkmail-Status: score=6/51, host=dommail.onthenet.com.au Cc: freebsd-virtualization@freebsd.org Subject: Re: bhyve installation problem freebsd 8.3 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 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, 02 Apr 2012 19:28:48 -0000 Hi, > I was able to successfully run through the steps and start running the > virtual machine. However, once I start the guest, the host freebsd > machine hangs. > > I have installed the freebsd host in x86_64 machine. This is the hw spec. > sysctl -a | egrep -i 'hw.machine|hw.model|hw.ncpu' > hw.machine: amd64 > hw.model: Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz > hw.ncpu: 2 > hw.machine_arch: amd64 > > 1. Is it that Bhyve is not fully running in 64 bit amd or x86 processor? Or The e7500 model has VT-x, but not EPT so the vmm.ko kernel module should fail when being loaded. Hmmm, not sure the script would handle this. So, unfortunately your h/w doesn't quite have what BHyVe requires :( > 2. Is it that Byhve runs on 64 bit x86 but not 64 bit amd? That is currently true, but your CPU is Intel - FreeBSD's generic term for 64-bit Intel architecture is "amd64" so that's not the problem. later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Tue Apr 3 04:38:24 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A8A50106564A; Tue, 3 Apr 2012 04:38:24 +0000 (UTC) (envelope-from sree.openwrk@gmail.com) Received: from mail-ob0-f196.google.com (mail-ob0-f196.google.com [209.85.214.196]) by mx1.freebsd.org (Postfix) with ESMTP id 5E0AE8FC0A; Tue, 3 Apr 2012 04:38:24 +0000 (UTC) Received: by obbeh20 with SMTP id eh20so48900obb.7 for ; Mon, 02 Apr 2012 21:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DwKUzOl67v/+josmq30Ya5kVcJAPZkycyYX5lda/big=; b=Ut9D06x6ZQpyKINkSLb/EHDAOoFZc4cjGlHOWfXfpMH45KO8lE3zvDro2sgvO1lKqb wecGDOI9xTltvqUc+jAoLI7ZYIxsZ1CgVdfxcWYVNoLiV+AVHAjccg1JuyZcIZ8x2eH1 yQ29XltBb8l7w1axyAcCs/GKfDhI0K4Qr7/fW8fx4/NN0DoMr2kSrm8OGEx8Dksly2wd 6DIqo/z6Q9arcgNQ6CbEuAGeBxF+FCXrVszdPSsvpsqsEHLTJ7lNFAw1pn/bDHaU+rFx q0Gd9pdZ3pktsMu+nIAN9/MiX8DudZKQhVy0wEqtmnpHihwzsrJ0eaBHV3z2WetL4xK7 KN5g== MIME-Version: 1.0 Received: by 10.60.25.162 with SMTP id d2mr16674666oeg.30.1333427898052; Mon, 02 Apr 2012 21:38:18 -0700 (PDT) Received: by 10.60.16.2 with HTTP; Mon, 2 Apr 2012 21:38:18 -0700 (PDT) In-Reply-To: <4F74ECF2.6080308@freebsd.org> References: <1333061528.6009.5.camel@chiller> <4F74ECF2.6080308@freebsd.org> Date: Mon, 2 Apr 2012 21:38:18 -0700 Message-ID: From: s vas To: Peter Grehan Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-virtualization@freebsd.org Subject: Re: Bhyve on AMD possible? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 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, 03 Apr 2012 04:38:24 -0000 Hi Peter Is there any reason for the AMD SVM support to be not in place ? Am I missing something here? Is there any effort currently that you are aware of to make it work with AMD SVM? Thanks On Thu, Mar 29, 2012 at 4:14 PM, Peter Grehan wrote: > I would like to inform me about support for AMD bases CPU's on BHYVE >> > > The hooks are there, but no code currently to implement AMD's SVM. > > later, > > Peter. > > ______________________________**_________________ > 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 Apr 3 04:42:14 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DCFC5106564A for ; Tue, 3 Apr 2012 04:42:14 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 922FA8FC12 for ; Tue, 3 Apr 2012 04:42:14 +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 42D4512293; Tue, 3 Apr 2012 14:42:12 +1000 (EST) Received: from vpn2ntap-82231.hq.netapp.com (pos-ext.netapp.com [198.95.226.40]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BDB28297 (AUTH peterg@ptree32.com.au); Tue, 3 Apr 2012 14:42:10 +1000 Message-ID: <4F7A7F9E.9010804@freebsd.org> Date: Mon, 02 Apr 2012 22:42:06 -0600 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: s vas References: <1333061528.6009.5.camel@chiller> <4F74ECF2.6080308@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Junkmail-Info: SPF_SOFTFAIL X-Junkmail-Status: score=6/51, host=dommail.onthenet.com.au Cc: freebsd-virtualization@freebsd.org Subject: Re: Bhyve on AMD possible? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 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, 03 Apr 2012 04:42:14 -0000 Hi, > Is there any reason for the AMD SVM support to be not in place ? There wasn't enough time to get it going when bhyve was first developed. > Am I missing something here? Is there any effort currently that you are > aware of to make it work with AMD SVM? No current effort to my knowledge. It's up for grabs for whoever is interested in doing the work. later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Tue Apr 3 10:40:17 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 82CCA106564A for ; Tue, 3 Apr 2012 10:40:17 +0000 (UTC) (envelope-from syuu@dokukino.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4B7D48FC19 for ; Tue, 3 Apr 2012 10:40:17 +0000 (UTC) Received: by obbwc18 with SMTP id wc18so6612929obb.13 for ; Tue, 03 Apr 2012 03:40:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :x-gm-message-state; bh=UzaQL5/LOyLt4VtYyue5gmRuKQpGDrFqhOX6X9Dc0fI=; b=WjLyzZnCgYz2gc8gWPK8yy7OAEPmrIVrwMyF7yyV7a7eaFJZ8E+nyATbKpcZhObwMw LLNTfQ9tqSef6nZc1CGM1VMceBnFL4gM/xNhwhcJ/S/YgL5lxjyzeKUVqtH8GA4L7ecG IEnjjU9kPyXCbZskpA1CfFcDcY9FAiDVwkkvy0O4F/nIKRv5vmMyNyjZ25tehwSwfB+I xPJrHbQpPhq7srQqze7/diXwLEvtka34qS0OmWTTmjfunkvXNWoxF6uDiQSRArr+Y1oK z6YT0VCbGgTiyGHNMVgdr42Uie9dQFftzEZPmsutT5fqMv1BzW1bKQY03ci0mEDvwjMz 7Qlw== Received: by 10.182.41.5 with SMTP id b5mr17661097obl.79.1333449616823; Tue, 03 Apr 2012 03:40:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.108.33 with HTTP; Tue, 3 Apr 2012 03:39:36 -0700 (PDT) From: Takuya ASADA Date: Tue, 3 Apr 2012 19:39:36 +0900 Message-ID: To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnCzrjeamqTPFv/EYwfkZnZIvgNBWgsEKJw8glv3evsCOROSGwGI0yYutdmvG9RJYa7dkH4 Subject: Howto close BHyVe console X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 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, 03 Apr 2012 10:40:17 -0000 Hi, Just for a little question, I could run BHyVe on my PC with neel's guest image by following CFT page(http://callfortesting.org/bhyve/), it just worked without problem, but I couldn't shutdown guest OS safely. shutdown command in guest OS doesn't poweroff the VM, and I have no idea to close bhyve console. Is there any shortcut-key or commands to shutdown it? I also tried vmmctl --vm= --destroy, but it suddenly causes panic. kill && vmmctl --vm= --destroy had worked, so I guess the panic reason is because /usr/sbin/bhyve still holding /dev/vmm/. Takuya ASADA From owner-freebsd-virtualization@FreeBSD.ORG Tue Apr 3 16:21:06 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D23C1106564A for ; Tue, 3 Apr 2012 16:21:06 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 87B0B8FC16 for ; Tue, 3 Apr 2012 16:21:06 +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 A23F711F32; Wed, 4 Apr 2012 02:21:03 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro.local (c-67-190-9-105.hsd1.co.comcast.net [67.190.9.105]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BDB56989 (AUTH peterg@ptree32.com.au); Wed, 4 Apr 2012 02:21:02 +1000 Message-ID: <4F7B236B.2080104@freebsd.org> Date: Tue, 03 Apr 2012 10:20:59 -0600 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: Takuya ASADA References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Junkmail-Info: RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,SPF_SOFTFAIL X-Junkmail-Status: score=29/51, host=dommail.onthenet.com.au Cc: freebsd-virtualization@freebsd.org Subject: Re: Howto close BHyVe console X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 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, 03 Apr 2012 16:21:06 -0000 > I could run BHyVe on my PC with neel's guest image by following CFT > page(http://callfortesting.org/bhyve/), it just worked without > problem, but I couldn't shutdown guest OS safely. > shutdown command in guest OS doesn't poweroff the VM, and I have no > idea to close bhyve console. The vmrun.sh script loops endlessly, running the user-space loader and then bhyve in succession. I think you want to kill the pid of that and not bhyve itself, or it will continue looping. later, Peter. From owner-freebsd-virtualization@FreeBSD.ORG Wed Apr 4 06:33:20 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9543B1065672 for ; Wed, 4 Apr 2012 06:33:20 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4FD018FC0C for ; Wed, 4 Apr 2012 06:33:20 +0000 (UTC) Received: by yhgm50 with SMTP id m50so249711yhg.13 for ; Tue, 03 Apr 2012 23:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=qnGWwI18emIplv3r4IvZ5ItlhQmxyfdSRtLBuehKJp8=; b=kEYfIdAohzraQC5IaSyVXhgC6zbMaiN8DnAd4sKT9U9oX1/6Z8p6oG1FBP3H/qWN0+ F7o4XRMr3Ea+4eTIzTP2ZrYsF+MjpUopO2sV3IRrWVFy2ljh4X1STx+ixYYw8gEpQ/9a 7RpYpp/mXDL7tLATZ7tpnimS9K5PQLzIRAmxNvZUqABwQ8pCAt0G0WlMrikHRuZKmwpB U+lCuMpWPGJ4iUqAei/n+lqR0w/gewgvUf0SyQx1xjS7rOyjtRM+aW3OSln59uKcBi3O s2UMYu0qQFdTDj3RDrO9Q2Gf5byAEcXvwsZAAFMDjH9FBIxTkuRirhcfFL/JpDO789yn ckYA== MIME-Version: 1.0 Received: by 10.100.246.16 with SMTP id t16mr4505593anh.3.1333521194693; Tue, 03 Apr 2012 23:33:14 -0700 (PDT) Received: by 10.236.136.234 with HTTP; Tue, 3 Apr 2012 23:33:14 -0700 (PDT) In-Reply-To: References: Date: Tue, 3 Apr 2012 23:33:14 -0700 Message-ID: From: Neel Natu To: Takuya ASADA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-virtualization@freebsd.org Subject: Re: Howto close BHyVe console X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 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, 04 Apr 2012 06:33:20 -0000 Hi Takuya, On Tue, Apr 3, 2012 at 3:39 AM, Takuya ASADA wrote: > Hi, > > Just for a little question, > I could run BHyVe on my PC with neel's guest image by following CFT > page(http://callfortesting.org/bhyve/), it just worked without > problem, but I couldn't shutdown guest OS safely. > shutdown command in guest OS doesn't poweroff the VM, and I have no > idea to close bhyve console. > Is there any shortcut-key or commands to shutdown it? > If you type "quit" or "reboot" at the loader prompt in the guest it will exit with a non-zero exit code. You could modify the script that launches the 'bhyveload' and 'bhyve' programs to quit if the exit code is non-zero. Something like this, perhaps: while [ 1 ]; do # Launch the userboot loader bhyveload ... if [ $? -ne 0 ]; then exit 1 fi # Launch bhyve bhyve ... if [ $? -ne 0 ]; then exit 1 fi done > I also tried vmmctl --vm=3D --destroy, but it suddenly causes pa= nic. > kill && vmmctl --vm=3D --destroy had worked, so I > guess =A0the panic reason is because /usr/sbin/bhyve still holding > /dev/vmm/. > Yup, you got that right. best Neel > Takuya ASADA > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@free= bsd.org"