Grub2 with xenhopt and xenkopt

271 views
Skip to first unread message

Mauro Sánchez

unread,
Feb 9, 2011, 6:41:14 AM2/9/11
to gan...@googlegroups.com
Hello.
I'm trying ganeti in Debian testing. I have tried ganeti in Debian
stable and in the install docs there is a section where you have to
set de xenhopt and xenkopt parameters in the grub conf, exactly in the
menu.lst file. There, you set xenhopt=dom0_mem=1024M and xenkopt=nosmp
But in Debian testing i don't know where to set those parameters in
grub, because it uses grub2. I have tried to pass them directly to the
kernel in the grub.cfg file, for example, I've modified the lines and
added at the end:
linux /vmlinuz-2.6.32-5-xen-amd64 .................... dom0_mem=1024M nosmp
initrd /initrd.img-2.6.32-5-xen-amd64 ..................... dom0_mem=1024M nosmp

But it didn't work. With the nosmp parameter the usb stop working and
there are many errors at boot time.
What would be the correct way to pass those parameters in grub2?
Thanks.
Cheers, Mauro.

Iustin Pop

unread,
Feb 9, 2011, 6:51:30 AM2/9/11
to gan...@googlegroups.com

nosmp is deprecated, and should be replaced by maxcpus=1. dom0_mem needs
to be added on the xen cmdline, not linux one:

multiboot /boot/xen-4.0-amd64.gz dom0_mem=1024M


regards,
iustin

Liberie Cunha-Neto

unread,
Feb 9, 2011, 6:51:35 AM2/9/11
to gan...@googlegroups.com
Hi Mauro

on /etc/default/grub add the line
GRUB_CMDLINE_XEN_KERNEL=dom0_mem=1024M nosmp
and run again update-grub2

> Thanks.
> Cheers, Mauro.
>

Mauro Sánchez

unread,
Feb 9, 2011, 7:44:29 AM2/9/11
to gan...@googlegroups.com
2011/2/9 Iustin Pop <ius...@google.com>:

>
> nosmp is deprecated, and should be replaced by maxcpus=1. dom0_mem needs
> to be added on the xen cmdline, not linux one:
>
> multiboot       /boot/xen-4.0-amd64.gz dom0_mem=1024M
>
>
> regards,
> iustin
>

Thanks Iustin, that worked for me.
Mauro.

Reply all
Reply to author
Forward
0 new messages