Skip to contentSkip to conversation

could not open /dev/kvm

DISCUSSION Benjamin Budts 3 participants 4 messages Apr 18, 2007 – Apr 22, 2007 3 messages not in the archive KVM

lore
Share & tools
lore
#0 lore raw

Hi,

I'm running debian, installed kvm-18 from source, it installed fine...

I have an intel s5000pal motherboard with dual core xeon 64bit, virtualization enabled in my bios.

question 1 : is it normal i dont have this file : qemu-system-x86_64 , i only have the qemu file in my /bin

kvm and kvm_intel load fine with modprobe without errors or info in dmesg.

toranaga:/usr/src/kvm-18# lsmod
Module                  Size  Used by
kvm_intel              19852  0
kvm                    55128  1 kvm_intel

I did the following :

./qemu-img create -f qcow2 /virtual/test/vtest.img 5G works out fine...

./qemu . -hda /virtual/test/vtest.img -cdrom /virtual/win_corp.iso -boot d -m 512 -no-acpi

gives the following error : could not open /dev/kvm ...

in /proc/misc I found kvm as well :

62 kvm

but I dont have the /dev/kvm ... udev is installed though

can someone push me in the right direction please ? :)

thx !

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 27 lines · Benjamin Budts

Hi,

I'm running debian, installed kvm-18 from source, it installed fine...

I have an intel s5000pal motherboard with dual core xeon 64bit, virtualization enabled in my bios.

question 1 : is it normal i dont have this file : qemu-system-x86_64 , i only have the qemu file in my /bin

kvm and kvm_intel load fine with modprobe without errors or info in dmesg.

toranaga:/usr/src/kvm-18# lsmod
Module                  Size  Used by
kvm_intel              19852  0
kvm                    55128  1 kvm_intel

I did the following :

./qemu-img create -f qcow2 /virtual/test/vtest.img 5G works out fine...

./qemu . -hda /virtual/test/vtest.img -cdrom /virtual/win_corp.iso -boot d -m 512 -no-acpi

gives the following error : could not open /dev/kvm ...

Quoted 9 lines

in /proc/misc I found kvm as well :

62 kvm

but I dont have the /dev/kvm ... udev is installed though

can someone push me in the right direction please ? :)

Is udevd alive? What does 'pgrep udevd' show?

Does udevtrigger help?

Signature · 8 lines
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

A message that is not in the archive (sent off-list or not yet received): 462707A0.40907-atKUWr5tajBWk0Htik3J/[email protected]

#4 lore raw

Hi,

I made an mknod myself now, did a cat of /sys/class/misc/kvm/dev 18 64

and did a
mknod /dev/kvm c 18 64

everything OK now

how come I dont have the /dev automatically ?

udevtrigger didn't help, pgrep udevd showed the pid of udevd... so it was alive and kicking.
even recompiled the whole thing with modules loaded and had the same problem. recreated it manually with mknod...

i'm running the latest stable debian etch kernel 2.6.20.7

grtZ

Ben

Quoted 35 lines · Avi Kivity
Quoted 33 lines · Benjamin Budts

Hi,

I'm running debian, installed kvm-18 from source, it installed fine...

I have an intel s5000pal motherboard with dual core xeon 64bit, virtualization enabled in my bios.

question 1 : is it normal i dont have this file : qemu-system-x86_64 , i only have the qemu file in my /bin

kvm and kvm_intel load fine with modprobe without errors or info in dmesg.

toranaga:/usr/src/kvm-18# lsmod
Module                  Size  Used by
kvm_intel              19852  0
kvm                    55128  1 kvm_intel

I did the following :

./qemu-img create -f qcow2 /virtual/test/vtest.img 5G works out fine...

./qemu . -hda /virtual/test/vtest.img -cdrom /virtual/win_corp.iso -boot d -m 512 -no-acpi

gives the following error : could not open /dev/kvm ...

in /proc/misc I found kvm as well :

62 kvm

but I dont have the /dev/kvm ... udev is installed though

Quoted 10 lines
Quoted 4 lines

can someone push me in the right direction please ? :)

Is udevd alive? What does 'pgrep udevd' show?

Does udevtrigger help?

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 10 lines · Benjamin Budts

Hi,

I made an mknod myself now, did a cat of /sys/class/misc/kvm/dev 18 64

and did a
mknod /dev/kvm c 18 64

everything OK now

Quoted 10 lines

how come I dont have the /dev automatically ?

udevtrigger didn't help, pgrep udevd showed the pid of udevd... so it was alive and kicking.
even recompiled the whole thing with modules loaded and had the same problem. recreated it manually with mknod...

i'm running the latest stable debian etch kernel 2.6.20.7

Sorry, no idea. Maybe as the debian people?

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/