[lfs-support] First Boot Issue

Walter P. Little walterplittle at gmail.com
Tue Oct 1 07:57:24 PDT 2013


VMWARE_BALLOON is missing in menuconfig because you don't have
HYPERVISOR_GUEST enabled (see that it shows as "=n").  Once you enable the
hypervisor support, the balloon driver will appear in Misc devices.

-wpl


On Tue, Oct 1, 2013 at 7:27 AM, smlaid smlaid <smlail2005 at yahoo.fr> wrote:

> Finally i get my LFS os working :D
>
>
> i want to share with you some issue/solution and some questions too ;)
>
> ---------------------------issue 1--------------------------
> I 0.997150] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.10 #1
> I 0.997168] Hardware name: VMware, Inc. VMware Virtual Platform/440BX
> Desktop Reference Platform, BIOS 6.00 07/02/2012
> .
> I 0.997550] I<c1682b17>] ret_from_kernel_thread+Ox1b/0x28
> I 0.997570] I<c1665c20>] ? rest_init+0x60/0x60
> --------------------------issue1----------------------------
>
> it was my virtual scsi hard disk which was configured with LSI Logic as
> recommended by vmwarethus
>
> thus i set this flags as flow :
> CONFIG_VMWARE_BALLOON=y
> CONFIG_VMWARE_PVSCSI=y
>
> and i use # make localyesconfig to enables the drivers as in-kernel (no
> module) and this solve my problem may be this is not the optimal way but i
> work for me.
>
> see : swift.siphos.be/linux_sea/kernelbuilding.html
> see : techinlive.com/main/knowledge/build-linux-from-scratch-on-vmware
>
> later i found that this issue may be fixed if enabled in the kernel config
> menu :
>
> Device Drivers --->[*] Fusion MPT device support --->
> <*> Fusion MPT ScsiHost drivers for SPI
> <*> Fusion MPT ScsiHost drivers for FC
> <*> Fusion MPT ScsiHost drivers for SAS
>
> i didn't try yet if someone else had tested this thank to share :)
>
>
> now my hard disk is detected :D but when booting i get a second error
> message :s
>
> ---------------------------issue 2--------------------------
> VFS: unable to mount root fs on unknows-block(8,1)
> ---------------------------issue 2--------------------------
>
> it seem that LFS see my disk as sdb and not sda!?
>
> see : techinlive.com/main/knowledge/build-linux-from-scratch-on-vmware
>
> thus i change  both grub.cfg and fstab
>
> cat > /etc/fstab << "EOF"
> # Begin /etc/fstab
>
> # file system  mount-point  type     options             dump  fsck
> #                                                              order
>
> /dev/sdb1     /            ext4    defaults            1     1
> /dev/sdb2     swap         swap     pri=1               0     0
> proc           /proc        proc     nosuid,noexec,nodev 0     0
> sysfs          /sys         sysfs    nosuid,noexec,nodev 0     0
> devpts         /dev/pts     devpts   gid=5,mode=620      0     0
> tmpfs          /run         tmpfs    defaults            0     0
> devtmpfs       /dev         devtmpfs mode=0755,nosuid    0     0
>
> # End /etc/fstab
> EOF
>
> and
>
> cat > /boot/grub/grub.cfg << "EOF"
> # Begin /boot/grub/grub.cfg
> set default=0
> set timeout=5
>
> insmod ext2
> set root=(hd0,1)
>
> menuentry "GNU/Linux, Linux 3.10.10-lfs-7.4" {
>         linux   /boot/vmlinuz-3.10.10-lfs-7.4 root=/dev/sdb1 ro
> }
> EOF
>
> and it work !
>
>
> Question :
> 1. why LFS see my disk as sdb ??
> 2. when i try to set flag CONFIG_VMWARE_BALLOON=y i make a search on
> kernel config menu and i get :
>   │ Symbol: VMWARE_BALLOON [=n]
>                                                   │
>   │ Type  : tristate
>                                                  │
>   │ Prompt: VMware Balloon Driver
>                                                   │
>   │   Location:
>                                                   │
>   │     -> Device Drivers
>                                                   │
>   │ (4)   -> Misc devices
>                                                   │
>   │   Defined at drivers/misc/Kconfig:427
>                                                   │
>   │   Depends on: X86 [=y] && HYPERVISOR_GUEST [=n]
>
> but when i go to Device Drivers > Misc devices the VMWARE_BALLOON is
> missing !! even if i put it manualy to .config or load it from an other
> file it still messing ?!
>
> wish my post help someone else and special thank to Bruce
>
>
> --sam
>
>
>
>
>
>
>
> ----- Mail original -----
> De : Bruce Dubbs <bruce.dubbs at gmail.com>
> À : smlaid smlaid <smlail2005 at yahoo.fr>; LFS Support List <
> lfs-support at linuxfromscratch.org>
> Cc :
> Envoyé le : Dimanche 29 septembre 2013 18h31
> Objet : Re: [lfs-support]  First Boot Issue
>
> smlaid smlaid wrote:
> > i am getting this boot issue for my first LFS boot :(
> >
> > I 0.997150] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.10 #1
> > I 0.997168] Hardware name: VMware, Inc. VMware Virtual Platform/440BX
> Desktop Reference Platform, BIOS 6.00 07/02/2012
>
> This is almost always due to not having the right drivers installed in
> the kernel.  In your case, it looks like you are using vmware.
>
> When in the virtual host, look at lsmod and see what drivers are needed.
>   Also look at /dev to see what the disk drives are named.  If not sda,
> adjust this as needed in both grub.cfg and fstab.
>
>    -- Bruce
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20131001/a5757edb/attachment.html>


More information about the lfs-support mailing list