public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: gerryw@compvia.com
Cc: kvm-devel@lists.sourceforge.net
Subject: Re: kvm-intel.ko unable to create /dev/kvm
Date: Mon, 11 Feb 2008 16:09:00 +0300	[thread overview]
Message-ID: <47B048EC.7070306@msgid.tls.msk.ru> (raw)
In-Reply-To: <OFF3065861.396EAA13-ON862573EC.0046FD3C-862573EC.00477744@it-procorp.com>

gerryw@compvia.com wrote:
> 
> Hello All,
> 
> I'm having some trouble with kvm-60. I'm trying to run it from a flash
> (ram disk). When I load kvm-intel.ko, it doesn't create the device file
> /dev/kvm. Can anyone give me a clue to why this might be so. Is the ram
> disk the problem?

a kernel module does not create any device files.
On a modern distribution, udev is usually responsible for creating
device nodes based on which actual devices are present on the system
and which drivers are loaded.

Sometimes a distribution does not include udev (or it's optional) -
in this case static /dev layout is used, that is, a fixed set of
device nodes are created during system install.  In this case you
have to create missing nodes manually.

For /dev/kvm, look at /sys/devices/virtual/misc/kvm/dev - that's
a file with major and minor numbers for the device node.  Create
it like this:

 mknod /dev/kvm c major minor

(where major and minor values are taken from the above mentioned
file).

But kvm support should be here in the first place to start with.
If /sys/devices/virtual/misc/kvm is not here, verify that the
module is actually loaded and found necessary hardware support.
Note that kvm may be disabled in BIOS for example.  Also try
never BIOS if it seems to be here but still doesn't work.

/mjt

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

  reply	other threads:[~2008-02-11 13:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-11 12:58 kvm-intel.ko unable to create /dev/kvm gerryw
2008-02-11 13:09 ` Michael Tokarev [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-02-11 13:44 gerryw
2008-02-11 14:24 ` Avi Kivity
2008-02-11 15:11 gerryw

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47B048EC.7070306@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=gerryw@compvia.com \
    --cc=kvm-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox