public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.0 under vmware ?
@ 2004-01-05 10:06 Xavier Bestel
  2004-01-05 11:21 ` Ernst Herzberg
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Xavier Bestel @ 2004-01-05 10:06 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hi,

I have problems running 2.6.0 under vmware (4.02 and 4.05). I did a
basic debian/sid install, then installed various 2.6.0 kernel images
(with or without initrd, from debian (-test9 and -test11) or self-made
(stock 2.6.0).
They all make /sbin/init (from sysvinit 2.85) segfault at a particular
address (I haven't yet recompiled it with -g to see where, but a
dissassembly shows it's a "ret").
I try booting to /bin/sh from the initrd, and there I can play with the
shell, mount the alternate root, play with commands there, and then exec
/sbin/init, but it segfaults at the same point.

Has anyone managed to make a basic debian with 2.6 work under vmware ?
Has anyone managed to make another distro with 2.6 work under vmware ?

Thanks, and happy new year to everyone,

	Xav


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.6.0 under vmware ?
  2004-01-05 10:06 2.6.0 under vmware ? Xavier Bestel
@ 2004-01-05 11:21 ` Ernst Herzberg
  2004-01-05 11:35   ` Alexander Hoogerhuis
  2004-01-05 14:20 ` Ville Herva
       [not found] ` <20040105111549.GD11115091@niksula.cs.hut.fi>
  2 siblings, 1 reply; 11+ messages in thread
From: Ernst Herzberg @ 2004-01-05 11:21 UTC (permalink / raw)
  To: linux-kernel

On Montag, 5. Januar 2004 11:06, Xavier Bestel wrote:
> Hi,
>
> I have problems running 2.6.0 under vmware (4.02 and 4.05). I did a
> basic debian/sid install, then installed various 2.6.0 kernel images
> (with or without initrd, from debian (-test9 and -test11) or self-made
> (stock 2.6.0).
> They all make /sbin/init (from sysvinit 2.85) segfault at a particular
> address (I haven't yet recompiled it with -g to see where, but a
> dissassembly shows it's a "ret").
> I try booting to /bin/sh from the initrd, and there I can play with the
> shell, mount the alternate root, play with commands there, and then exec
> /sbin/init, but it segfaults at the same point.
>
> Has anyone managed to make a basic debian with 2.6 work under vmware ?
> Has anyone managed to make another distro with 2.6 work under vmware ?

Same problem here. Tried gentoo with 2.6.0 and 2.6.1-rc1: /sbin/init will 
segfault. Testet vmware on a Dual PIII 2.4.23-pre3 and a Athlon XP with 
2.6.1-rc1.

Earny



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.6.0 under vmware ?
  2004-01-05 11:21 ` Ernst Herzberg
@ 2004-01-05 11:35   ` Alexander Hoogerhuis
  2004-01-06  5:44     ` Zwane Mwaikambo
  0 siblings, 1 reply; 11+ messages in thread
From: Alexander Hoogerhuis @ 2004-01-05 11:35 UTC (permalink / raw)
  To: earny; +Cc: linux-kernel

Ernst Herzberg <earny@net4u.de> writes:

> On Montag, 5. Januar 2004 11:06, Xavier Bestel wrote:
> > Hi,
> >
> > I have problems running 2.6.0 under vmware (4.02 and 4.05). I did a
> > basic debian/sid install, then installed various 2.6.0 kernel images
> > (with or without initrd, from debian (-test9 and -test11) or self-made
> > (stock 2.6.0).
> > They all make /sbin/init (from sysvinit 2.85) segfault at a particular
> > address (I haven't yet recompiled it with -g to see where, but a
> > dissassembly shows it's a "ret").
> > I try booting to /bin/sh from the initrd, and there I can play with the
> > shell, mount the alternate root, play with commands there, and then exec
> > /sbin/init, but it segfaults at the same point.
> >
> > Has anyone managed to make a basic debian with 2.6 work under vmware ?
> > Has anyone managed to make another distro with 2.6 work under vmware ?
> 
> Same problem here. Tried gentoo with 2.6.0 and 2.6.1-rc1: /sbin/init will 
> segfault. Testet vmware on a Dual PIII 2.4.23-pre3 and a Athlon XP with 
> 2.6.1-rc1.
> 

Ack that, P4 with 2.6.0-mmX and 2.6.1-rc1-mmX :)

> Earny
> 

-- 
Alexander Hoogerhuis                               | alexh@ihatent.com
CCNP - CCDP - MCNE - CCSE                          | +47 908 21 485
"You have zero privacy anyway. Get over it."  --Scott McNealy

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.6.0 under vmware ?
  2004-01-05 10:06 2.6.0 under vmware ? Xavier Bestel
  2004-01-05 11:21 ` Ernst Herzberg
@ 2004-01-05 14:20 ` Ville Herva
  2004-01-05 17:14   ` floppy driver and multiple floppies (was Re: 2.6.0 under vmware ?) Petr Vandrovec
  2004-01-05 18:55   ` 2.6.0 under vmware ? Ville Herva
       [not found] ` <20040105111549.GD11115091@niksula.cs.hut.fi>
  2 siblings, 2 replies; 11+ messages in thread
From: Ville Herva @ 2004-01-05 14:20 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Xavier Bestel

On Mon, Jan 05, 2004 at 11:06:43AM +0100, you [Xavier Bestel] wrote:
> Hi,
> 
> Has anyone managed to make another distro with 2.6 work under vmware ?

2.6.1rc1 works great for me under vmware 4.05 (6030), but that's with an
ancient glibc and /sbin/init that do not know of sysenter among other
things.

There is one regression, though: 2.2.x and 2.4.x can see /dev/fd0 and
/dev/fd1 under vmware. 2.6.1rc1 only find /dev/fd0. Does anyone else see
this?

There's quite a few changes in floppy.c from 2.4 to 2.6 - I couldn't quite
spot what could be the culprit.


-- v --

v@iki.fi

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.6.0 under vmware ?
       [not found] ` <20040105111549.GD11115091@niksula.cs.hut.fi>
@ 2004-01-05 15:20   ` Xavier Bestel
  0 siblings, 0 replies; 11+ messages in thread
From: Xavier Bestel @ 2004-01-05 15:20 UTC (permalink / raw)
  To: Ville Herva; +Cc: Linux Kernel Mailing List

Le lun 05/01/2004 à 12:15, Ville Herva a écrit :

> I'm running 2.6.1rc1 (+kexec patch) under vmware-4.05 (build 6030) right
> now. Works just fine (even kexec).
> 
> The userland as it happens is as recent as rh62, but I'm inclined to
> believe newer distros would likely work better, not worse. Perhaps there's
> something wicked with the debian init.

Finally installed the very same kernel under a fresh RH9 installation,
and it works like a charm. Thanks for the hint !

	Xav


^ permalink raw reply	[flat|nested] 11+ messages in thread

* floppy driver and multiple floppies (was Re: 2.6.0 under vmware ?)
  2004-01-05 14:20 ` Ville Herva
@ 2004-01-05 17:14   ` Petr Vandrovec
  2004-01-07  3:21     ` Rusty Russell
  2004-01-05 18:55   ` 2.6.0 under vmware ? Ville Herva
  1 sibling, 1 reply; 11+ messages in thread
From: Petr Vandrovec @ 2004-01-05 17:14 UTC (permalink / raw)
  To: Ville Herva; +Cc: xavier.bestel, linux-kernel

On Mon, Jan 05, 2004 at 04:20:32PM +0200, Ville Herva wrote:
> On Mon, Jan 05, 2004 at 11:06:43AM +0100, you [Xavier Bestel] wrote:
> > Hi,
> > 
> > Has anyone managed to make another distro with 2.6 work under vmware ?
> 
> 2.6.1rc1 works great for me under vmware 4.05 (6030), but that's with an
> ancient glibc and /sbin/init that do not know of sysenter among other
> things.
> 
> There is one regression, though: 2.2.x and 2.4.x can see /dev/fd0 and
> /dev/fd1 under vmware. 2.6.1rc1 only find /dev/fd0. Does anyone else see
> this?

Are you sure that VMware is a culprit? I had to apply patch below to get
floppy option to work at all (otherwise buggy kernel options parser which
does not understand quotes comes in a way making it impossible to do
f.e. "floppy=1,6,cmos").

And even then configuration with more than one floppy drive is broken:
all floppies will use same queue, but it is not allowed - there is even
comment in the code saying "to be cleaned up" before add_disk() call,
and from my understanding there must be 1:1 relation between queues
and registered disks. Otherwise (at least) sysfs breaks and will
crash on floppy unload as queue is deleted twice from sysfs, and it does not 
like doing such things...
						Petr Vandrovec
						vandrove@vc.cvut.cz

 
diff -urdN linux/drivers/block/floppy.c linux/drivers/block/floppy.c
--- linux/drivers/block/floppy.c	2003-12-31 02:59:44.000000000 +0100
+++ linux/drivers/block/floppy.c	2003-12-31 14:14:21.000000000 +0100
@@ -150,6 +150,7 @@
 /* do print messages for unexpected interrupts */
 static int print_unex=1;
 #include <linux/module.h>
+#include <linux/moduleparam.h>
 #include <linux/sched.h>
 #include <linux/fs.h>
 #include <linux/kernel.h>
@@ -4618,9 +4619,9 @@
 	wait_for_completion(&device_release);
 }
 
-MODULE_PARM(floppy,"s");
-MODULE_PARM(FLOPPY_IRQ,"i");
-MODULE_PARM(FLOPPY_DMA,"i");
+module_param(floppy, charp, 0);
+module_param(FLOPPY_IRQ, int, 0);
+module_param(FLOPPY_DMA, int, 0);
 MODULE_AUTHOR("Alain L. Knaff");
 MODULE_SUPPORTED_DEVICE("fd");
 MODULE_LICENSE("GPL");

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.6.0 under vmware ?
  2004-01-05 14:20 ` Ville Herva
  2004-01-05 17:14   ` floppy driver and multiple floppies (was Re: 2.6.0 under vmware ?) Petr Vandrovec
@ 2004-01-05 18:55   ` Ville Herva
  2004-01-05 19:30     ` Stephen Hemminger
  1 sibling, 1 reply; 11+ messages in thread
From: Ville Herva @ 2004-01-05 18:55 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Petr Vandrovec

On Mon, Jan 05, 2004 at 04:20:32PM +0200, you [Ville Herva] wrote:
>
> There is one regression, though: 2.2.x and 2.4.x can see /dev/fd0 and
> /dev/fd1 under vmware. 2.6.1rc1 only find /dev/fd0. Does anyone else see
> this?

Turns out the second floppy drive was disabled from the bios.

Oddly, 2.2 and 2.4 don't care.

If I turn the second drive on from the bios, 2.6 finds it, too.


-- v --

v@iki.fi

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.6.0 under vmware ?
  2004-01-05 18:55   ` 2.6.0 under vmware ? Ville Herva
@ 2004-01-05 19:30     ` Stephen Hemminger
  2004-01-05 19:50       ` Ville Herva
  0 siblings, 1 reply; 11+ messages in thread
From: Stephen Hemminger @ 2004-01-05 19:30 UTC (permalink / raw)
  To: Ville Herva; +Cc: Linux Kernel Mailing List, Petr Vandrovec

On Mon, 5 Jan 2004 20:55:06 +0200
Ville Herva <vherva@niksula.hut.fi> wrote:

> On Mon, Jan 05, 2004 at 04:20:32PM +0200, you [Ville Herva] wrote:
> >
> > There is one regression, though: 2.2.x and 2.4.x can see /dev/fd0 and
> > /dev/fd1 under vmware. 2.6.1rc1 only find /dev/fd0. Does anyone else see
> > this?
> 
> Turns out the second floppy drive was disabled from the bios.
> 
> Oddly, 2.2 and 2.4 don't care.
> 
> If I turn the second drive on from the bios, 2.6 finds it, too.

Probably because 2.6 uses ACPI and 2.2/2.4 were not.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.6.0 under vmware ?
  2004-01-05 19:30     ` Stephen Hemminger
@ 2004-01-05 19:50       ` Ville Herva
  0 siblings, 0 replies; 11+ messages in thread
From: Ville Herva @ 2004-01-05 19:50 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Linux Kernel Mailing List, jfbeam

On Mon, Jan 05, 2004 at 11:30:03AM -0800, you [Stephen Hemminger] wrote:
> > 
> > Turns out the second floppy drive was disabled from the bios.
> > 
> > Oddly, 2.2 and 2.4 don't care.
> > 
> > If I turn the second drive on from the bios, 2.6 finds it, too.
> 
> Probably because 2.6 uses ACPI and 2.2/2.4 were not.

Sounds reasonable. 

However, booting with "acpi=off" doesn't dig up /dev/fd1. Perhaps ACPI
should be compiled out for good, but this really isn't a large problem for
me as long as the drive works when enabled in BIOS.


-- v --

v@iki.fi

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.6.0 under vmware ?
  2004-01-05 11:35   ` Alexander Hoogerhuis
@ 2004-01-06  5:44     ` Zwane Mwaikambo
  0 siblings, 0 replies; 11+ messages in thread
From: Zwane Mwaikambo @ 2004-01-06  5:44 UTC (permalink / raw)
  To: Alexander Hoogerhuis; +Cc: earny, Linux Kernel

On Mon, 5 Jan 2004, Alexander Hoogerhuis wrote:

> Ernst Herzberg <earny@net4u.de> writes:
>
> > On Montag, 5. Januar 2004 11:06, Xavier Bestel wrote:
> > > Hi,
> > >
> > > I have problems running 2.6.0 under vmware (4.02 and 4.05). I did a
> > > basic debian/sid install, then installed various 2.6.0 kernel images
> > > (with or without initrd, from debian (-test9 and -test11) or self-made
> > > (stock 2.6.0).
> > > They all make /sbin/init (from sysvinit 2.85) segfault at a particular
> > > address (I haven't yet recompiled it with -g to see where, but a
> > > dissassembly shows it's a "ret").
> > > I try booting to /bin/sh from the initrd, and there I can play with the
> > > shell, mount the alternate root, play with commands there, and then exec
> > > /sbin/init, but it segfaults at the same point.
> > >
> > > Has anyone managed to make a basic debian with 2.6 work under vmware ?
> > > Has anyone managed to make another distro with 2.6 work under vmware ?
> >
> > Same problem here. Tried gentoo with 2.6.0 and 2.6.1-rc1: /sbin/init will
> > segfault. Testet vmware on a Dual PIII 2.4.23-pre3 and a Athlon XP with
> > 2.6.1-rc1.
> >
>
> Ack that, P4 with 2.6.0-mmX and 2.6.1-rc1-mmX :)

Does the following make a difference for you? Please note that
an updated VMWare 4 doesn't have this problem.

Index: linux-2.5.69-mm5/Documentation/kernel-parameters.txt
===================================================================
RCS file: /build/cvsroot/linux-2.5.69/Documentation/kernel-parameters.txt,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 kernel-parameters.txt
--- linux-2.5.69-mm5/Documentation/kernel-parameters.txt	6 May 2003 12:21:18 -0000	1.1.1.1
+++ linux-2.5.69-mm5/Documentation/kernel-parameters.txt	15 May 2003 15:14:23 -0000
@@ -1063,6 +1063,10 @@ running once the system is up.

 	sym53c8xx=	[HW,SCSI]
 			See Documentation/scsi/ncr53c8xx.txt.
+
+	nosysenter	[IA-32]
+			Disable SYSENTER for syscalls, does not clear the SEP
+			capabilities bit.

 	t128=		[HW,SCSI]
 			See header of drivers/scsi/t128.c.
Index: linux-2.5.69-mm5/arch/i386/kernel/sysenter.c
===================================================================
RCS file: /build/cvsroot/linux-2.5.69/arch/i386/kernel/sysenter.c,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 sysenter.c
--- linux-2.5.69-mm5/arch/i386/kernel/sysenter.c	6 May 2003 12:20:51 -0000	1.1.1.1
+++ linux-2.5.69-mm5/arch/i386/kernel/sysenter.c	15 May 2003 07:46:05 -0000
@@ -20,6 +20,7 @@
 #include <asm/unistd.h>

 extern asmlinkage void sysenter_entry(void);
+static int nosysenter __initdata;

 /*
  * Create a per-cpu fake "SEP thread" stack, so that we can
@@ -51,6 +52,13 @@ void enable_sep_cpu(void *info)
 	put_cpu();
 }

+static int __init do_nosysenter(char *s)
+{
+	nosysenter = 1;
+	return 1;
+}
+__setup("nosysenter", do_nosysenter);
+
 /*
  * These symbols are defined by vsyscall.o to mark the bounds
  * of the ELF DSO images included therein.
@@ -64,7 +72,7 @@ static int __init sysenter_setup(void)

 	__set_fixmap(FIX_VSYSCALL, __pa(page), PAGE_READONLY);

-	if (!boot_cpu_has(X86_FEATURE_SEP)) {
+	if (nosysenter || !boot_cpu_has(X86_FEATURE_SEP)) {
 		memcpy((void *) page,
 		       &vsyscall_int80_start,
 		       &vsyscall_int80_end - &vsyscall_int80_start);

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: floppy driver and multiple floppies (was Re: 2.6.0 under vmware ?)
  2004-01-05 17:14   ` floppy driver and multiple floppies (was Re: 2.6.0 under vmware ?) Petr Vandrovec
@ 2004-01-07  3:21     ` Rusty Russell
  0 siblings, 0 replies; 11+ messages in thread
From: Rusty Russell @ 2004-01-07  3:21 UTC (permalink / raw)
  To: Petr Vandrovec; +Cc: Ville Herva, xavier.bestel, linux-kernel

In message <20040105171431.GA1776@vana.vc.cvut.cz> you write:
> -MODULE_PARM(floppy,"s");
> -MODULE_PARM(FLOPPY_IRQ,"i");
> -MODULE_PARM(FLOPPY_DMA,"i");
> +module_param(floppy, charp, 0);
> +module_param(FLOPPY_IRQ, int, 0);
> +module_param(FLOPPY_DMA, int, 0);

You really don't want these to be visible through sysfs?  I'd expect
0444 rather than 0 as the last arg...

Also it'd be nice to do furthur cleanups and get rid of the #ifdef
MODULE altogether...

Cheers,
Rusty.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-01-07  3:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-05 10:06 2.6.0 under vmware ? Xavier Bestel
2004-01-05 11:21 ` Ernst Herzberg
2004-01-05 11:35   ` Alexander Hoogerhuis
2004-01-06  5:44     ` Zwane Mwaikambo
2004-01-05 14:20 ` Ville Herva
2004-01-05 17:14   ` floppy driver and multiple floppies (was Re: 2.6.0 under vmware ?) Petr Vandrovec
2004-01-07  3:21     ` Rusty Russell
2004-01-05 18:55   ` 2.6.0 under vmware ? Ville Herva
2004-01-05 19:30     ` Stephen Hemminger
2004-01-05 19:50       ` Ville Herva
     [not found] ` <20040105111549.GD11115091@niksula.cs.hut.fi>
2004-01-05 15:20   ` Xavier Bestel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox