Fw: qemu error mounting cd and no internet connection with custom kernel

2010-05-24 Thread Heshmat Ismail


--- On Sun, 5/23/10, Heshmat Ismail real_precious_st...@yahoo.com wrote:

From: Heshmat Ismail real_precious_st...@yahoo.com
Subject: qemu error mounting cd and no internet connection with custom kernel
To: freebsd-emulat...@freebsd.org
Date: Sunday, May 23, 2010, 8:35 PM

Hi all,
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
--- GENERIC 2009-11-09 23:48:01.0
 +
+++ MYKERNEL    2010-05-12 17:06:41.0 +
@@ -1,4 +1,4 @@
-#
+
 # GENERIC -- Generic kernel configuration file for FreeBSD/i386
 #
 # For more information on this file, please read the config(5) manual page,
@@ -18,10 +18,10 @@
 #
 # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.519.2.4.2.2 2009/11/09 23:48:01 
kensmith Exp $
 
-cpu    I486_CPU
-cpu    I586_CPU
+#cpu   I486_CPU
+#cpu  
 I586_CPU
 cpu    I686_CPU
-ident  GENERIC
+ident  MYKERNEL
 
 # To statically compile in device wiring instead of /boot/device.hints
 #hints GENERIC.hints # Default places to look for devices.
@@ -42,30 +42,30 @@
 options    FFS # Berkeley Fast Filesystem
 options    SOFTUPDATES # Enable FFS soft updates support
 options   
 UFS_ACL # Support for access control lists
-options    UFS_DIRHASH # Improve performance on big directories
+#options   UFS_DIRHASH # Improve performance on big directories
 options    UFS_GJOURNAL    # Enable gjournal-based UFS journaling
 options    MD_ROOT # MD is a potential root device
-options   
 NFSCLIENT   # Network Filesystem Client
-options    NFSSERVER   # Network Filesystem Server
-options    NFSLOCKD    # Network Lock Manager
-options    NFS_ROOT    # NFS usable as /, requires NFSCLIENT
-options    MSDOSFS # MSDOS Filesystem
-options   
 CD9660  # ISO 9660 Filesystem
-options    PROCFS  # Process filesystem (requires PSEUDOFS)
-options    PSEUDOFS    # Pseudo-filesystem framework
+#options   NFSCLIENT   # Network Filesystem Client
+#options   NFSSERVER   # Network Filesystem Server
+#options  
 NFSLOCKD    # Network Lock Manager
+#options   NFS_ROOT    # NFS usable as /, requires NFSCLIENT
+#options   MSDOSFS # MSDOS Filesystem
+#options   CD9660  # ISO 9660 Filesystem
+#options   PROCFS  # Process filesystem (requires PSEUDOFS)
+#options  
 PSEUDOFS    # Pseudo-filesystem framework
 options    GEOM_PART_GPT   # GUID Partition Tables.
 options    GEOM_LABEL  # Provides labelization
 options    COMPAT_43TTY    # BSD 4.3 TTY compat (sgtty)
-options    COMPAT_FREEBSD4 # Compatible with FreeBSD4
-options    COMPAT_FREEBSD5 # Compatible with
 FreeBSD5
-options    COMPAT_FREEBSD6 # Compatible with FreeBSD6
+#options   COMPAT_FREEBSD4 # Compatible with FreeBSD4
+#options   COMPAT_FREEBSD5 # Compatible with FreeBSD5
+#options   COMPAT_FREEBSD6 # Compatible with FreeBSD6
 options    COMPAT_FREEBSD7 # Compatible with FreeBSD7
-options    SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
-options   
 KTRACE  # ktrace(1) support
+#options   SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
+#options   KTRACE  # ktrace(1) support
 options    STACK   # stack(9) support
 options    SYSVSHM # SYSV-style shared memory
-options   
 SYSVMSG # SYSV-style message queues
-options    SYSVSEM # SYSV-style semaphores
+#options   SYSVMSG # SYSV-style message queues
+#options   SYSVSEM # SYSV

[solved] startx couldn't create cookie with custom kernel

2010-05-15 Thread Heshmat Ismail
Hi all,

I enabled device random in my kernel configuration file , rebuilt and installed 
my kernel , now startx works flawlessly , thank you Alexander Best and thank 
you all.

Heshmat Ismail



  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


startx couldn't create cookie with custom kernel

2010-05-13 Thread Heshmat Ismail
I have built and installed a custom kernel on i386 machine with the
8-RELEASE then installed xorg from the DVD,when i ran startx i got:
couldn't create cookie.When using GENERIC kernel startx works
flawlessly,but with my custom kernel i got this error.

Heshmat Ismail



  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Fw: Re: startx couldn't create cookie with custom kernel

2010-05-13 Thread Heshmat Ismail


--- On Thu, 5/13/10, Heshmat Ismail real_precious_st...@yahoo.com wrote:

From: Heshmat Ismail real_precious_st...@yahoo.com
Subject: Re: startx couldn't create cookie with custom kernel
To: Yuri Pankov yuri.pan...@gmail.com
Date: Thursday, May 13, 2010, 1:19 PM

# cd /usr/src/sys/i386/conf
# diff -u GENERIC MYKERNEL
--- GENERIC 2009-11-09 23:48:01.0 +
+++ MYKERNEL    2010-05-12 17:06:41.0 +
@@ -1,4 +1,4 @@
-#
+
 # GENERIC -- Generic kernel configuration file for FreeBSD/i386
 #
 # For more information on this file, please read the config(5) manual page,
@@ -18,10 +18,10 @@
 #
 # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.519.2.4.2.2 2009/11/09 23:48:01 
kensmith Exp $
 
-cpu    I486_CPU
-cpu    I586_CPU
+#cpu   I486_CPU
+#cpu  
 I586_CPU
 cpu    I686_CPU
-ident  GENERIC
+ident  MYKERNEL
 
 # To statically compile in device wiring instead of /boot/device.hints
 #hints GENERIC.hints # Default places to look for devices.
@@ -42,30 +42,30 @@
 options    FFS # Berkeley Fast Filesystem
 options    SOFTUPDATES # Enable FFS soft updates support
 options   
 UFS_ACL # Support for access control lists
-options    UFS_DIRHASH # Improve performance on big directories
+#options   UFS_DIRHASH # Improve performance on big directories
 options    UFS_GJOURNAL    # Enable gjournal-based UFS journaling
 options    MD_ROOT # MD is a potential root device
-options   
 NFSCLIENT   # Network Filesystem Client
-options    NFSSERVER   # Network Filesystem Server
-options    NFSLOCKD    # Network Lock Manager
-options    NFS_ROOT    # NFS usable as /, requires NFSCLIENT
-options    MSDOSFS # MSDOS Filesystem
-options   
 CD9660  # ISO 9660 Filesystem
-options    PROCFS  # Process filesystem (requires PSEUDOFS)
-options    PSEUDOFS    # Pseudo-filesystem framework
+#options   NFSCLIENT   # Network Filesystem Client
+#options   NFSSERVER   # Network Filesystem Server
+#options  
 NFSLOCKD    # Network Lock Manager
+#options   NFS_ROOT    # NFS usable as /, requires NFSCLIENT
+#options   MSDOSFS # MSDOS Filesystem
+#options   CD9660  # ISO 9660 Filesystem
+#options   PROCFS  # Process filesystem (requires PSEUDOFS)
+#options  
 PSEUDOFS    # Pseudo-filesystem framework
 options    GEOM_PART_GPT   # GUID Partition Tables.
 options    GEOM_LABEL  # Provides labelization
 options    COMPAT_43TTY    # BSD 4.3 TTY compat (sgtty)
-options    COMPAT_FREEBSD4 # Compatible with FreeBSD4
-options    COMPAT_FREEBSD5 # Compatible with
 FreeBSD5
-options    COMPAT_FREEBSD6 # Compatible with FreeBSD6
+#options   COMPAT_FREEBSD4 # Compatible with FreeBSD4
+#options   COMPAT_FREEBSD5 # Compatible with FreeBSD5
+#options   COMPAT_FREEBSD6 # Compatible with FreeBSD6
 options    COMPAT_FREEBSD7 # Compatible with FreeBSD7
-options    SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
-options   
 KTRACE  # ktrace(1) support
+#options   SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
+#options   KTRACE  # ktrace(1) support
 options    STACK   # stack(9) support
 options    SYSVSHM # SYSV-style shared memory
-options   
 SYSVMSG # SYSV-style message queues
-options    SYSVSEM # SYSV-style semaphores
+#options   SYSVMSG # SYSV-style message queues
+#options   SYSVSEM # SYSV-style semaphores
 options    P1003_1B_SEMAPHORES # POSIX-style semaphores
 options    _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
 extensions
 options    PRINTF_BUFR_SIZE=128    # Prevent printf output being 
interspersed.
@@ -84,86 +84,86 @@
 device cpufreq
 
 # Bus support.
-device acpi
-device eisa
+#device    acpi
+#device    eisa
 device pci
 
 # Floppy drives
-device fdc
+#device    fdc
 
 # ATA and ATAPI
 devices
 device ata
 device atadisk # ATA disk drives
-device ataraid # ATA RAID drives
+#device    ataraid # ATA RAID drives
 device atapicd # ATAPI CDROM drives
-device atapifd # ATAPI floppy drives
-device atapist # ATAPI tape
 drives
+#device    atapifd # ATAPI floppy drives
+#device    atapist # ATAPI tape drives
 options

Problem with Custom Kernel

2010-05-11 Thread Heshmat Ismail
Dear Sir,
My name is Heshmat Ismail.The output of uname-a is:-
FreeBSD  8.0-RELEASE FreeBSD 8.0-RELEASE #12: Tue May 11 11:05:22 UTC 2010 
heshmat@:/usr/obj/usr/src/sys/MYKERNEL  i386
After I have built and installed my custom kernel  (MYKERNEL),i installed xorg 
and ran the command startx but i got: couldn't create cookie.What could be the 
problem with MYKERNEL? my kernel configuration file is attached with this 
message.
Thanks,
Heshmat Ismail



  

MYKERNEL
Description: Binary data
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org