From owner-freebsd-emulation@FreeBSD.ORG Tue Jun 17 00:00:54 2014 Return-Path: Delivered-To: emulation@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 08545392 for ; Tue, 17 Jun 2014 00:00:54 +0000 (UTC) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id E7F2A2D14 for ; Tue, 17 Jun 2014 00:00:53 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id s5H00k2Q037353 for ; Mon, 16 Jun 2014 17:00:47 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <539F852E.9000007@rawbw.com> Date: Mon, 16 Jun 2014 17:00:46 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "freebsd-emulation@freebsd.org" Subject: VM working off the file backed md(4) disk aborts with an assertion: Expression: pCritSect->u32Magic == RTCRITSECT_MAGIC Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2014 00:00:54 -0000 I am trying to run the amd64 9.2 bootable UFS disk image as a VM in vbox-4.3.12 on amd64 9.2 host system. It starts, but in a few minutes fails with an assert: 00:39:29.307864 !!Assertion Failed!! 00:39:29.307864 Expression: pCritSect->u32Magic == RTCRITSECT_MAGIC 00:39:29.307866 Location : /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.12/src/VBox/Runtime/generic/critsect-generic.cpp(197) int rtCritSectEnter(RTCRITSECT*, const RTLOCKVALSRCPOS*) I am not sure if anybody ever tested virtual box this way, just reporting this issue here. My original purpose of doing this was testing out the upgrade to 10 process in a non-destructive way. But this apparently doesn't succeed so far. Bootable UFS is a snapshot of the live system: mount -u -o snapshot /huge-disk/snapshot.img / md0 is created with this command: mdconfig -a -t vnode -f /huge-disk/snapshot.img vmdk is created with this command: VBoxManage internalcommands createrawvmdk -filename vm-root.vmdk -rawdisk /dev/md0 --- vmdk disk file --- # Disk DescriptorFile version=1 CID=5c23f5d3 parentCID=ffffffff createType="fullDevice" # Extent description RW 356515855 FLAT "/dev/md0" 0 # The disk Data Base #DDB ddb.virtualHWVersion = "4" ddb.adapterType="ide" ddb.geometry.cylinders="16383" ddb.geometry.heads="16" ddb.geometry.sectors="63" ddb.uuid.image="c2680566-6c07-4268-b2a5-74588f4af8c9" ddb.uuid.parent="00000000-0000-0000-0000-000000000000" ddb.uuid.modification="714b9817-ca57-4c8d-8e87-c757bb14b78a" ddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000" ddb.geometry.biosCylinders="1024" ddb.geometry.biosHeads="255" ddb.geometry.biosSectors="63" Yuri