From owner-freebsd-emulation@FreeBSD.ORG Mon May 24 10:44: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 41F641065676 for ; Mon, 24 May 2010 10:44:13 +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 031738FC15 for ; Mon, 24 May 2010 10:44:12 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 843921E00219; Mon, 24 May 2010 12:44:11 +0200 (CEST) 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 o4OAdqog015513; Mon, 24 May 2010 12:39:52 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o4OAdq1p015512; Mon, 24 May 2010 12:39:52 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Mon, 24 May 2010 12:39:52 +0200 To: Heshmat Ismail Message-ID: <20100524103952.GA14688@triton8.kn-bremen.de> References: <865883.40251.qm@web113605.mail.gq1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <865883.40251.qm@web113605.mail.gq1.yahoo.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-emulation@freebsd.org Subject: Re: qemu error mounting cd and no internet connection with custom kernel 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, 24 May 2010 10:44:13 -0000 On Sun, May 23, 2010 at 01:35:48PM -0700, Heshmat Ismail wrote: > Hi all, Hi! > I have  built and installed a custom kernel on a freebsd 8.0-RELEASE machine (host os),then i installed qemu from the packages and used the following commands:- > # qemu-img create -f qcow2 freebsd.image 10G > # qemu -m 256 -hda freebsd.image -cdrom /dev/acd0 -boot d > # qemu freebsd.image > So, the  guest os is the same as the host os and i installed it from the same DVD (freebsd 8.0-RELEASE). > I face two problems with the guest os (the host os is working fine):- > Problem#1 > When i try to install any packages from the DVD by running > # sysinstall >    =>configure=>packages=>Install from freebsd CD/DVD > i got : Error mounting /dev/acd0 on /dist: Input/output error (5). > Problem#2 > I put these lines in /etc/rc.conf: > hald_enable="YES" > dbus_enable="YES" > ifconfig_ed0="DHCP" > but i can not connect to the internet (the above configuration in the host os works fine).When i use the GENERIC kernel i get no problems.Here are the differences between the two kernels,the GENERIC and MYKERNEL.  > > > # cd /usr/src/sys/i386/conf > # diff -u GENERIC MYKERNEL > -options        > CD9660                  # ISO 9660 Filesystem > +#options       CD9660                  # ISO 9660 Filesystem > -device         ed              # NE[12]000, SMC Ultra, 3c503, DS8390 > +#device                ed              # NE[12]000, SMC Ultra, 3c503, DS8390 cards Well you disabled the ISO 9660 fs which explains your Problem#1 and the ed(4) device which explains your Problem#2. And btw, these days there's usually not much point in removing usused drivers from your kernel, it won't boot noticeably faster and the amount of ram/diskspace saved is only relevant in (some) embedded setups. So all that's left is another opportunity to shoot yourself in the foot... :) HTH, Juergen