Skip to contentSkip to conversation

kqemu NOT working with devfs

Qemu-devel Jens Arm 4 participants 6 messages Feb 11, 2005

lore
Share & tools
lore

Jens Arm

author
#0 lore raw

Hi

If I load the module I get:

kqemu: module license 'unspecified' taints kernel.
QEMU Accelerator Module version 1.0.0, Copyright (c) 2005 Fabrice Bellard This is a proprietary product. Read the LICENSE file for more information Redistribution of this module is prohibited without authorization
kqemu: could not get major 254

Problem is:

[root@tux root]# ll /dev/.devfsd
crw------- 1 root root 254, 0 Jan 1 1970 /dev/.devfsd

The 254 is used by devfs :(

If I start now qemu I get:
warning: could not create temporary file in '/dev/shm'.

Must I change the dir /dev/shm so that a normal user can write?

Jens

#1 lore raw

Fredag 11 februar 2005 08:18 skrev Jens Arm:

Quoted 2 lines

Hi

[...]

Quoted 6 lines

Problem is:

[root@tux root]# ll /dev/.devfsd
crw------- 1 root root 254, 0 Jan 1 1970 /dev/.devfsd

The 254 is used by devfs :(

It seems to be in use on SUSE LINUX 9.2 as well:

crw------- 1 root root 254, 0 2004-10-02 10:38 ipmi0

/Martin.

#5 lore raw
In reply to Jens Arm

Jens,

Look at the mailing list - someone already submitted a patch which changes the major number 254 to something other (some people use 253, other - 250)...

Thanks,
Hetz

Quoted 29 lines · Jens Arm

Hi

If I load the module I get:

kqemu: module license 'unspecified' taints kernel.
QEMU Accelerator Module version 1.0.0, Copyright (c) 2005 Fabrice Bellard This is a proprietary product. Read the LICENSE file for more information Redistribution of this module is prohibited without authorization
kqemu: could not get major 254

Problem is:

[root@tux root]# ll /dev/.devfsd
crw------- 1 root root 254, 0 Jan 1 1970 /dev/.devfsd

The 254 is used by devfs :(

If I start now qemu I get:
warning: could not create temporary file in '/dev/shm'.

Must I change the dir /dev/shm so that a normal user can write?

Jens

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#2 lore raw
In reply to Martin Moeller

From: Martin Moeller <[email protected]>
Date: Fri, 11 Feb 2005 12:35:25 +0100

Quoted 3 lines

It seems to be in use on SUSE LINUX 9.2 as well:

crw------- 1 root root 254, 0 2004-10-02 10:38 ipmi0

This only means that if you actually use IPMI, your tools will communicate with kernel using character device with major 254.

If you do not use IPMI and thus do not have kernel modules loaded, you are OK. Please verify by:

cat /proc/devices

in section "Character device:" if major 254 is already in use. On my system, e.g.:

Character devices:
...
254 pcmcia

Signature · 5 lines
Pavel Janík

I forgot that in Linux the GUI isn't part of the OS but patched on 
top of it with duck-tape :-)
                  -- Waldo Bastian <[email protected]>
#3 lore raw

Fredag 11 februar 2005 14:12 skrev Pavel Janík:

Quoted 13 lines
   From: Martin Moeller <[email protected]>
   Date: Fri, 11 Feb 2005 12:35:25 +0100

   > It seems to be in use on SUSE LINUX 9.2 as well:
   >
   > crw-------   1 root   root    254,   0 2004-10-02 10:38 ipmi0

This only means that if you actually use IPMI, your tools will communicate with kernel using character device with major 254.

If you do not use IPMI and thus do not have kernel modules loaded, you are OK. Please verify by:

Quoted 8 lines

cat /proc/devices

in section "Character device:" if major 254 is already in use. On my system, e.g.:

Character devices:
...
254 pcmcia

It says:

martin:/tmp # cat /proc/devices | grep 254
254 mdp

I doubt I'm using IPMI as such, but wouldn't there be a conflict if I had two device nodes of the same major and minor number?

I used the '250' patch and am quite happily installing Debian Sarge in a KQemu Qemu at the moment...

/Martin.

#4 lore raw

From: Martin Moeller <[email protected]>
Date: Fri, 11 Feb 2005 17:37:28 +0100

Quoted 2 lines

I doubt I'm using IPMI as such, but wouldn't there be a conflict if I had two device nodes of the same major and minor number?

No. Only the first one used from { IPMI, kqemu } will work though ;-)

Quoted 2 lines

I used the '250' patch and am quite happily installing Debian Sarge in a KQemu Qemu at the moment...

Great!

Signature · 5 lines
Pavel Janík

I don't deal with that (in fact, I *couldn't*, because
of the asinine BK license.)
                  -- H. Peter Anvin about BK snapshots