LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 09:28 AM   #1
btncix
Member
 
Registered: Aug 2009
Location: USA
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 09:43 AM.
 
Old 09-28-2009, 12:33 AM   #2
btncix
Member
 
Registered: Aug 2009
Location: USA
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 12:34 AM.
 
  


Reply



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 04:27 PM
SLES 10 and QEMU/KQEMU J-Man SUSE / openSUSE 2 12-23-2008 09:41 PM
Kernel-kqemu installed, /dev/kqemu not found Pikidalto Linux - Software 0 05-10-2008 06:34 AM
Qemu error and kqemu not enabled flebber Linux - Software 3 10-22-2007 06:57 AM
Qemu with KQemu cormack Linux - Software 12 04-05-2006 08:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:49 PM.

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
Open Source Consulting | Domain Registration