[Lguest] FATAL: Error inserting lg (/lib/modules/2.6.36.1/kernel/drivers/lguest/lg.ko): Cannot allocate memory

Rusty Russell rusty at rustcorp.com.au
Thu Dec 9 21:08:53 EST 2010


On Thu, 9 Dec 2010 06:26:39 pm hxqq wrote:
> Hi guys,
>     I download Linux 2.6.36.1 and want to compile a lguest host kernel and I
> copy config file in my OS Federo 11,
>     use *make oldconfig*  to config the kernel, I keep the new config option
> in 2.6.36.1 by default.
>     than I config lguest in the kernel like this(
> http://lguest.ozlabs.org/lguest.txt),
> 
> what I do is just below:
> 
>   "General setup":
>      "Prompt for development and/or incomplete code/drivers" = Y
>         (CONFIG_EXPERIMENTAL=y)
> 
>   "Processor type and features":
>      "Paravirtualized guest support" = Y
>         "Lguest guest support" = Y
>      "High Memory Support" = off/4GB
>      "Alignment value to which kernel should be aligned" = 0x100000
>         (CONFIG_PARAVIRT=y, CONFIG_LGUEST_GUEST=y, CONFIG_HIGHMEM64G=n and
>          CONFIG_PHYSICAL_ALIGN=0x100000)
> 
>   "Device Drivers":
>      "Block devices"
>         "Virtio block driver (EXPERIMENTAL)" = M/Y
>      "Network device support"
>         "Universal TUN/TAP device driver support" = M/Y
>         "Virtio network driver (EXPERIMENTAL)" = M/Y
>            (CONFIG_VIRTIO_BLK=m, CONFIG_VIRTIO_NET=m and CONFIG_TUN=m)
> 
>   "Virtualization"
>      "Linux hypervisor example code" = M/Y
>         (CONFIG_LGUEST=m)
> 
> than I
> make modules_install
> make install
> change /boot/grub/grub.conf
> and reboot
> when I use
> *modprobe lg*
> It says:
> FATAL: Error inserting lg (/lib/modules/2.6.36.1/kernel/drivers/lguest/lg.ko):
> Cannot allocate memory
> 
> Can someone help me?

Hmm, please send .config?

Thanks,
Rusty.


More information about the Lguest mailing list