LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 09-25-2009, 10:28 AM   #1
btncix
Member
 
Registered: Aug 2009
Location: NC, USA
Distribution: Slackware x86
Posts: 141

Rep: Reputation: 26
qemu group permission through udev rules for /dev/kqemu for slackware64 13.0 - how?


I have to manually set the group permission for /dev/kqemu by doing:
# chown root:qemu /dev/kqemu

I thought udev file would do the above for me automatically.


all my steps for slackware64 13.0:
1. I did SlackBuilds for qemu and kqemu, these were gotten from slackbuilds.org
2. manually created file and edited /etc/udev/rules.d/50-kqemu-rules to contain
KERNEL=="kqemu", NAME="%k", MODE="0660", GROUP="qemu"
3. at the bottom of file /etc/rc.d/rc.modules, added
/sbin/modprobe kqemu major=0
4. created "qemu" group and added my user to "qemu" group
# groupadd qemu
# gpasswd -a myuser qemu
5. reboot


/dev/kqemu still comes up wrong
# ls -l /dev/kqemu
crw-rw---- 1 root root 10, 57 2009-09-25 09:59 /dev/kqemu


Is something wrong with my udev file or how I created it?


note: after manually changing group ownership for /dev/kqemu to "qemu", I can run qemu fine.

Last edited by btncix; 09-25-2009 at 10:43 AM.
 
Old 09-28-2009, 01:33 AM   #2
btncix
Member
 
Registered: Aug 2009
Location: NC, USA
Distribution: Slackware x86
Posts: 141

Original Poster
Rep: Reputation: 26
Well, I got it to work, but don't know why it worked.


I renamed the udev riles file to another name.
# mv /etc/udev/rules.d/50-kqemu-rules /etc/udev/rules.d/10-local.rules

bash-3.1$ ls -l /dev/kqemu
crw-rw---- 1 root qemu 10, 57 2009-09-28 01:24 /dev/kqemu



I assume it's somehow related to this:
Quote:
Files in /etc/udev/rules.d/ are parsed in lexical order, and in some circumstances, the order in which rules are parsed is important.

Last edited by btncix; 09-28-2009 at 01:34 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem with kqemu in slackware64-current since 2.6.29.5 kernel niels.horn Slackware 3 06-20-2009 05:27 PM
SLES 10 and QEMU/KQEMU J-Man Suse/Novell 2 12-23-2008 10:41 PM
Kernel-kqemu installed, /dev/kqemu not found Pikidalto Linux - Software 0 05-10-2008 07:34 AM
Qemu error and kqemu not enabled flebber Linux - Software 3 10-22-2007 07:57 AM
Qemu with KQemu cormack Linux - Software 12 04-05-2006 09:43 PM


All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration