Mailing List Archive

[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb)
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #1 from johneed@hotmail.com 2011-08-29 08:29 -------
Created an attachment (id=1010)
--> (http://bugzilla.xensource.com/bugzilla/attachment.cgi?id=1010&action=view)
the host kernel config

prompted for further; the host kernel


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #2 from johneed@hotmail.com 2011-08-29 08:30 -------
Created an attachment (id=1011)
--> (http://bugzilla.xensource.com/bugzilla/attachment.cgi?id=1011&action=view)
the current xend.log at the time of the flaw


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #3 from konrad.wilk@oracle.com 2011-08-29 08:37 -------
If you extract the vmlinuz and initramfs from the guest and stick them
directly in the guest file, as so:

name = 'gentoo64'
# Virtual FrameBuffer + extra configuration
vfb = [ 'type=vnc,vncdisplay=20' ]
extra = 'ro ro console=hvc0 root=/dev/xvda2 video=uvesafb"
kernel = '/mnt/karmic/xen/boot/vmlinuz-2.6.38-gentoo-r6"
ramdisk = '/mnt/karmic/xen/boot/initrd.img"
memory = '1256'
disk = [ 'file:/mnt/karmic/xen/gentoo64/disk.img,xvda,w' ]

on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
vif = [ 'mac=e6:1b:4e:4c:d8:66, bridge=virbr0' ]

does it boot?

Asking this, b/c there was bug in pv-grub where it would wrongly initialize the
pagetables for the guest.


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #4 from johneed@hotmail.com 2011-08-29 10:43 -------
Konrad
Hi again. The line vfb has a sl different trouble

kernel = "/boot/vmlinuz-2.6.38-gentoo-r6"
#kernel="/usr/lib64/xen/boot/pv-grub-x86_64.gz"

memory = 1524
name = "trial"
vif = [ 'mac=e6:1b:4e:4c:d8:66, bridge=virbr0' ]
disk = [ 'file:/mnt/karmic/xen/gentoo64/disk.img,xvda,w',
'phy:/dev/sda9,xvdb,w',
'file:/mnt/karmic/xen/gentoo64/gentoo.swap,xvdc,w' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'

root = "/dev/xvda2 ro earlyprintk=xen video=uvesafb raid=noautodetect
console=tty0"
#extra = "2 console=hvc0"
extra = "(hd0,0)/grub/menu.lst console=hvc0"
vfb = [ 'vnc=1' ]
#,vnclisten=127.0.0.1,vncdisplay=0' ]

Point 1., gentoo style, no initramfs.
Point 2. The imagefile has part 1 a boot partition and part 2 /root.
Your suggested change has taken pv-grub out of the equation.
Trying a few variations, I get a black screen in the vnc console of the vm.
Checking the performance tab, it is doing something around 95%.
This prob. means it's not displaying the menu.lst, so it may or may not boot.
Without a grub display, I can't tell. Perhaps you can tweak this .cfg file to
make it display grub at the boot.
I have copied the guest gentoo kernel to host /boot which am pretty sure
amounts to what you were attempting to achieve.
pv-grub can load grub with extra="(hd0,0)/grub/menu.lst.
Taking pv-grub out takes away that loading of grub.

Point 3, gentoo still uses for reasons unknown grub 1. While I can emerge
grub2, have not done so on the basis that grub1 ought work without issue.

Point 4. what of the vkbd driver?
Error ENOENT when reading the backend path device/vkbd/0/backend
is the essence of the failure.

Curiously in the gentoo minimal install cd .iso, this driver of xen is not even
listed in its kernel 2.6.39 config.
The gentoo guest is 2.6.38 and the input VKBD driver is set.
It is CONFIG_XEN_KBDDEV_FRONTEND.
I would not have thought an input driver like this would interfere so???

I am about to try with another kernel


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779


johneed@hotmail.com changed:

What |Removed |Added
----------------------------------------------------------------------------
Component|Linux-pv_ops domU |Tools




--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #5 from konrad.wilk@oracle.com 2011-09-01 06:29 -------
So what is the result? Can you boot it _if_ you do it without using pv-grub?


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #6 from johneed@hotmail.com 2011-09-01 06:40 -------
Konrad, yes it is bootable, using pv-grub without vfb, and also using
XenPVonHVM in a separate kernel.


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #7 from konrad.wilk@oracle.com 2011-09-01 08:57 -------
Created an attachment (id=1012)
--> (http://bugzilla.xensource.com/bugzilla/attachment.cgi?id=1012&action=view)
Patch to pv-grub

Great. You probably want this fixchangeset:

23249:83fe79c0225f
user: Daniel Kiper <dkiper@net-space.pl>
date: Wed Apr 27 13:29:14 2011 +0100
summary: pv-grub: Fix for incorrect dom->p2m_host[] list initialization


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #8 from johneed@hotmail.com 2011-09-01 21:06 -------
Konrad

being a little new to patching, can you confirm for me that this is required
for 4.1.0, bit already in place in 4.1.1? It's not going in I 'think' because
the change to be made is already in place


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #9 from johneed@hotmail.com 2011-09-01 21:29 -------
no good so far. I have moved up to 4.1.1 xen Same result. Tried far ages
many permutations, not yet able to apply the patch. Little response in irc


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #10 from johneed@hotmail.com 2011-09-02 00:46 -------
well sadly this is not the fix. Did get a reply in irc, he found similar, the
patch already in place in the installed xen.


Also managed to install or emerge an instance of xen-pvgrub via emerge, which
is fairly new. The kernel is seen by grub but seems to not load or setup.
I can boot it alternately via XenPVonHVM, so it's only minor.


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #11 from samuel.thibault@ens-lyon.org 2011-09-05 15:20 -------
One case is not clear to me: does it work with sdl without pv-grub?

Could you perhaps dump the failing kernel somewhere so we can test it?


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #12 from johneed@hotmail.com 2011-09-05 23:35 -------
yes, I think so.

I have kernel-3.0.0 compiled and booted as a dom0, also 2.6.38-xen-gentoo.

With both kernels I get the same result.
2.6.38 has a problem with connecting to the inet, so don't be concerned re
errors for that. I rely on 3.0.0 anyway, being more current.

Both manage to make an sdl window.

Now It has two kernels. ie guest kernels.

2.6.38 is configure to boot as hvm with /dev/sda2 as root.
2.6.39 is configured as XenPVonHVM, so it is the kernel of choice for this.
Selecting the 2.6.39 kernel in the grub list of the sdl window yields killing
or xm destroying the vm, it just vanishes the moment the boot touches the
kernel. Selecting the 2.6.38 it just freezes or hangs.
I have used console=tty0 and console=hvc0 on selecting the 2.6.39 kernel.
Makes no diff, just disappears.

Commenting out the selection of vfb entirely allows it to boot in the host
console, xm create -c genpv.cfg.

This yields;

gentoo64 linux # xm create genpv.cfg -c
Using config file "/etc/xen/genpv.cfg".
Started domain gentoopv (id=10)
Xen Minimal OS!
start_info: 0xc8e000(VA)
nr_pages: 0x5dc00
shared_inf: 0xcf8fe000(MA)
pt_base: 0xc91000(VA)
nr_pt_frames: 0xb
mfn_list: 0x9a0000(VA)
mod_start: 0x0(VA)
mod_len: 0
flags: 0x0
cmd_line: (hd0,0)/grub/menu.lst console=hvc0
stack: 0x95f9e0-0x97f9e0
MM: Init
_text: 0x0(VA)
_etext: 0x6f209(VA)
_erodata: 0x89000(VA)
_edata: 0x91c60(VA)
stack start: 0x95f9e0(VA)
_end: 0x99ffe0(VA)
start_pfn: c9f
max_pfn: 5dc00
Mapping memory range 0x1000000 - 0x5dc00000
setting 0x0-0x89000 readonly
skipped 0x1000
MM: Initialise page allocator for f86000(f86000)-5dc00000(5dc00000)
MM: done
Demand map pfns at 5dc01000-205dc01000.
Heap resides at 205dc02000-405dc02000.
Initialising timer interface
Initialising console ... done.
gnttab_table mapped at 0x5dc01000.
Initialising scheduler
Thread "Idle": pointer: 0x205dc02050, stack: 0x5da90000
Initialising xenbus
Thread "xenstore": pointer: 0x205dc02800, stack: 0x5daa0000
Dummy main: start_info=0x97fae0
Thread "main": pointer: 0x205dc02fb0, stack: 0x5dab0000
Thread "pcifront": pointer: 0x205dc03760, stack: 0x5dac0000
"main" "(hd0,0)/grub/menu.lst" "console=hvc0"
pcifront_watches: waiting for backend path to appear device/pci/0/backend

GNU GRUB version 0.97 (1536000K lower / 0K upper memory)

+-------------------------------------------------------------------------+
| Gentoo linux kernel 2.6.38-r6 |
| Gentoo linux 2.6.39-r3 |

Selecting the 2.6.39 and editing to console=hvc0, it happily boot.

This is gentoo64-vm.unknown_domain (Linux x86_64 2.6.39-gentoo-r3) 14:16:58

gentoo64-vm login:

You ask for kernel dumps. Well here is my best interpretation.
You may need to clarify or specify just how to do so.
xen kernel stuff often does not go to dmesg.

I deleted the xend.log & xend-debug.log on booting into kernel-3.0 so as to
acquire info related only to the attempt to boot in pvgrub.

idella@gentoo64 ~ $ ls -ld /var/log/xen/xend-debug.log
ls: cannot access /var/log/xen/xend-debug.log: No such file or directory
It made no record.

idella@gentoo64 ~ $ ls -ld /var/log/xen/xend.log
-rw-r--r-- 1 root root 0 Sep 6 13:44 /var/log/xen/xend.log
It made the file, no content.

dmesg tail shows a clear citation if i2c, which I don't fully comprehend. A
series of repeated

[ 3153.312154] i2c i2c-1: master_xfer[0] W, addr=0x50, len=1
[ 3153.312158] i2c i2c-1: master_xfer[1] R, addr=0x50, len=1
[ 3153.315452] i2c i2c-1: master_xfer[0] W, addr=0x50, len=1
[ 3153.315455] i2c i2c-1: master_xfer[1] R, addr=0x50, len=1
[ 3153.318733] i2c i2c-1: master_xfer[0] W, addr=0x50, len=1
[ 3153.318736] i2c i2c-1: master_xfer[1] R, addr=0x50, len=128
[ 3153.416872] i2c i2c-2: master_xfer[0] W, addr=0x50, len=1
[ 3153.416875] i2c i2c-2: master_xfer[1] R, addr=0x50, len=1
[ 3153.420544] i2c i2c-2: NAK from device addr 0x50 msg #0

That is my strongest new clue.
View the couple of attachments from the run in the xen kernel 2.6.38
Feel free to prompt further as to how to execute this desired dump.

Oh this may help a little.


GNU GRUB version 0.97 (1536000K lower / 0K upper memory)

[. Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ESC at any time
exits. ]

grubdom> root (hd0,0)
Error ENOENT when reading the backend path device/vkbd/0/backend
Thread "kbdfront" exited.
grubdom> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grubdom>
grubdom>

grubdom> kernel /vmlinuz-2.6.39-gentoo-r3 ro console=hvc0

<xvda2 video=cirrusfb

grubdom> kernel /vmlinuz-2.6.39-gentoo-r3 ro console=hvc0 root=/dev/xvda2 vide>

grubdom>

grubdom>

Note Thread "kbdfront" exited. Note on citing the kernel, it does not display
a loading address msg. Just a blank. but in the host console, it does boot the
selected kernel.


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #13 from johneed@hotmail.com 2011-09-05 23:45 -------
Created an attachment (id=1013)
--> (http://bugzilla.xensource.com/bugzilla/attachment.cgi?id=1013&action=view)
content of dmesg in 2,6,38 that occurred during use of pvgrub


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #14 from johneed@hotmail.com 2011-09-05 23:46 -------
Created an attachment (id=1014)
--> (http://bugzilla.xensource.com/bugzilla/attachment.cgi?id=1014&action=view)
content of xend.log during its use in 2.6.38


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1779] pv-grub in xen-4.1.0 cannot boot kernel in graphical mode (vfb) [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1779





------- Comment #15 from johneed@hotmail.com 2011-09-05 23:50 -------
Created an attachment (id=1015)
--> (http://bugzilla.xensource.com/bugzilla/attachment.cgi?id=1015&action=view)
content of xend-debug.log during its use in 2.6.38


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs