From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 20 12:02:29 2014 Return-Path: Delivered-To: emulation@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 69B1CA16 for ; Thu, 20 Mar 2014 12:02:29 +0000 (UTC) Received: from mail-ob0-x236.google.com (mail-ob0-x236.google.com [IPv6:2607:f8b0:4003:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2A670AAD for ; Thu, 20 Mar 2014 12:02:29 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id uz6so739612obc.41 for ; Thu, 20 Mar 2014 05:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=wyaXVbE+o4sg48PSfaIkM4x1Ij0IczbK7wWlxWWrtFA=; b=W1ZRUqWonravFq2VjR3e2qfhvWbhK0GM1E0P+IhhwJIGCOAOJd2H5sFXiiKGghM6JQ APzjMhpWxPrIOkWThQNb3EsJYzNZKKc4lCh2nIVItxjWUCn4aMpq8orRVtNLp+F8X3ho 0XtC3a7xitZ4MlPJlDjFa1TLEN9FEbpX843i8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=wyaXVbE+o4sg48PSfaIkM4x1Ij0IczbK7wWlxWWrtFA=; b=ah/xIBHhKPrBOWkAoF6Vvgf+iMliR583njsCiqshiGsclrRNyag0jPyCbL/RKU3dsJ RiXQ0EY//WBnd8URrbOG96Z1UkKWmWach/NiPE56Dxmh30CV/Ui3clfJSw7l4YLtQqCR WuZH8sidc+EWIY20GuQbh4tl3q7kprrnKDyawi1iAUPtn0kZnx3xkcC8rsh42yguQdXi 0xUTWjQCW7dnRyqXuy1njmXk2R9u+4JXCJ7b5aAjteQ6l1aytvig9+p/2T8ls9dB8x1C NxhDqWjpKNIkdEuuhv5koWGr4GjHj2TDmphShslobfPksHFMqUHy8VnyWM7QQbQNcyqX 80mg== X-Gm-Message-State: ALoCoQk/hkilcGhcZ0udbeMqPofDcs2Er/lqG2NpKrWHPGExayHw58afyh3E4jPI8LZEcNZquz6x MIME-Version: 1.0 X-Received: by 10.182.48.233 with SMTP id p9mr6736210obn.44.1395316948413; Thu, 20 Mar 2014 05:02:28 -0700 (PDT) Sender: decke@bluelife.at Received: by 10.76.144.71 with HTTP; Thu, 20 Mar 2014 05:02:28 -0700 (PDT) X-Originating-IP: [80.123.233.199] In-Reply-To: References: Date: Thu, 20 Mar 2014 13:02:28 +0100 X-Google-Sender-Auth: Qk2tc0IcBvKi-f_GJxEBnqOYQWI Message-ID: Subject: Re: VBoxManage errors at boot From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= To: Thomas Hoffmann Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-emulation@freebsd.org" X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.17 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: Thu, 20 Mar 2014 12:02:29 -0000 On Thu, Mar 20, 2014 at 8:53 AM, Thomas Hoffmann wrote: > On Wed, Mar 19, 2014 at 11:25 PM, Thomas Hoffmann wrote: > >> On Wed, Mar 19, 2014 at 10:31 PM, Thomas Hoffmann wrote: >> >>> I'm running emulators/virtualbox-ose-4.3.8 on -CURRENT r263411 amd64. The >>> last several boot sequences I have noticed the following errors in the >>> console log: >>> >>> Mar 19 22:11:01 tortoise kernel: VBoxManage: error: Failed to create the >>> VirtualBox object! >>> Mar 19 22:11:01 tortoise kernel: VBoxManage: error: Code NS_ERROR_ABORT >>> (0x80004004) - Operation aborted (extended info not available) >>> Mar 19 22:11:01 tortoise kernel: VBoxManage: error: Most likely, the >>> VirtualBox COM server is not running or failed to start. >>> >>> I'm perplexed by these messages because I do not have any cron jobs that >>> invoke VBoxManage @reboot for any purpose whatsoever be it managing or >>> starting a virtual machine. >>> >>> I'm thinking these messages appeared after the upgrade to 4.3.8, but I >>> cannot be certain. >>> >>> Can anyone provide a context for these errors? >>> >>> -Tom >>> >> >> I've done a bit of digging and can offer a bit more info. I upgraded >> virtualbox-ose to 4.3.8 on 3/3 and did not see the errors until 3/11, so >> the upgrade itself did not introduce the errors. The 3/3 upgrade was my >> last upgrade of virtualbox-ose and I did not re-install it after that. >> >> However, on 3/11 I built a new -CURRENT (r263062). Something in that build >> seems to have introduced the errors. My previous -CURRENT (r262295) built >> on 3/8 did not have the errors. >> >> I'm still looking into this. >> >> -Tom >> > > Okay, so I found the source of this error. In /usr/local/etc/rc.d/vboxnet > (I have vboxnet_enable in /etc/rc.conf) it attempts to execute the > following command for vboxnet_start: > # initialize configured host-only interfaces > /usr/local/bin/VBoxManage list hostonlyifs >/dev/null > > I can run VBoxManage as a normal user without any problems, but when I run > VBoxManage as root it results in the same three errors from my original > post. That is why it errors out during the boot process. I don't know if > that behavior is normal or not. > > In any event, don't understand the purpose of the VBoxManage command in > /usr/local/etc/rc.d/vboxnet since, contrary to the immediately preceding > comment, it is only listing (not initializing) hostonly interfaces and > sending the output to dev/null. It seems pointless. > > Anyway my conclusion is that the boot time error messages while annoying, > are harmless. I'm still not certain why the error messages just started > showing up in the console log on 3/11. It does exactly what the comment says. host-only interfaces need to be initialized (pretty early for some configurations) and the hostonlyifs listing is the least intrusive one which ensures that they are. It might be that the error output of vboxmanage has been switched to stderr now and we need to add an 2>/dev/null too. Have you recompiled all vbox kernel modules after your update to a new current? -- Bernhard Froehlich http://www.bluelife.at/