From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 2 05:42:45 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 61D97106566C for ; Mon, 2 Apr 2012 05:42:45 +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 CC7E18FC12 for ; Mon, 2 Apr 2012 05:42:44 +0000 (UTC) Received: by vcmm1 with SMTP id m1so2125205vcm.13 for ; Sun, 01 Apr 2012 22:42:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=C3ft90AQPIGVcjAHhvqfBGKKb2GxCM7KkzY/0Bm3Cgg=; b=X4fMhahqCOMIpz2RU/QIH5rArn4khSyu9qWNXV+eaxTa837xxHsbTMXIfOIAxuW0KB R2JJtnF+XcQP6UlZg7r52FM27Si5sWe1rNGCK/H1/lVcSzNgCZOXHgob7mc6dcE78dz/ dyNsSLMKClY0dZon0xj9VDnqpzPBwuOyAcmVGqUQqq6z0AIvdCbazxI9t9dSz8BQHXOL dKiaTz9Uuz1A92DI5RBQzZ6sknxT2cLdMN6yS24bHNREfDXH8oQOOkyVDVygEkT+DTvJ DsOxrN2bK4UeSz9sSoCcp9FvRx0dwhOzSRqsljTN22/+Ok/RVcqhy21mgB9ddbYKQJ6K 7r8w== MIME-Version: 1.0 Received: by 10.52.64.200 with SMTP id q8mr2617687vds.92.1333345364256; Sun, 01 Apr 2012 22:42:44 -0700 (PDT) Received: by 10.220.99.20 with HTTP; Sun, 1 Apr 2012 22:42:44 -0700 (PDT) In-Reply-To: References: Date: Mon, 2 Apr 2012 15:42:44 +1000 Message-ID: From: Petro Rossini To: Adam Vande More Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-emulation@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-emulation@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 02 Apr 2012 05:42:45 -0000 Hi Adam and all, at the end my problem description I sent to -virtualization first. (Thanks Adam, to pointing out that I am barking up the wrong tree;-) On Mon, Apr 2, 2012 at 3:28 PM, Adam Vande More wro= te: > On Sun, Apr 1, 2012 at 11:44 PM, Petro Rossini >> > AFAICT, that error message is related to a permissions issue.=A0 Can y= ou >> > supply the VM log when you post the question to emulation? >> >> See you there:-) But there isn't much I found: >> >> 00:00:01.368 nspr-2 =A0 Loading settings file >> "/vboxes/zimbra/zimbra.vbox" with version "1.11-freebsd" >> 00:00:01.885 Watcher =A0ERROR [COM]: aRC=3DNS_ERROR_FAILURE (0x80004005) >> aIID=3D{5eaa9319-62fc-4b0a-843c-0cb1940f8a91} aComponent=3D{Machine} >> aText=3D{The virtual machine 'zimbra' has terminated unexpectedly during >> startup with exit code 0}, preserve=3Dfalse > > > I would like to see it in full if possible. Where else could I look? This is what I could find: # cat VBoxSVC.log.3 VirtualBox (XP)COM Server 4.1.8_OSE r75467 freebsd.amd64 (Apr 1 2012 23:02:19) release log 00:00:00.001 main Log opened 2012-04-01T13:05:46.587439000Z 00:00:00.001 main OS Product: FreeBSD 00:00:00.001 main OS Release: 9.0-STABLE 00:00:00.001 main OS Version: FreeBSD 9.0-STABLE #5: Sun Apr 1 21:07:30 EST 2012 root@DellT410one.vv.fda:/usr/obj/usr/src/sys/GENERIC 00:00:00.001 main OS Service Pack: FreeBSD 9.0-STABLE #5: Sun Apr 1 21:07:30 EST 2012 root@DellT410one.vv.fda:/usr/obj/usr/src/sys/GENERIC 00:00:00.001 main Executable: /usr/local/lib/virtualbox/VBoxSVC 00:00:00.001 main Process ID: 86377 00:00:00.001 main Package type: BSD_64BITS_GENERIC (OSE) 00:00:00.121 nspr-2 Loading settings file "/root/.VirtualBox/VirtualBox.xml" with version "1.10-freebsd" 00:00:01.331 nspr-2 VDInit finished 00:00:01.368 nspr-2 Loading settings file "/vboxes/zimbra/zimbra.vbox" with version "1.11-freebsd" 00:00:01.885 Watcher ERROR [COM]: aRC=3DNS_ERROR_FAILURE (0x80004005) aIID=3D{5eaa9319-62fc-4b0a-843c-0cb1940f8a91} aComponent=3D{Machine} aText=3D{The virtual machine 'zimbra' has terminated unexpectedly during startup with exit code 0}, preserve=3Dfalse 00:00:06.888 main ERROR [COM]: aRC=3DVBOX_E_OBJECT_IN_USE (0x80bb000c) aIID=3D{53f9cc0c-e0fd-40a5-a404-a7a5272082cd} aComponent=3D{Medium} aText=3D{Medium '/root/.VirtualBox/zimbra/zimbra_root.vdi' cannot be closed because it is still attached to 1 virtual machines}, preserve=3Dfalse 00:00:06.888 main ERROR [COM]: aRC=3DVBOX_E_OBJECT_IN_USE (0x80bb000c) aIID=3D{53f9cc0c-e0fd-40a5-a404-a7a5272082cd} aComponent=3D{Medium} aText=3D{Medium '/root/.VirtualBox/zimbra/zimbra_swap.vdi' cannot be closed because it is still attached to 1 virtual machines}, preserve=3Dfalse 00:00:06.888 main ERROR [COM]: aRC=3DVBOX_E_OBJECT_IN_USE (0x80bb000c) aIID=3D{53f9cc0c-e0fd-40a5-a404-a7a5272082cd} aComponent=3D{Medium} aText=3D{Medium '/root/.VirtualBox/zimbra/zimbra_var.vdi' cannot be closed because it is still attached to 1 virtual machines}, preserve=3Dfalse 00:00:06.888 main ERROR [COM]: aRC=3DVBOX_E_OBJECT_IN_USE (0x80bb000c) aIID=3D{53f9cc0c-e0fd-40a5-a404-a7a5272082cd} aComponent=3D{Medium} aText=3D{Medium '/root/.VirtualBox/zimbra/zimbra_opt_zimbra.vdi' cannot be closed because it is still attached to 1 virtual machines}, preserve=3Dfalse 00:00:06.888 main ERROR [COM]: aRC=3DVBOX_E_OBJECT_IN_USE (0x80bb000c) aIID=3D{53f9cc0c-e0fd-40a5-a404-a7a5272082cd} aComponent=3D{Medium} aText=3D{Medium '/root/.VirtualBox/zimbra/zimbra_opt_zimbra_db.vdi' cannot be closed because it is still attached to 1 virtual machines}, preserve=3Dfalse 00:00:06.888 main ERROR [COM]: aRC=3DVBOX_E_OBJECT_IN_USE (0x80bb000c) aIID=3D{53f9cc0c-e0fd-40a5-a404-a7a5272082cd} aComponent=3D{Medium} aText=3D{Medium '/root/.VirtualBox/zimbra/zimbra_opt_zimbra_index.vdi' cannot be closed because it is still attached to 1 virtual machines}, preserve=3Dfalse 00:00:06.889 main ERROR [COM]: aRC=3DVBOX_E_OBJECT_IN_USE (0x80bb000c) aIID=3D{53f9cc0c-e0fd-40a5-a404-a7a5272082cd} aComponent=3D{Medium} aText=3D{Medium '/root/.VirtualBox/zimbra/zimbra_opt_zimbra_store.vdi' cannot be closed because it is still attached to 1 virtual machines}, preserve=3Dfalse 00:00:06.895 Watcher ERROR [COM]: aRC=3DE_ACCESSDENIED (0x80070005) aIID=3D{c28be65f-1a8f-43b4-81f1-eb60cb516e66} aComponent=3D{VirtualBox} aText=3D{The object is not ready}, preserve=3Dfalse The disk errors come 5 seconds after the termination so I guess it isn't really related. But I can be wrong. Regards Peter Here my first post: 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=3DDID_OK driverbyte=3DDRIVER_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