Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-05-2014, 09:19 PM
|
#16
|
Member
Registered: May 2014
Posts: 209
Original Poster
Rep:
|
Yes I did. I also tried running as root and still received the same error.
|
|
|
06-05-2014, 09:34 PM
|
#17
|
Member
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288
Rep:
|
Try running, modified of course, the script below... maybe aqemu is just bugging out? Other than loading the kernel module... not sure what else would give that error.. esp as root so thinking it is just a catch all message for something in aqemu.
export QEMU_AUDIO_DRV=sdl
export SDL_AUDIODRIVER=alsa
qemu-kvm --enable-kvm -localtime -m 2G -sdl -display sdl -vga vmware -usbdevice tablet -smp 2 -net nic,model=virtio -net user -drive file=VirtualDrives/slackware64-14.1-ansaldo.img,cache=none,if=ide &
#-cdrom VirtualDrives/slackware64-14.1-install-dvd.iso
|
|
|
06-06-2014, 03:00 AM
|
#18
|
Member
Registered: Aug 2012
Location: Ryomgård, Danmark
Distribution: Slackware64
Posts: 146
Rep:
|
Try this
Code:
ls -l /dev/kvm
crw-rw---- 1 root kvm 10, 232 jun 3 15:27 /dev/kvm
------------------^^^
On this machine to use kvm is required membership in "kvm" group!
Enjoy
|
|
|
06-06-2014, 10:52 AM
|
#19
|
Member
Registered: May 2014
Posts: 209
Original Poster
Rep:
|
I checked using getent group, and I don't see a kvm group. Would I just create it?
|
|
|
06-06-2014, 11:00 AM
|
#20
|
Member
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288
Rep:
|
odd.. mine is just this;
crw-rw---- 1 root users 10, 232 Jun 6 10:09 /dev/kvm
no kvm group, but works fine.
|
|
|
06-06-2014, 11:09 AM
|
#21
|
Member
Registered: May 2014
Posts: 209
Original Poster
Rep:
|
Ah, then perhaps this will help.
crw-rw---- 1 root root 10, 232 Jun 6 09:26 /dev/kvm
|
|
|
06-06-2014, 11:18 AM
|
#22
|
Member
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288
Rep:
|
Did you install qemu with the slackbuilds.org script? It has some bits aobut the udev rules that should have setup these permissions properly on your system.
|
|
|
06-06-2014, 11:18 AM
|
#23
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,385
|
so it seems you haven't installed qemu from SlackBuilds.org (the recommended way)
http://slackbuilds.org/repository/14.1/system/qemu/
there an udev rule is attached that lets you specify which group you want the /dev/kvm device to be associated (see the README).
EDIT: WhiteWolf beated me by seconds
|
|
|
06-06-2014, 11:21 AM
|
#24
|
Member
Registered: May 2014
Posts: 209
Original Poster
Rep:
|
Good. So I would just recompile it and reinstall the package, correct?
|
|
|
06-06-2014, 11:27 AM
|
#25
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,385
|
- first you have to read the README and the *.info of the SlackBuilds.org's SlackBuild script;
- then you decide if you want to change anything form the default (if not necessary stick with the default);
- as last step, you build the qemu package using that script (and eventual dependencies) following the HOWTO and use "upgradepkg --install-new" to update the one you have already installed.
In this specific case you will have also to reboot (restarting udev is not recommended).
|
|
|
06-06-2014, 11:40 AM
|
#26
|
Member
Registered: May 2014
Posts: 209
Original Poster
Rep:
|
Quote:
Originally Posted by ponce
- first you have to read the README and the *.info of the SlackBuilds.org's SlackBuild script;
- then you decide if you want to change anything form the default (if not necessary stick with the default);
- as last step, you build the qemu package using that script (and eventual dependencies) following the HOWTO and use "upgradepkg --install-new" to update the one you have already installed.
In this specific case you will have also to reboot (restarting udev is not recommended).
|
In the readme, it has several things you can enable when running the compile-
TARGETS=all ./qemu.SlackBuild
VNC_ENABLE=yes ./qemu.SlackBuild
KVMGROUP=group ./qemu.SlackBuild
Would I run one at a time and upgrade the package after?
|
|
|
06-06-2014, 12:14 PM
|
#27
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,385
|
Quote:
Originally Posted by Pinonoir
In the readme, it has several things you can enable when running the compile-
TARGETS=all ./qemu.SlackBuild
VNC_ENABLE=yes ./qemu.SlackBuild
KVMGROUP=group ./qemu.SlackBuild
Would I run one at a time and upgrade the package after?
|
no, the options (variables that you pass to the bash script) must be specified all together, but just if you need them: I usually specify only VNC_ENABLE=yes because I use the vnc display (sometimes), I don't need all targets (x86, x86_64 and arm are enough for me) and the default group "users" it's what I want.
as I said, if you don't understand/need the options, stick with the default.
Last edited by ponce; 06-06-2014 at 12:17 PM.
|
|
|
06-07-2014, 06:43 PM
|
#28
|
Member
Registered: May 2014
Posts: 209
Original Poster
Rep:
|
I just removed it and started over. Modified the source to include the options. That worked.
|
|
|
All times are GMT -5. The time now is 04:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|