xen-unstable & pvops on *Suse distro? successful howto?
Starting with a well-updated Opensuse 11.2 distro, I'm attempting to build/install a Xen4 + PVOPS kernel on it.
Following the various/disparate Wiki pages,
If I checkout xen-unstable.hg, and build all from there, Xen itself builds OK, but the embedded xen.git linux kernel build fails.
If I checkout xen-unstable.hg, build only Xen, and then separately co the xen.git tree, using a kernel config from Opensuse's Kernel:HEAD repos, Xen builds, the kernel build, again, fails.
If I repeat the last step, but use the kernel config provided @
http://pasik.reaktio.net/xen/pv_ops-dom0-debug/config-2.6.31.4-pvops_dom0-x86_64,
Xen builds, and the kernel builds. mkinitrd is OK as well.
But, @ boot to the new xen+kernel, boot hangs @ grub loading ... I never get to any console output.
Clearly, people on this list are working with *Suse. Could someone share their specific steps, & .config, for getting this 'up' on *Suse?
Thanks.
Quoted 12 lines · On Wed, Feb 03, 2010 at 08:53:57AM -0800, 0bo0 wrote:
Starting with a well-updated Opensuse 11.2 distro, I'm attempting to build/install a Xen4 + PVOPS kernel on it.
Following the various/disparate Wiki pages,
If I checkout xen-unstable.hg, and build all from there, Xen itself builds OK, but the embedded xen.git linux kernel build fails.
If I checkout xen-unstable.hg, build only Xen, and then separately co the xen.git tree, using a kernel config from Opensuse's Kernel:HEAD repos, Xen builds, the kernel build, again, fails.
Opensuse's kernel is NOT pvops, it's based on forward-ported xenlinux 2.6.18 patches. So that explains why opensuse's .config didn't work.
Quoted 4 lines
If I repeat the last step, but use the kernel config provided @
http://pasik.reaktio.net/xen/pv_ops-dom0-debug/config-2.6.31.4-pvops_dom0-x86_64,
Xen builds, and the kernel builds. mkinitrd is OK as well.
That's my .config, and it builds/works for me ;)
Quoted 3 lines
But, @ boot to the new xen+kernel, boot hangs @ grub loading ... I never get to any console output.
Please paste your grub.conf.
Did you check the grub configuration examples in:
http://wiki.xensource.com/xenwiki/XenParavirtOps
Also check this wiki page for setting up a serial console for debugging boot problems:
http://wiki.xensource.com/xenwiki/XenSerialConsole
Quoted 3 lines
Clearly, people on this list are working with *Suse. Could someone share their specific steps, & .config, for getting this 'up' on *Suse?
*Suse is currently shipping forward-ported xenlinux patches, not pv_ops, so I assume that's why there aren't many pvops+suse stories out there.
I'm sure it can be done though. You'll figure it out :)
-- Pasi
Quoted 2 lines · Pasi Kärkkäinen
Opensuse's kernel is NOT pvops, it's based on forward-ported xenlinux 2.6.18 patches. So that explains why opensuse's .config didn't work.
perhaps so. i'm simply documenting the steps i've taken.
a diff with your config is not null, but it's not huge ... yes, of course, the details matter.
Quoted 1 line
That's my .config, and it builds/works for me ;)
if works for you building/installing on opensuse? if not, hence my questions.
Quoted 1 line
Please paste your grub.conf.
...
title pvops1
root (hd0,0)
kernel /xen.gz dom0_mem=1024M loglvl=all guest_loglvl=all module /vmlinuz-xen root=/dev/VG0/ROOT rootfstype=ext4
rootflags=journal_checksum resume=/dev/VG0/SWAP nomodeset
module /initrd-xen
title pvops2
root (hd0,0) kernel /xen.gz dom0_mem=1024M loglvl=all guest_loglvl=all
sync_console console_to_ring com1=57600,8n1 console=vga,com1
module /vmlinuz-xen root=/dev/VG0/ROOT rootfstype=ext4
rootflags=journal_checksum resume=/dev/VG0/SWAP console=hvc0 earlyprintk=xen
module /initrd-xen
...
Quoted 5 lines
Did you check the grub configuration examples in:
http://wiki.xensource.com/xenwiki/XenParavirtOpsAlso check this wiki page for setting up a serial console for debugging boot problems:
http://wiki.xensource.com/xenwiki/XenSerialConsole
again, yes, i'd followed both: " ... Following the various/disparate Wiki pages, ..."
like i said, boot doesn't get past grub ... so there's no console output.
Quoted 1 line
*Suse is currently shipping forward-ported xenlinux patches, not
pv_ops,
yes, i'm aware of what suse is shipping. i've asked question on this list based on it. most recently i got a drive-by RTFM-ing that's incorrectly & irrelevant to that case, and no further communications
...
Quoted 3 lines
so I assume that's why there aren't many pvops+suse stories out there.
I'm sure it can be done though. You'll figure it out :)
i don't need many, i need one. after the n-th failure trying to "figure it out", i thought the lists were for asking questions ...
there are active developers on this list who work @ *suse. i'm hoping that one of them will pipe up.
Quoted 6 lines · On Wed, Feb 03, 2010 at 10:40:03AM -0800, 0bo0 wrote:
Quoted 2 lines · Pasi Kärkkäinen
Opensuse's kernel is NOT pvops, it's based on forward-ported xenlinux 2.6.18 patches. So that explains why opensuse's .config didn't work.
perhaps so. i'm simply documenting the steps i've taken.
Yep. You should add the notes to the wiki when you get it working :)
Quoted 7 lines
a diff with your config is not null, but it's not huge ... yes, of course, the details matter.
Quoted 1 line
That's my .config, and it builds/works for me ;)
if works for you building/installing on opensuse? if not, hence my questions.
I've been using mostly Fedora for testing pv_ops dom0.
Quoted 10 lines
Quoted 1 line
Please paste your grub.conf.
...
title pvops1
root (hd0,0)
kernel /xen.gz dom0_mem=1024M loglvl=all guest_loglvl=all module /vmlinuz-xen root=/dev/VG0/ROOT rootfstype=ext4
rootflags=journal_checksum resume=/dev/VG0/SWAP nomodeset
module /initrd-xen
That looks ok.. it should set up a VGA text console.
Quoted 9 lines
title pvops2
root (hd0,0) kernel /xen.gz dom0_mem=1024M loglvl=all guest_loglvl=all
sync_consoleconsole_to_ringcom1=57600,8n1 console=vga,com1
module /vmlinuz-xen root=/dev/VG0/ROOT rootfstype=ext4
rootflags=journal_checksum resume=/dev/VG0/SWAP console=hvc0 earlyprintk=xen
module /initrd-xen
That looks OK aswell.
Quoted 4 lines
...
Quoted 3 lines
Did you check the grub configuration examples in:
http://wiki.xensource.com/xenwiki/XenParavirtOps
Quoted 8 lines
Quoted 2 lines
Also check this wiki page for setting up a serial console for debugging boot problems:
http://wiki.xensource.com/xenwiki/XenSerialConsoleagain, yes, i'd followed both: " ... Following the various/disparate Wiki pages, ..."
like i said, boot doesn't get past grub ... so there's no console output.
Grub doesn't give any errors?
No output from Xen, at all?
What version of grub is your distro using?
If there's nothing from Xen, then the problem is related to either grub or xen, not to pv_ops dom0 kernel.
Quoted 8 lines
Quoted 4 lines
so I assume that's why there aren't many pvops+suse stories out there.
I'm sure it can be done though. You'll figure it out :)
i don't need many, i need one. after the n-th failure trying to "figure it out", i thought the lists were for asking questions ...
There shouldn't be anything *suse specific in running pv_ops dom0..
Quoted 2 lines
there are active developers on this list who work @ *suse. i'm hoping that one of them will pipe up.
Let's hope so.
-- Pasi
Quoted 1 line · Pasi Kärkkäinen
Yep. You should add the notes to the wiki when you get it working :)
horse. cart. eventually ...
Quoted 3 lines
Quoted 1 line
if works for you building/installing on opensuse? if not, hence my questions.
I've been using mostly Fedora for testing
pv_opsdom0.
considering moving to it myself ... personally, much prefer the opensuse distro -- not interested in a flamewar -- but my inability to work on modern-xen may be a deciding factor.
Quoted 1 line
That looks ok.. it should set up a VGA text console.
with my 'normal' non-pvops kernel-default, kernel-desktop & kernel-xen, my console setups works perfectly.
Quoted 1 line
Grub doesn't give any errors?
nope. output stops at "loading grub 1.5" (or some such thing -- not in front of it, atm). i never even get to the grub menu selector.
Quoted 1 line
No output from Xen, at all?
nope.
Quoted 1 line
What version of grub is your distro using?
grub --version
grub (GNU GRUB 0.97)
Quoted 2 lines
If there's nothing from Xen, then the problem is related to either grub or xen, not to
pv_opsdom0 kernel.
ok, possible ...
Quoted 1 line
There shouldn't be anything *suse specific in running
pv_opsdom0..
"shouldn't" . not the first time that's been said re: *suse :-/
Quoted 4 lines
Quoted 2 lines
there are active developers on this list who work @ *suse. i'm hoping that one of them will pipe up.
Let's hope so.
!!
Quoted 11 lines · On Wed, Feb 03, 2010 at 10:55:18AM -0800, 0bo0 wrote:
Quoted 2 lines
That looks ok.. it should set up a VGA text console.
with my 'normal' non-pvops kernel-default, kernel-desktop & kernel-xen, my console setups works perfectly.
Quoted 1 line
Grub doesn't give any errors?
nope. output stops at "loading grub 1.5" (or some such thing -- not in front of it, atm). i never even get to the grub menu selector.
Ok.. so the problem is with grub.
Quoted 4 lines
Quoted 1 line
No output from Xen, at all?
nope.
Yeah, obviously grub needs to work for Xen to get started :)
Quoted 5 lines
Quoted 1 line
What version of grub is your distro using?
grub --version
grub (GNU GRUB 0.97)
So the question is why grub doesn't work after you edit /boot/grub/grub.conf ? Sounds like grub.conf gets corrupted/broken.
-- Pasi
Quoted 2 lines · Pasi Kärkkäinen
So the question is why grub doesn't work after you edit
/boot/grub/grub.conf? Sounds like grub.conf gets corrupted/broken.
if i have two configs in grub -- the PVOPS stanza, as above, and a non-pvops stanza -- if i simply change the default to the non-pvops stanza, then grub functions normally, the selection menu appears, and i can boot with no problems to the non-pvops setup.
if i repeat, with default to non-pvops, but then *manually* select the pvops config & boot it ... *nothing* happens. the sysem simply stops there. no errors, no console output, no further response.
Quoted 4 lines · On Wed, Feb 03, 2010 at 11:19:02AM -0800, 0bo0 wrote:
Quoted 2 lines · Pasi Kärkkäinen
So the question is why grub doesn't work after you edit
/boot/grub/grub.conf? Sounds like grub.conf gets corrupted/broken.
Quoted 9 lines
if i have two configs in grub -- the PVOPS stanza, as above, and a non-pvops stanza -- if i simply change the default to the non-pvops stanza, then grub functions normally, the selection menu appears, and i can boot with no problems to the non-pvops setup.
if i repeat, with default to non-pvops, but then *manually* select the pvops config & boot it ... *nothing* happens. the sysem simply stops there. no errors, no console output, no further response.
Weird.
Try with "kernel /xen.gz" in grub.conf, ie. no extra options for xen. Does that change anything?
You should always get _something_ from Xen hypervisor..
-- Pasi
Quoted 5 lines · On 03/02/2010 19:19, "0bo0" <[email protected]> wrote:
Quoted 3 lines · Pasi Kärkkäinen
So the question is why grub doesn't work after you edit
/boot/grub/grub.conf?
Sounds like grub.conf gets corrupted/broken.
Quoted 8 lines
if i have two configs in grub -- the PVOPS stanza, as above, and a non-pvops stanza -- if i simply change the default to the non-pvops stanza, then grub functions normally, the selection menu appears, and i can boot with no problems to the non-pvops setup.
if i repeat, with default to non-pvops, but then *manually* select the pvops config & boot it ... *nothing* happens. the sysem simply stops there. no errors, no console output, no further response.
I haven't seen you post the non-pvops versus pvops grub stanzas for comparison, but assuming the Xen line in each stanza is identical, it would be really odd that one gets you Xen boot output and the other doesn't. Are you setting up Xen to print to serial line in exactly the same way in both cases?
The only thing I could think of, if the GRUB setup is okay, is that Xen is messing up with the particular size of pvops kernel+initrd you pass to it. I.e., a bug where Xen fails really early, before setting up serial line even. That would make you very unlucky since I can't remember when we last had such an early bug, but it is possible.
-- Keir
Quoted 2 lines
with my 'normal' non-pvops kernel-default, kernel-desktop & kernel-xen, my console setups works perfectly.
Can you try booting the pvops kernel without the Xen hypervisor in it? That should eliminate it being a Xen issue.
Quoted 2 lines · Konrad Rzeszutek Wilk
Can you try booting the pvops kernel without the Xen hypervisor in it? That should eliminate it being a Xen issue.
booting to,
title PVOPS
root (hd0,0)
kernel /vmlinuz-2.6.31.6 root=/dev/VG0/ROOT rootfstype=ext4
rootflags=journal_checksum resume=/dev/VG0/SWAP showopts splash=silent
selinux=0 SELINUX_INIT=NO elevator=cfq vga=0x31a console=tty0
console=ttyS0,57600n8 clocksource=acpi_pm
initrd /initrd-2.6.31.6completes with no problems,
uname -a
Linux test04 2.6.31.6 #1 SMP Wed Feb 3 14:41:23 PST 2010 x86_64
x86_64 x86_64 GNU/Linux
Install 11.2 + Xen Host via original DVD and run "zypper update kernel-xen" or just "zypper update"
Jan's Beulich 2.6.31.8-01-xen would be installed.
Then take look at /boot/grub/menu.lst.
You would probably realize , that *Suse* is not the best place to build any xen stuff from source, except maybe new xenified kernel via Novell's Repos.
Boris.
P.S. If you wonna build from source candidate 1 - F12, candidate 2 - Ubuntu Karmic Koala Server, candidate 3 - Gentoo ( having problems with Internet connectivity)
--- On Wed, 2/3/10, Pasi Kärkkäinen <[email protected]> wrote:
From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Xen-devel] xen-unstable & pvops on *Suse distro? successful howto?
To: "0bo0" <[email protected]>
Cc: [email protected]
Date: Wednesday, February 3, 2010, 1:16 PM
Quoted 12 lines · On Wed, Feb 03, 2010 at 08:53:57AM -0800, 0bo0 wrote:
Starting with a well-updated Opensuse 11.2 distro, I'm attempting to build/install a Xen4 + PVOPS kernel on it.
Following the various/disparate Wiki pages,
If I checkout xen-unstable.hg, and build all from there, Xen itself builds OK, but the embedded xen.git linux kernel build fails.
If I checkout xen-unstable.hg, build only Xen, and then separately co the xen.git tree, using a kernel config from Opensuse's Kernel:HEAD repos, Xen builds, the kernel build, again, fails.
Opensuse's kernel is NOT pvops, it's based on forward-ported xenlinux 2.6.18 patches. So that explains why opensuse's .config didn't work.
Quoted 4 lines
If I repeat the last step, but use the kernel config provided @
http://pasik.reaktio.net/xen/pv_ops-dom0-debug/config-2.6.31.4-pvops_dom0-x86_64,
Xen builds, and the kernel builds. mkinitrd is OK as well.
That's my .config, and it builds/works for me ;)
Quoted 3 lines
But, @ boot to the new xen+kernel, boot hangs @ grub loading ... I never get to any console output.
Please paste your grub.conf.
Did you check the grub configuration examples in:
http://wiki.xensource.com/xenwiki/XenParavirtOps
Also check this wiki page for setting up a serial console for debugging boot problems:
http://wiki.xensource.com/xenwiki/XenSerialConsole
Quoted 3 lines
Clearly, people on this list are working with *Suse. Could someone share their specific steps, & .config, for getting this 'up' on *Suse?
*Suse is currently shipping forward-ported xenlinux patches, not pv_ops, so I assume that's why there aren't many pvops+suse stories out there.
I'm sure it can be done though. You'll figure it out :)
-- Pasi
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 4 lines · Boris Derzhavets
Install 11.2 + Xen Host via original DVD and run "zypper update kernel-xen" or just "zypper update"
Jan's Beulich 2.6.31.8-01-xen would be installed.
Then take look at/boot/grub/menu.lst.
I've been running Opensuse's xenified kernels from 2.6.31.8-01-xen -> 2.6.33-rc5-5-xen with either their Xen 3.4 or Xen 4.0 for ages. No issues.
Quoted 1 line
You would probably realize , that *Suse* is not the best place to build any xen stuff from source, except maybe new xenified kernel via Novell's Repos.
i have my suspicions. but it's not clearly stated anywhere i can find. so, specifically, why not?
Quoted 2 lines
P.S. If you wonna build from source candidate 1 - F12, candidate 2 - Ubuntu Karmic Koala Server, candidate 3 - Gentoo ( having problems with Internet connectivity)
thanks.