From owner-freebsd-virtualization@FreeBSD.ORG Wed Apr 7 02:33:58 2010 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 359F21065670 for ; Wed, 7 Apr 2010 02:33:58 +0000 (UTC) (envelope-from meappy@gmail.com) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.221.181]) by mx1.freebsd.org (Postfix) with ESMTP id D52658FC19 for ; Wed, 7 Apr 2010 02:33:57 +0000 (UTC) Received: by qyk11 with SMTP id 11so596475qyk.13 for ; Tue, 06 Apr 2010 19:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=ffyYvI0KzFTDddRYw7iraDHezq1k3jl4u0+oDsk3Xo8=; b=cSlzJUKlfjMMtSkhz3pL934movz/q2PlbSIPXpujRp3lXkEirnAPGkyB2l4MYPZCGX LLb6bpKl/uV3Li3ZF38MX3sUuMPa2wJCaGaXNXAp3q3D/hOeyrpM7VqEk8nkmeC7zb/2 CnKXaL7paJJOk7f7s1sXmZ95Y9uGAWc/nS+1Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=G2JgTyIHExGXCVYPmQYP1AwjMQE+p32QwXLqwRHoRt5lpymYAj//K4xPwFdS/WEl6W CKIY0d0jJwhsZ59tNwe9FSwb38dIXhBIyG3uZdPJGwEV6Zqqe2p34mpGoeKtB6688bgp lHuleHws58O2rodNvJZO+ccNJYZR5foAxpPlI= MIME-Version: 1.0 Received: by 10.229.28.139 with HTTP; Tue, 6 Apr 2010 19:04:50 -0700 (PDT) Date: Wed, 7 Apr 2010 10:04:50 +0800 Received: by 10.229.242.3 with SMTP id lg3mr495649qcb.102.1270605890592; Tue, 06 Apr 2010 19:04:50 -0700 (PDT) Message-ID: From: Gerald To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Issue with VBox 3.1.6 OSE on FBSD 8.0 Release, Bug? 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, 07 Apr 2010 02:33:58 -0000 Hi, There is an issue with starting vbox 3.1.6 OSE in FBSD 8 release... I get the following then trying to start up vbox, can anyone help? # VBoxManage createvm --name "CentOS-5.4-i386" --register Sun VirtualBox Command Line Management Interface Version 3.1.6_OSE (C) 2005-2010 Sun Microsystems, Inc. All rights reserved. ERROR: failed to create a session object! ERROR: code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not registered (extended info not available) Most likely, the VirtualBox COM server is not running or failed to start. Information about my system and dir permissions # uname -a FreeBSD fw 8.0-RELEASE FreeBSD 8.0-RELEASE #1: Fri Apr 2 23:54:10 SGT 2010 # cd / && ls -la | grep -i tmp drwxrwxrwt 8 root wheel 512 Apr 4 00:47 tmp # cd /tmp && ls -la | grep -i vbox drwx------ 2 root wheel 512 Apr 4 00:47 .vbox-root-ipc From owner-freebsd-virtualization@FreeBSD.ORG Fri Apr 9 18:46:04 2010 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED5D9106566C for ; Fri, 9 Apr 2010 18:46:03 +0000 (UTC) (envelope-from julianelischer@gmail.com) Received: from mail-ew0-f224.google.com (mail-ew0-f224.google.com [209.85.219.224]) by mx1.freebsd.org (Postfix) with ESMTP id 794F58FC1C for ; Fri, 9 Apr 2010 18:46:03 +0000 (UTC) Received: by ewy24 with SMTP id 24so418324ewy.33 for ; Fri, 09 Apr 2010 11:46:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=+btYk7mUkZsh0KSEknJ0VHzTjqfr3Grsfzqzx90hxXM=; b=oH3g43EO4SwLaLsZ+4PguC9xUZkcxnaOIQAHOSAG5ESIy4035xHmQJ9tb+k0M+4lV+ aRDZKIaPNd/x0IciipqPddABHHlzGhycqSap0CRnnFT4evK4Iiz2ugS0fpGM4ubFl5Q+ TkECH1dniPxsetTKbJqf3ZZqgIVJL5YU5KUjg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=MQzRWghhAKZdc3VTDc1HGH3Ewy2cEVhzFtWwj1WjCa2YjHcp76vX6dXjYMO9ACro5D YvH9cRCibmrhgHYo29u43oWvNFlBpyxHoPx3mmgyd36jqkLRSVbTnuLhfDjb6tU4ElbM Z3jOZFoBFfORCESImKieD2YV1nFRSzdNEMRj8= Received: by 10.213.109.147 with SMTP id j19mr245453ebp.25.1270838356272; Fri, 09 Apr 2010 11:39:16 -0700 (PDT) Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by mx.google.com with ESMTPS id 14sm936662ewy.14.2010.04.09.11.39.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Apr 2010 11:39:14 -0700 (PDT) Sender: Julian Elischer Message-ID: <4BBF7452.1080208@elischer.org> Date: Fri, 09 Apr 2010 11:39:14 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Luigi Rizzo , virtualization@freebsd.org References: <4BBCE3EE.506@halleforshunden.org> <20100409181428.GA55834@onelab2.iet.unipi.it> In-Reply-To: <20100409181428.GA55834@onelab2.iet.unipi.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: dummynet and vnet kernel panic 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: Fri, 09 Apr 2010 18:46:04 -0000 On 4/9/10 11:14 AM, Luigi Rizzo wrote: > On Wed, Apr 07, 2010 at 09:58:38PM +0200, Anders Hagman wrote: >> Hi >> >> When using dummynet inside a vnet node with a simple pipe the kernel >> panic on the first packet. >> >> I use 8.0-STABLE cvsuped at 7 Apr 15:28 >> The ipfw code with dummynet is largely changed and the patch in the url >> below will not work. >> http://www.freebsd.org/cgi/query-pr.cgi?pr=143621 >> >> Is there a fix in the near future? > > URL: http://svn.freebsd.org/changeset/base/206428 > > Log: > This commit enables partial operation of dummynet with kernels > compiled with "options VIMAGE". > As it is now, there is still a single instance of the pipes, > and it is only usable from vnet0 (the main instance). > Trying to use a pipe from a different vimage does not crash > the system as it did before, but the traffic coming out from > the pipe goes to the wrong place, and i still need to > figure out where. > > Support for per-vimage pipes is almost there (just a matter of > uncommenting the VNET_* definitions for dn_cfg, plus putting into > the structure the remaining static variables), however i need > first to figure out how init/uninit work, and also to understand > where packets are ending up on exit from a pipe. please read: http://p4db.freebsd.org/fileLogView.cgi?FSPC=//depot/projects/vimage/porting_to_vimage.txt and let me know if you have questions so I can fix the doc. > In summary: vimage support for dummynet is not complete yet, > but we are getting there. > > Modified: > head/sys/netinet/ipfw/ip_dn_io.c > head/sys/netinet/ipfw/ip_dn_private.h > head/sys/netinet/ipfw/ip_dummynet.c > > >> BR >> /Anders H >> _______________________________________________ >> freebsd-ipfw@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw >> To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-ipfw@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw > To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" From owner-freebsd-virtualization@FreeBSD.ORG Fri Apr 9 19:07:11 2010 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A86B1065673; Fri, 9 Apr 2010 19:07:11 +0000 (UTC) (envelope-from julianelischer@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by mx1.freebsd.org (Postfix) with ESMTP id A25A98FC14; Fri, 9 Apr 2010 19:07:10 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id d26so244955eyd.9 for ; Fri, 09 Apr 2010 12:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=C6LLTF0Gjrf9XnJOzR0zcFwjDYjmc6PAlGhmZE7r/1k=; b=aiZSwBoW64ukhAR+qsHefUAt4ya6jtSeM2Am2JXKPaFoJzUFuq/C6aobfdnpUuNqwk B83ywuEFI1fnbfeT2PRUyRnVcYK077dneaqfdj07X/CnxxF7lVIC32Om3GmrDKGkXyiM UTCcJKPD9DhK6PMtX8SRjtA5BnVWZfUnVIjiU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=GyUyWiUpPaMxY2utwuqxOnFtUgMRNr9KeAyJevYdAlOFnAnkY/Ot/hQgDgUMNebdjH g45ZuCkkQsz28Sfufunmz7mBVi2aKNGnHhq9+Fo5f9I2fkZ6bia07a9QoPkUcROS5Jz5 iXhMeLUZIs8ekhcah+ynfobZFOHPd+xDhYTZE= Received: by 10.213.56.76 with SMTP id x12mr611060ebg.66.1270838157343; Fri, 09 Apr 2010 11:35:57 -0700 (PDT) Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by mx.google.com with ESMTPS id 14sm937597ewy.6.2010.04.09.11.35.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Apr 2010 11:35:55 -0700 (PDT) Sender: Julian Elischer Message-ID: <4BBF7387.5010604@elischer.org> Date: Fri, 09 Apr 2010 11:35:51 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Luigi Rizzo References: <4BBCE3EE.506@halleforshunden.org> <20100407203802.GA91356@onelab2.iet.unipi.it> <4BBCF17F.4000408@elischer.org> <20100409141722.GA53191@onelab2.iet.unipi.it> In-Reply-To: <20100409141722.GA53191@onelab2.iet.unipi.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: virtualization@freebsd.org, anchie@freebsd.org, Anders Hagman Subject: Re: dummynet and vnet kernel panic 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: Fri, 09 Apr 2010 19:07:11 -0000 On 4/9/10 7:17 AM, Luigi Rizzo wrote: > On Wed, Apr 07, 2010 at 01:56:31PM -0700, Julian Elischer wrote: >> On 4/7/10 1:38 PM, Luigi Rizzo wrote: >>> On Wed, Apr 07, 2010 at 09:58:38PM +0200, Anders Hagman wrote: Note: different To: list >>>> Hi >>>> >>>> When using dummynet inside a vnet node with a simple pipe the kernel >>>> panic on the first packet. >>>> >>>> I use 8.0-STABLE cvsuped at 7 Apr 15:28 >>>> The ipfw code with dummynet is largely changed and the patch in the url >>>> below will not work. >>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=143621 >>>> >>>> Is there a fix in the near future? >>> >>> haven't tried it myself, but adapting the patch seems >>> reasonably trivial. I'll see what i can do. >>> >>> Are there any vnet experts who can comment ? >> >> the change itself looks as if it makes sense >> but I have not really tested it or gone to great length. >> >> ----------- >> >> the following URL gives you the change that was made to make the OLD >> version of dummynet Vimage compatible. >> >> http://p4db.freebsd.org/fileLogView.cgi?FSPC=//depot/projects/vimage/src/sys/netinet/ipfw/ip_dummynet.c > > Question: > the change in PR 143621 just makes sure that curvnet > points to something sensible while a packet is reinjected > by dummynet_send(); > the code in P4 does something completely different, as it > remaps the global variables to the per-vimage ones, and does > not seem to touch dummynet_send() at all. > So how does the code in P4 make sure that curvnet is set properly ? I can't say becasue I didn't do it. But I believe after that change, dummynet was virtualized, but as I didn't do it I can't say what was tested. > >> does this still apply to 8.x? or did you redo the dummynet in 8? >> if you didn't it may be worth looking to see if these changes apply to >> 8.x real soon before it's frozen. > > former global variables are now mostly in a single struct, dn_cfg. > There are however 150 lines where the global variable is used, so > I am bit scared at renaming all of these occurrences from dn_cfg > to V_dn_cfg. I'd rather follow a different approach, i.e it woudl work but we avoided that way because we specifically wantet to be able to see at a glance whether virtualization is involved somewhere. The change of name is just a single vi command.. > > VNET_DEFINE(struct dn_cfg, _base_dn_cfg); > #define dn_cfg VNET(_base_dn_cfg) > > would this make sense to you ? > > cheers > luigi From owner-freebsd-virtualization@FreeBSD.ORG Fri Apr 9 19:07:43 2010 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BA9F1065678; Fri, 9 Apr 2010 19:07:43 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id D3B588FC15; Fri, 9 Apr 2010 19:07:42 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 1121673098; Fri, 9 Apr 2010 20:58:45 +0200 (CEST) Date: Fri, 9 Apr 2010 20:58:45 +0200 From: Luigi Rizzo To: Julian Elischer Message-ID: <20100409185845.GA56240@onelab2.iet.unipi.it> References: <4BBCE3EE.506@halleforshunden.org> <20100407203802.GA91356@onelab2.iet.unipi.it> <4BBCF17F.4000408@elischer.org> <20100409141722.GA53191@onelab2.iet.unipi.it> <4BBF7387.5010604@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BBF7387.5010604@elischer.org> User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Fri, 09 Apr 2010 22:58:01 +0000 Cc: virtualization@freebsd.org, anchie@freebsd.org, Anders Hagman Subject: Re: dummynet and vnet kernel panic 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: Fri, 09 Apr 2010 19:07:43 -0000 On Fri, Apr 09, 2010 at 11:35:51AM -0700, Julian Elischer wrote: > On 4/9/10 7:17 AM, Luigi Rizzo wrote: ... > >former global variables are now mostly in a single struct, dn_cfg. > >There are however 150 lines where the global variable is used, so > >I am bit scared at renaming all of these occurrences from dn_cfg > >to V_dn_cfg. I'd rather follow a different approach, i.e > > it woudl work but we avoided that way because we specifically wantet > to be able to see at a glance whether virtualization is involved > somewhere. The change of name is just a single vi command.. Yes but the V_visual effect is V_horrible! Besides, all per-vimage state will be in a single variable, it will be easy for the programmer to know which is which. cheers luigi