From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 1 01:35:28 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1AB6106566C for ; Mon, 1 Mar 2010 01:35:28 +0000 (UTC) (envelope-from adamk@voicenet.com) Received: from QMTA11.westchester.pa.mail.comcast.net (qmta11.westchester.pa.mail.comcast.net [76.96.59.211]) by mx1.freebsd.org (Postfix) with ESMTP id 51BAF8FC13 for ; Mon, 1 Mar 2010 01:35:27 +0000 (UTC) Received: from omta13.westchester.pa.mail.comcast.net ([76.96.62.52]) by QMTA11.westchester.pa.mail.comcast.net with comcast id nbYE1d00417dt5G5BdbUmC; Mon, 01 Mar 2010 01:35:28 +0000 Received: from sorrow.ashke.com ([68.45.22.62]) by omta13.westchester.pa.mail.comcast.net with comcast id ndbU1d0061LNQfY3ZdbUNH; Mon, 01 Mar 2010 01:35:28 +0000 Message-ID: <4B8B19DF.2040101@voicenet.com> Date: Sun, 28 Feb 2010 20:35:27 -0500 From: Adam K Kirchhoff User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.7) Gecko/20100208 Thunderbird/3.0.1 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org References: <215745.35399.qm@web27602.mail.ukl.yahoo.com> In-Reply-To: <215745.35399.qm@web27602.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Patch to fix VirtualBox with recent kernel versions 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, 01 Mar 2010 01:35:28 -0000 On 02/27/10 16:28, Alexander Eichner wrote: >> Von: Adam K Kirchhoff >> Betreff: Re: Patch to fix VirtualBox with recent kernel versions >> An: freebsd-emulation@freebsd.org >> Datum: Donnerstag, 25. Februar, 2010 01:10 Uhr >> On 02/24/2010 04:50 PM, Alexander >> Eichner wrote: >> >>> Hi, >>> >>> as promised to decke here is the final patch to fix >>> >> VirtualBox with recent FreeBSD kernel versions. As it is >> quite different to the one posted to freebsd-current please >> test it first before including it in the port. The problem >> seems to be 32bit specific and I don't have a 32bit FreeBSD >> system here to test unfortunately. >> >>> Regards, >>> Alexander Eichner >>> >>> PS: the OSE repository is working again. :) >>> >>> >> I tried the patch on one of my machines here and it's still >> aborting: >> >> >> !!Assertion Failed!! >> Expression: paPages[i].Phys != 0&& paPages[i].Phys >> != NIL_RTHCPHYS&& !(paPages[i].Phys& >> PAGE_OFFSET_MASK) >> Location : >> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-3.1.2_OSE/src/VBox/VMM/MMHyper.cpp(610) >> int MMR3HyperMapPages(VM*, void*, RTR0PTR, size_t, const >> SUPPAGE*, const char*, RTGCPTR64*) >> i=0x4 Phys=0000000000000000 Heap >> >> >> Adam >> > Hi, > > attached is a new version of the patch. I tested it on 32bit FreeBSD 8 > > Regards, > Alexander Eichner > > I'm sorry to say, but I'm getting the exact same Assertion Failed error as before with this new patch. The only difference this time is that i=0x7 instead of i=0x4. Adam From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 1 11:06:58 2010 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AB111065680 for ; Mon, 1 Mar 2010 11:06:58 +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 6DF898FC15 for ; Mon, 1 Mar 2010 11:06:58 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o21B6wcs017757 for ; Mon, 1 Mar 2010 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o21B6vF1017755 for freebsd-emulation@FreeBSD.org; Mon, 1 Mar 2010 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 1 Mar 2010 11:06:57 GMT Message-Id: <201003011106.o21B6vF1017755@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org 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, 01 Mar 2010 11:06:58 -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/144194 emulation [linux] [patch] linuxulator: 2 exec bug fixes o ports/142837 emulation [patch] emulators/linux_base-* packages fails to insta o kern/142595 emulation Implementation of "filesystems" file in linprocfs(5) o kern/142082 emulation [patch] [panic] linuxulator: getppid: use after free o kern/141439 emulation [linux] [patch] linux_exit_group kills group leader o kern/140156 emulation [linux] cdparanoia fails to read drive data o kern/139423 emulation [parallels] Networking does not work on amd64 guest on o kern/138944 emulation [parallels] [regression] Parallels no longer works in o kern/138880 emulation [linux] munmap segfaults after linux_mmap2 stresstest f ports/137332 emulation add caution messages to some adobe products s ports/136321 emulation x11-toolkits/linux-pango: please update linux based po o ports/136229 emulation [linux] emulators/linux_base-f10: certain linux apps l o ports/135337 emulation [PATCH] emulators/linux_base-f10: incorrect bash usage o kern/133144 emulation [linux] linuxulator 2.6 crashes with nvidias libGL.so. o kern/130724 emulation [linprocfs] [patch] cpuinfo in linprocfs is dated, cau o kern/129169 emulation [linux] [patch] Linux Emulation ENOTCONN error using n o kern/126232 emulation [linux] Linux ioctl TCGETS (0x5401) always fails o kern/73777 emulation [linux] [patch] linux emulation: root dir special hand a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/56451 emulation [linprocfs] [patch] /compat/linux/proc/cpuinfo gives w o kern/41543 emulation [patch] [request] easier wine/w23 support o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/29698 emulation [linux] [patch] linux ipcs doesn'work o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 25 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 1 15:16:15 2010 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 810ED106564A for ; Mon, 1 Mar 2010 15:16:15 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 75DD48FC0C for ; Mon, 1 Mar 2010 15:16:15 +0000 (UTC) Received: by elvis.mu.org (Postfix, from userid 1192) id D55141A3C8B; Mon, 1 Mar 2010 06:58:40 -0800 (PST) Date: Mon, 1 Mar 2010 06:58:40 -0800 From: Alfred Perlstein To: emulation@freebsd.org Message-ID: <20100301145840.GL50395@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: Is there an equiv of Linux KVM for FreeBSD? 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, 01 Mar 2010 15:16:15 -0000 Is there an equivalent to Linux's "KVM" (Kernel Virtual Machine) for FreeBSD? For reference, it appears that Linux KVM's homepage is here: http://www.linux-kvm.org/page/Main_Page Specifically anything that allows QoS of percent of the host machine's CPU to be allocated? -- - Alfred Perlstein .- AMA, VMOA #5191, 03 vmax, 92 gs500, 85 ch250 .- FreeBSD committer From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 1 18:37:22 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90808106566C; Mon, 1 Mar 2010 18:37:22 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-pz0-f197.google.com (mail-pz0-f197.google.com [209.85.222.197]) by mx1.freebsd.org (Postfix) with ESMTP id 28D098FC18; Mon, 1 Mar 2010 18:37:21 +0000 (UTC) Received: by pzk36 with SMTP id 36so63360pzk.8 for ; Mon, 01 Mar 2010 10:37:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=qb7HEq0DzLL5aj502ZUQFFRufU+cwvIFHA66gdQEaWk=; b=Wd1hT6AZ9UISfgXu0DQxwm/AMGGK4/G0hYxHHCGQASWTU0RzHcx3TPh/F9Wp6HKPTA dlWu+d9GUjiBT+rnB0AOM/KLOpTT0YnE7C6dlVe0R7U6a6lT3ZZq2P+JEAZwCSax8nYg xkEm3xg++7MvKMNgE8WW4R++DT+6u6frjhiPs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=RtCJ9WHwXKbyE7g5IUSOXH4l1GTrCKyDYdoSoMmeLxxr13oBbEH4H4htUvD9uEMjGF T9jwOS4xSeshSqUQq553d4D+8dbCieCGrYpcUdm1ok8eR/WlyZqJnbEe8b51QwiXt7G3 WH2HlaYpATlPoQivTkYTRCKArq/jdhkoUmfBk= MIME-Version: 1.0 Received: by 10.142.7.29 with SMTP id 29mr2785851wfg.192.1267468637788; Mon, 01 Mar 2010 10:37:17 -0800 (PST) In-Reply-To: <3bbf2fe11002201419v52b249ccg8d82c8ae747cf318@mail.gmail.com> References: <179b97fb1001270941m2d8e9c8au20abc798c16b9c11@mail.gmail.com> <3bbf2fe11002201419v52b249ccg8d82c8ae747cf318@mail.gmail.com> Date: Mon, 1 Mar 2010 12:37:17 -0600 Message-ID: <179b97fb1003011037w4828ca1fj8de0cb5da35dfc3f@mail.gmail.com> From: Brandon Gooch To: Attilio Rao Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org, freebsd-emulation@freebsd.org, FreeBSD Current , stable-list freebsd , John Baldwin Subject: Re: ZFS and sh(1) panic: spin lock [lock addr] (smp rendezvous) held by [sh(1) proc tid] too long 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, 01 Mar 2010 18:37:22 -0000 On Sat, Feb 20, 2010 at 4:19 PM, Attilio Rao wrote: > 2010/1/27 Brandon Gooch : >> The machine, a Dell Optiplex 755, has been locking up recently. The >> situation usually occurs while using VirtualBox (running a 64-bit >> Windows 7 instance) and doing anything else in another xterm (such as >> rebuilding a port). =A0I've been unable to reliably reproduce it (I'm in >> an X session and the machine will not panic "properly"). >> >> However, while rebuilding Xorg today at ttyv0 and runnning >> VBoxHeadless on ttyv1, I managed to trigger what I believe is the >> lockup. >> >> I've attached a textdump in hopes that someone may be able to take a >> look and provide clues or instruction on debugging this. > > I think that jhb@ saw a similar problem while working on nVidia driver > or the like. > Not sure if he made any progress to debug this. > The situation has improved slightly, although attempting to run two VirtualBox guests at the same time inevitably leads to a lock-up. I've just taken to running one at a time. Not ideal, but until more debugging can be done, it's the only option I have. I ran into this using nvidia and radeon both. I can't really find a pattern, but I do see it when Windows is trying to draw a new window, or dim the screen when UAC kicks in... BTW, anyone know how to get a good dump when running Xorg? I'm not sure I've ever been able to, even when I panic on something non related to X or video drivers. -Brandon From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 1 18:47:15 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7635A1065769; Mon, 1 Mar 2010 18:47:15 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 342698FC33; Mon, 1 Mar 2010 18:47:15 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id BFFC046B49; Mon, 1 Mar 2010 13:47:14 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id C30998A024; Mon, 1 Mar 2010 13:47:13 -0500 (EST) From: John Baldwin To: Juergen Lock Date: Mon, 1 Mar 2010 13:25:53 -0500 User-Agent: KMail/1.12.1 (FreeBSD/7.3-CBSD-20100217; KDE/4.3.1; amd64; ; ) References: <20100223215010.GA67619@triton8.kn-bremen.de> <201002261121.05068.jhb@freebsd.org> <20100226210952.GA2253@triton8.kn-bremen.de> In-Reply-To: <20100226210952.GA2253@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003011325.53617.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 01 Mar 2010 13:47:13 -0500 (EST) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org, Tim Kientzle Subject: Re: 32 bit Linux lseek missing overflow check (was: Re: Linuxolator patches: stat and lseek SEEK_END for disk devices) 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, 01 Mar 2010 18:47:15 -0000 On Friday 26 February 2010 4:09:52 pm Juergen Lock wrote: > On Fri, Feb 26, 2010 at 11:21:05AM -0500, John Baldwin wrote: > > On Thursday 25 February 2010 3:28:50 pm Juergen Lock wrote: > > > On Tue, Feb 23, 2010 at 10:50:10PM +0100, Juergen Lock wrote: > > > > Hi! > > > > > > > > Before this gets buried on -hackers in another thead... :) > > > > > > > > I now have disks appear as block devices for Linux processes (there > > > > already was commented out code for that in linux_stats.c, I hope my > > > > version is now `correct enough' to be usable [1]), and I made a simple > > > > patch to make lseek SEEK_END (L_XTND in the source) dtrt on disk > > > > devices too by simply invoking the DIOCGMEDIASIZE ioctl there; [2] > > > > both of these things are what (some) Linux processes expect. > > > > > > > > Patches are here: (made on stable/8, if they don't apply on head > > > > I'll have to make extra versions for that...) > > > > http://people.freebsd.org/~nox/linuxdisk-blk.patch [1] > > > > http://people.freebsd.org/~nox/lseek-seek_end.patch [2] > > > > > > > > And yes, with these patches the Linux bsdtar mentioned on -hackers > > > > in the `"tar tfv /dev/cd0" speedup patch' thread now also runs fast > > > > on FreeBSD. :) > > > > > > I now added an vn_isdisk() check to the second patch after comments from > > > julian, and I made a new patch that adds an overflow check to the 32 bit > > > linux lseek: (also at > > > http://people.freebsd.org/~nox/linux-lseek-overflow.patch > > > ) > > > > Hmm, when I asked Bruce, he actually said it was a feature that you didn't use > > vn_isdisk(). He also suggested that the proper way to fix lseek on devices is > > to fix stat in devfs to return a non-zero size. I have a possible fix to do > > that but haven't tested it yet: > > > > Index: devfs_vnops.c > > =================================================================== > > --- devfs_vnops.c (revision 204207) > > +++ devfs_vnops.c (working copy) > > @@ -44,6 +44,7 @@ > > #include > > #include > > #include > > +#include > > #include > > #include > > #include > > @@ -564,7 +565,11 @@ > > struct vattr *vap = ap->a_vap; > > int error = 0; > > struct devfs_dirent *de; > > + struct cdevsw *dsw; > > + struct thread *td; > > + struct file *fpop; > > struct cdev *dev; > > + off_t size; > > > > de = vp->v_data; > > KASSERT(de != NULL, ("Null dirent in devfs_getattr vp=%p", vp)); > > @@ -612,6 +617,18 @@ > > vap->va_ctime = dev->si_ctime; > > > > vap->va_rdev = cdev2priv(dev)->cdp_inode; > > + > > + dsw = dev_refthread(dev); > > + if (dsw != NULL) { > > + td = curthread; > > + fpop = td->td_fpop; > > + td->td_fpop = NULL; > > + if (dsw->d_ioctl(dev, DIOCGMEDIASIZE, (caddr_t)&size, > > + FREAD, td) == 0) > > + vap->va_size = size; > > + td->td_fpop = fpop; > > + dev_relthread(dev); > > + } > > } > > vap->va_gen = 0; > > vap->va_flags = 0; > > > > I had to add an D_DISK check, else it would panic at boot in a revoke > syscall in ttydev_ioctl in ttydev_enter, apparently in the tty_lock call: > (I didn't get a dump as it panic'd way too early in boot) > http://fxr.watson.org/fxr/source/kern/tty.c#L159 > > Maybe dev->si_drv1 is null here? > http://fxr.watson.org/fxr/source/kern/tty.c#L486 > > Anyway, with the D_DISK check added the patch seems to work: Unfortunately it panics in g_dev_ioctl() with INVARIANTS enabled. I will bug phk about that. -- John Baldwin From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 2 09:37:19 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28B28106566B for ; Tue, 2 Mar 2010 09:37:19 +0000 (UTC) (envelope-from alexeichi@yahoo.de) Received: from smtp144.mail.ukl.yahoo.com (smtp144.mail.ukl.yahoo.com [77.238.184.75]) by mx1.freebsd.org (Postfix) with SMTP id 8E69E8FC19 for ; Tue, 2 Mar 2010 09:37:18 +0000 (UTC) Received: (qmail 51582 invoked from network); 2 Mar 2010 09:37:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date:Message-ID:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=e336UZF8YZkCCIYzqQHK9jPpoFEa+lBhnWebmVTgHHqZ+pl2YA5ZoxjQSEj06dciyXivvoQcWi04lfKEIC83TTtw3wQxEGsL2Amx1TAkuyczy1SZhA4QTY8BP/n1Gvt2CfKSPXiKFPUvdc6al1D8OF78k7p2ac50FP7YEgksiwg= ; Received: from p57BBC91B.dip.t-dialin.net (alexeichi@87.187.201.27 with login) by smtp144.mail.ukl.yahoo.com with SMTP; 02 Mar 2010 09:37:14 +0000 GMT X-Yahoo-SMTP: yMol3buswBBNNUOSiWLj.UV.YXoMOg-- X-YMail-OSG: xe96RXEVM1lZrLX.fPhKCmn7YGO8.SPQ5S8e5bRkgtWI4OUsuM.Vu0qlMM4Umt3jaM3X0_FqNdUp3NVJPaEGYEUFVcVWiSwZ2vVGuhQ1WlcUGs9zwic4dGC4ta0wn0wq6wxOByEerofSblCr6J7TQRb9bNBNv68aa3VJ9WaXnmgnhS9.3tBsrOfHXiury6Luq85Pw4FIHaYgb8JL.h8f9GHrQLN5tyU00.EtNKQ3AVexa0mmQtvR1u6P8f5kHHglIryAfax.L7RuHxq2dUxAmyIOJEhuzKaDSqc- X-Yahoo-Newman-Property: ymail-3 From: Alexander Eichner To: Adam K Kirchhoff In-Reply-To: <4B8B19DF.2040101@voicenet.com> References: <215745.35399.qm@web27602.mail.ukl.yahoo.com> <4B8B19DF.2040101@voicenet.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 02 Mar 2010 10:37:13 +0100 Message-ID: <1267522633.3221.2.camel@Prometheus> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: Patch to fix VirtualBox with recent kernel versions 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: Tue, 02 Mar 2010 09:37:19 -0000 Adam K Kirchhoff wrote: > On 02/27/10 16:28, Alexander Eichner wrote: > >> Von: Adam K Kirchhoff > >> Betreff: Re: Patch to fix VirtualBox with recent kernel versions > >> An: freebsd-emulation@freebsd.org > >> Datum: Donnerstag, 25. Februar, 2010 01:10 Uhr > >> On 02/24/2010 04:50 PM, Alexander > >> Eichner wrote: > >> > >>> Hi, > >>> > >>> as promised to decke here is the final patch to fix > >>> > >> VirtualBox with recent FreeBSD kernel versions. As it is > >> quite different to the one posted to freebsd-current please > >> test it first before including it in the port. The problem > >> seems to be 32bit specific and I don't have a 32bit FreeBSD > >> system here to test unfortunately. > >> > >>> Regards, > >>> Alexander Eichner > >>> > >>> PS: the OSE repository is working again. :) > >>> > >>> > >> I tried the patch on one of my machines here and it's still > >> aborting: > >> > >> > >> !!Assertion Failed!! > >> Expression: paPages[i].Phys != 0&& paPages[i].Phys > >> != NIL_RTHCPHYS&& !(paPages[i].Phys& > >> PAGE_OFFSET_MASK) > >> Location : > >> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-3.1.2_OSE/src/VBox/VMM/MMHyper.cpp(610) > >> int MMR3HyperMapPages(VM*, void*, RTR0PTR, size_t, const > >> SUPPAGE*, const char*, RTGCPTR64*) > >> i=0x4 Phys=0000000000000000 Heap > >> > >> > >> Adam > >> > > Hi, > > > > attached is a new version of the patch. I tested it on 32bit FreeBSD 8 > > > > Regards, > > Alexander Eichner > > > > > > I'm sorry to say, but I'm getting the exact same Assertion Failed error > as before with this new patch. The only difference this time is that > i=0x7 instead of i=0x4. > > Adam > > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" That's not good. Everything works just fine here now on a 32bit FreeBSD 8.0 host. Can you give some information of your host (RAM, CPU, ...) and the guest configuration please? Do you have any special kernel options set? Regards, Alexander From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 2 11:57:50 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13AC61065674 for ; Tue, 2 Mar 2010 11:57:50 +0000 (UTC) (envelope-from adamk@voicenet.com) Received: from qmta09.emeryville.ca.mail.comcast.net (qmta09.emeryville.ca.mail.comcast.net [76.96.30.96]) by mx1.freebsd.org (Postfix) with ESMTP id EEF3D8FC20 for ; Tue, 2 Mar 2010 11:57:49 +0000 (UTC) Received: from omta23.emeryville.ca.mail.comcast.net ([76.96.30.90]) by qmta09.emeryville.ca.mail.comcast.net with comcast id oBvm1d0021wfjNsA9BxqEu; Tue, 02 Mar 2010 11:57:50 +0000 Received: from memory.visualtech.com ([67.103.204.242]) by omta23.emeryville.ca.mail.comcast.net with comcast id oBxe1d0045EJinX8jBxhun; Tue, 02 Mar 2010 11:57:48 +0000 Message-ID: <4B8CFD31.2080805@voicenet.com> Date: Tue, 02 Mar 2010 06:57:37 -0500 From: Adam K Kirchhoff User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.7) Gecko/20100209 Thunderbird/3.0.1 MIME-Version: 1.0 To: Alexander Eichner References: <215745.35399.qm@web27602.mail.ukl.yahoo.com> <4B8B19DF.2040101@voicenet.com> <1267522633.3221.2.camel@Prometheus> In-Reply-To: <1267522633.3221.2.camel@Prometheus> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: Patch to fix VirtualBox with recent kernel versions 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: Tue, 02 Mar 2010 11:57:50 -0000 On 03/02/10 04:37, Alexander Eichner wrote: > Adam K Kirchhoff wrote: > >> >> I'm sorry to say, but I'm getting the exact same Assertion Failed error >> as before with this new patch. The only difference this time is that >> i=0x7 instead of i=0x4. >> >> Adam >> >> _______________________________________________ >> freebsd-emulation@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-emulation >> To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" >> > That's not good. Everything works just fine here now on a 32bit FreeBSD > 8.0 host. Can you give some information of your host (RAM, CPU, ...) and > the guest configuration please? Do you have any special kernel options > set? I've been testing on two 32-bit installations. I was using a custom kernel on both, but I just tried with GENERIC on one of them and the crash of VirtualBox still happens. Both machines have 2 gigs of RAM, one with 3 gigs of swap and one with 2 gigs of swap. Both are running -CURRENT from 6 days ago. One machine: CPU: Intel(R) Xeon(TM) CPU 3.20GHz (3191.87-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf64 Stepping = 4 Features=0xbfebfbff Features2=0xe43d AMD Features=0x20100000 AMD Features2=0x1 TSC: P-state invariant real memory = 2147483648 (2048 MB) avail memory = 2084831232 (1988 MB) And the other: CPU: Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz (2327.49-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x10677 Stepping = 7 Features=0xbfebfbff Features2=0x8e39d AMD Features=0x20100000 AMD Features2=0x1 TSC: P-state invariant real memory = 2147483648 (2048 MB) avail memory = 2085683200 (1989 MB) The Xeon supports AMD-V, but it doesn't matter if I enable that in the acceleration configuration of the VM or not. On both machines I have tested the same Windows XP guest. Base memory is 512 MB, 1 CPU. The video memory is set at 64 megs. On one of the machines I have also tried Ubuntu. 128 megs of RAM, 1 CPU, 12 megs of video memory. 3D acceleration is disabled on both machines. The XML config file for the guest is here: http://pastebin.com/Qaqx7gTi I'm actually installing -CURRENT amd64 to a spare USB drive I have on the Xeon and can test to confirm that it works there since you believe this to be a problem only with 32-bit FreeBSD. Adam From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 2 13:00:36 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07FA1106567A for ; Tue, 2 Mar 2010 13:00:36 +0000 (UTC) (envelope-from enrico@majaglug.net) Received: from smtp-out04.alice.it (smtp-out04.alice.it [85.37.17.100]) by mx1.freebsd.org (Postfix) with ESMTP id 038A18FC20 for ; Tue, 2 Mar 2010 13:00:33 +0000 (UTC) Received: from FBCMMO05.fbc.local ([192.168.184.136]) by smtp-out04.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Tue, 2 Mar 2010 14:00:28 +0100 Received: from FBCMCL01B06.fbc.local ([192.168.69.87]) by FBCMMO05.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Tue, 2 Mar 2010 13:59:40 +0100 Received: from hal.homeunix.net ([79.2.236.253]) by FBCMCL01B06.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Tue, 2 Mar 2010 13:59:40 +0100 From: "Enrico M." To: freebsd-emulation@freebsd.org Date: Tue, 2 Mar 2010 13:59:38 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.5; i386; ; ) References: <215745.35399.qm@web27602.mail.ukl.yahoo.com> <1267522633.3221.2.camel@Prometheus> <4B8CFD31.2080805@voicenet.com> In-Reply-To: <4B8CFD31.2080805@voicenet.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201003021359.38127.enrico@majaglug.net> X-OriginalArrivalTime: 02 Mar 2010 12:59:40.0582 (UTC) FILETIME=[389D5460:01CABA08] Subject: Re: Patch to fix VirtualBox with recent kernel versions 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: Tue, 02 Mar 2010 13:00:36 -0000 On Tuesday 02 March 2010 12:57:37 Adam K Kirchhoff wrote: > On 03/02/10 04:37, Alexander Eichner wrote: > > Adam K Kirchhoff wrote: > >> I'm sorry to say, but I'm getting the exact same Assertion Failed error > >> as before with this new patch. The only difference this time is that > >> i=0x7 instead of i=0x4. > >> > >> Adam > >> > >> _______________________________________________ > >> freebsd-emulation@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > >> To unsubscribe, send any mail to > >> "freebsd-emulation-unsubscribe@freebsd.org" > > > > That's not good. Everything works just fine here now on a 32bit FreeBSD > > 8.0 host. Can you give some information of your host (RAM, CPU, ...) and > > the guest configuration please? Do you have any special kernel options > > set? > > I've been testing on two 32-bit installations. I was using a custom > kernel on both, but I just tried with GENERIC on one of them and the > crash of VirtualBox still happens. Both machines have 2 gigs of RAM, > one with 3 gigs of swap and one with 2 gigs of swap. Both are running > -CURRENT from 6 days ago. > > One machine: > > CPU: Intel(R) Xeon(TM) CPU 3.20GHz (3191.87-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf64 Stepping = 4 > > Features=0xbfebfbff CA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > Features2=0xe43d AMD > Features=0x20100000 > AMD Features2=0x1 > TSC: P-state invariant > real memory = 2147483648 (2048 MB) > avail memory = 2084831232 (1988 MB) > > And the other: > > CPU: Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz (2327.49-MHz > 686-class CPU) > Origin = "GenuineIntel" Id = 0x10677 Stepping = 7 > > Features=0xbfebfbff CA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > > Features2=0x8e39d 1> AMD Features=0x20100000 > AMD Features2=0x1 > TSC: P-state invariant > real memory = 2147483648 (2048 MB) > avail memory = 2085683200 (1989 MB) > > The Xeon supports AMD-V, but it doesn't matter if I enable that in the > acceleration configuration of the VM or not. > > On both machines I have tested the same Windows XP guest. Base memory > is 512 MB, 1 CPU. The video memory is set at 64 megs. On one of the > machines I have also tried Ubuntu. 128 megs of RAM, 1 CPU, 12 megs of > video memory. 3D acceleration is disabled on both machines. > > The XML config file for the guest is here: http://pastebin.com/Qaqx7gTi > > I'm actually installing -CURRENT amd64 to a spare USB drive I have on > the Xeon and can test to confirm that it works there since you believe > this to be a problem only with 32-bit FreeBSD. > > Adam > I've got the same problem with FreeBSD 8 STABLE on athlonx-xp 2500+, motherboard Abit NF7-S, 2GB ram, 1Gb swap, ZFS. I tried with custom and generic kernel, but the situation doesn't change. I tried running in virtual machine a windows guest and a freebsd guest. No difference: the system reboot automatically after few seconds Enrico M. From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 2 13:30:03 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEC0C106566B; Tue, 2 Mar 2010 13:30:02 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id AA9C28FC1A; Tue, 2 Mar 2010 13:30:02 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 3FD7A46B5C; Tue, 2 Mar 2010 08:30:02 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 9B10E8A021; Tue, 2 Mar 2010 08:30:01 -0500 (EST) From: John Baldwin To: Juergen Lock Date: Tue, 2 Mar 2010 07:50:20 -0500 User-Agent: KMail/1.12.1 (FreeBSD/7.3-CBSD-20100217; KDE/4.3.1; amd64; ; ) References: <20100223215010.GA67619@triton8.kn-bremen.de> <20100226210952.GA2253@triton8.kn-bremen.de> <201003011325.53617.jhb@freebsd.org> In-Reply-To: <201003011325.53617.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003020750.20845.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Tue, 02 Mar 2010 08:30:01 -0500 (EST) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.5 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org, Tim Kientzle , Poul-Henning Kamp , bde@freebsd.org Subject: Re: 32 bit Linux lseek missing overflow check (was: Re: Linuxolator patches: stat and lseek SEEK_END for disk devices) 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: Tue, 02 Mar 2010 13:30:03 -0000 On Monday 01 March 2010 1:25:53 pm John Baldwin wrote: > On Friday 26 February 2010 4:09:52 pm Juergen Lock wrote: > > On Fri, Feb 26, 2010 at 11:21:05AM -0500, John Baldwin wrote: > > > On Thursday 25 February 2010 3:28:50 pm Juergen Lock wrote: > > > > On Tue, Feb 23, 2010 at 10:50:10PM +0100, Juergen Lock wrote: > > > > > Hi! > > > > > > > > > > Before this gets buried on -hackers in another thead... :) > > > > > > > > > > I now have disks appear as block devices for Linux processes (there > > > > > already was commented out code for that in linux_stats.c, I hope my > > > > > version is now `correct enough' to be usable [1]), and I made a simple > > > > > patch to make lseek SEEK_END (L_XTND in the source) dtrt on disk > > > > > devices too by simply invoking the DIOCGMEDIASIZE ioctl there; [2] > > > > > both of these things are what (some) Linux processes expect. > > > > > > > > > > Patches are here: (made on stable/8, if they don't apply on head > > > > > I'll have to make extra versions for that...) > > > > > http://people.freebsd.org/~nox/linuxdisk-blk.patch [1] > > > > > http://people.freebsd.org/~nox/lseek-seek_end.patch [2] > > > > > > > > > > And yes, with these patches the Linux bsdtar mentioned on -hackers > > > > > in the `"tar tfv /dev/cd0" speedup patch' thread now also runs fast > > > > > on FreeBSD. :) > > > > > > > > I now added an vn_isdisk() check to the second patch after comments from > > > > julian, and I made a new patch that adds an overflow check to the 32 bit > > > > linux lseek: (also at > > > > http://people.freebsd.org/~nox/linux-lseek-overflow.patch > > > > ) > > Unfortunately it panics in g_dev_ioctl() with INVARIANTS enabled. I will bug > phk about that. After talking to phk, it isn't safe to invoke the ioctl from stat(), only if the device is known to be opened (e.g. lseek() or fstat()). This patch is a simpler version of your original patch (with some simple error checking added). I wasn't able to test it due to weird issues with igb(4) on my test machine, but it does compile: Index: vfs_syscalls.c =================================================================== --- vfs_syscalls.c (revision 204518) +++ vfs_syscalls.c (working copy) @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -1920,7 +1921,7 @@ struct file *fp; struct vnode *vp; struct vattr vattr; - off_t offset; + off_t offset, size; int error, noneg; int vfslocked; @@ -1951,6 +1952,15 @@ VOP_UNLOCK(vp, 0); if (error) break; + + /* + * If the file references a disk device, then fetch + * the media size and use that to determine the ending + * offset. + */ + if (vattr.va_size == 0 && vp->v_type == VCHR && + fo_ioctl(fp, DIOCGMEDIASIZE, &size, cred, td) == 0) + vattr.va_size = size; if (noneg && (vattr.va_size > OFF_MAX || (offset > 0 && vattr.va_size > OFF_MAX - offset))) { -- John Baldwin From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 2 13:50:04 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B7CF106566B for ; Tue, 2 Mar 2010 13:50:04 +0000 (UTC) (envelope-from adamk@voicenet.com) Received: from QMTA11.westchester.pa.mail.comcast.net (qmta11.westchester.pa.mail.comcast.net [76.96.59.211]) by mx1.freebsd.org (Postfix) with ESMTP id 13A698FC17 for ; Tue, 2 Mar 2010 13:50:03 +0000 (UTC) Received: from omta06.westchester.pa.mail.comcast.net ([76.96.62.51]) by QMTA11.westchester.pa.mail.comcast.net with comcast id oC061d00216LCl05BDq4Zz; Tue, 02 Mar 2010 13:50:04 +0000 Received: from [192.168.0.35] ([67.103.204.242]) by omta06.westchester.pa.mail.comcast.net with comcast id oDps1d00K5EJinX3SDpvZl; Tue, 02 Mar 2010 13:50:02 +0000 Message-ID: <4B8D177F.8090707@voicenet.com> Date: Tue, 02 Mar 2010 08:49:51 -0500 From: Adam K Kirchhoff User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org, enrico@majaglug.net References: <215745.35399.qm@web27602.mail.ukl.yahoo.com> <1267522633.3221.2.camel@Prometheus> <4B8CFD31.2080805@voicenet.com> <201003021359.38127.enrico@majaglug.net> In-Reply-To: <201003021359.38127.enrico@majaglug.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Patch to fix VirtualBox with recent kernel versions 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: Tue, 02 Mar 2010 13:50:04 -0000 On 03/02/2010 07:59 AM, Enrico M. wrote: > On Tuesday 02 March 2010 12:57:37 Adam K Kirchhoff wrote: > >> On 03/02/10 04:37, Alexander Eichner wrote: >> >>> Adam K Kirchhoff wrote: >>> >>>> I'm sorry to say, but I'm getting the exact same Assertion Failed error >>>> as before with this new patch. The only difference this time is that >>>> i=0x7 instead of i=0x4. >>>> >>>> Adam >>>> >>>> _______________________________________________ >>>> freebsd-emulation@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-emulation >>>> To unsubscribe, send any mail to >>>> "freebsd-emulation-unsubscribe@freebsd.org" >>>> >>> That's not good. Everything works just fine here now on a 32bit FreeBSD >>> 8.0 host. Can you give some information of your host (RAM, CPU, ...) and >>> the guest configuration please? Do you have any special kernel options >>> set? >>> >> I've been testing on two 32-bit installations. I was using a custom >> kernel on both, but I just tried with GENERIC on one of them and the >> crash of VirtualBox still happens. Both machines have 2 gigs of RAM, >> one with 3 gigs of swap and one with 2 gigs of swap. Both are running >> -CURRENT from 6 days ago. >> >> One machine: >> >> CPU: Intel(R) Xeon(TM) CPU 3.20GHz (3191.87-MHz 686-class CPU) >> Origin = "GenuineIntel" Id = 0xf64 Stepping = 4 >> >> Features=0xbfebfbff> CA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> >> Features2=0xe43d AMD >> Features=0x20100000 >> AMD Features2=0x1 >> TSC: P-state invariant >> real memory = 2147483648 (2048 MB) >> avail memory = 2084831232 (1988 MB) >> >> And the other: >> >> CPU: Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz (2327.49-MHz >> 686-class CPU) >> Origin = "GenuineIntel" Id = 0x10677 Stepping = 7 >> >> Features=0xbfebfbff> CA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> >> >> Features2=0x8e39d> 1> AMD Features=0x20100000 >> AMD Features2=0x1 >> TSC: P-state invariant >> real memory = 2147483648 (2048 MB) >> avail memory = 2085683200 (1989 MB) >> >> The Xeon supports AMD-V, but it doesn't matter if I enable that in the >> acceleration configuration of the VM or not. >> >> On both machines I have tested the same Windows XP guest. Base memory >> is 512 MB, 1 CPU. The video memory is set at 64 megs. On one of the >> machines I have also tried Ubuntu. 128 megs of RAM, 1 CPU, 12 megs of >> video memory. 3D acceleration is disabled on both machines. >> >> The XML config file for the guest is here: http://pastebin.com/Qaqx7gTi >> >> I'm actually installing -CURRENT amd64 to a spare USB drive I have on >> the Xeon and can test to confirm that it works there since you believe >> this to be a problem only with 32-bit FreeBSD. >> >> Adam >> >> > I've got the same problem with FreeBSD 8 STABLE on athlonx-xp 2500+, > motherboard Abit NF7-S, 2GB ram, 1Gb swap, ZFS. > I tried with custom and generic kernel, but the situation doesn't change. > I tried running in virtual machine a windows guest and a freebsd guest. No > difference: the system reboot automatically after few seconds > > Except that's not the same problem. My system doesn't reboot. VirtualBox just fails to start the guest. Adam From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 2 19:01:17 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCEEC106566C; Tue, 2 Mar 2010 19:01:17 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id A14098FC14; Tue, 2 Mar 2010 19:01:17 +0000 (UTC) Received: from jnielsen.socialserve.com ([12.53.251.10]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id o22IPXpf092085; Tue, 2 Mar 2010 13:25:33 -0500 (EST) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-emulation@freebsd.org Date: Tue, 2 Mar 2010 13:25:27 -0500 User-Agent: KMail/1.12.4 (Darwin/9.8.0; KDE/4.3.4; i386; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201003021325.27197.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: freebsd-jail@freebsd.org Subject: linux-only jail possible? 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: Tue, 02 Mar 2010 19:01:17 -0000 Has anyone tried to run a jail containing only Linux binaries? I need a lightweight VM-ish solution to run an arbitrary number of test/dev/demo servers (apache + python mostly) but would like it to be reasonably close to the "real" servers (running Linux) in terms of software installation and maintenance, etc. (Moving the whole show over to FreeBSD is a battle for another day..) Aside from the logistics of actually making this work, are there any known or obvious show-stoppers/gotchas/pitfalls/etc? Ideally yum and rc+init.d would work normally, though I expect a bit of startup hackery may be necessary (as well as hand-extracting a bunch of RPM's to bootstrap the first jail). If you have attempted something like this I'd love to hear from you. Thanks! JN From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 2 20:04:26 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85B40106564A for ; Tue, 2 Mar 2010 20:04:26 +0000 (UTC) (envelope-from andrew.hotlab@hotmail.com) Received: from blu0-omc2-s30.blu0.hotmail.com (blu0-omc2-s30.blu0.hotmail.com [65.55.111.105]) by mx1.freebsd.org (Postfix) with ESMTP id 5227B8FC12 for ; Tue, 2 Mar 2010 20:04:26 +0000 (UTC) Received: from BLU138-W11 ([65.55.111.72]) by blu0-omc2-s30.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 2 Mar 2010 11:52:24 -0800 Message-ID: X-Originating-IP: [81.174.54.98] From: Andrew Hotlab To: , Date: Tue, 2 Mar 2010 19:52:24 +0000 Importance: Normal Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 02 Mar 2010 19:52:24.0848 (UTC) FILETIME=[E1447100:01CABA41] Cc: freebsd-jail@freebsd.org Subject: RE: linux-only jail possible? 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: Tue, 02 Mar 2010 20:04:26 -0000 ---------------------------------------- > From: lists@jnielsen.net > To: freebsd-emulation@freebsd.org > Date: Tue=2C 2 Mar 2010 13:25:27 -0500 > CC: freebsd-jail@freebsd.org > Subject: linux-only jail possible? > > Has anyone tried to run a jail containing only Linux binaries? I need a > lightweight VM-ish solution to run an arbitrary number of test/dev/demo > servers (apache + python mostly) but would like it to be reasonably close= to > the "real" servers (running Linux) in terms of software installation and > maintenance=2C etc. (Moving the whole show over to FreeBSD is a battle fo= r > another day..) > > If you have attempted something like this I'd love to hear from you. > I didn't attempt that but=2C if I can make a suggestion=2C I would never sp= end time in making a Linux userland run on a BSD kernel while I can run Lin= ux binaries directly on FreeBSD using the Linux ABI (http://www.freebsd.org= /handbook/linuxemu.html). I heard about a project that aims to do what you are looking for (http://ww= w.debian.org/ports/kfreebsd-gnu)=2C but I do not know at what stage it is. My genuine suggestion is to spend time to advocate BSD and persuade your co= mpany to "move the whole show on it"! ... please note that this suggestion= is coming from a multi-certified Microsoft specialist! =3B) Sincerely. Andrew =20 _________________________________________________________________ Hotmail: Powerful Free email with security by Microsoft. https://signup.live.com/signup.aspx?id=3D60969= From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 2 20:06:04 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDD83106566B; Tue, 2 Mar 2010 20:06:04 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 98B028FC27; Tue, 2 Mar 2010 20:06:04 +0000 (UTC) Received: from jnielsen.socialserve.com ([12.53.251.10]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id o22K63pf013402; Tue, 2 Mar 2010 15:06:03 -0500 (EST) (envelope-from lists@jnielsen.net) From: John Nielsen To: Andrew Hotlab Date: Tue, 2 Mar 2010 15:05:57 -0500 User-Agent: KMail/1.12.4 (Darwin/9.8.0; KDE/4.3.4; i386; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003021505.57820.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org, freebsd-jail@freebsd.org Subject: Re: linux-only jail possible? 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: Tue, 02 Mar 2010 20:06:04 -0000 On Tuesday 02 March 2010 14:52:24 Andrew Hotlab wrote: > ---------------------------------------- > > > From: lists@jnielsen.net > > To: freebsd-emulation@freebsd.org > > Date: Tue, 2 Mar 2010 13:25:27 -0500 > > CC: freebsd-jail@freebsd.org > > Subject: linux-only jail possible? > > > > Has anyone tried to run a jail containing only Linux binaries? I need a > > lightweight VM-ish solution to run an arbitrary number of test/dev/demo > > servers (apache + python mostly) but would like it to be reasonably > > close to the "real" servers (running Linux) in terms of software > > installation and maintenance, etc. (Moving the whole show over to > > FreeBSD is a battle for another day..) > > > > If you have attempted something like this I'd love to hear from you. > > I didn't attempt that but, if I can make a suggestion, I would never > spend time in making a Linux userland run on a BSD kernel while I can > run Linux binaries directly on FreeBSD using the Linux ABI > (http://www.freebsd.org/handbook/linuxemu.html). I heard about a project > that aims to do what you are looking for > (http://www.debian.org/ports/kfreebsd-gnu), but I do not know at what > stage it is. My plan IS to run Linux binaries directly on FreeBSD using the Linux ABI. I just want to do it in jails. Since all the software I plan to run in the jails will be Linux, I'm wondering if I can get away without using anything else. The debian port is something else. Even if it has jails support it's not mature enough for what I have in mind and I'd like the FreeBSD host to be real FreeBSD. > My genuine suggestion is to spend time to advocate BSD and persuade your > company to "move the whole show on it"! ... please note that this > suggestion is coming from a multi-certified Microsoft specialist! ;) My boss is actually a proponent of FreeBSD as well, but there are many man- hours invested in getting the current infrastructure to work smoothly (which it does), and we don't have the time or the motivation to do a wholesale switchover at this point. A gradual switch is more likely, especially once some things like SUJ have time to mature in the tree. R, JN From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 2 20:44:58 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EE501065672 for ; Tue, 2 Mar 2010 20:44:58 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 3E6178FC15 for ; Tue, 2 Mar 2010 20:44:57 +0000 (UTC) Received: from elsa.codelab.cz (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id DD19E19E027; Tue, 2 Mar 2010 21:26:28 +0100 (CET) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 89D3919E023; Tue, 2 Mar 2010 21:26:26 +0100 (CET) Message-ID: <4B8D7471.5060006@quip.cz> Date: Tue, 02 Mar 2010 21:26:25 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.8) Gecko/20100205 SeaMonkey/2.0.3 MIME-Version: 1.0 To: John Nielsen References: <201003021325.27197.lists@jnielsen.net> In-Reply-To: <201003021325.27197.lists@jnielsen.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org, freebsd-jail@freebsd.org Subject: Re: linux-only jail possible? 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: Tue, 02 Mar 2010 20:44:58 -0000 John Nielsen wrote: > Has anyone tried to run a jail containing only Linux binaries? I need a > lightweight VM-ish solution to run an arbitrary number of test/dev/demo > servers (apache + python mostly) but would like it to be reasonably close to > the "real" servers (running Linux) in terms of software installation and > maintenance, etc. (Moving the whole show over to FreeBSD is a battle for > another day..) > > Aside from the logistics of actually making this work, are there any known > or obvious show-stoppers/gotchas/pitfalls/etc? > > Ideally yum and rc+init.d would work normally, though I expect a bit of > startup hackery may be necessary (as well as hand-extracting a bunch of > RPM's to bootstrap the first jail). > > If you have attempted something like this I'd love to hear from you. I don't think it is possible to emulate full Linux environment and behavior in FreeBSD jail. You can use linux binaries with Linux ABI in jail, but it will be controlled by FreeBSD rc.d scripts, sw will be installed by ports system etc. Maybe you can have FreeBSD host system and start jail installed as copy of Debian GNU/kFreeBSD instead of classic FreeBSD jail + linux_base port. All in all, it will be a lot of work and experiments. Miroslav Lachman From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 2 21:28:08 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC88A106566B; Tue, 2 Mar 2010 21:28:08 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 4E8C18FC1A; Tue, 2 Mar 2010 21:28:07 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 8EF021E00122; Tue, 2 Mar 2010 22:28:06 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o22LRAgj004527; Tue, 2 Mar 2010 22:27:10 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o22LRAfJ004526; Tue, 2 Mar 2010 22:27:10 +0100 (CET) (envelope-from nox) Date: Tue, 2 Mar 2010 22:27:10 +0100 (CET) From: Juergen Lock Message-Id: <201003022127.o22LRAfJ004526@triton8.kn-bremen.de> To: jhb@freebsd.org X-Newsgroups: local.list.freebsd.hackers In-Reply-To: <201003020750.20845.jhb@freebsd.org> References: <20100223215010.GA67619@triton8.kn-bremen.de> <20100226210952.GA2253@triton8.kn-bremen.de> <201003011325.53617.jhb@freebsd.org> Organization: home Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org, Tim Kientzle , Poul-Henning Kamp , bde@freebsd.org Subject: Re: 32 bit Linux lseek missing overflow check (was: Re: Linuxolator patches: stat and lseek SEEK_END for disk devices) 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: Tue, 02 Mar 2010 21:28:09 -0000 In article <201003020750.20845.jhb@freebsd.org> you write: >On Monday 01 March 2010 1:25:53 pm John Baldwin wrote: >> On Friday 26 February 2010 4:09:52 pm Juergen Lock wrote: >> > On Fri, Feb 26, 2010 at 11:21:05AM -0500, John Baldwin wrote: >> > > On Thursday 25 February 2010 3:28:50 pm Juergen Lock wrote: >> > > > On Tue, Feb 23, 2010 at 10:50:10PM +0100, Juergen Lock wrote: >> > > > > Hi! >> > > > > >> > > > > Before this gets buried on -hackers in another thead... :) >> > > > > >> > > > > I now have disks appear as block devices for Linux processes (there >> > > > > already was commented out code for that in linux_stats.c, I hope my >> > > > > version is now `correct enough' to be usable [1]), and I made a simple >> > > > > patch to make lseek SEEK_END (L_XTND in the source) dtrt on disk >> > > > > devices too by simply invoking the DIOCGMEDIASIZE ioctl there; [2] >> > > > > both of these things are what (some) Linux processes expect. >> > > > > >> > > > > Patches are here: (made on stable/8, if they don't apply on head >> > > > > I'll have to make extra versions for that...) >> > > > > http://people.freebsd.org/~nox/linuxdisk-blk.patch [1] >> > > > > http://people.freebsd.org/~nox/lseek-seek_end.patch [2] >> > > > > >> > > > > And yes, with these patches the Linux bsdtar mentioned on -hackers >> > > > > in the `"tar tfv /dev/cd0" speedup patch' thread now also runs fast >> > > > > on FreeBSD. :) >> > > > >> > > > I now added an vn_isdisk() check to the second patch after comments from >> > > > julian, and I made a new patch that adds an overflow check to the 32 bit >> > > > linux lseek: (also at >> > > > http://people.freebsd.org/~nox/linux-lseek-overflow.patch >> > > > ) >> >> Unfortunately it panics in g_dev_ioctl() with INVARIANTS enabled. I will bug >> phk about that. > >After talking to phk, it isn't safe to invoke the ioctl from stat(), only if >the device is known to be opened (e.g. lseek() or fstat()). This patch is a >simpler version of your original patch (with some simple error checking >added). I wasn't able to test it due to weird issues with igb(4) on my test >machine, but it does compile: > Does work for me too! :) Btw, has anyone looked at my other two patches since? >Index: vfs_syscalls.c >=================================================================== >--- vfs_syscalls.c (revision 204518) >+++ vfs_syscalls.c (working copy) >@@ -45,6 +45,7 @@ > #include > #include > #include >+#include > #include > #include > #include >@@ -1920,7 +1921,7 @@ > struct file *fp; > struct vnode *vp; > struct vattr vattr; >- off_t offset; >+ off_t offset, size; > int error, noneg; > int vfslocked; > >@@ -1951,6 +1952,15 @@ > VOP_UNLOCK(vp, 0); > if (error) > break; >+ >+ /* >+ * If the file references a disk device, then fetch >+ * the media size and use that to determine the ending >+ * offset. >+ */ >+ if (vattr.va_size == 0 && vp->v_type == VCHR && >+ fo_ioctl(fp, DIOCGMEDIASIZE, &size, cred, td) == 0) >+ vattr.va_size = size; > if (noneg && > (vattr.va_size > OFF_MAX || > (offset > 0 && vattr.va_size > OFF_MAX - offset))) { > >-- >John Baldwin >_______________________________________________ >freebsd-hackers@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > Cheers, Juergen From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 3 01:39:56 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0270F106566C for ; Wed, 3 Mar 2010 01:39:56 +0000 (UTC) (envelope-from adamk@voicenet.com) Received: from qmta14.westchester.pa.mail.comcast.net (qmta14.westchester.pa.mail.comcast.net [76.96.59.212]) by mx1.freebsd.org (Postfix) with ESMTP id A1BA08FC29 for ; Wed, 3 Mar 2010 01:39:55 +0000 (UTC) Received: from omta19.westchester.pa.mail.comcast.net ([76.96.62.98]) by qmta14.westchester.pa.mail.comcast.net with comcast id oQLQ1d00F27AodY5ERfv5z; Wed, 03 Mar 2010 01:39:55 +0000 Received: from sorrow.ashke.com ([68.45.22.62]) by omta19.westchester.pa.mail.comcast.net with comcast id oRiB1d0091LNQfY3fRiBGP; Wed, 03 Mar 2010 01:42:12 +0000 Message-ID: <4B8DBDE7.9060401@voicenet.com> Date: Tue, 02 Mar 2010 20:39:51 -0500 From: Adam K Kirchhoff User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.8) Gecko/20100302 Thunderbird/3.0.2 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org, alexeichi@yahoo.de References: <215745.35399.qm@web27602.mail.ukl.yahoo.com> <4B8B19DF.2040101@voicenet.com> <1267522633.3221.2.camel@Prometheus> <4B8CFD31.2080805@voicenet.com> In-Reply-To: <4B8CFD31.2080805@voicenet.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Patch to fix VirtualBox with recent kernel versions 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: Wed, 03 Mar 2010 01:39:56 -0000 On 03/02/10 06:57, Adam K Kirchhoff wrote: > On 03/02/10 04:37, Alexander Eichner wrote: >> Adam K Kirchhoff wrote: >>> >>> I'm sorry to say, but I'm getting the exact same Assertion Failed error >>> as before with this new patch. The only difference this time is that >>> i=0x7 instead of i=0x4. >>> >>> Adam >>> >>> _______________________________________________ >>> freebsd-emulation@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-emulation >>> To unsubscribe, send any mail to >>> "freebsd-emulation-unsubscribe@freebsd.org" >> That's not good. Everything works just fine here now on a 32bit FreeBSD >> 8.0 host. Can you give some information of your host (RAM, CPU, ...) and >> the guest configuration please? Do you have any special kernel options >> set? > > I've been testing on two 32-bit installations. I was using a custom > kernel on both, but I just tried with GENERIC on one of them and the > crash of VirtualBox still happens. Both machines have 2 gigs of RAM, > one with 3 gigs of swap and one with 2 gigs of swap. Both are running > -CURRENT from 6 days ago. > > One machine: > > CPU: Intel(R) Xeon(TM) CPU 3.20GHz (3191.87-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf64 Stepping = 4 > Features=0xbfebfbff > > Features2=0xe43d > AMD Features=0x20100000 > AMD Features2=0x1 > TSC: P-state invariant > real memory = 2147483648 (2048 MB) > avail memory = 2084831232 (1988 MB) > > And the other: > > CPU: Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz (2327.49-MHz > 686-class CPU) > Origin = "GenuineIntel" Id = 0x10677 Stepping = 7 > Features=0xbfebfbff > > > Features2=0x8e39d > > AMD Features=0x20100000 > AMD Features2=0x1 > TSC: P-state invariant > real memory = 2147483648 (2048 MB) > avail memory = 2085683200 (1989 MB) > > The Xeon supports AMD-V, but it doesn't matter if I enable that in the > acceleration configuration of the VM or not. > > On both machines I have tested the same Windows XP guest. Base memory > is 512 MB, 1 CPU. The video memory is set at 64 megs. On one of the > machines I have also tried Ubuntu. 128 megs of RAM, 1 CPU, 12 megs of > video memory. 3D acceleration is disabled on both machines. > > The XML config file for the guest is here: http://pastebin.com/Qaqx7gTi > > I'm actually installing -CURRENT amd64 to a spare USB drive I have on > the Xeon and can test to confirm that it works there since you believe > this to be a problem only with 32-bit FreeBSD. > > Adam Alexander*, *OK, so I can only assume that we are, in fact, talking about the same problem as it is, indeed, working just fine here on the AMD64 system I installed today. Same machine, -CURRENT from today (instead of last week) and the same VirtualBox configuration, and it works just fine. Adam From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 3 08:02:00 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C169B106564A for ; Wed, 3 Mar 2010 08:02:00 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id 77CFD8FC08 for ; Wed, 3 Mar 2010 08:01:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 5D2839CB488; Wed, 3 Mar 2010 09:00:53 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z2pRXbB4yXQR; Wed, 3 Mar 2010 09:00:51 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 1EE6C9CB498; Wed, 3 Mar 2010 09:00:51 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id o2380oPt022545; Wed, 3 Mar 2010 09:00:50 +0100 (CET) (envelope-from rdivacky) Date: Wed, 3 Mar 2010 09:00:50 +0100 From: Roman Divacky To: John Nielsen Message-ID: <20100303080050.GA22322@freebsd.org> References: <201003021325.27197.lists@jnielsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201003021325.27197.lists@jnielsen.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org, freebsd-jail@freebsd.org Subject: Re: linux-only jail possible? 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: Wed, 03 Mar 2010 08:02:00 -0000 I succesfully ran chroot of linux environment on freebsd back in 2007/2008. I firmly believe jail should work fine too On Tue, Mar 02, 2010 at 01:25:27PM -0500, John Nielsen wrote: > Has anyone tried to run a jail containing only Linux binaries? I need a > lightweight VM-ish solution to run an arbitrary number of test/dev/demo > servers (apache + python mostly) but would like it to be reasonably close to > the "real" servers (running Linux) in terms of software installation and > maintenance, etc. (Moving the whole show over to FreeBSD is a battle for > another day..) > > Aside from the logistics of actually making this work, are there any known > or obvious show-stoppers/gotchas/pitfalls/etc? > > Ideally yum and rc+init.d would work normally, though I expect a bit of > startup hackery may be necessary (as well as hand-extracting a bunch of > RPM's to bootstrap the first jail). > > If you have attempted something like this I'd love to hear from you. > > Thanks! > > JN > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 3 10:55:43 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98CFB106566B for ; Wed, 3 Mar 2010 10:55:43 +0000 (UTC) (envelope-from proauction@admailers.net) Received: from admailers.net (admailers.net [81.196.161.145]) by mx1.freebsd.org (Postfix) with ESMTP id B60728FC13 for ; Wed, 3 Mar 2010 10:55:42 +0000 (UTC) Received: from admailers.net (localhost [127.0.0.1]) by admailers.net (Postfix) with ESMTP id 3D963753D7 for ; Mon, 1 Mar 2010 06:54:56 +0200 (EET) DomainKey-Signature: a=rsa-sha1; b=OEE9t99XtMsV6D1nEF+bifzL2rkQ/hRPkjcfFLis80r5riZ//dJxhIqMzSSOA3fnnuzVMKpQNe3yYebCH0lUYA==; c=simple; d=admailers.net; q=dns; s=mailer Received: from admailers.net (mailer.admailers.net [192.168.1.253]) by admailers.net (Postfix) with ESMTP id 398D875368 for ; Mon, 1 Mar 2010 06:54:56 +0200 (EET) Date: Wed, 3 Mar 2010 12:56:37 +0200 To: freebsd-emulation@freebsd.org From: Pro Auction Ltd Errors-to: errors@admailers.net Message-ID: <7b2e5b43685de3754698d8e7fb93d9c1@admailers.net> Content-Language: en MIME-Version: 1.0 Content-Type: text/plain; charset = "iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Event closing today 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: Wed, 03 Mar 2010 10:55:43 -0000 If you are having trouble reading this message, click here for a web vers= ion.=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 The next live= and webcast event will take place on 4th March 2010 commencing at 11.30a= m prompt.=20 =20 On behalf of = Cumbrian Seafoods Ltd , Solway Trading Estate, Maryport, Cumbria CA15 8NF= .=20 =20 View images, = register and participate at www.bidspotter.com=20 =20 This is a com= plete factory sale of processing machinery, ancillary items and refrigera= tion.=20 =20 We also seek = offers for the 82,000sq foot factory available freehold.=20 =20 For Further i= nformation contact: =20 Mark Flynn=20 Unit 5 Midsom= er Ent Park=20 Bath=20 =20 BA3 2BB Helpline: 017= 61 414000 Technical Enq= uiries: 07946 496697 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 U= nit 5 Midsomer Enterprise Park R= adstock Road B= ath B= A3 2BB U= nited Kingdom =20 =20 =20 =20 =20 T= elephone: (+44) 01761 414000 F= acsimile: (+44) 0845 280 2492 =20 E= mail: info@proauction.ltd.uk W= eb: www.proauction.ltd.uk =20 M= obile 1: 07903 018331 M= obile 2: 07946 496697 =20 C= all Centres: U= SA: +001 914 462 3598 H= ong Kong: +00 852 3017 3619 F= rance: +0033 177 725 928 =20 V= AT Registration Number: G= B 826 6236 21 R= egistered Company Number: 5= 059610 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 This email and any files = transmitted with it are confidential and intended solely for the attentio= n and use of the individual or entity to whom they are addressed. If you = have received this email in error please reply to inform us accordingly, = prior to deleting the message. All sales are subject to Terms & Condition= s of sale as published on our web page. Email Stationery produced by Door= 4.=20 =20 =20 =20 If you would like to be r= emoved from our mailing list please click here. ----------------------------------------------------------- From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 3 16:59:56 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7229A106566B; Wed, 3 Mar 2010 16:59:56 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 384238FC1E; Wed, 3 Mar 2010 16:59:55 +0000 (UTC) Received: from jnielsen.socialserve.com ([12.53.251.10]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id o23Gxtpf068696; Wed, 3 Mar 2010 11:59:55 -0500 (EST) (envelope-from lists@jnielsen.net) From: John Nielsen To: Roman Divacky Date: Wed, 3 Mar 2010 11:59:49 -0500 User-Agent: KMail/1.12.4 (Darwin/9.8.0; KDE/4.3.4; i386; ; ) References: <201003021325.27197.lists@jnielsen.net> <20100303080050.GA22322@freebsd.org> In-Reply-To: <20100303080050.GA22322@freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003031159.49694.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org, freebsd-jail@freebsd.org Subject: Re: linux-only jail possible? 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: Wed, 03 Mar 2010 16:59:56 -0000 On Wednesday 03 March 2010 03:00:50 Roman Divacky wrote: > I succesfully ran chroot of linux environment on freebsd back in > 2007/2008. I firmly believe jail should work fine too Good to know, thanks! Would you mind sharing some more details? (Off-list is fine if you prefer.) Was it a more or less complete environment? What distro / version of Linux? JN From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 3 17:25:11 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFCF41065670 for ; Wed, 3 Mar 2010 17:25:11 +0000 (UTC) (envelope-from per@hedeland.org) Received: from pluto.hedeland.org (1-1-1-13a.mal.sth.bostream.se [82.182.84.27]) by mx1.freebsd.org (Postfix) with ESMTP id 2DC918FC1E for ; Wed, 3 Mar 2010 17:25:10 +0000 (UTC) Received: from pluto.hedeland.org (localhost [127.0.0.1]) by pluto.hedeland.org (8.14.3/8.14.3) with ESMTP id o23H1SPW038409 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 3 Mar 2010 18:01:28 +0100 (CET) (envelope-from per@pluto.hedeland.org) Received: (from per@localhost) by pluto.hedeland.org (8.14.3/8.14.3/Submit) id o23H1SVM038408; Wed, 3 Mar 2010 18:01:28 +0100 (CET) (envelope-from per) Date: Wed, 3 Mar 2010 18:01:28 +0100 (CET) From: Per Hedeland Message-Id: <201003031701.o23H1SVM038408@pluto.hedeland.org> To: freebsd-emulation@freebsd.org X-Scanned-By: MIMEDefang 2.64 on 10.1.1.1 Subject: VirtualBox won't start 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: Wed, 03 Mar 2010 17:25:11 -0000 Hello, I was really looking forward to trying out VirtualBox after all the good reports here, but it was not to be:-) - when I try to start it with simply 'VirtualBox', it just sits there, doing basically nothing at all... This is on i386 7.2-RELEASE, virtualbox-ose-3.1.2_1 and virtualbox-ose-kmod-3.1.2_1 built from ports with default config and no issues, vboxdrv.ko/vboxnetflt.ko/vboxnetadp.ko loaded fine as per instructions. Below is the tail of a ktrace - the original process (1421) forks (1422), and then 1421 is repeatedly and unsuccessfully polling on what I believe is a pipe to 1422, while 1422 seems stuck in a _umtx_op() call. The SIGINT is me hitting ^C (which works "fine"), rather quickly here but I have also tried waiting a long time, it just keeps polling forever. Any ideas about what the problem might be would be appreciated! Thanks --Per Hedeland 1421 VirtualBox CALL fork 1421 VirtualBox RET fork 1422/0x58e 1422 VirtualBox RET fork 0 1422 VirtualBox CALL thr_self(0x88301040) 1422 VirtualBox RET thr_self 0 1421 VirtualBox CALL sigprocmask(SIG_SETMASK,0x883010d8,0) 1421 VirtualBox RET sigprocmask 0 1421 VirtualBox CALL _umtx_op(0x88092dc4,0x12,0,0,0) 1421 VirtualBox RET _umtx_op 0 1421 VirtualBox CALL _umtx_op(0x804edfc,0x11,0,0,0) 1421 VirtualBox RET _umtx_op 0 1422 VirtualBox CALL getpid 1422 VirtualBox RET getpid 1422/0x58e 1421 VirtualBox CALL _umtx_op(0x804edfc,0x12,0,0,0) 1421 VirtualBox RET _umtx_op 0 1422 VirtualBox CALL sysarch(0xa,0xbfbf76c0) 1422 VirtualBox RET sysarch 0 1421 VirtualBox CALL mmap(0,0x100000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,0xffffffff,0,0) 1422 VirtualBox CALL sigprocmask(SIG_SETMASK,0x883010d8,0) 1421 VirtualBox RET mmap -1975517184/0x8a400000 1421 VirtualBox RET _umtx_op 0 1422 VirtualBox RET sigprocmask 0 1422 VirtualBox CALL _umtx_op(0x88092e0c,0x12,0,0,0) 1422 VirtualBox RET _umtx_op 0 1422 VirtualBox CALL _umtx_op(0x88092de8,0x12,0,0,0) 1422 VirtualBox RET _umtx_op 0 1422 VirtualBox CALL _umtx_op(0x88092dc4,0x12,0,0,0) 1422 VirtualBox RET _umtx_op 0 1421 VirtualBox CALL close(0xf) 1421 VirtualBox RET close 0 1421 VirtualBox CALL read(0xe,0xbfbf782b,0x1) 1421 VirtualBox RET read -1 errno 35 Resource temporarily unavailable 1422 VirtualBox CALL _umtx_op(0x804edfc,0x11,0,0,0) 1421 VirtualBox CALL poll(0xbfbf7764,0x1,0x1388) 1421 VirtualBox CALL wait4(0,0xbf9fef08,0,0) 1421 VirtualBox RET poll 0 1421 VirtualBox CALL poll(0xbfbf7764,0x1,0x1388) 1421 VirtualBox RET poll 0 1421 VirtualBox CALL poll(0xbfbf7764,0x1,0x1388) 1421 VirtualBox RET poll 0 1421 VirtualBox CALL poll(0xbfbf7764,0x1,0x1388) 1421 VirtualBox RET wait4 RESTART 1421 VirtualBox PSIG SIGINT SIG_DFL 1422 VirtualBox RET _umtx_op RESTART 1422 VirtualBox PSIG SIGINT SIG_DFL From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 3 18:03:38 2010 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0D17106566C; Wed, 3 Mar 2010 18:03:38 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 3705F8FC24; Wed, 3 Mar 2010 18:03:38 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 5A5221E00130; Wed, 3 Mar 2010 19:03:37 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o23I2KVi005644; Wed, 3 Mar 2010 19:02:20 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o23I2K9c005643; Wed, 3 Mar 2010 19:02:20 +0100 (CET) (envelope-from nox) Date: Wed, 3 Mar 2010 19:02:20 +0100 (CET) From: Juergen Lock Message-Id: <201003031802.o23I2K9c005643@triton8.kn-bremen.de> To: alfred@freebsd.org X-Newsgroups: local.list.freebsd.emulation In-Reply-To: <20100301145840.GL50395@elvis.mu.org> Organization: home Cc: emulation@freebsd.org Subject: Re: Is there an equiv of Linux KVM for FreeBSD? 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: Wed, 03 Mar 2010 18:03:38 -0000 In article <20100301145840.GL50395@elvis.mu.org> you write: >Is there an equivalent to Linux's "KVM" (Kernel Virtual Machine) >for FreeBSD? > >For reference, it appears that Linux KVM's homepage is here: >http://www.linux-kvm.org/page/Main_Page > There once was a SoC project, but it never reached ports and now would need to be updated at least: http://wiki.freebsd.org/FabioChecconi/PortingLinuxKVMToFreeBSD >Specifically anything that allows QoS of percent of the host >machine's CPU to be allocated? Hmm I didn't know that Linux KVM could do that even... Juergen From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 3 18:07:47 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5C481065676; Wed, 3 Mar 2010 18:07:47 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id 601588FC14; Wed, 3 Mar 2010 18:07:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id BCCC29CB0DA; Wed, 3 Mar 2010 19:06:38 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nraoPPACi5uN; Wed, 3 Mar 2010 19:06:36 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 74E8A9CB1FB; Wed, 3 Mar 2010 19:06:36 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id o23I6aEe031681; Wed, 3 Mar 2010 19:06:36 +0100 (CET) (envelope-from rdivacky) Date: Wed, 3 Mar 2010 19:06:36 +0100 From: Roman Divacky To: John Nielsen Message-ID: <20100303180636.GA31551@freebsd.org> References: <201003021325.27197.lists@jnielsen.net> <20100303080050.GA22322@freebsd.org> <201003031159.49694.lists@jnielsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201003031159.49694.lists@jnielsen.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org, freebsd-jail@freebsd.org Subject: Re: linux-only jail possible? 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: Wed, 03 Mar 2010 18:07:47 -0000 On Wed, Mar 03, 2010 at 11:59:49AM -0500, John Nielsen wrote: > On Wednesday 03 March 2010 03:00:50 Roman Divacky wrote: > > I succesfully ran chroot of linux environment on freebsd back in > > 2007/2008. I firmly believe jail should work fine too > > Good to know, thanks! Would you mind sharing some more details? (Off-list is > fine if you prefer.) Was it a more or less complete environment? What distro > / version of Linux? I downloaded gentoo 2007 untarred it into /compat/linux and chroot /compat/linux /bin/bash it just worked - nothing special was necessary dont remember much details but I had no problems with that setup From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 3 19:25:28 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C5391065670 for ; Wed, 3 Mar 2010 19:25:28 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 0AE2F8FC0A for ; Wed, 3 Mar 2010 19:25:27 +0000 (UTC) Received: from jnielsen.socialserve.com ([12.53.251.10]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id o23JPRpf098355; Wed, 3 Mar 2010 14:25:27 -0500 (EST) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-emulation@freebsd.org Date: Wed, 3 Mar 2010 14:25:21 -0500 User-Agent: KMail/1.12.4 (Darwin/9.8.0; KDE/4.3.4; i386; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201003031425.21672.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: dchagin@freebsd.org Subject: 64-bit Linux emulation status? 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: Wed, 03 Mar 2010 19:25:28 -0000 Sorry if this information is already available, but I couldn't find it in the archives or on Google. What is the status of 64-bit Linux emulation on amd64? Has anything been committed to the tree? Any news since this post? http://lists.freebsd.org/pipermail/freebsd-emulation/2009- January/005614.html If it's still in the testing stages, what (if any) is a good test target? Thanks, JN From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 3 21:51:31 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BEF01065672 for ; Wed, 3 Mar 2010 21:51:31 +0000 (UTC) (envelope-from matheusber@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.24]) by mx1.freebsd.org (Postfix) with ESMTP id 25B548FC0C for ; Wed, 3 Mar 2010 21:51:30 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id d26so667688eyd.3 for ; Wed, 03 Mar 2010 13:51:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:received :message-id:in-reply-to:references:date:subject:from:to:user-agent :mime-version:content-type:content-transfer-encoding:x-priority :importance; bh=/Rlp0yax5id9kPQC9g56E+JM3SCEGsMn1yzyIowsLPo=; b=PRBAT7X9Zy7AeXEUMVoz2jDWRu3QelycuOvzl4tAre9TkRIYlGreM3gmfdywaScOH2 ySWWSonPUhmd/H3OyzZyifsv2UKk0Jh4hmYzPKAVWKvc6QRysDt6xGkvulX6Gx+LtQae s3dXlCOHZRTJLicXdkQunvTlqlGd70fe5uPZ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:in-reply-to:references:date:subject:from:to :user-agent:mime-version:content-type:content-transfer-encoding :x-priority:importance; b=JeHIipfks1dxABJcyxQ6PQf4abLdBdlQTFjtscDYiixx7xR6aVYbMrrjunrA7MBPNY kCE7bu6j4NOhUT/GwDlfaqdNmA2WaI0DFIV6rLMryqEFbrsbeBN3XvPCGwkf/NSu7k+X SEc3KpuBImsDwrSWu4Y9w3TrGQ0UqoEdrM8Bg= Received: by 10.213.37.132 with SMTP id x4mr26988ebd.33.1267653080205; Wed, 03 Mar 2010 13:51:20 -0800 (PST) Received: from cygnus.homeunix.com ([189.71.34.43]) by mx.google.com with ESMTPS id 14sm4053572ewy.2.2010.03.03.13.51.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Mar 2010 13:51:17 -0800 (PST) Sender: Nenhum_de_Nos Received: by cygnus.homeunix.com (Postfix, from userid 80) id A448EB8A1E; Wed, 3 Mar 2010 18:51:08 -0300 (BRT) Received: from 10.1.1.100 (SquirrelMail authenticated user matheus) by lamneth with HTTP; Wed, 3 Mar 2010 18:51:08 -0300 (BRT) Message-ID: <123ff2b2b2d2617e54a29745f8ffbfbc.squirrel@lamneth> In-Reply-To: <201003031425.21672.lists@jnielsen.net> References: <201003031425.21672.lists@jnielsen.net> Date: Wed, 3 Mar 2010 18:51:08 -0300 (BRT) From: "Nenhum_de_Nos" To: freebsd-emulation@freebsd.org User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: 64-bit Linux emulation status? 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: Wed, 03 Mar 2010 21:51:31 -0000 On Wed, March 3, 2010 16:25, John Nielsen wrote: > Sorry if this information is already available, but I couldn't find it in > the > archives or on Google. > > What is the status of 64-bit Linux emulation on amd64? Has anything been > committed to the tree? Any news since this post? > http://lists.freebsd.org/pipermail/freebsd-emulation/2009- > January/005614.html > > If it's still in the testing stages, what (if any) is a good test target? > > Thanks, > > JN +1, and I could help test as I was in the beginning of last year ... some more time :) matheus -- We will call you cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 4 10:25:31 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57C84106566B for ; Thu, 4 Mar 2010 10:25:31 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 0E2038FC13 for ; Thu, 4 Mar 2010 10:25:30 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Nn8FD-0002wU-Rc for freebsd-emulation@freebsd.org; Thu, 04 Mar 2010 11:25:27 +0100 Received: from 78-1-157-207.adsl.net.t-com.hr ([78.1.157.207]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Mar 2010 11:25:27 +0100 Received: from ivoras by 78-1-157-207.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Mar 2010 11:25:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-emulation@freebsd.org From: Ivan Voras Date: Thu, 04 Mar 2010 11:25:17 +0100 Lines: 12 Message-ID: References: <20100301145840.GL50395@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 78-1-157-207.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.21 (X11/20090612) In-Reply-To: <20100301145840.GL50395@elvis.mu.org> Subject: Re: Is there an equiv of Linux KVM for FreeBSD? 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: Thu, 04 Mar 2010 10:25:31 -0000 Alfred Perlstein wrote: > Specifically anything that allows QoS of percent of the host > machine's CPU to be allocated? This is a "hard problem" in any case - emulation or no emulation. But with todays multicore + hyperthreading CPUs you can do so on a coarse "1 CPU core" granularity. I.e. a Nehalem quad-core CPU will present itself as 8 logical CPUs and you can bind processes to these logical CPUs to achive 1/8 granularity (possibly with jails, or any other virtualization). From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 4 18:23:05 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE558106566B; Thu, 4 Mar 2010 18:23:05 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id C7E778FC21; Thu, 4 Mar 2010 18:23:05 +0000 (UTC) Received: from jnielsen.socialserve.com ([12.53.251.10]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id o24IN4pf080893; Thu, 4 Mar 2010 13:23:04 -0500 (EST) (envelope-from lists@jnielsen.net) From: John Nielsen To: Alexander Leidinger Date: Thu, 4 Mar 2010 13:22:57 -0500 User-Agent: KMail/1.12.4 (Darwin/9.8.0; KDE/4.3.4; i386; ; ) References: <201003021325.27197.lists@jnielsen.net> <20100303180636.GA31551@freebsd.org> <20100304114050.00007a59@unknown> In-Reply-To: <20100304114050.00007a59@unknown> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003041322.57875.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: freebsd-jail@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: linux-only jail possible? 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: Thu, 04 Mar 2010 18:23:06 -0000 I went ahead and gave this a try with some encouraging results. Comments below. On Thursday 04 March 2010 05:40:50 Alexander Leidinger wrote: > On Wed, 3 Mar 2010 19:06:36 +0100 Roman Divacky > > wrote: > > On Wed, Mar 03, 2010 at 11:59:49AM -0500, John Nielsen wrote: > > > On Wednesday 03 March 2010 03:00:50 Roman Divacky wrote: > > > > I succesfully ran chroot of linux environment on freebsd back in > > > > 2007/2008. I firmly believe jail should work fine too > > > > > > Good to know, thanks! Would you mind sharing some more details? > > > (Off-list is fine if you prefer.) Was it a more or less complete > > > environment? What distro / version of Linux? > > > > I downloaded gentoo 2007 untarred it into /compat/linux and > > chroot /compat/linux /bin/bash > > > > it just worked - nothing special was necessary > > > > dont remember much details but I had no problems with that setup > > It does not need to be in this directory off course. You can install > the gentoo-dist ports (not the gentoo-baase port). After that you can > copy all the files to the place where you want to have the jail. I went with CentOS 5.4 as that's the native environment I'm trying to match. I didn't use ports at all, just manually extracted enough RPM's from the DVD image to bootstrap the environment enough to run bash and rpm. From there I did a chroot into the environment and ran (Linux) bash. Running rpm natively I was able to get yum up and running and from there installing everything else I wanted was relatively easy. > Now you just need to configure a jail. It does not matter much if you > use the jail stuff in the base system or a framework like ezjail or > similar, as long as you configure an appropriate startup script in the > linux-jail. The linux-startup part you need to do yourself, I do not > think the default linux startup stuff is approrpiate. I suggest to > start at least a sshd before you start the software you want to > use. This way you can login into the linux-jail and investigate issues > like it is a real system. I actually did install the init scripts, etc. I was pleasantly surprised to find (after reading through them) that rc.sysinit can be skipped entirely while rc itself will do the right thing for the rest of the init scripts (starting services, etc). Here's what I'm using: jail_centos_exec_start="/bin/sh /etc/rc.d/rc 3" jail_centos_exec_stop="/bin/sh /etc/rc.d/rc 0" > I suggest to monitor the kernel messages on the FreeBSD host. There may > be linux-syscalls which are not implemented (e.g. epoll stuff). Thanks, I had forgotten about that. So far nothing seems to have blown up too terribly. The "consoletype" utility runs despite this message: linux: pid 2100 (consoletype): ioctl fd=0, cmd=0x541c ('T',28) is not implemented And sshd and crond both run despite this one: linux: pid 2221 (sshd): syscall keyctl not implemented linux: pid 2240 (crond): syscall keyctl not implemented Syslogd ran without complaint as well but didn't actually log anything. I had to run it with "-p /var/run/log" (inside the jail via /etc/sysconfig/syslog) and create a symlink to the socket in the jail's /dev/log (outside the jail via exec_poststart). That's not ideal since there's a period of time between when syslogd starts in the jail and the symlink is created, but it works after that. It would be better in the exec_prestart RC knob but the jail's devfs isn't necessarily mounted at that point. My current hurdle is sshd: Mar 3 22:20:51 centos sshd[88836]: fatal: openpty returns device for which ttyname fails. Apparently the Linux sshd isn't using /dev/ptmx appropriately. I'll probably just have to replace it with one that does.. I haven't gotten as far as actually running Apache or our application yet but Python runs just fine (as evidenced by yum working) and I'm encouraged by my success thus far. > There > is currently no effort to implement those. There may be partial > implementations for some sysctls (Roman has something somewhere), but > nothing is in FreeBSD and no efforts are on the way to bring them in. > If your software needs something like this, you either need to > implement them yourself, switch the software to not use this (maybe > by changing the linux emulation to 2.4 instead of 2.6), or to forget > about using FreeBSD for this. emulation@ is a good address to ask > questions regarding the status of things, > http://wiki.freebsd.org/linux-kernel has some infos too. I seem to have lucked out in this aspect. You and Roman are just too on-the- ball it would seem (and my software needs aren't that extravagant..). Thanks again to all who have replied for the feedback and encouragement. I'll follow up if I manage to get sshd and apache running happily. JN From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 4 22:52:46 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7BA21065673 for ; Thu, 4 Mar 2010 22:52:46 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id C6D228FC1B for ; Thu, 4 Mar 2010 22:52:46 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NnJuQ-0004VA-7n for freebsd-emulation@freebsd.org; Thu, 04 Mar 2010 14:52:46 -0800 Message-ID: <27787769.post@talk.nabble.com> Date: Thu, 4 Mar 2010 14:52:46 -0800 (PST) From: Hubert Tournier To: freebsd-emulation@freebsd.org In-Reply-To: <27676863.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: hubert@frbsd.org References: <18D68DBE18AC435984C5F66597A869D3@artemis> <27587832.post@talk.nabble.com> <27676863.post@talk.nabble.com> Subject: Re: [PATCH] VirtualBox headless VNC support by LibVNCServer 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: Thu, 04 Mar 2010 22:52:47 -0000 Hello, Hubert Tournier wrote: > > I'll try to have a look at these in the next weeks... > Here's a new http://old.nabble.com/file/p27787769/vboxvnc-20100305.tar.gz patch integrated with yours that should work fine on most exotic keyboards (at least it does for me, enabling me to use any AltGr key or accented key). I only mapped the base, shift and alt columns of the keymap files. Should someone need more, I left the code in place for an easy modification (just uncomment the lines needed). Best regards, Hubert -- View this message in context: http://old.nabble.com/-PATCH--VirtualBox-headless-VNC-support-by-LibVNCServer-tp27288796p27787769.html Sent from the freebsd-emulation mailing list archive at Nabble.com. From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 4 23:38:41 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96291106564A; Thu, 4 Mar 2010 23:38:41 +0000 (UTC) (envelope-from wolfgang@riegler.homeip.net) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by mx1.freebsd.org (Postfix) with ESMTP id 44B988FC13; Thu, 4 Mar 2010 23:38:40 +0000 (UTC) Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 67D7C1C001D4; Fri, 5 Mar 2010 00:19:22 +0100 (CET) Received: from localhost (dynscan2.mnet-online.de [192.168.6.166]) by mail.m-online.net (Postfix) with ESMTP id 5E73590189; Fri, 5 Mar 2010 00:19:22 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from smtp-auth.mnet-online.de ([192.168.3.149]) by localhost (dynscan2.mnet-online.de [192.168.6.166]) (amavisd-new, port 10024) with ESMTP id s02rwpDWvoBN; Fri, 5 Mar 2010 00:19:21 +0100 (CET) Received: from phenom2.riegler.homeip.net (ppp-93-104-62-120.dynamic.mnet-online.de [93.104.62.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-auth.mnet-online.de (Postfix) with ESMTP; Fri, 5 Mar 2010 00:19:21 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by phenom2.riegler.homeip.net (Postfix) with ESMTP id 7714CAED; Fri, 5 Mar 2010 00:19:12 +0100 (CET) Received: from phenom2.riegler.homeip.net ([127.0.0.1]) by localhost (phenom2.riegler.homeip.net [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 52986-01; Fri, 5 Mar 2010 00:19:07 +0100 (CET) Received: from phenom2.riegler.homeip.net (phenom2.riegler.homeip.net [192.168.0.1]) (Authenticated sender: wolfgang@riegler.homeip.net) by phenom2.riegler.homeip.net (Postfix) with ESMTPA id F27C5AEC; Fri, 5 Mar 2010 00:19:06 +0100 (CET) From: Wolfgang Riegler To: freebsd-virtualization@freebsd.org Date: Fri, 5 Mar 2010 00:19:06 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-RELEASE-p2; KDE/4.3.5; amd64; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201003050019.06366.wolfgang@riegler.homeip.net> X-Virus-Scanned: Maia Mailguard 1.0.2a Cc: freebsd-emulation@freebsd.org, freebsd-jail@freebsd.org Subject: VirtualBox Headless inside a jail 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: Thu, 04 Mar 2010 23:38:41 -0000 Hi, I would like to setup VirtualBox headless with the VNC-patch and vboxweb inside a jail. Is this possible? I use FreeBSD 8.0-p2 amd64. regards Wolfgang From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 5 03:01:45 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53CA21065673; Fri, 5 Mar 2010 03:01:45 +0000 (UTC) (envelope-from julian@elischer.org) Received: from out-0.mx.aerioconnect.net (out-0-4.mx.aerioconnect.net [216.240.47.64]) by mx1.freebsd.org (Postfix) with ESMTP id 0852B8FC27; Fri, 5 Mar 2010 03:01:44 +0000 (UTC) Received: from idiom.com (postfix@mx0.idiom.com [216.240.32.160]) by out-0.mx.aerioconnect.net (8.13.8/8.13.8) with ESMTP id o252c4ni022434; Thu, 4 Mar 2010 18:38:04 -0800 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 9D9A22D6013; Thu, 4 Mar 2010 18:38:03 -0800 (PST) Message-ID: <4B906E8A.9010908@elischer.org> Date: Thu, 04 Mar 2010 18:38:02 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Wolfgang Riegler References: <201003050019.06366.wolfgang@riegler.homeip.net> In-Reply-To: <201003050019.06366.wolfgang@riegler.homeip.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 216.240.47.51 Cc: freebsd-emulation@freebsd.org, freebsd-jail@freebsd.org, freebsd-virtualization@freebsd.org Subject: Re: VirtualBox Headless inside a jail 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: Fri, 05 Mar 2010 03:01:45 -0000 Wolfgang Riegler wrote: > Hi, > > I would like to setup VirtualBox headless with the VNC-patch and vboxweb > inside a jail. Is this possible? I use FreeBSD 8.0-p2 amd64. > > regards > > Wolfgang > _______________________________________________ > 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" I doubt it has been tried, but I can not see why not in theory.. if you made it a vnet jail with it's own firewall etc, it should limit the virtual machine as to what it can do.. (I don't know if you can run multiple virtualBox at once but you could limit each differently using this scheme.) From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 5 06:23:43 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00C0B106564A for ; Fri, 5 Mar 2010 06:23:43 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (unknown [IPv6:2001:380:e06:127::53]) by mx1.freebsd.org (Postfix) with ESMTP id 9386C8FC08 for ; Fri, 5 Mar 2010 06:23:42 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id 073EE78C4B; Fri, 5 Mar 2010 15:16:28 +0900 (JST) Received: from artemis (unknown [192.168.2.20]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTP id A4E8F78C3B; Fri, 5 Mar 2010 15:16:27 +0900 (JST) Message-ID: <5105480CD1D946D4AC57E4ADDD23626B@artemis> From: "Daisuke Aoyama" To: "Hubert Tournier" , References: <18D68DBE18AC435984C5F66597A869D3@artemis><27587832.post@talk.nabble.com><27676863.post@talk.nabble.com> <27787769.post@talk.nabble.com> Date: Fri, 5 Mar 2010 15:16:12 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5843 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Scanned: ClamAV using ClamSMTP Cc: Subject: Re: [PATCH] VirtualBox headless VNC support by LibVNCServer 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: Fri, 05 Mar 2010 06:23:43 -0000 Hi, It looks better. But where are right side Ctrl key and Alt key? First, I have not understood the meaning of "Alt Gr". After I had retrieved it with Google, I found this page. http://en.wikipedia.org/wiki/Keyboard_layout#United_States Then, I realized that it mean special key. See above layout if you don't know about US 101 key. Regards, Daisuke Aoyama From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 5 08:26:24 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDC92106564A; Fri, 5 Mar 2010 08:26:23 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 74C598FC0A; Fri, 5 Mar 2010 08:26:23 +0000 (UTC) Received: from outgoing.leidinger.net (pD9E2D45A.dip.t-dialin.net [217.226.212.90]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 74E5A84535C; Fri, 5 Mar 2010 09:26:17 +0100 (CET) Received: from unknown (unknown [192.168.2.110]) by outgoing.leidinger.net (Postfix) with ESMTP id 239C94F2F; Fri, 5 Mar 2010 09:26:14 +0100 (CET) Date: Fri, 5 Mar 2010 09:26:11 +0100 From: Alexander Leidinger To: freebsd-emulation@freebsd.org, ed@freebsd.org Message-ID: <20100305092611.0000772c@unknown> In-Reply-To: <201003041322.57875.lists@jnielsen.net> References: <201003021325.27197.lists@jnielsen.net> <20100303180636.GA31551@freebsd.org> <20100304114050.00007a59@unknown> <201003041322.57875.lists@jnielsen.net> X-Mailer: Claws Mail 3.7.2cvs15 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 74E5A84535C.087C5 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-0.686, required 6, autolearn=disabled, ALL_TRUSTED -1.44, J_CHICKENPOX_27 0.60, TW_EV 0.08, TW_ZJ 0.08) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1268382378.66813@2A7I13fehuil7XKYXRzlqg X-EBL-Spam-Status: No Cc: Subject: Re: linux-only jail possible? 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: Fri, 05 Mar 2010 08:26:24 -0000 On Thu, 4 Mar 2010 13:22:57 -0500 John Nielsen wrote: Ed, I Cced you because of a ttyname thing below. It's the linuxulator ttyname call. > I went ahead and gave this a try with some encouraging results. > Comments below. > > On Thursday 04 March 2010 05:40:50 Alexander Leidinger wrote: > > Now you just need to configure a jail. It does not matter much if > > you use the jail stuff in the base system or a framework like > > ezjail or similar, as long as you configure an appropriate startup > > script in the linux-jail. The linux-startup part you need to do > > yourself, I do not think the default linux startup stuff is > > approrpiate. I suggest to start at least a sshd before you start > > the software you want to use. This way you can login into the > > linux-jail and investigate issues like it is a real system. > > I actually did install the init scripts, etc. I was pleasantly > surprised to find (after reading through them) that rc.sysinit can be > skipped entirely while rc itself will do the right thing for the rest > of the init scripts (starting services, etc). Here's what I'm using: > > jail_centos_exec_start="/bin/sh /etc/rc.d/rc 3" > jail_centos_exec_stop="/bin/sh /etc/rc.d/rc 0" > > > I suggest to monitor the kernel messages on the FreeBSD host. There > > may be linux-syscalls which are not implemented (e.g. epoll stuff). > > Thanks, I had forgotten about that. So far nothing seems to have > blown up too terribly. > > The "consoletype" utility runs despite this message: > linux: pid 2100 (consoletype): ioctl fd=0, cmd=0x541c ('T',28) is not > implemented Dokumented in the wiki. If someone knows what ioctl this is, that's some info which is needed in the wiki, so feel free to edit the page or tell me. > And sshd and crond both run despite this one: > linux: pid 2221 (sshd): syscall keyctl not implemented > linux: pid 2240 (crond): syscall keyctl not implemented That's docuemnted in the wiki. I added a note that it is used by cron and sshd. > Syslogd ran without complaint as well but didn't actually log > anything. I had to run it with "-p /var/run/log" (inside the jail via > /etc/sysconfig/syslog) and create a symlink to the socket in the > jail's /dev/log (outside the jail via exec_poststart). That's not > ideal since there's a period of time between when syslogd starts in > the jail and the symlink is created, but it works after that. It > would be better in the exec_prestart RC knob but the jail's devfs > isn't necessarily mounted at that point. Why don't you add a script into rc3 on the linux side which does the link? > My current hurdle is sshd: > Mar 3 22:20:51 centos sshd[88836]: fatal: openpty returns device for > which ttyname fails. > > Apparently the Linux sshd isn't using /dev/ptmx appropriately. I'll > probably just have to replace it with one that does.. Ed, can it be that the linuxulator ttyname stuff needs to be fixed after your tty changes? Bye, Alexander. From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 5 09:14:48 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D316106564A for ; Fri, 5 Mar 2010 09:14:48 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 2202A8FC0C for ; Fri, 5 Mar 2010 09:14:48 +0000 (UTC) Received: by palm.hoeg.nl (Postfix, from userid 1000) id A7D7D1CD18; Fri, 5 Mar 2010 10:14:46 +0100 (CET) Date: Fri, 5 Mar 2010 10:14:46 +0100 From: Ed Schouten To: Alexander Leidinger Message-ID: <20100305091446.GZ8200@hoeg.nl> References: <201003021325.27197.lists@jnielsen.net> <20100303180636.GA31551@freebsd.org> <20100304114050.00007a59@unknown> <201003041322.57875.lists@jnielsen.net> <20100305092611.0000772c@unknown> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RjH8iK+mLKhkkRey" Content-Disposition: inline In-Reply-To: <20100305092611.0000772c@unknown> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-emulation@freebsd.org Subject: Re: linux-only jail possible? 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: Fri, 05 Mar 2010 09:14:48 -0000 --RjH8iK+mLKhkkRey Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Alexander, * Alexander Leidinger wrote: > > My current hurdle is sshd: > > Mar 3 22:20:51 centos sshd[88836]: fatal: openpty returns device for > > which ttyname fails. > >=20 > > Apparently the Linux sshd isn't using /dev/ptmx appropriately. I'll > > probably just have to replace it with one that does.. >=20 > Ed, can it be that the linuxulator ttyname stuff needs to be fixed > after your tty changes? Hmmm... It worked back in August 2008 when I committed it to HEAD. ttyname() on Linux works pretty bad. First of all, it tries to readlink() on a node in devfs. If that fails, it falls back to stat()ing in /dev, /dev/pts, etc. until a device node is found which shares the same major/minor number. On FreeBSD we just use FIODGNAME (see fdevname(3)). Could you please strace/truss/etc the Linux binary to see what it exactly does? --=20 Ed Schouten WWW: http://80386.nl/ --RjH8iK+mLKhkkRey Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkuQy4YACgkQ52SDGA2eCwUPOgCeNS0cBkaYFh5YQwNOr28aUj1O Z2sAnRUKA0fCaV3dz8ysdZWyV8BFJrr+ =zhDC -----END PGP SIGNATURE----- --RjH8iK+mLKhkkRey-- From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 5 11:04:16 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 472371065676 for ; Fri, 5 Mar 2010 11:04:16 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 170B08FC1F for ; Fri, 5 Mar 2010 11:04:15 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NnVKJ-0000uz-IW for freebsd-emulation@freebsd.org; Fri, 05 Mar 2010 03:04:15 -0800 Message-ID: <27792574.post@talk.nabble.com> Date: Fri, 5 Mar 2010 03:04:15 -0800 (PST) From: Hubert Tournier To: freebsd-emulation@freebsd.org In-Reply-To: <5105480CD1D946D4AC57E4ADDD23626B@artemis> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: hubert@frbsd.org References: <18D68DBE18AC435984C5F66597A869D3@artemis> <27587832.post@talk.nabble.com> <27676863.post@talk.nabble.com> <27787769.post@talk.nabble.com> <5105480CD1D946D4AC57E4ADDD23626B@artemis> Subject: Re: [PATCH] VirtualBox headless VNC support by LibVNCServer 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: Fri, 05 Mar 2010 11:04:16 -0000 Hello Daisuke, Daisuke Aoyama wrote: > > It looks better. But where are right side Ctrl key and Alt key? > First, I have not understood the meaning of "Alt Gr". > After I had retrieved it with Google, I found this page. > http://en.wikipedia.org/wiki/Keyboard_layout#United_States > Then, I realized that it mean special key. > Well, the right Alt key doesn't always exist. In fact, it doesn't on all the keyboard layouts for Latin alphabetic scripts *except* the US keyboard layout (which, like the Wikipedia page you found says, "has a second Alt key instead of the AltGr key and does not use any dead keys, and thus offers no way of inputting any sort of diacritic or accent; this makes it unsuitable for all but a handful of languages")! After much testing, here's what I found (may be dependent on my client software: VNC Viewer Free Edition for Windows, v4.1.3): 1/ when you press AltGr, it generates XK_Control_L and XK_Alt_R keysyms (apparently, sometimes in the other order!) events, at keyboard repeat rate while the key is down; 2/ the keysyms are correctly generated for the keys normally accessible through AltGr; 3/ in order for the AltGr-Key sequence to work, we should only generate XK_Alt_L and the desired key (generating the additional XK_Control_L scancode makes the AltGr-Key sequence fail). So the best solution I found was to ignore completely the AltGr keysyms, and generate the scancode for XK_Alt_L only when the key pressed with AltGr was found in the Alt column of the keymap file (which should work with most international keyboard layouts). That's why I had to load at least this other column from the keymap file and modify the keysym2scancode function in order to retrieve the column where the key was found. On the other hand, I decided to leave the five other keymaps columns (especially the one after Alt) because of parasitic effects with some keys (for example http://en.wikipedia.org/wiki/Keyboard_layout#French "> <" ). For the right side Ctrl key, I don't remember if it was really needed to nullify it. I suspect it could be treated like you did originally. I will test it soon. Best regards, Hubert PS: here's a link to a page I found useful on http://www.win.tue.nl/~aeb/linux/kbd/scancodes.html keyboard scancodes . -- View this message in context: http://old.nabble.com/-PATCH--VirtualBox-headless-VNC-support-by-LibVNCServer-tp27288796p27792574.html Sent from the freebsd-emulation mailing list archive at Nabble.com. From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 6 06:13:42 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EB491065670 for ; Sat, 6 Mar 2010 06:13:42 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id E8FBF8FC1B for ; Sat, 6 Mar 2010 06:13:41 +0000 (UTC) Received: from jnielsen-2.local (jn@stealth.jnielsen.net [74.218.226.254]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id o266DXpf023291; Sat, 6 Mar 2010 01:13:33 -0500 (EST) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-emulation@freebsd.org Date: Sat, 6 Mar 2010 01:13:32 -0500 User-Agent: KMail/1.12.4 (Darwin/9.8.0; KDE/4.3.4; i386; ; ) References: <201003021325.27197.lists@jnielsen.net> <20100305092611.0000772c@unknown> <20100305091446.GZ8200@hoeg.nl> In-Reply-To: <20100305091446.GZ8200@hoeg.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201003060113.32628.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Ed Schouten , Alexander Leidinger Subject: Re: linux-only jail possible? 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: Sat, 06 Mar 2010 06:13:42 -0000 On Friday 05 March 2010 04:14:46 Ed Schouten wrote: > Hello Alexander, > > * Alexander Leidinger wrote: > > > My current hurdle is sshd: > > > Mar 3 22:20:51 centos sshd[88836]: fatal: openpty returns device for > > > which ttyname fails. > > > > > > Apparently the Linux sshd isn't using /dev/ptmx appropriately. I'll > > > probably just have to replace it with one that does.. > > > > Ed, can it be that the linuxulator ttyname stuff needs to be fixed > > after your tty changes? > > Hmmm... It worked back in August 2008 when I committed it to HEAD. > ttyname() on Linux works pretty bad. First of all, it tries to > readlink() on a node in devfs. If that fails, it falls back to stat()ing > in /dev, /dev/pts, etc. until a device node is found which shares the > same major/minor number. On FreeBSD we just use FIODGNAME (see > fdevname(3)). > > Could you please strace/truss/etc the Linux binary to see what it > exactly does? Ptrace inside the jail doesn't run: Mar 6 00:33:32 stealth kernel: linux: ptrace(24, ...) not implemented Truss from the host side seems okay except that -f doesn't work as expected. I can attach manually to the child processes just before submitting an SSH password though so hopefully that's enough. If you want me to do any of this again with different truss flags or other information just let me know. === attach truss to already-running jailed Linux sshd stealth# truss -f -a -s 256 -d -p 86936 & 86936: -1267855183.102078976 SIGNAL 17 (SIGSTOP) === connect SSH client 86936: 12.137609664 linux_select(0x6,0x1070920,0x0,0x0,0x0,0x6) = 1 (0x1) 86936: 12.137928894 linux_socketcall(0x5,0x9fbfdc40,0x1064904,0x10691a0,0x1070920,0x6) = 4 (0x4) 86936: 12.138072794 linux_fcntl64(0x4,0x3,0x0,0x0,0x215d8ff4,0x6) = 2 (0x2) 86936: 12.138208180 linux_pipe(0x9fbfe1f0,0xa,0x1064904,0x1066a20,0x1070920,0x6) = 0 (0x0) 86936: 12.138339736 linux_socketcall(0x8,0x9fbfdc40,0x1064904,0x1066a20,0x1070920,0x6) = 0 (0x0) 86936: 12.139791642 linux_clone(0x1200011,0x0,0x0,0x0,0x216a2878,0x6) = 87878 (0x15746) 86936: 12.145413510 close(6) = 0 (0x0) 86936: 12.145607825 write(7,"\0\0\^B\r\0",5) = 5 (0x5) 86936: 12.146314103 write(7,"\0\0\^B\^D\n\n\n\n\n\n\n\n\n\n\n\n\n\nProtocol 2\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nSyslogFacility AUTHPRIV\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nPasswordAuthentication yes\n\n\n\nChallengeResponseAuthentication no\n\n\n\n\n\n\n\n\n\nGSSAPIA"...,524) = 524 (0x20c) 86936: 12.146439264 close(7) = 0 (0x0) 86936: 12.146522149 close(8) = 0 (0x0) 86936: 12.146693212 close(4) = 0 (0x0) === attach truss to two child processes (identified in another terminal) truss -f -a -s 256 -d -p 87878 & truss -f -a -s 256 -d -p 87879 & === submit password from client 87879: 9.853932067 linux_select(0x4,0x106ff30,0x0,0x0,0x0,0x6) = 1 (0x1) 87879: 9.854301549 read(3,"0\M-u\M-S \M-.\M^XB\M-?D\M-N3rxp\M-r\M^AqO\M- h\M^X\M-895Pi\M^_\M^?\M^?\M-1y?X\M^BLq\M-x\M-I\^Y\^R\M-0\M-m\M-8\M-4k\^?\M- w\^D.r\M-S\M-/F\M-R\\\^_\M-^7a\M-S\M^XK\M-}\M^B\M-c\^V\M- dj\M-}:dP\M^T~\M^O\M^Q\M-;\M-Z\^?\M-A^a\M^A^z\M-)\M^I%\M-1\M-P\M-M\M- CNq\M-("...,8192) = 144 (0x90) 87879: 9.854845776 write(4,"\0\0\0\r\v",5) = 5 (0x5) 87878: 20.687933561 read(6,"\0\0\0\r",4) = 4 (0x4) 87879: 9.855093717 write(4,"\0\0\0\bi26y4you",12) = 12 (0xc) 87878: 20.688170204 read(6,"\v\0\0\0\bi26y4you",13) = 13 (0xd) 87878: 20.688383401 linux_time(0x0,0x210971c8,0x0,0x106fdb0,0x106ff50,0x6) = 1267855265 (0x4b91efa1) 87878: 20.688535529 linux_getuid(0x2180e5e4,0x19,0x1,0x1077978,0x106ff50,0x6) = 0 (0x0) 87878: 20.688872527 linux_open("/etc/passwd",0x0,0666) = 4 (0x4) 87878: 20.689040520 linux_fcntl64(0x4,0x1,0x0,0x0,0x215d8ff4,0x6) = 0 (0x0) 87878: 20.689186549 linux_fcntl64(0x4,0x2,0x1,0x1,0x215d8ff4,0x6) = 0 (0x0) 87878: 20.689294722 linux_fstat64(0x4,0x9fbfd774,0x215d8ff4,0x107bb98,0x107bb98,0x6) = 0 (0x0) 87878: 20.689428922 linux_mmap2(0x0,0x1000,0x3,0x22,0xffffffff,0x6) = 554172416 (0x21080000) 87878: 20.699234019 read(4,"root:x:0:0:root:/root:/bin/bash\nbin:x:1:1:bin:/bin:/sbin/nologin\ndaemon:x:2:2:daemon:/sbin:/sbin/nologin\nadm:x:3:4:adm:/var/adm:/sbin/nologin\nlp:x:4:7:lp:/var/spool/lpd:/sbin/nologin\nsync:x:5:0:sync:/sbin:/bin/sync\nshutdown:x:6:0:shutdown:/sbin:/sbin"...,4096) = 1212 (0x4bc) 87878: 20.699503111 close(4) = 0 (0x0) 87878: 20.699635968 munmap(0x21080000,4096) = 0 (0x0) 87878: 20.699914320 linux_open("/etc/shadow",0x0,0666) = 4 (0x4) 87878: 20.700006293 linux_fcntl64(0x4,0x1,0x0,0x0,0x215d8ff4,0x6) = 0 (0x0) 87878: 20.700129843 linux_fcntl64(0x4,0x2,0x1,0x1,0x215d8ff4,0x6) = 0 (0x0) 87878: 20.700259840 linux_fstat64(0x4,0x9fbfd774,0x215d8ff4,0x107bfc0,0x107bfc0,0x6) = 0 (0x0) 87878: 20.700384377 linux_mmap2(0x0,0x1000,0x3,0x22,0xffffffff,0x6) = 554172416 (0x21080000) 87878: 20.708676112 read(4,"root: $1$pG5H8Y01$yn7Y0p4FKKi8sIDcQ3rEf1:14671:0:99999:7::: \nbin:*:14671:0:99999:7:::\ndaemon:*:14671:0:99999:7::: \nadm:*:14671:0:99999:7:::\nlp:*:14671:0:99999:7::: \nsync:*:14671:0:99999:7:::\nshutdown:*:14671:0:99999:7::: \nhalt:*:14671:0:99999:7:::\nmail:"...,4096) = 769 (0x301) 87878: 20.708940347 close(4) = 0 (0x0) 87878: 20.709078960 munmap(0x21080000,4096) = 0 (0x0) 87878: 20.709905132 linux_socketcall(0x1,0x9fbfd890,0x210cdff4,0x1,0x106ff50,0x6) ERR#47 'Address family not supported by protocol family' 87878: 20.710306504 write(6,"\0\0\0\^E\f",5) = 5 (0x5) 87879: 9.877288770 read(4,"\0\0\0\^E",4) = 4 (0x4) 87878: 20.710505458 write(6,"\0\0\0\^A",4) = 4 (0x4) 87879: 9.877482859 read(4,"\f\0\0\0\^A",5) = 5 (0x5) 87879: 9.877654694 write(4,"\0\0\0\^A/",5) = 5 (0x5) 87878: 20.710731764 read(6,"\0\0\0\^A",4) = 4 (0x4) 87878: 20.710905919 read(6,"/",1) = 1 (0x1) 87878: 20.711149450 linux_open("/etc/nologin",0x8000,00) ERR#2 'No such file or directory' 87878: 20.711385340 linux_getuid(0x2180e5e4,0x19,0x0,0x106ff50,0x106ff50,0x6) = 0 (0x0) 87878: 20.711617951 linux_open("/etc/passwd",0x0,0666) = 4 (0x4) 87878: 20.711708912 linux_fcntl64(0x4,0x1,0x0,0x0,0x215d8ff4,0x6) = 0 (0x0) 87878: 20.711830195 linux_fcntl64(0x4,0x2,0x1,0x1,0x215d8ff4,0x6) = 0 (0x0) 87878: 20.711987900 linux_fstat64(0x4,0x9fbfd774,0x215d8ff4,0x107c410,0x107c410,0x6) = 0 (0x0) 87878: 20.712120506 linux_mmap2(0x0,0x1000,0x3,0x22,0xffffffff,0x6) = 554172416 (0x21080000) 87878: 20.712779451 read(4,"root:x:0:0:root:/root:/bin/bash\nbin:x:1:1:bin:/bin:/sbin/nologin\ndaemon:x:2:2:daemon:/sbin:/sbin/nologin\nadm:x:3:4:adm:/var/adm:/sbin/nologin\nlp:x:4:7:lp:/var/spool/lpd:/sbin/nologin\nsync:x:5:0:sync:/sbin:/bin/sync\nshutdown:x:6:0:shutdown:/sbin:/sbin"...,4096) = 1212 (0x4bc) 87878: 20.713160707 close(4) = 0 (0x0) 87878: 20.713268842 munmap(0x21080000,4096) = 0 (0x0) 87878: 20.713400150 geteuid() = 0 (0x0) 87878: 20.713600510 linux_open("/etc/shadow",0x0,0666) = 4 (0x4) 87878: 20.713714568 linux_fcntl64(0x4,0x1,0x0,0x0,0x215d8ff4,0x6) = 0 (0x0) 87878: 20.713833549 linux_fcntl64(0x4,0x2,0x1,0x1,0x215d8ff4,0x6) = 0 (0x0) 87878: 20.713961773 linux_fstat64(0x4,0x9fbfd774,0x215d8ff4,0x107cb90,0x107cb90,0x6) = 0 (0x0) 87878: 20.714090120 linux_mmap2(0x0,0x1000,0x3,0x22,0xffffffff,0x6) = 554172416 (0x21080000) 87878: 20.714762942 read(4,"root: [/etc/shadow contents sanitized] ...,4096) = 769 (0x301) 87878: 20.715053325 close(4) = 0 (0x0) 87878: 20.715173597 munmap(0x21080000,4096) = 0 (0x0) 87878: 20.715325437 linux_time(0x0,0x2180e5e4,0x0,0x1070000,0x107c410,0x6) = 1267855265 (0x4b91efa1) 87878: 20.715451861 linux_socketcall(0x1,0x9fbfd900,0x210cdff4,0x0,0x0,0x6) ERR#47 'Address family not supported by protocol family' 87878: 20.715829496 write(6,"\0\0\0\t0",5) = 5 (0x5) 87879: 9.882848296 read(4,"\0\0\0\t",4) = 4 (0x4) 87878: 20.716121724 write(6,"\0\0\0\^A\0\0\0\0",8) = 8 (0x8) 87879: 9.883134465 read(4,"0\0\0\0\^A\0\0\0\0",9) = 9 (0x9) 87878: 20.716568885 linux_time(0x0,0x215d8ff4,0x9fbfd2dc,0x9fbfd2dc,0x1075b28,0x6) = 1267855265 (0x4b91efa1) 87879: 9.883559415 write(3,"\M-(\a\M-m\M-U\^B6^\M^H\f\M^?\M^_ Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03E54106564A; Sat, 6 Mar 2010 06:31:35 +0000 (UTC) (envelope-from john@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id DC8608FC16; Sat, 6 Mar 2010 06:31:34 +0000 (UTC) Received: from jnielsen-2.local (jn@stealth.jnielsen.net [74.218.226.254]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id o266FTpf024127; Sat, 6 Mar 2010 01:15:29 -0500 (EST) (envelope-from john@jnielsen.net) From: John Nielsen To: freebsd-emulation@freebsd.org Date: Sat, 6 Mar 2010 01:15:28 -0500 User-Agent: KMail/1.12.4 (Darwin/9.8.0; KDE/4.3.4; i386; ; ) References: <201003021325.27197.lists@jnielsen.net> <201003041322.57875.lists@jnielsen.net> <20100305092611.0000772c@unknown> In-Reply-To: <20100305092611.0000772c@unknown> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003060115.28496.john@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Alexander Leidinger , ed@freebsd.org Subject: Re: linux-only jail possible? 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: Sat, 06 Mar 2010 06:31:35 -0000 On Friday 05 March 2010 03:26:11 Alexander Leidinger wrote: > On Thu, 4 Mar 2010 13:22:57 -0500 John Nielsen > wrote: [snip] > > Syslogd ran without complaint as well but didn't actually log > > anything. I had to run it with "-p /var/run/log" (inside the jail via > > /etc/sysconfig/syslog) and create a symlink to the socket in the > > jail's /dev/log (outside the jail via exec_poststart). That's not > > ideal since there's a period of time between when syslogd starts in > > the jail and the symlink is created, but it works after that. It > > would be better in the exec_prestart RC knob but the jail's devfs > > isn't necessarily mounted at that point. > > Why don't you add a script into rc3 on the linux side which does the > link? I always got permission errors when trying to do that manually and I wasn't able to find a jail sysctl or similar to allow it. JN From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 6 07:31:19 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31295106564A for ; Sat, 6 Mar 2010 07:31:19 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id C64B88FC14 for ; Sat, 6 Mar 2010 07:31:18 +0000 (UTC) Received: by palm.hoeg.nl (Postfix, from userid 1000) id BA09E1CF40; Sat, 6 Mar 2010 08:31:17 +0100 (CET) Date: Sat, 6 Mar 2010 08:31:17 +0100 From: Ed Schouten To: John Nielsen Message-ID: <20100306073117.GE8200@hoeg.nl> References: <201003021325.27197.lists@jnielsen.net> <20100305092611.0000772c@unknown> <20100305091446.GZ8200@hoeg.nl> <201003060113.32628.lists@jnielsen.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="w803fMwrd3YJFiOr" Content-Disposition: inline In-Reply-To: <201003060113.32628.lists@jnielsen.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Alexander Leidinger , freebsd-emulation@freebsd.org Subject: Re: linux-only jail possible? 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: Sat, 06 Mar 2010 07:31:19 -0000 --w803fMwrd3YJFiOr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * John Nielsen wrote: > Truss from the host side seems okay except that -f doesn't work as expect= ed.=20 > I can attach manually to the child processes just before submitting an SS= H=20 > password though so hopefully that's enough. If you want me to do any of t= his=20 > again with different truss flags or other information just let me know. Unfortunately it doesn't contain any open() calls on /dev/ptmx, but I found a way to `fix' it: %%% --- sys/compat/linux/linux_file.c +++ sys/compat/linux/linux_file.c @@ -883,6 +883,8 @@ error =3D kern_readlink(td, name, UIO_SYSSPACE, args->buf, UIO_USERSPACE, args->count); LFREEPATH(name); + if (error =3D=3D ENOENT) + error =3D EINVAL; return (error); } =20 %%% It seems a readlink() call on /proc/self/fd/%d fails inside glibc's ttyname() and the only way to fall back to the looping on /dev/ is by returning a bogus errno. ssize_t len =3D __readlink (procname, ttyname_buf, buflen); if (__builtin_expect (len =3D=3D -1 && errno =3D=3D ENOENT, 0)) { __set_errno (EBADF); return NULL; } I guess we can only fix this bug properly by adding support for /proc/self/fd/%d to linprocfs. --=20 Ed Schouten WWW: http://80386.nl/ --w803fMwrd3YJFiOr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkuSBMUACgkQ52SDGA2eCwXFJACfejsB+BoI55qWuCzjv5l8KlkW ICUAn1gHZSW2JSv9obvbsd35Ls89J+KG =B8Dm -----END PGP SIGNATURE----- --w803fMwrd3YJFiOr-- From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 6 08:12:39 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0848106566C for ; Sat, 6 Mar 2010 08:12:39 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 65D1B8FC1D for ; Sat, 6 Mar 2010 08:12:39 +0000 (UTC) Received: by palm.hoeg.nl (Postfix, from userid 1000) id A68991CD18; Sat, 6 Mar 2010 09:12:38 +0100 (CET) Date: Sat, 6 Mar 2010 09:12:38 +0100 From: Ed Schouten To: John Nielsen Message-ID: <20100306081238.GF8200@hoeg.nl> References: <201003021325.27197.lists@jnielsen.net> <20100305092611.0000772c@unknown> <20100305091446.GZ8200@hoeg.nl> <201003060113.32628.lists@jnielsen.net> <20100306073117.GE8200@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Vvnl3ADXqZOiRkS3" Content-Disposition: inline In-Reply-To: <20100306073117.GE8200@hoeg.nl> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Alexander Leidinger , freebsd-emulation@freebsd.org Subject: Re: linux-only jail possible? 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: Sat, 06 Mar 2010 08:12:39 -0000 --Vvnl3ADXqZOiRkS3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Ed Schouten wrote: > Unfortunately it doesn't contain any open() calls on /dev/ptmx, but I > found a way to `fix' it: >=20 > Behold, another way to fix this. Still not beautiful, but in my opinion not too bad. Index: sys/compat/linprocfs/linprocfs.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/compat/linprocfs/linprocfs.c (revision 204763) +++ sys/compat/linprocfs/linprocfs.c (working copy) @@ -1312,6 +1312,8 @@ NULL, NULL, NULL, PFS_RD); pfs_create_file(dir, "status", &linprocfs_doprocstatus, NULL, NULL, NULL, PFS_RD); + /* XXX: Hack to make ttyname() work. */ + pfs_create_file(dir, "fd", NULL, NULL, NULL, NULL, PFS_RD); =20 /* /proc/scsi/... */ dir =3D pfs_create_dir(root, "scsi", NULL, NULL, NULL, 0); This creates a bogus file called /proc/%d/fd. Because of this, the readlink() call will return ENOTDIR. --=20 Ed Schouten WWW: http://80386.nl/ --Vvnl3ADXqZOiRkS3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkuSDnYACgkQ52SDGA2eCwUYGQCeMkbklLSMtYk14dPmoYK4xKje 9WQAn2R9U+rvlxwtAfSpm1/66PrSRP1U =PZ6f -----END PGP SIGNATURE----- --Vvnl3ADXqZOiRkS3-- From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 6 10:37:54 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1F2B106564A for ; Sat, 6 Mar 2010 10:37:54 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout3.freenet.de (mout3.freenet.de [IPv6:2001:748:100:40::2:5]) by mx1.freebsd.org (Postfix) with ESMTP id 7B9868FC18 for ; Sat, 6 Mar 2010 10:37:54 +0000 (UTC) Received: from [195.4.92.21] (helo=11.mx.freenet.de) by mout3.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.72 #1) id 1NnrOL-0004kb-5i; Sat, 06 Mar 2010 11:37:53 +0100 Received: from p57ae19ae.dip0.t-ipconnect.de ([87.174.25.174]:41240 helo=ernst.jennejohn.org) by 11.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.72 #2) id 1NnrOK-0006re-VJ; Sat, 06 Mar 2010 11:37:53 +0100 Date: Sat, 6 Mar 2010 11:37:52 +0100 From: Gary Jennejohn To: Alexander Leidinger Message-ID: <20100306113752.6d1bec48@ernst.jennejohn.org> In-Reply-To: <20100305092611.0000772c@unknown> References: <201003021325.27197.lists@jnielsen.net> <20100303180636.GA31551@freebsd.org> <20100304114050.00007a59@unknown> <201003041322.57875.lists@jnielsen.net> <20100305092611.0000772c@unknown> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.16.2; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: linux-only jail possible? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2010 10:37:55 -0000 On Fri, 5 Mar 2010 09:26:11 +0100 Alexander Leidinger wrote: > On Thu, 4 Mar 2010 13:22:57 -0500 John Nielsen > wrote: > > The "consoletype" utility runs despite this message: > > linux: pid 2100 (consoletype): ioctl fd=0, cmd=0x541c ('T',28) is not > > implemented > > Dokumented in the wiki. If someone knows what ioctl this is, that's > some info which is needed in the wiki, so feel free to edit the page > or tell me. > This appears to be TIOCLINUX, which is used in the following Linux kernel files: fs/compat_ioctl.c drivers/char/vt_ioctl.c drivers/char/tty_io.c drivers/char/vt.c The handling of this is in tioclinux() in vt.c and seems to correspond to FreeBSD's VT code in many respects. Linux calls it VC for virtual console. --- Gary Jennejohn (gj@) From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 6 10:47:13 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B19B2106564A for ; Sat, 6 Mar 2010 10:47:13 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 6A3BF8FC12 for ; Sat, 6 Mar 2010 10:47:13 +0000 (UTC) Received: from outgoing.leidinger.net (pD9E2FE9C.dip.t-dialin.net [217.226.254.156]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id EB95B844587; Sat, 6 Mar 2010 11:47:07 +0100 (CET) Received: from unknown (unknown [192.168.2.110]) by outgoing.leidinger.net (Postfix) with ESMTP id 574B35026; Sat, 6 Mar 2010 11:47:04 +0100 (CET) Date: Sat, 6 Mar 2010 11:47:03 +0100 From: Alexander Leidinger To: John Nielsen Message-ID: <20100306114703.0000462f@unknown> In-Reply-To: <201003060115.28496.john@jnielsen.net> References: <201003021325.27197.lists@jnielsen.net> <201003041322.57875.lists@jnielsen.net> <20100305092611.0000772c@unknown> <201003060115.28496.john@jnielsen.net> X-Mailer: Claws Mail 3.7.2cvs15 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: EB95B844587.73FB4 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-0.763, required 6, autolearn=disabled, ALL_TRUSTED -1.44, J_CHICKENPOX_55 0.60, TW_EV 0.08) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1268477228.42491@lkBsrKk6+0bnjN3EXjBhlw X-EBL-Spam-Status: No Cc: freebsd-emulation@freebsd.org Subject: Re: linux-only jail possible? 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: Sat, 06 Mar 2010 10:47:13 -0000 On Sat, 6 Mar 2010 01:15:28 -0500 John Nielsen wrote: > On Friday 05 March 2010 03:26:11 Alexander Leidinger wrote: > > On Thu, 4 Mar 2010 13:22:57 -0500 John Nielsen > > wrote: > [snip] > > > Syslogd ran without complaint as well but didn't actually log > > > anything. I had to run it with "-p /var/run/log" (inside the jail > > > via /etc/sysconfig/syslog) and create a symlink to the socket in > > > the jail's /dev/log (outside the jail via exec_poststart). That's > > > not ideal since there's a period of time between when syslogd > > > starts in the jail and the symlink is created, but it works after > > > that. It would be better in the exec_prestart RC knob but the > > > jail's devfs isn't necessarily mounted at that point. > > > > Why don't you add a script into rc3 on the linux side which does the > > link? > > I always got permission errors when trying to do that manually and I > wasn't able to find a jail sysctl or similar to allow it. Ah, yes... and unfortunately devfs.rules has no link command. :( Bye, Alexander. From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 6 14:29:43 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E27F91065672 for ; Sat, 6 Mar 2010 14:29:43 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id C7DA98FC12 for ; Sat, 6 Mar 2010 14:29:43 +0000 (UTC) Received: from jnielsen-2.local (jn@stealth.jnielsen.net [74.218.226.254]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id o26ETdpf088507; Sat, 6 Mar 2010 09:29:40 -0500 (EST) (envelope-from lists@jnielsen.net) From: John Nielsen To: Ed Schouten Date: Sat, 6 Mar 2010 09:29:38 -0500 User-Agent: KMail/1.12.4 (Darwin/9.8.0; KDE/4.3.4; i386; ; ) References: <201003021325.27197.lists@jnielsen.net> <20100306073117.GE8200@hoeg.nl> <20100306081238.GF8200@hoeg.nl> In-Reply-To: <20100306081238.GF8200@hoeg.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201003060929.38587.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org Subject: Re: linux-only jail possible? 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: Sat, 06 Mar 2010 14:29:44 -0000 On Saturday 06 March 2010 03:12:38 Ed Schouten wrote: > * Ed Schouten wrote: > > Unfortunately it doesn't contain any open() calls on /dev/ptmx, but I > > found a way to `fix' it: > > > > > > Behold, another way to fix this. Still not beautiful, but in my opinion > not too bad. Thanks! I'll give this a shot. BTW I'm running 8-STABLE.. not sure I included that info previously. > Index: sys/compat/linprocfs/linprocfs.c > =================================================================== > --- sys/compat/linprocfs/linprocfs.c (revision 204763) > +++ sys/compat/linprocfs/linprocfs.c (working copy) > @@ -1312,6 +1312,8 @@ > NULL, NULL, NULL, PFS_RD); > pfs_create_file(dir, "status", &linprocfs_doprocstatus, > NULL, NULL, NULL, PFS_RD); > + /* XXX: Hack to make ttyname() work. */ > + pfs_create_file(dir, "fd", NULL, NULL, NULL, NULL, PFS_RD); > > /* /proc/scsi/... */ > dir = pfs_create_dir(root, "scsi", NULL, NULL, NULL, 0); > > This creates a bogus file called /proc/%d/fd. Because of this, the > readlink() call will return ENOTDIR. > From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 6 17:42:04 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4B45106566B for ; Sat, 6 Mar 2010 17:42:04 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 8BB3C8FC12 for ; Sat, 6 Mar 2010 17:42:04 +0000 (UTC) Received: from jnielsen-2.local (jn@stealth.jnielsen.net [74.218.226.254]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id o26Hg1pf038696; Sat, 6 Mar 2010 12:42:01 -0500 (EST) (envelope-from lists@jnielsen.net) From: John Nielsen To: Ed Schouten Date: Sat, 6 Mar 2010 12:41:59 -0500 User-Agent: KMail/1.12.4 (Darwin/9.8.0; KDE/4.3.4; i386; ; ) References: <201003021325.27197.lists@jnielsen.net> <20100306073117.GE8200@hoeg.nl> <20100306081238.GF8200@hoeg.nl> In-Reply-To: <20100306081238.GF8200@hoeg.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201003061241.59580.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org Subject: Re: linux-only jail possible? 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: Sat, 06 Mar 2010 17:42:04 -0000 On Saturday 06 March 2010 03:12:38 Ed Schouten wrote: > * Ed Schouten wrote: > > Unfortunately it doesn't contain any open() calls on /dev/ptmx, but I > > found a way to `fix' it: > > > > > > Behold, another way to fix this. Still not beautiful, but in my opinion > not too bad. Pretty or not the hack does the job. Thanks again! For the record the sshd that ships with Fedora 12 also had the same issue, and the hack fixes it as well (not surprisingly). (I'll stick with CentOS though, since blatantly lying about the kernel version doesn't give me warm fuzzies.) > Index: sys/compat/linprocfs/linprocfs.c > =================================================================== > --- sys/compat/linprocfs/linprocfs.c (revision 204763) > +++ sys/compat/linprocfs/linprocfs.c (working copy) > @@ -1312,6 +1312,8 @@ > NULL, NULL, NULL, PFS_RD); > pfs_create_file(dir, "status", &linprocfs_doprocstatus, > NULL, NULL, NULL, PFS_RD); > + /* XXX: Hack to make ttyname() work. */ > + pfs_create_file(dir, "fd", NULL, NULL, NULL, NULL, PFS_RD); > > /* /proc/scsi/... */ > dir = pfs_create_dir(root, "scsi", NULL, NULL, NULL, 0); > > This creates a bogus file called /proc/%d/fd. Because of this, the > readlink() call will return ENOTDIR. > From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 6 18:01:21 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CABD5106566C; Sat, 6 Mar 2010 18:01:21 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.24]) by mx1.freebsd.org (Postfix) with ESMTP id 34A368FC18; Sat, 6 Mar 2010 18:01:20 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id d26so187309eyd.3 for ; Sat, 06 Mar 2010 10:01:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:cc:subject:organization :from:date:message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=3e+Tx8ctqstiWQ0kWYQbNGJ7yQu3DNZplLsco6mmN7w=; b=BSqxm8/foN70bXVJIG0CQ1hZnOhPI/ScnoJjzQjrhhY1URcD/N+WqDX+oXnYSdCkM3 J5TXMU9qKwdaM0iKRzY9oZatR/U5G5roU7JA1RvY7GICR3wQUuFTSoITLgQHyQq0r0Nd MSoSoi+N+1IMNbc1yIf2/WrHr4r/wnlbQnlcM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:organization:from:date:message-id:user-agent :mime-version:content-type:content-transfer-encoding; b=EcSO5aXu1OKYMDT2Y94AkFfP04xlAUGeIVrb0szFRLhZgmMzdpigvbBPPBtdHYayMr kVJLO72vGLIzaakd5OEwI91JWAFTWAUpWv/Z9aQGQUFdcRsj4fCtmdLV49e4GGQnyrcy i6P8GcqxQADGJJxd5yTVF9K/HLDZOXYYTyhvs= Received: by 10.213.97.17 with SMTP id j17mr1541070ebn.24.1267896615124; Sat, 06 Mar 2010 09:30:15 -0800 (PST) Received: from localhost ([95.69.173.225]) by mx.google.com with ESMTPS id 15sm1574370ewy.4.2010.03.06.09.30.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 06 Mar 2010 09:30:14 -0800 (PST) To: freebsd-stable@freebsd.org Organization: TOA Ukraine From: Mikolaj Golub Date: Sat, 06 Mar 2010 19:30:12 +0200 Message-ID: <86zl2l2w9n.fsf@kopusha.onet> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Cc: alc@freebsd.org, freebsd-emulation@freebsd.org Subject: virtualbox status on 8.0-STABLE i386 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: Sat, 06 Mar 2010 18:01:21 -0000 Hi, Recently I have updated my 8.0-STABLE i386 system and have learnt that virtualbox begins to crash my box with the error panic: vm_fault: fault on nofault entry, addr: c1608000 (kgdb) bt #0 doadump () at pcpu.h:246 #1 0xc04ec379 in db_fncall (dummy1=-1064468854, dummy2=0, dummy3=-1, dummy4=0xe865d5bc "ÐÕeè") at /usr/src/sys/ddb/db_command.c:548 #2 0xc04ec7af in db_command (last_cmdp=0xc0e04c9c, cmd_table=0x0, dopager=0) at /usr/src/sys/ddb/db_command.c:445 #3 0xc04ec864 in db_command_script (command=0xc0e05bc4 "call doadump") at /usr/src/sys/ddb/db_command.c:516 #4 0xc04f09a0 in db_script_exec (scriptname=0xe865d6c8 "kdb.enter.panic", warnifnotfound=Variable "warnifnotfound" is not available. ) at /usr/src/sys/ddb/db_script.c:302 #5 0xc04f0a87 in db_script_kdbenter (eventname=0xc0cc248d "panic") at /usr/src/sys/ddb/db_script.c:324 #6 0xc04ee768 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:228 #7 0xc08d7d06 in kdb_trap (type=3, code=0, tf=0xe865d804) at /usr/src/sys/kern/subr_kdb.c:535 #8 0xc0beb39b in trap (frame=0xe865d804) at /usr/src/sys/i386/i386/trap.c:690 #9 0xc0bccd0b in calltrap () at /usr/src/sys/i386/i386/exception.s:165 #10 0xc08d7e8a in kdb_enter (why=0xc0cc248d "panic", msg=0xc0cc248d "panic") at cpufunc.h:71 #11 0xc08a88b6 in panic (fmt=0xc0cecbc4 "vm_fault: fault on nofault entry, addr: %lx") at /usr/src/sys/kern/kern_shutdown.c:562 #12 0xc0b0c3d7 in vm_fault (map=0xc1990000, vaddr=3244326912, fault_type=Variable "fault_type" is not available. ) at /usr/src/sys/vm/vm_fault.c:283 #13 0xc0bea7d6 in trap_pfault (frame=0xe865dac0, usermode=0, eva=3244330720) at /usr/src/sys/i386/i386/trap.c:840 #14 0xc0beb225 in trap (frame=0xe865dac0) at /usr/src/sys/i386/i386/trap.c:533 #15 0xc0bccd0b in calltrap () at /usr/src/sys/i386/i386/exception.s:165 #16 0xc12beed0 in rtR0MemObjNativeGetPagePhysAddr (pMem=0xc5ed3110, iPage=0) at pmap.h:300 #17 0xc12ac354 in SUPR0LockMem (pSession=0xc5c61c10, pvR3=695959552, cPages=1, paPages=0xc5f83668) at SUPDrv.c:2307 #18 0xc12ac8cb in supdrvIOCtl (uIOCtl=536892942, pDevExt=0xc12c9ac0, pSession=0xc5c61c10, pReqHdr=0xc5f83650) at SUPDrv.c:1245 #19 0xc12b0c3a in VBoxDrvFreeBSDIOCtl (pDev=0xc665d800, ulCmd=536892942, pvData=0xe865dd00 "À8 )\003¾ËÀq\002", fFile=3, pTd=0xc69556f0) at /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-3.1.2_OSE/out/freebsd.x86/debug/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c:505 #20 0xc0829658 in devfs_ioctl_f (fp=0xc670fa80, com=536892942, data=0xe865dd00, cred=0xc6bbeb00, td=0xc69556f0) at /usr/src/sys/fs/devfs/devfs_vnops.c:659 #21 0xc08eec8d in kern_ioctl (td=0xc69556f0, fd=7, com=536892942, data=0xe865dd00 "À8 )\003¾ËÀq\002") at file.h:262 #22 0xc08eee14 in ioctl (td=0xc69556f0, uap=0xe865dcf8) at /usr/src/sys/kern/sys_generic.c:678 #23 0xc0beaad0 in syscall (frame=0xe865dd38) at /usr/src/sys/i386/i386/trap.c:1111 #24 0xc0bccda0 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:261 #25 0x00000033 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) fr 16 #16 0xc12beed0 in rtR0MemObjNativeGetPagePhysAddr (pMem=0xc5ed3110, iPage=0) at pmap.h:300 300 pa = (pa & PG_FRAME) | (va & PAGE_MASK); (kgdb) list 295 * access the PTE because it would use the new PDE. It is, 296 * however, safe to use the old PDE because the page table 297 * page is preserved by the promotion. 298 */ 299 pa = KPTmap[i386_btop(va)]; 300 pa = (pa & PG_FRAME) | (va & PAGE_MASK); 301 } 302 return (pa); 303 } 304 There were some changes in this part recently (r203182): http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/include/pmap.h.diff?r1=1.140.2.2;r2=1.140.2.3;only_with_tag=RELENG_8 So I removed KPTmap[i386_btop(va)] with *vtopte(va) and have working virtualbox again, but I suppose this is rather the problem with virualbox and not with the kernel code. In February Alexander Eichner posted the patch to freebsd-emulation@ (thread with the subject "Patch to fix VirtualBox with recent kernel versions"): http://lists.freebsd.org/pipermail/freebsd-emulation/2010-February/007434.html But it does not fix my panics. The patch adds additional handling in rtR0MemObjNativeGetPagePhysAddr() for the case pMem.enmType == RTR0MEMOBJTYPE_MAPPING, while I am observing the panics for pMem.enmType == RTR0MEMOBJTYPE_LOCK: (kgdb) fr 17 #17 0xc12ac354 in SUPR0LockMem (pSession=0xc5c61c10, pvR3=695959552, cPages=1, paPages=0xc5f83668) at SUPDrv.c:2307 2307 paPages[iPage] = RTR0MemObjGetPagePhysAddr(Mem.MemObj, iPage); (kgdb) p Mem.MemObj.enmType $1 = RTR0MEMOBJTYPE_LOCK So, it looks like some additional handling should be added for this case... -- Mikolaj Golub From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 6 18:15:13 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21416106566B for ; Sat, 6 Mar 2010 18:15:13 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id B3E328FC15 for ; Sat, 6 Mar 2010 18:15:12 +0000 (UTC) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 1D3581CD18; Sat, 6 Mar 2010 19:15:12 +0100 (CET) Date: Sat, 6 Mar 2010 19:15:12 +0100 From: Ed Schouten To: John Nielsen Message-ID: <20100306181512.GK8200@hoeg.nl> References: <201003021325.27197.lists@jnielsen.net> <20100306073117.GE8200@hoeg.nl> <20100306081238.GF8200@hoeg.nl> <201003061241.59580.lists@jnielsen.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qnRI6fWS/WyDjwPA" Content-Disposition: inline In-Reply-To: <201003061241.59580.lists@jnielsen.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-emulation@freebsd.org Subject: Re: linux-only jail possible? 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: Sat, 06 Mar 2010 18:15:13 -0000 --qnRI6fWS/WyDjwPA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * John Nielsen wrote: > Pretty or not the hack does the job. Thanks again! >=20 > For the record the sshd that ships with Fedora 12 also had the same issue= ,=20 > and the hack fixes it as well (not surprisingly). (I'll stick with CentOS= =20 > though, since blatantly lying about the kernel version doesn't give me wa= rm=20 > fuzzies.) That's great to hear. I am still in doubt what to do. Maybe we could consider committing a patch like this: %%% Index: sys/compat/linprocfs/linprocfs.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/compat/linprocfs/linprocfs.c (revision 204763) +++ sys/compat/linprocfs/linprocfs.c (working copy) @@ -1245,6 +1245,20 @@ #endif =20 /* + * Filler function for proc/pid/fd + */ +static int +linprocfs_dofdescfs(PFS_FILL_ARGS) +{ + + if (p =3D=3D curproc) + sbuf_printf(sb, "/dev/fd"); + else + sbuf_printf(sb, "unknown"); + return (0); +} + +/* * Constructor */ static int @@ -1312,6 +1326,8 @@ NULL, NULL, NULL, PFS_RD); pfs_create_file(dir, "status", &linprocfs_doprocstatus, NULL, NULL, NULL, PFS_RD); + pfs_create_link(dir, "fd", &linprocfs_dofdescfs, + NULL, NULL, NULL, 0); =20 /* /proc/scsi/... */ dir =3D pfs_create_dir(root, "scsi", NULL, NULL, NULL, 0); %%% This is a bit more complete. What it does, is that it creates a symlink =66rom /proc/%d/fd to /dev/fd, only if the calling process matches. Then when you mount fdescfs on /dev/fd, it also does the right thing, because it will always readlink() on a character device, which also returns an error code. Comments, suggestions anyone? --=20 Ed Schouten WWW: http://80386.nl/ --qnRI6fWS/WyDjwPA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkuSm7AACgkQ52SDGA2eCwVhSwCeNyc4kuxjkf2ZCcH7tzN7xrt6 +8oAn3eNR0WDMLxR3eVXfBvjqSPvW9oG =+WV+ -----END PGP SIGNATURE----- --qnRI6fWS/WyDjwPA-- From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 6 19:51:30 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 168C61065670 for ; Sat, 6 Mar 2010 19:51:30 +0000 (UTC) (envelope-from e.mancini@tiscali.it) Received: from smtp-out26.alice.it (smtp-out26.alice.it [85.33.2.26]) by mx1.freebsd.org (Postfix) with ESMTP id 9DE1D8FC1D for ; Sat, 6 Mar 2010 19:51:29 +0000 (UTC) Received: from FBCMMO01.fbc.local ([192.168.68.195]) by smtp-out26.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Sat, 6 Mar 2010 20:39:19 +0100 Received: from FBCMCL01B09.fbc.local ([192.168.171.26]) by FBCMMO01.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sat, 6 Mar 2010 20:39:19 +0100 Received: from hal.homeunix.net ([87.21.210.128]) by FBCMCL01B09.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sat, 6 Mar 2010 20:39:19 +0100 From: Enrico Mancini To: freebsd-emulation@freebsd.org Date: Sat, 6 Mar 2010 20:39:24 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.5; i386; ; ) References: <86zl2l2w9n.fsf@kopusha.onet> In-Reply-To: <86zl2l2w9n.fsf@kopusha.onet> MIME-Version: 1.0 Content-Type: Text/Plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Message-Id: <201003062039.24881.e.mancini@tiscali.it> X-OriginalArrivalTime: 06 Mar 2010 19:39:19.0269 (UTC) FILETIME=[B6AD9950:01CABD64] Subject: Re: virtualbox status on 8.0-STABLE i386 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: Sat, 06 Mar 2010 19:51:30 -0000 On Saturday 06 March 2010 18:30:12 Mikolaj Golub wrote: > So I removed KPTmap[i386_btop(va)] with *vtopte(va) and have working > virtualbox again, but I suppose this is rather the problem with virualbox > and not with the kernel code. > So, you removed "pa = KPTmap[i386_btop(va)];" with "pa = *vtopte(va);", didn't you? Did you rebuild the userland, the kernel or both? Thanks Enrico M From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 6 21:13:07 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF9F2106564A for ; Sat, 6 Mar 2010 21:13:07 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-ew0-f228.google.com (mail-ew0-f228.google.com [209.85.219.228]) by mx1.freebsd.org (Postfix) with ESMTP id 4EF428FC12 for ; Sat, 6 Mar 2010 21:13:06 +0000 (UTC) Received: by ewy28 with SMTP id 28so884507ewy.13 for ; Sat, 06 Mar 2010 13:12:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:cc:subject:references :organization:from:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=ixodGnDWBBPthbXYyCtNETnnCFAzPD2a7HwFE/+P4Tk=; b=IR1mDf4i0dQdOLZfL6ZpQSh+H2nLkkWGR0nJaATNmd2NkCDa694rNueS9qXxSpX1h2 oTS4ZjZrle5iUQm9VOvV+GCYW82Zg6kxPje32hApStKG8J30HzKXfdIyn+pJ2osNeSf5 mGWeZ2Ws3g44HfK4ShqETQrXjQJ1rRO55zCpk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:references:organization:from:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=o/lpEbvX4wBvAtJvc6afLkY8Ymjg67QZ1Ces0ZIfeeXKLrn+MfK0EUyW4T9e9u7krR mBUdxFih3C9ZWMVS35i7QtDFOZZzZj2fii34nOJm/acYoqjNxlIDg3Df6R/JIBnZgGT4 FKkxzeXFJ5dzQal0I6gfQCi84GnctytJFcSnw= Received: by 10.213.96.5 with SMTP id f5mr1638536ebn.92.1267909974897; Sat, 06 Mar 2010 13:12:54 -0800 (PST) Received: from localhost ([95.69.173.225]) by mx.google.com with ESMTPS id 14sm1648648ewy.2.2010.03.06.13.12.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 06 Mar 2010 13:12:54 -0800 (PST) To: Enrico Mancini References: <86zl2l2w9n.fsf@kopusha.onet> <201003062039.24881.e.mancini@tiscali.it> Organization: TOA Ukraine From: Mikolaj Golub Date: Sat, 06 Mar 2010 23:12:52 +0200 In-Reply-To: <201003062039.24881.e.mancini@tiscali.it> (Enrico Mancini's message of "Sat\, 6 Mar 2010 20\:39\:24 +0100") Message-ID: <86vdd92lyj.fsf@kopusha.onet> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-emulation@freebsd.org Subject: Re: virtualbox status on 8.0-STABLE i386 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: Sat, 06 Mar 2010 21:13:07 -0000 On Sat, 6 Mar 2010 20:39:24 +0100 Enrico Mancini wrote: > On Saturday 06 March 2010 18:30:12 Mikolaj Golub wrote: >> So I removed KPTmap[i386_btop(va)] with *vtopte(va) and have working >> virtualbox again, but I suppose this is rather the problem with virualbox >> and not with the kernel code. >> > > So, you removed "pa = KPTmap[i386_btop(va)];" with "pa = *vtopte(va);", didn't > you? Yes. > Did you rebuild the userland, the kernel or both? kernel and emulators/virtualbox-ose-kmod -- Mikolaj Golub