Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2010 12:39:52 +0200
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        Heshmat Ismail <real_precious_stone@yahoo.com>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: qemu error mounting cd and no internet connection with custom kernel
Message-ID:  <20100524103952.GA14688@triton8.kn-bremen.de>
In-Reply-To: <865883.40251.qm@web113605.mail.gq1.yahoo.com>
References:  <865883.40251.qm@web113605.mail.gq1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100524103952.GA14688>