From owner-freebsd-emulation@FreeBSD.ORG Sun Nov 27 01:37:02 2011 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 C2D22106566C; Sun, 27 Nov 2011 01:37:02 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from sarah.protected-networks.net (sarah.protected-networks.net [IPv6:2001:470:1f07:4e1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 8F3818FC0A; Sun, 27 Nov 2011 01:37:02 +0000 (UTC) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [202.12.127.84]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "Iain Butler", Issuer "RSA Class 2 Personal CA" (verified OK)) (Authenticated sender: imb@protected-networks.net) by sarah.protected-networks.net (Postfix) with ESMTPSA id 35326617F; Sat, 26 Nov 2011 20:37:01 -0500 (EST) DomainKey-Signature: a=rsa-sha1; s=200509; d=protected-networks.net; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:content-type:content-transfer-encoding; b=l3u5IP+oauRdnVSP2R0jmDlijmiIynSRJeXyBg9uqfnyN/hr87MMboxCIniwNAibr mtKSQZQ7ChvChrTWgEzXnPZei3GMRYBSWvZU8h1nMngpIYj9soOs6uf2QHRCaV8 Message-ID: <4ED1943A.90707@protected-networks.net> Date: Sat, 26 Nov 2011 20:36:58 -0500 From: Michael Butler User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:8.0) Gecko/20111111 Thunderbird/8.0 MIME-Version: 1.0 To: Gleb Kurtsou References: <4ECF7440.4070300@entel.upc.edu> <4ECF8F05.8000007@protected-networks.net> <4ED0C40D.5010307@entel.upc.edu> <4ED0D963.1030702@entel.upc.edu> <4ED0DF1F.6090901@FreeBSD.org> <20111126163343.GA9150@reks> In-Reply-To: <20111126163343.GA9150@reks> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD current , freebsd-emulation@FreeBSD.org, Andriy Gapon Subject: Re: Freeze with 10.0 and VirtualBox {4.1.4|4.1.6|4.1.51r38464} 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: Sun, 27 Nov 2011 01:37:02 -0000 On 11/26/11 11:33, Gleb Kurtsou wrote: > On (26/11/2011 14:44), Andriy Gapon wrote: >> vm_phys_alloc_contig implementation has been recently changed and now it seems >> to require that vm_page_queue_free_mtx is held. > > Using new vm_page_alloc_contig() may be a better option here. Can't help > with patch, stuck with pre Nov 15 CURRENT myself. If I understand the change in locking semantics (post SVN r227568?), a good number of chunks of src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c need updating to follow this :-(. It is now insufficient to hold only the queue lock when calling vm_page_unwire or vm_page_free (and maybe others). The page itself must now also be locked, imb From owner-freebsd-emulation@FreeBSD.ORG Sun Nov 27 08:41:31 2011 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 8DC0B1065670; Sun, 27 Nov 2011 08:41:31 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id A62ED8FC0C; Sun, 27 Nov 2011 08:41:30 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id KAA13238; Sun, 27 Nov 2011 10:41:20 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1RUaIa-000K99-9P; Sun, 27 Nov 2011 10:41:20 +0200 Message-ID: <4ED1F7AE.3030105@FreeBSD.org> Date: Sun, 27 Nov 2011 10:41:18 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111108 Thunderbird/8.0 MIME-Version: 1.0 To: Michael Butler References: <4ECF7440.4070300@entel.upc.edu> <4ECF8F05.8000007@protected-networks.net> <4ED0C40D.5010307@entel.upc.edu> <4ED0D963.1030702@entel.upc.edu> <4ED0DF1F.6090901@FreeBSD.org> <20111126163343.GA9150@reks> <4ED1943A.90707@protected-networks.net> In-Reply-To: <4ED1943A.90707@protected-networks.net> X-Enigmail-Version: undefined Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@FreeBSD.org, FreeBSD current Subject: Re: Freeze with 10.0 and VirtualBox {4.1.4|4.1.6|4.1.51r38464} 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: Sun, 27 Nov 2011 08:41:31 -0000 on 27/11/2011 03:36 Michael Butler said the following: > On 11/26/11 11:33, Gleb Kurtsou wrote: >> On (26/11/2011 14:44), Andriy Gapon wrote: >>> vm_phys_alloc_contig implementation has been recently changed and now it seems >>> to require that vm_page_queue_free_mtx is held. >> >> Using new vm_page_alloc_contig() may be a better option here. Can't help >> with patch, stuck with pre Nov 15 CURRENT myself. > > If I understand the change in locking semantics (post SVN r227568?), a good > number of chunks of src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c need > updating to follow this :-(. > It is now insufficient to hold only the queue lock when calling vm_page_unwire > or vm_page_free (and maybe others). The page itself must now also be locked, Not "also", but instead. And only for managed pages. For unmanaged pages a caller doesn't have to acquire anything. The relevant change in head has happened much much earlier than r227568. And this is a totally different issue from the vm_phys_alloc_contig issue. Let's not mix them. -- Andriy Gapon From owner-freebsd-emulation@FreeBSD.ORG Sun Nov 27 11:57:03 2011 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 6B639106564A; Sun, 27 Nov 2011 11:57:03 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id E10868FC13; Sun, 27 Nov 2011 11:57:02 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id pARBv0a4000589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 27 Nov 2011 12:57:00 +0100 Received: from portgus.lan ([80.31.114.86]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id pARBuvd0016100 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 27 Nov 2011 12:56:59 +0100 Message-ID: <4ED22583.4040801@entel.upc.edu> Date: Sun, 27 Nov 2011 12:56:51 +0100 From: =?UTF-8?B?R3VzdGF1IFDDqXJleg==?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111111 Thunderbird/8.0 MIME-Version: 1.0 To: Andriy Gapon References: <4ECF7440.4070300@entel.upc.edu> <4ECF8F05.8000007@protected-networks.net> <4ED0C40D.5010307@entel.upc.edu> <4ED0D963.1030702@entel.upc.edu> <4ED0DF1F.6090901@FreeBSD.org> <20111126163343.GA9150@reks> <4ED1943A.90707@protected-networks.net> <4ED1F7AE.3030105@FreeBSD.org> In-Reply-To: <4ED1F7AE.3030105@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Sun, 27 Nov 2011 12:57:01 +0100 (CET) Cc: gleb.kurtsou@gmail.com, freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Subject: Re: Freeze with 10.0 and VirtualBox {4.1.4|4.1.6|4.1.51r38464} 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: Sun, 27 Nov 2011 11:57:03 -0000 >>> >>> Using new vm_page_alloc_contig() may be a better option here. Can't help >>> with patch, stuck with pre Nov 15 CURRENT myself. >> Ok. The third parameter of vm_page_alloc_contig says the caller has to specify an allocation class. Which one should we use? Also the vm_object_t and the vm_memattr_t are are beyond my knowledge. I'm checking Arch Book but I have no clue. Here I'm lost. > Not "also", but instead. And only for managed pages. For unmanaged pages a > caller doesn't have to acquire anything. > The relevant change in head has happened much much earlier than r227568. > > And this is a totally different issue from the vm_phys_alloc_contig issue. > Let's not mix them. > I changed the code hold the lock of vm_page_queue_free_mtx. The machine them panic because of a page not present. http://pastebin.com/hGHCJqEP I don't understand why the bt doesn't contain the complete trace of the vbox kmod. That would give us a complete clue of what is going on. OTOH this bt makes me think that Gleb's suggestion is correct and vm_page_alloc_contig would appear to be a better option. However I'm not sure, what do you think? From owner-freebsd-emulation@FreeBSD.ORG Sun Nov 27 17:25:06 2011 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 8D481106564A for ; Sun, 27 Nov 2011 17:25:06 +0000 (UTC) (envelope-from alc@rice.edu) Received: from mh4.mail.rice.edu (mh4.mail.rice.edu [128.42.199.11]) by mx1.freebsd.org (Postfix) with ESMTP id 603BF8FC08 for ; Sun, 27 Nov 2011 17:25:06 +0000 (UTC) Received: from mh4.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh4.mail.rice.edu (Postfix) with ESMTP id B3FE32919C2; Sun, 27 Nov 2011 11:09:47 -0600 (CST) Received: from mh4.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh4.mail.rice.edu (Postfix) with ESMTP id 9CD612975A3; Sun, 27 Nov 2011 11:09:47 -0600 (CST) X-Virus-Scanned: by amavis-2.6.4 at mh4.mail.rice.edu, auth channel Received: from mh4.mail.rice.edu ([127.0.0.1]) by mh4.mail.rice.edu (mh4.mail.rice.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id GYQt0UrT4T13; Sun, 27 Nov 2011 11:09:47 -0600 (CST) Received: from adsl-216-63-78-18.dsl.hstntx.swbell.net (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (Authenticated sender: alc) by mh4.mail.rice.edu (Postfix) with ESMTPSA id EB4882919C2; Sun, 27 Nov 2011 11:09:46 -0600 (CST) Message-ID: <4ED26EDA.3010706@rice.edu> Date: Sun, 27 Nov 2011 11:09:46 -0600 From: Alan Cox User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:8.0) Gecko/20111113 Thunderbird/8.0 MIME-Version: 1.0 To: Andriy Gapon References: <4ECF7440.4070300@entel.upc.edu> <4ECF8F05.8000007@protected-networks.net> <4ED0C40D.5010307@entel.upc.edu> <4ED0D963.1030702@entel.upc.edu> <4ED0DF1F.6090901@FreeBSD.org> In-Reply-To: <4ED0DF1F.6090901@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: FreeBSD current , freebsd-emulation@FreeBSD.org Subject: Re: Freeze with 10.0 and VirtualBox {4.1.4|4.1.6|4.1.51r38464} 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: Sun, 27 Nov 2011 17:25:06 -0000 On 11/26/2011 06:44, Andriy Gapon wrote: > on 26/11/2011 14:19 Gustau Pérez said the following: >> Starting Virtualbox in the console in headless mode allows to see what happens >> and get a dump of the panic. >> >> The messages I got were not the cause problem. The panic I was able to get >> shows this: >> >> http://pastebin.com/dHnB3Xh0 >> >> I can't get any further with core although I compiled virtualbox-ose-kmod with >> debug symbols (I used make config to enable them, because I think -DWITH_DEBUG >> does not work because kmk is used in the build process). >> >> Any help will be appreciated. > vm_phys_alloc_contig implementation has been recently changed and now it seems > to require that vm_page_queue_free_mtx is held. > vm_page_alloc_contig() should be used instead. Alan From owner-freebsd-emulation@FreeBSD.ORG Mon Nov 28 11:07:18 2011 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 39BFC106566B for ; Mon, 28 Nov 2011 11:07:18 +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 0E3B38FC19 for ; Mon, 28 Nov 2011 11:07:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pASB7H4w042507 for ; Mon, 28 Nov 2011 11:07:17 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pASB7HGT042491 for freebsd-emulation@FreeBSD.org; Mon, 28 Nov 2011 11:07:17 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 28 Nov 2011 11:07:17 GMT Message-Id: <201111281107.pASB7HGT042491@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, 28 Nov 2011 11:07:18 -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/159646 emulation [linux] [patch] bump Linux version in linuxulator f kern/156691 emulation [vmware] [panic] panic when using hard disks as RAW de o kern/156353 emulation [ibcs2] ibcs2 binaries that execute on 4.x not working o kern/155577 emulation [boot] BTX halted after install. Reboot during install o kern/155040 emulation [linux] [patch] Linux recvfrom doesn't handle proto fa o kern/153990 emulation [hyper-v]: Will not install into Hyper-V on Server 200 o kern/153887 emulation [linux] Linux emulator not understand STB_GNU_UNIQUE b o kern/153243 emulation [ibcs2] Seg fault whne running COFF binary using iBCS2 o kern/151714 emulation [linux] print/acroread9 not usable due to lack of supp a bin/150262 emulation [patch] truss(1) -f doesn't follow descendants of the a kern/150186 emulation [parallels] [panic] Parallels Desktop: CDROM disconnec o ports/148097 emulation [patch] suggested addition to linux_base-* packages to o ports/148096 emulation emulators/linux_base-* can not be built from ports on o kern/147793 emulation [vmware] [panic] cdrom handling, panic, possible race o kern/146237 emulation [linux] Linux binaries not reading directories mounted p kern/144584 emulation [linprocfs][patch] bogus values in linprocfs o ports/142837 emulation [patch] emulators/linux_base-* packages fails to insta o kern/140156 emulation [linux] cdparanoia fails to read drive data f kern/138944 emulation [parallels] [regression] Parallels no longer works in o kern/138880 emulation [linux] munmap segfaults after linux_mmap2 stresstest o ports/135337 emulation [PATCH] emulators/linux_base-f10: incorrect bash usage s kern/133144 emulation [linux] linuxulator 2.6 crashes with nvidias libGL.so. 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/86619 emulation [linux] linux emulator interacts oddly with cp a kern/72920 emulation [linux] path "prefixing" is not done on unix domain so o kern/41543 emulation [patch] [request] easier wine/w23 support o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/36952 emulation [patch] [linux] ldd(1) command of linux does not work o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 30 problems total. From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 30 22:32:48 2011 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 E8C06106566B; Wed, 30 Nov 2011 22:32:48 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id CE6F68FC16; Wed, 30 Nov 2011 22:32:44 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id AAA27772; Thu, 01 Dec 2011 00:32:32 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1RVshc-0004Yw-HQ; Thu, 01 Dec 2011 00:32:32 +0200 Message-ID: <4ED6AEFE.4010106@FreeBSD.org> Date: Thu, 01 Dec 2011 00:32:30 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111108 Thunderbird/8.0 MIME-Version: 1.0 To: Gleb Kurtsou , =?UTF-8?B?R3VzdGF1IFDDqXJleg==?= , Michael Butler , Alan Cox References: <4ECF7440.4070300@entel.upc.edu> <4ECF8F05.8000007@protected-networks.net> <4ED0C40D.5010307@entel.upc.edu> <4ED0D963.1030702@entel.upc.edu> <4ED0DF1F.6090901@FreeBSD.org> <20111126163343.GA9150@reks> In-Reply-To: <20111126163343.GA9150@reks> X-Enigmail-Version: undefined Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@FreeBSD.org, FreeBSD current Subject: Re: Freeze with 10.0 and VirtualBox {4.1.4|4.1.6|4.1.51r38464} 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, 30 Nov 2011 22:32:49 -0000 on 26/11/2011 18:33 Gleb Kurtsou said the following: > Using new vm_page_alloc_contig() may be a better option here. Can't help > with patch, stuck with pre Nov 15 CURRENT myself. on 27/11/2011 19:09 Alan Cox said the following: > vm_page_alloc_contig() should be used instead. My take on the patch: http://people.freebsd.org/~avg/vbox-10.patch This is for head only, no check for FreeBSD version. -- Andriy Gapon From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 30 23:07:35 2011 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 066D1106564A; Wed, 30 Nov 2011 23:07:35 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Wed, 30 Nov 2011 18:07:18 -0500 User-Agent: KMail/1.6.2 References: <4ECF7440.4070300@entel.upc.edu> <20111126163343.GA9150@reks> <4ED6AEFE.4010106@FreeBSD.org> In-Reply-To: <4ED6AEFE.4010106@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201111301807.21351.jkim@FreeBSD.org> Cc: Gleb Kurtsou , FreeBSD current , Alan Cox , Andriy Gapon Subject: Re: Freeze with 10.0 and VirtualBox {4.1.4|4.1.6|4.1.51r38464} 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, 30 Nov 2011 23:07:35 -0000 On Wednesday 30 November 2011 05:32 pm, Andriy Gapon wrote: > on 26/11/2011 18:33 Gleb Kurtsou said the following: > > Using new vm_page_alloc_contig() may be a better option here. > > Can't help with patch, stuck with pre Nov 15 CURRENT myself. > > on 27/11/2011 19:09 Alan Cox said the following: > > vm_page_alloc_contig() should be used instead. > > My take on the patch: > http://people.freebsd.org/~avg/vbox-10.patch > This is for head only, no check for FreeBSD version. Actually, I did the same thing last night: http://people.freebsd.org/~jkim/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c This is a drop-in replacement for the patch. The only practical difference I see from yours is I used VM_ALLOC_INTERRUPT instead of VM_ALLOC_NORMAL. I believe this function may be used in interrupt context. FYI, I tried FreeBSD 9 and Fedora 10 without problem. Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 30 23:27:57 2011 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 91DE9106566B; Wed, 30 Nov 2011 23:27:55 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Wed, 30 Nov 2011 18:27:43 -0500 User-Agent: KMail/1.6.2 References: <4ECF7440.4070300@entel.upc.edu> <4ED6AEFE.4010106@FreeBSD.org> <201111301807.21351.jkim@FreeBSD.org> In-Reply-To: <201111301807.21351.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201111301827.46079.jkim@FreeBSD.org> Cc: Alan Cox , Gleb Kurtsou , FreeBSD current , Andriy Gapon Subject: Re: Freeze with 10.0 and VirtualBox {4.1.4|4.1.6|4.1.51r38464} 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, 30 Nov 2011 23:27:57 -0000 On Wednesday 30 November 2011 06:07 pm, Jung-uk Kim wrote: > On Wednesday 30 November 2011 05:32 pm, Andriy Gapon wrote: > > on 26/11/2011 18:33 Gleb Kurtsou said the following: > > > Using new vm_page_alloc_contig() may be a better option here. > > > Can't help with patch, stuck with pre Nov 15 CURRENT myself. > > > > on 27/11/2011 19:09 Alan Cox said the following: > > > vm_page_alloc_contig() should be used instead. > > > > My take on the patch: > > http://people.freebsd.org/~avg/vbox-10.patch > > This is for head only, no check for FreeBSD version. > > Actually, I did the same thing last night: > > http://people.freebsd.org/~jkim/patch-src-VBox-Runtime-r0drv-freebs >d-memobj-r0drv-freebsd.c > > This is a drop-in replacement for the patch. The only practical > difference I see from yours is I used VM_ALLOC_INTERRUPT instead of > VM_ALLOC_NORMAL. I believe this function may be used in interrupt > context. FYI, I tried FreeBSD 9 and Fedora 10 without problem. BTW, I needed another patch to build virtual-ose-kmod on head: http://people.freebsd.org/~jkim/patch-src-VBox-HostDrivers-Support-freebsd-SUPDrv-freebsd.c FYI... Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 30 23:35:35 2011 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 AFEC2106564A; Wed, 30 Nov 2011 23:35:35 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 5C58A8FC08; Wed, 30 Nov 2011 23:35:33 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id BAA28505; Thu, 01 Dec 2011 01:35:31 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1RVtgZ-0004bm-77; Thu, 01 Dec 2011 01:35:31 +0200 Message-ID: <4ED6BDC1.8020600@FreeBSD.org> Date: Thu, 01 Dec 2011 01:35:29 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111108 Thunderbird/8.0 MIME-Version: 1.0 To: Jung-uk Kim References: <4ECF7440.4070300@entel.upc.edu> <4ED6AEFE.4010106@FreeBSD.org> <201111301807.21351.jkim@FreeBSD.org> <201111301827.46079.jkim@FreeBSD.org> In-Reply-To: <201111301827.46079.jkim@FreeBSD.org> X-Enigmail-Version: undefined Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alan Cox , freebsd-emulation@FreeBSD.org, FreeBSD current , Gleb Kurtsou Subject: Re: Freeze with 10.0 and VirtualBox {4.1.4|4.1.6|4.1.51r38464} 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, 30 Nov 2011 23:35:35 -0000 on 01/12/2011 01:27 Jung-uk Kim said the following: > On Wednesday 30 November 2011 06:07 pm, Jung-uk Kim wrote: >> On Wednesday 30 November 2011 05:32 pm, Andriy Gapon wrote: >>> on 26/11/2011 18:33 Gleb Kurtsou said the following: >>>> Using new vm_page_alloc_contig() may be a better option here. >>>> Can't help with patch, stuck with pre Nov 15 CURRENT myself. >>> >>> on 27/11/2011 19:09 Alan Cox said the following: >>>> vm_page_alloc_contig() should be used instead. >>> >>> My take on the patch: >>> http://people.freebsd.org/~avg/vbox-10.patch >>> This is for head only, no check for FreeBSD version. >> >> Actually, I did the same thing last night: >> >> http://people.freebsd.org/~jkim/patch-src-VBox-Runtime-r0drv-freebs >> d-memobj-r0drv-freebsd.c >> >> This is a drop-in replacement for the patch. The only practical >> difference I see from yours is I used VM_ALLOC_INTERRUPT instead of >> VM_ALLOC_NORMAL. I believe this function may be used in interrupt >> context. FYI, I tried FreeBSD 9 and Fedora 10 without problem. > > BTW, I needed another patch to build virtual-ose-kmod on head: > > http://people.freebsd.org/~jkim/patch-src-VBox-HostDrivers-Support-freebsd-SUPDrv-freebsd.c > > FYI... Yep, me too, obviously :-) Thank you for the complete vm_page_alloc_contig patch! -- Andriy Gapon From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 1 08:22:05 2011 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 4ACD6106564A; Thu, 1 Dec 2011 08:22:05 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from dash.upc.es (dash.upc.es [147.83.2.50]) by mx1.freebsd.org (Postfix) with ESMTP id B735C8FC12; Thu, 1 Dec 2011 08:22:04 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by dash.upc.es (8.14.1/8.13.1) with ESMTP id pB18M19p030137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 1 Dec 2011 09:22:01 +0100 Received: from portgus.lan ([147.83.40.234]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id pB18Lwch012042 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 1 Dec 2011 09:22:01 +0100 Message-ID: <4ED73921.8060906@entel.upc.edu> Date: Thu, 01 Dec 2011 09:21:53 +0100 From: =?ISO-8859-1?Q?Gustau_P=E9rez?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111111 Thunderbird/8.0 MIME-Version: 1.0 To: Andriy Gapon References: <4ECF7440.4070300@entel.upc.edu> <4ED6AEFE.4010106@FreeBSD.org> <201111301807.21351.jkim@FreeBSD.org> <201111301827.46079.jkim@FreeBSD.org> <4ED6BDC1.8020600@FreeBSD.org> In-Reply-To: <4ED6BDC1.8020600@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (dash.upc.es [147.83.2.50]); Thu, 01 Dec 2011 09:22:02 +0100 (CET) Cc: Alan Cox , freebsd-emulation@freebsd.org, FreeBSD current , Gleb Kurtsou Subject: Re: Freeze with 10.0 and VirtualBox {4.1.4|4.1.6|4.1.51r38464} 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, 01 Dec 2011 08:22:05 -0000 On 01/12/2011 00:35, Andriy Gapon wrote: > on 01/12/2011 01:27 Jung-uk Kim said the following: >> On Wednesday 30 November 2011 06:07 pm, Jung-uk Kim wrote: >>> On Wednesday 30 November 2011 05:32 pm, Andriy Gapon wrote: >>>> on 26/11/2011 18:33 Gleb Kurtsou said the following: >>>>> Using new vm_page_alloc_contig() may be a better option here. >>>>> Can't help with patch, stuck with pre Nov 15 CURRENT myself. >>>> on 27/11/2011 19:09 Alan Cox said the following: >>>>> vm_page_alloc_contig() should be used instead. >>>> My take on the patch: >>>> http://people.freebsd.org/~avg/vbox-10.patch >>>> This is for head only, no check for FreeBSD version. >>> Actually, I did the same thing last night: >>> >>> http://people.freebsd.org/~jkim/patch-src-VBox-Runtime-r0drv-freebs >>> d-memobj-r0drv-freebsd.c >>> >>> This is a drop-in replacement for the patch. The only practical >>> difference I see from yours is I used VM_ALLOC_INTERRUPT instead of >>> VM_ALLOC_NORMAL. I believe this function may be used in interrupt >>> context. FYI, I tried FreeBSD 9 and Fedora 10 without problem. >> BTW, I needed another patch to build virtual-ose-kmod on head: >> >> http://people.freebsd.org/~jkim/patch-src-VBox-HostDrivers-Support-freebsd-SUPDrv-freebsd.c >> >> FYI... > Yep, me too, obviously :-) > Thank you for the complete vm_page_alloc_contig patch! > Thanks for the patch. I'll give it a try. OTOH yesterday I was trying to use vm_page_alloc_contig and trying to understand the allocation classes. I was able to panic the system or in the best case VBoxHeadless was getting a sig11. I was planning to ask the mailing list about them, because even I read vm-design article in the doc section there are things I don't yet understand: First question is, if you set NULL for the vm_object_t (and then VM_ALLOC_NOOBJ must be given or the kernel will panic with INVARIANTS set) how this memory is assigned to the VirtualBox process logical space? Second set of related questions are: why should the pages be wired? and why should the VM_ALLOC_INTERRUPT alloc class be given? Third question is: I see in the patch that rtR0MemObjFreeBSDPhysPageInit is not called if the veersion is less that 1000000, is this because vm_phys_alloc_contig doesn't set the flags on the pages and vm_page_alloc_contig does? Thanks, Gus From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 1 08:52:20 2011 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 32889106566B; Thu, 1 Dec 2011 08:52:20 +0000 (UTC) (envelope-from decke@FreeBSD.org) Received: from groupware.itac.at (groupware.itac.at [91.205.172.99]) by mx1.freebsd.org (Postfix) with ESMTP id B344F8FC0A; Thu, 1 Dec 2011 08:52:18 +0000 (UTC) Received: from home.bluelife.at (93.104.210.95) by groupware.itac.at (Axigen) with (AES256-SHA encrypted) ESMTPSA id 19862E; Thu, 1 Dec 2011 09:37:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 01 Dec 2011 09:37:12 +0100 From: Bernhard Froehlich To: Jung-uk Kim In-Reply-To: <201111301807.21351.jkim@FreeBSD.org> References: <4ECF7440.4070300@entel.upc.edu> <20111126163343.GA9150@reks> <4ED6AEFE.4010106@FreeBSD.org> <201111301807.21351.jkim@FreeBSD.org> Message-ID: <60ea779052f025798cf65e18c24b7b31@bluelife.at> X-Sender: decke@FreeBSD.org User-Agent: Roundcube Webmail/0.6 X-AxigenSpam-Level: 1 X-CTCH-RefID: str=0001.0A0B0202.4ED73CB7.0179,ss=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Cc: Alan Cox , freebsd-emulation@freebsd.org, FreeBSD current , Gleb Kurtsou , Andriy Gapon Subject: Re: Freeze with 10.0 and VirtualBox {4.1.4|4.1.6|4.1.51r38464} 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, 01 Dec 2011 08:52:20 -0000 On 01.12.2011 00:07, Jung-uk Kim wrote: > On Wednesday 30 November 2011 05:32 pm, Andriy Gapon wrote: >> on 26/11/2011 18:33 Gleb Kurtsou said the following: >> > Using new vm_page_alloc_contig() may be a better option here. >> > Can't help with patch, stuck with pre Nov 15 CURRENT myself. >> >> on 27/11/2011 19:09 Alan Cox said the following: >> > vm_page_alloc_contig() should be used instead. >> >> My take on the patch: >> http://people.freebsd.org/~avg/vbox-10.patch >> This is for head only, no check for FreeBSD version. > > Actually, I did the same thing last night: > > > http://people.freebsd.org/~jkim/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c > > This is a drop-in replacement for the patch. The only practical > difference I see from yours is I used VM_ALLOC_INTERRUPT instead of > VM_ALLOC_NORMAL. I believe this function may be used in interrupt > context. FYI, I tried FreeBSD 9 and Fedora 10 without problem. Thanks a lot for both patches! Could you please as usual reply and tell me if it is okay to send this patch upstream under MIT license? Once there is some positive feedback I will commit both patches to the ports tree. -- Bernhard Froehlich http://www.bluelife.at/ From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 1 12:11:58 2011 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 5E32C106564A for ; Thu, 1 Dec 2011 12:11:58 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 947F08FC16 for ; Thu, 1 Dec 2011 12:11:57 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA11468 for ; Thu, 01 Dec 2011 14:11:56 +0200 (EET) (envelope-from avg@FreeBSD.org) Message-ID: <4ED76F0B.6090603@FreeBSD.org> Date: Thu, 01 Dec 2011 14:11:55 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111109 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-emulation@FreeBSD.org X-Enigmail-Version: undefined Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: "headed" virtualbox + vnc 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, 01 Dec 2011 12:11:58 -0000 Is it possible to start a guess VM with GUI and also be able to access it via VNC? All google hits for freebsd+virtualbox+vnc are about VBoxHeadless. I suppose that VNC still is the only way to access a guest's screen? -- Andriy Gapon From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 1 16:27:27 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 390871065670; Thu, 1 Dec 2011 16:27:27 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Bernhard Froehlich Date: Thu, 1 Dec 2011 11:27:14 -0500 User-Agent: KMail/1.6.2 References: <4ECF7440.4070300@entel.upc.edu> <201111301807.21351.jkim@FreeBSD.org> <60ea779052f025798cf65e18c24b7b31@bluelife.at> In-Reply-To: <60ea779052f025798cf65e18c24b7b31@bluelife.at> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201112011127.18517.jkim@FreeBSD.org> Cc: Alan Cox , freebsd-emulation@freebsd.org, FreeBSD current , Gleb Kurtsou , Andriy Gapon Subject: Re: Freeze with 10.0 and VirtualBox {4.1.4|4.1.6|4.1.51r38464} 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, 01 Dec 2011 16:27:27 -0000 On Thursday 01 December 2011 03:37 am, Bernhard Froehlich wrote: > On 01.12.2011 00:07, Jung-uk Kim wrote: > > On Wednesday 30 November 2011 05:32 pm, Andriy Gapon wrote: > >> on 26/11/2011 18:33 Gleb Kurtsou said the following: > >> > Using new vm_page_alloc_contig() may be a better option here. > >> > Can't help with patch, stuck with pre Nov 15 CURRENT myself. > >> > >> on 27/11/2011 19:09 Alan Cox said the following: > >> > vm_page_alloc_contig() should be used instead. > >> > >> My take on the patch: > >> http://people.freebsd.org/~avg/vbox-10.patch > >> This is for head only, no check for FreeBSD version. > > > > Actually, I did the same thing last night: > > > > > > http://people.freebsd.org/~jkim/patch-src-VBox-Runtime-r0drv-free > >bsd-memobj-r0drv-freebsd.c > > > > This is a drop-in replacement for the patch. The only practical > > difference I see from yours is I used VM_ALLOC_INTERRUPT instead > > of VM_ALLOC_NORMAL. I believe this function may be used in > > interrupt context. FYI, I tried FreeBSD 9 and Fedora 10 without > > problem. > > Thanks a lot for both patches! Could you please as usual reply and > tell me if it is okay to send this patch upstream under MIT > license? Yes, as usual. :-) > Once there is some positive feedback I will commit both patches to > the ports tree. Thanks! Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 1 16:52:44 2011 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 5879B1065670; Thu, 1 Dec 2011 16:52:44 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 028D28FC17; Thu, 1 Dec 2011 16:52:43 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pB1GHwJC010528; Thu, 1 Dec 2011 09:17:58 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pB1GHwMf010525; Thu, 1 Dec 2011 09:17:58 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Thu, 1 Dec 2011 09:17:58 -0700 (MST) From: Warren Block To: Andriy Gapon In-Reply-To: <4ED76F0B.6090603@FreeBSD.org> Message-ID: References: <4ED76F0B.6090603@FreeBSD.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Thu, 01 Dec 2011 09:17:58 -0700 (MST) Cc: freebsd-emulation@freebsd.org Subject: Re: "headed" virtualbox + vnc 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, 01 Dec 2011 16:52:44 -0000 On Thu, 1 Dec 2011, Andriy Gapon wrote: > > Is it possible to start a guess VM with GUI and also be able to access it via VNC? > All google hits for freebsd+virtualbox+vnc are about VBoxHeadless. net/x11vnc installed in the guest should work. From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 1 17:02:35 2011 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 A166A106564A for ; Thu, 1 Dec 2011 17:02:35 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id D7E258FC14 for ; Thu, 1 Dec 2011 17:02:34 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA16235; Thu, 01 Dec 2011 19:02:25 +0200 (EET) (envelope-from avg@FreeBSD.org) Message-ID: <4ED7B320.5020007@FreeBSD.org> Date: Thu, 01 Dec 2011 19:02:24 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111109 Thunderbird/8.0 MIME-Version: 1.0 To: Warren Block References: <4ED76F0B.6090603@FreeBSD.org> In-Reply-To: X-Enigmail-Version: undefined Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@FreeBSD.org Subject: Re: "headed" virtualbox + vnc 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, 01 Dec 2011 17:02:35 -0000 on 01/12/2011 18:17 Warren Block said the following: > On Thu, 1 Dec 2011, Andriy Gapon wrote: > >> >> Is it possible to start a guess VM with GUI and also be able to access it via VNC? >> All google hits for freebsd+virtualbox+vnc are about VBoxHeadless. > > net/x11vnc installed in the guest should work. Of course that's not what I meant/wanted. -- Andriy Gapon From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 1 18:12:44 2011 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 E6B19106564A; Thu, 1 Dec 2011 18:12:44 +0000 (UTC) (envelope-from byshenknet@byshenk.net) Received: from portland.byshenk.net (portland.byshenk.net [69.168.53.243]) by mx1.freebsd.org (Postfix) with ESMTP id C48798FC17; Thu, 1 Dec 2011 18:12:44 +0000 (UTC) Received: from portland.byshenk.net (localhost [127.0.0.1]) by portland.byshenk.net (8.14.5/8.14.5) with ESMTP id pB1HuigR094218; Thu, 1 Dec 2011 09:56:44 -0800 (PST) (envelope-from byshenknet@portland.byshenk.net) Received: (from byshenknet@localhost) by portland.byshenk.net (8.14.5/8.14.5/Submit) id pB1HuhLU094217; Thu, 1 Dec 2011 09:56:43 -0800 (PST) (envelope-from byshenknet) Date: Thu, 1 Dec 2011 09:56:43 -0800 From: Greg Byshenk To: freebsd-emulation@freebsd.org Message-ID: <20111201175643.GJ75313@portland.byshenk.net> References: <4ED76F0B.6090603@FreeBSD.org> <4ED7B320.5020007@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4ED7B320.5020007@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on portland.byshenk.net Cc: Andriy Gapon Subject: Re: "headed" virtualbox + vnc 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, 01 Dec 2011 18:12:45 -0000 On Thu, Dec 01, 2011 at 07:02:24PM +0200, Andriy Gapon wrote: > on 01/12/2011 18:17 Warren Block said the following: > > On Thu, 1 Dec 2011, Andriy Gapon wrote: > >> Is it possible to start a guess VM with GUI and also be able to access it via VNC? > >> All google hits for freebsd+virtualbox+vnc are about VBoxHeadless. > > > > net/x11vnc installed in the guest should work. > > Of course that's not what I meant/wanted. It's about as close as you can get, I think. If I understand aright, "standard" VNC uses its own display, which means that it can't somehow "attach" to an existing X display. I've never used it, but according to its description, x11vnc -does- allow you to connect to a running X display: "x11vnc differs from traditional UNIX VNC servers in that it is accessing a real X displays that may already be in progress rather than creating its own X server for clients to connect to." -- greg byshenk - gbyshenk@byshenk.net - Leiden, NL From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 1 19:34:03 2011 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 0DCE9106564A; Thu, 1 Dec 2011 19:34:03 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id C10648FC0A; Thu, 1 Dec 2011 19:34:02 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pB1JXsPx013012; Thu, 1 Dec 2011 12:33:54 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pB1JXskf013009; Thu, 1 Dec 2011 12:33:54 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Thu, 1 Dec 2011 12:33:54 -0700 (MST) From: Warren Block To: Greg Byshenk In-Reply-To: <20111201175643.GJ75313@portland.byshenk.net> Message-ID: References: <4ED76F0B.6090603@FreeBSD.org> <4ED7B320.5020007@FreeBSD.org> <20111201175643.GJ75313@portland.byshenk.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Thu, 01 Dec 2011 12:33:54 -0700 (MST) Cc: freebsd-emulation@freebsd.org, Andriy Gapon Subject: Re: "headed" virtualbox + vnc 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, 01 Dec 2011 19:34:03 -0000 On Thu, 1 Dec 2011, Greg Byshenk wrote: > On Thu, Dec 01, 2011 at 07:02:24PM +0200, Andriy Gapon wrote: >> on 01/12/2011 18:17 Warren Block said the following: >>> On Thu, 1 Dec 2011, Andriy Gapon wrote: > >>>> Is it possible to start a guess VM with GUI and also be able to access it via VNC? >>>> All google hits for freebsd+virtualbox+vnc are about VBoxHeadless. >>> >>> net/x11vnc installed in the guest should work. >> >> Of course that's not what I meant/wanted. > > It's about as close as you can get, I think. > > If I understand aright, "standard" VNC uses its own display, which > means that it can't somehow "attach" to an existing X display. > > I've never used it, but according to its description, x11vnc -does- > allow you to connect to a running X display: > > "x11vnc differs from traditional UNIX VNC servers in that > it is accessing a real X displays that may already be in > progress rather than creating its own X server for clients > to connect to." Yes, I've used it and it works pretty well. Another option is to always run the VM guest headless and use a VNC client on the host to connect to it "locally". That works too, and is similar to using the direct VirtualBox window. From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 1 20:13:06 2011 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 2CF741065673; Thu, 1 Dec 2011 20:13:06 +0000 (UTC) (envelope-from martin@lispworks.com) Received: from lwfs1-cam.cam.lispworks.com (mail.lispworks.com [193.34.186.230]) by mx1.freebsd.org (Postfix) with ESMTP id BCA1A8FC13; Thu, 1 Dec 2011 20:13:05 +0000 (UTC) Received: from higson.cam.lispworks.com (higson [192.168.1.7]) by lwfs1-cam.cam.lispworks.com (8.14.3/8.14.3) with ESMTP id pB1K2trf088806; Thu, 1 Dec 2011 20:02:55 GMT (envelope-from martin@lispworks.com) Received: from higson.cam.lispworks.com (localhost.localdomain [127.0.0.1]) by higson.cam.lispworks.com (8.14.4) id pB1K2t3v025657; Thu, 1 Dec 2011 20:02:55 GMT Received: (from martin@localhost) by higson.cam.lispworks.com (8.14.4/8.14.4/Submit) id pB1K2swd025653; Thu, 1 Dec 2011 20:02:55 GMT Date: Thu, 1 Dec 2011 20:02:55 GMT Message-Id: <201112012002.pB1K2swd025653@higson.cam.lispworks.com> From: Martin Simmons To: Andriy Gapon In-reply-to: <4ED76F0B.6090603@FreeBSD.org> (message from Andriy Gapon on Thu, 01 Dec 2011 14:11:55 +0200) References: <4ED76F0B.6090603@FreeBSD.org> Cc: freebsd-emulation@freebsd.org Subject: Re: "headed" virtualbox + vnc 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, 01 Dec 2011 20:13:06 -0000 >>>>> On Thu, 01 Dec 2011 14:11:55 +0200, Andriy Gapon said: > > Is it possible to start a guess VM with GUI and also be able to access it via VNC? > All google hits for freebsd+virtualbox+vnc are about VBoxHeadless. Probably not simultaneously, but you can close the GUI with the "Save the machine state" option and then bring it back to life as a headless VM (presumably with vnc). Use VBoxManage controlvm ... savestate to stop the headless VM and then start it again in GUI mode. __Martin From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 1 20:32:33 2011 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 B58E3106564A for ; Thu, 1 Dec 2011 20:32:33 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 0E6718FC15 for ; Thu, 1 Dec 2011 20:32:32 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id WAA18296; Thu, 01 Dec 2011 22:32:26 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1RWDIv-0007k2-TS; Thu, 01 Dec 2011 22:32:25 +0200 Message-ID: <4ED7E457.4010507@FreeBSD.org> Date: Thu, 01 Dec 2011 22:32:23 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111108 Thunderbird/8.0 MIME-Version: 1.0 To: Greg Byshenk References: <4ED76F0B.6090603@FreeBSD.org> <4ED7B320.5020007@FreeBSD.org> <20111201175643.GJ75313@portland.byshenk.net> In-Reply-To: <20111201175643.GJ75313@portland.byshenk.net> X-Enigmail-Version: undefined Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@FreeBSD.org Subject: Re: "headed" virtualbox + vnc 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, 01 Dec 2011 20:32:33 -0000 on 01/12/2011 19:56 Greg Byshenk said the following: > On Thu, Dec 01, 2011 at 07:02:24PM +0200, Andriy Gapon wrote: >> on 01/12/2011 18:17 Warren Block said the following: >>> On Thu, 1 Dec 2011, Andriy Gapon wrote: > >>>> Is it possible to start a guess VM with GUI and also be able to access it via VNC? >>>> All google hits for freebsd+virtualbox+vnc are about VBoxHeadless. >>> >>> net/x11vnc installed in the guest should work. >> >> Of course that's not what I meant/wanted. > > It's about as close as you can get, I think. > > If I understand aright, "standard" VNC uses its own display, which > means that it can't somehow "attach" to an existing X display. > > I've never used it, but according to its description, x11vnc -does- > allow you to connect to a running X display: > > "x11vnc differs from traditional UNIX VNC servers in that > it is accessing a real X displays that may already be in > progress rather than creating its own X server for clients > to connect to." I am not sure what all of this (i.e. features of vncserver and x11vnc) has to do with a capability of Virtualbox to export guest's screen via VNC protocol. -- Andriy Gapon From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 1 23:14:41 2011 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 55A35106564A for ; Thu, 1 Dec 2011 23:14:41 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9CC1C8FC0A for ; Thu, 1 Dec 2011 23:14:40 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id BAA20048; Fri, 02 Dec 2011 01:14:36 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1RWFps-0007pW-5p; Fri, 02 Dec 2011 01:14:36 +0200 Message-ID: <4ED80A5A.2050300@FreeBSD.org> Date: Fri, 02 Dec 2011 01:14:34 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111108 Thunderbird/8.0 MIME-Version: 1.0 To: Martin Simmons References: <4ED76F0B.6090603@FreeBSD.org> <201112012002.pB1K2swd025653@higson.cam.lispworks.com> In-Reply-To: <201112012002.pB1K2swd025653@higson.cam.lispworks.com> X-Enigmail-Version: undefined Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@FreeBSD.org Subject: Re: "headed" virtualbox + vnc 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, 01 Dec 2011 23:14:41 -0000 on 01/12/2011 22:02 Martin Simmons said the following: >>>>>> On Thu, 01 Dec 2011 14:11:55 +0200, Andriy Gapon said: >> >> Is it possible to start a guess VM with GUI and also be able to access it via VNC? >> All google hits for freebsd+virtualbox+vnc are about VBoxHeadless. > > Probably not simultaneously, but you can close the GUI with the "Save the > machine state" option and then bring it back to life as a headless VM > (presumably with vnc). > > Use VBoxManage controlvm ... savestate to stop the headless VM and then start > it again in GUI mode. The reason I am asking is that apparently that feature is available with RDP (via Devices -> Enable Remote Display). So I hoped for the same with VNC. -- Andriy Gapon From owner-freebsd-emulation@FreeBSD.ORG Fri Dec 2 05:05:06 2011 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 A3766106566B; Fri, 2 Dec 2011 05:05:06 +0000 (UTC) (envelope-from byshenknet@byshenk.net) Received: from portland.byshenk.net (portland.byshenk.net [69.168.53.243]) by mx1.freebsd.org (Postfix) with ESMTP id 7DB518FC0C; Fri, 2 Dec 2011 05:05:06 +0000 (UTC) Received: from portland.byshenk.net (localhost [127.0.0.1]) by portland.byshenk.net (8.14.5/8.14.5) with ESMTP id pB253gKH097851; Thu, 1 Dec 2011 21:03:42 -0800 (PST) (envelope-from byshenknet@portland.byshenk.net) Received: (from byshenknet@localhost) by portland.byshenk.net (8.14.5/8.14.5/Submit) id pB253gaZ097850; Thu, 1 Dec 2011 21:03:42 -0800 (PST) (envelope-from byshenknet) Date: Thu, 1 Dec 2011 21:03:42 -0800 From: Greg Byshenk To: freebsd-emulation@freebsd.org Message-ID: <20111202050342.GL75313@portland.byshenk.net> References: <4ED76F0B.6090603@FreeBSD.org> <201112012002.pB1K2swd025653@higson.cam.lispworks.com> <4ED80A5A.2050300@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4ED80A5A.2050300@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on portland.byshenk.net Cc: Andriy Gapon Subject: Re: "headed" virtualbox + vnc 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, 02 Dec 2011 05:05:06 -0000 On Fri, Dec 02, 2011 at 01:14:34AM +0200, Andriy Gapon wrote: > on 01/12/2011 22:02 Martin Simmons said the following: > >>>>>> On Thu, 01 Dec 2011 14:11:55 +0200, Andriy Gapon said: > >> > >> Is it possible to start a guess VM with GUI and also be able to access it via VNC? > >> All google hits for freebsd+virtualbox+vnc are about VBoxHeadless. > > > > Probably not simultaneously, but you can close the GUI with the "Save the > > machine state" option and then bring it back to life as a headless VM > > (presumably with vnc). > > > > Use VBoxManage controlvm ... savestate to stop the headless VM and then start > > it again in GUI mode. > The reason I am asking is that apparently that feature is available with RDP > (via Devices -> Enable Remote Display). So I hoped for the same with VNC. Apparently it is not. There is some discussion on the VirtualBox boards about issues relating to VNC, the GPL, and inclusion with VBox, so that could have something to do with its absence in the GUI config. But as mentioned, you can start VBoxHeadless with VNC enabled, and then connect to the VM using both local and remote VNC clients -- which seems to give you pretty much the same thing... -- greg byshenk - gbyshenk@byshenk.net - Leiden, NL From owner-freebsd-emulation@FreeBSD.ORG Fri Dec 2 09:17:00 2011 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 DB7171065675; Fri, 2 Dec 2011 09:17:00 +0000 (UTC) (envelope-from decke@FreeBSD.org) Received: from groupware.itac.at (groupware.itac.at [91.205.172.99]) by mx1.freebsd.org (Postfix) with ESMTP id 6D4688FC0A; Fri, 2 Dec 2011 09:17:00 +0000 (UTC) Received: from home.bluelife.at (93.104.210.95) by groupware.itac.at (Axigen) with (AES256-SHA encrypted) ESMTPSA id 1A6BF4; Fri, 2 Dec 2011 10:17:10 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 02 Dec 2011 10:16:58 +0100 From: Bernhard Froehlich To: Andriy Gapon In-Reply-To: <4ED80A5A.2050300@FreeBSD.org> References: <4ED76F0B.6090603@FreeBSD.org> <201112012002.pB1K2swd025653@higson.cam.lispworks.com> <4ED80A5A.2050300@FreeBSD.org> Message-ID: <8c573021da20ecf69a3225f19af422b5@bluelife.at> X-Sender: decke@FreeBSD.org User-Agent: Roundcube Webmail/0.6 X-AxigenSpam-Level: 1 X-CTCH-RefID: str=0001.0A0B020B.4ED8978B.0072,ss=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Cc: bapt@FreeBSD.org, freebsd-emulation@freebsd.org Subject: Re: "headed" virtualbox + vnc 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, 02 Dec 2011 09:17:00 -0000 On 02.12.2011 00:14, Andriy Gapon wrote: > on 01/12/2011 22:02 Martin Simmons said the following: >>>>>>> On Thu, 01 Dec 2011 14:11:55 +0200, Andriy Gapon said: >>> >>> Is it possible to start a guess VM with GUI and also be able to >>> access it via VNC? >>> All google hits for freebsd+virtualbox+vnc are about VBoxHeadless. >> >> Probably not simultaneously, but you can close the GUI with the >> "Save the >> machine state" option and then bring it back to life as a headless >> VM >> (presumably with vnc). >> >> Use VBoxManage controlvm ... savestate to stop the headless VM and >> then start >> it again in GUI mode. > > The reason I am asking is that apparently that feature is available > with RDP > (via Devices -> Enable Remote Display). So I hoped for the same with > VNC. The correct answer is not yet. Currently VNC support is a hack and does not integrate very well. Since VirtualBox 4.0 there is a new plugin API which allows to write a VNC plugin that integrates the same way as RDP but without the GPL licensing issues. Someone already started writing such a VNC plugin but that work has stalled. It's more or less in a working state so they plan to integrate it at some point in the future. We have an highly experimental port of that code available for vbox 4.0.4 but I don't know if we ever got it working. bapt@ has done some work on this so probably he knows something about it. http://redports.org/browser/virtualbox/emulators/virtualbox-extpack-vnc http://redports.org/~virtualbox/svn.tar.bz2 -- Bernhard Froehlich http://www.bluelife.at/ From owner-freebsd-emulation@FreeBSD.ORG Fri Dec 2 11:55:35 2011 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 CC27410656D1; Fri, 2 Dec 2011 11:55:35 +0000 (UTC) (envelope-from decke@FreeBSD.org) Received: from groupware.itac.at (groupware.itac.at [91.205.172.99]) by mx1.freebsd.org (Postfix) with ESMTP id 579948FC1A; Fri, 2 Dec 2011 11:55:35 +0000 (UTC) Received: from home.bluelife.at (93.104.210.95) by groupware.itac.at (Axigen) with (AES256-SHA encrypted) ESMTPSA id 396105; Fri, 2 Dec 2011 12:55:45 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 02 Dec 2011 12:55:35 +0100 From: Bernhard Froehlich To: Bernhard Froehlich In-Reply-To: <60ea779052f025798cf65e18c24b7b31@bluelife.at> References: <4ECF7440.4070300@entel.upc.edu> <20111126163343.GA9150@reks> <4ED6AEFE.4010106@FreeBSD.org> <201111301807.21351.jkim@FreeBSD.org> <60ea779052f025798cf65e18c24b7b31@bluelife.at> Message-ID: <47eb9f9b139dd8c59b050f1670a5f18d@bluelife.at> X-Sender: decke@FreeBSD.org User-Agent: Roundcube Webmail/0.6 X-AxigenSpam-Level: 1 X-CTCH-RefID: str=0001.0A0B0206.4ED8BCB6.013F,ss=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Cc: Gleb Kurtsou , Alan Cox , Gapon , freebsd-emulation@freebsd.org, FreeBSD current , Andriy Subject: Re: Freeze with 10.0 and VirtualBox {4.1.4|4.1.6|4.1.51r38464} 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, 02 Dec 2011 11:55:35 -0000 On 01.12.2011 09:37, Bernhard Froehlich wrote: > On 01.12.2011 00:07, Jung-uk Kim wrote: >> On Wednesday 30 November 2011 05:32 pm, Andriy Gapon wrote: >>> on 26/11/2011 18:33 Gleb Kurtsou said the following: >>> > Using new vm_page_alloc_contig() may be a better option here. >>> > Can't help with patch, stuck with pre Nov 15 CURRENT myself. >>> >>> on 27/11/2011 19:09 Alan Cox said the following: >>> > vm_page_alloc_contig() should be used instead. >>> >>> My take on the patch: >>> http://people.freebsd.org/~avg/vbox-10.patch >>> This is for head only, no check for FreeBSD version. >> >> Actually, I did the same thing last night: >> >> >> http://people.freebsd.org/~jkim/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c >> >> This is a drop-in replacement for the patch. The only practical >> difference I see from yours is I used VM_ALLOC_INTERRUPT instead of >> VM_ALLOC_NORMAL. I believe this function may be used in interrupt >> context. FYI, I tried FreeBSD 9 and Fedora 10 without problem. > > Thanks a lot for both patches! Could you please as usual reply and > tell > me if it is okay to send this patch upstream under MIT license? > > Once there is some positive feedback I will commit both patches to > the ports tree. Patch has been send upstream: https://www.virtualbox.org/pipermail/vbox-dev/2011-December/004842.html -- Bernhard Froehlich http://www.bluelife.at/ From owner-freebsd-emulation@FreeBSD.ORG Sat Dec 3 21:28:27 2011 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 657191065672 for ; Sat, 3 Dec 2011 21:28:27 +0000 (UTC) (envelope-from tedm@mittelstaedt.us) Received: from mail.freebsd-corp-net-guide.com (unknown [IPv6:2607:fa80:40::6]) by mx1.freebsd.org (Postfix) with ESMTP id 0916F8FC0C for ; Sat, 3 Dec 2011 21:28:26 +0000 (UTC) Received: from [192.168.1.64] (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) (authenticated bits=0) by mail.freebsd-corp-net-guide.com (8.14.4/8.14.4) with ESMTP id pB3LSGZj090574 for ; Sat, 3 Dec 2011 13:28:23 -0800 (PST) (envelope-from tedm@mittelstaedt.us) Message-ID: <4EDA9474.3090206@mittelstaedt.us> Date: Sat, 03 Dec 2011 13:28:20 -0800 From: Ted Mittelstaedt User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org References: <4ED76F0B.6090603@FreeBSD.org> <4ED7B320.5020007@FreeBSD.org> <20111201175643.GJ75313@portland.byshenk.net> <4ED7E457.4010507@FreeBSD.org> In-Reply-To: <4ED7E457.4010507@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=4.5 tests=ALL_TRUSTED autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.freebsd-corp-net-guide.com Subject: Re: "headed" virtualbox + vnc 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, 03 Dec 2011 21:28:27 -0000 On 12/1/2011 12:32 PM, Andriy Gapon wrote: > on 01/12/2011 19:56 Greg Byshenk said the following: >> On Thu, Dec 01, 2011 at 07:02:24PM +0200, Andriy Gapon wrote: >>> on 01/12/2011 18:17 Warren Block said the following: >>>> On Thu, 1 Dec 2011, Andriy Gapon wrote: >> >>>>> Is it possible to start a guess VM with GUI and also be able to access it via VNC? >>>>> All google hits for freebsd+virtualbox+vnc are about VBoxHeadless. >>>> >>>> net/x11vnc installed in the guest should work. >>> >>> Of course that's not what I meant/wanted. >> >> It's about as close as you can get, I think. >> >> If I understand aright, "standard" VNC uses its own display, which >> means that it can't somehow "attach" to an existing X display. >> >> I've never used it, but according to its description, x11vnc -does- >> allow you to connect to a running X display: >> >> "x11vnc differs from traditional UNIX VNC servers in that >> it is accessing a real X displays that may already be in >> progress rather than creating its own X server for clients >> to connect to." > > I am not sure what all of this (i.e. features of vncserver and x11vnc) has to do > with a capability of Virtualbox to export guest's screen via VNC protocol. > The way I do it is as follows: The FreeBSD server boots up to the command line but it starts a vnc server I vnc into the BSD box. From the GUI I start VirtualBox. I then start the guests. I then click Close on the vnc client, this disconnects the client but leaves the vnc server and it's screen running, and in that is running the GUI control for VirtualBox, as well as leaving the GUI interfaces to the various guest's "consoles" still running, all in that vnc server session. For Windows XP, Vista or 7 guests, I just make sure to use Pro versions which allow an RDP session into the guest. If I need access to the "consoles" of those systems I just VNC back into the host vnc server and this connects me to the screen that's still running and the GUI control for VirtualBox as well as all the guests screens. For other BSD or Linux guests, I make sure to start those to the command line console. They can run VNC servers or I can just use an X server on a PC or workstation to run X programs on those guests. Ted