From owner-freebsd-emulation@FreeBSD.ORG Fri Nov 16 17:53:44 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6B792F63 for ; Fri, 16 Nov 2012 17:53:44 +0000 (UTC) (envelope-from marek_sal@wp.pl) Received: from mx4.wp.pl (mx4.wp.pl [212.77.101.8]) by mx1.freebsd.org (Postfix) with ESMTP id E1BA38FC08 for ; Fri, 16 Nov 2012 17:53:43 +0000 (UTC) Received: (wp-smtpd smtp.wp.pl 11550 invoked from network); 16 Nov 2012 18:53:34 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1353088414; bh=bm4KI7PxsuDPBodDjkRSQRvDrn7iFSZDbtxZR0ehNcE=; h=From:To:CC:Subject; b=uUiHx6bysnLM0HPzrHAf3bie8bdkMurfcI9g/yMceZnT1RpHzsBAMwm5PvbuXR3JF Vio/9pQZFxqK6k/RKpoMlqbS9Spimx6fLkB9sHzfYXa/m0uWmkgQqqL3fRupFOxHJc II+yfWfdQsszb84a2cKU0Ns7MlpU4ddz1ePflB3U= Received: from nat.misal.pl (HELO [127.0.0.1]) (marek_sal@[83.19.131.171]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with CAMELLIA256-SHA encrypted SMTP for ; 16 Nov 2012 18:53:34 +0100 Message-ID: <50A67D9F.8040505@wp.pl> Date: Fri, 16 Nov 2012 18:53:35 +0100 From: Marek Salwerowicz User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: Alex Chistyakov Subject: Re: VirtualBox 4.1.22 on FreeBSD 9.0-RELEASE problem: VBoxHeadless eats 100% CPU References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0000000 [0UNE] Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 16 Nov 2012 17:53:44 -0000 W dniu 2012-11-16 16:22, Alex Chistyakov pisze: > Hello, > > My system is an amd64 box running FreeBSD 9.0-RELEASE on top of ZFS. > I try to setup a VirtualBox VM from an Ubuntu 12.04 Server > installation CD in a headless mode using VNC. > Top shows that VBoxHeadless process consumes 100% CPU almost all the > time and it takes forever to boot from the CD image: > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 1652 vbox 19 22 0 358M 170M IPRT S 3 7:18 100.00% > VBoxHeadless > > I get lots of repeating "ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 > },0x0) = 0 (0x0)" lines every time I try to run truss on the running > VBoxHeadless process, like this: > > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > > and it looks like this system call prevails in truss stats: > > [root@ci ~]# wc -l truss.vbox.log > 1174962 truss.vbox.log > [root@ci ~]# cat truss.vbox.log | grep 'ioctl(7,0x200056c1' | wc -l > 1013997 > [root@ci ~]# > > FD 7 is /dev/vboxdrv0, does this indicate a problem in communicating > with a kernel VirtualBox driver? > What should I do to resolve this situation? Could you write down the VBoxManage commands you use to create the VM ? And post the VBoxManage showvminfo VM_NAME output. What is your hardware? -- Marek Salwerowicz