LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-17-2010, 12:05 PM   #1
RajahBrooke
Member
 
Registered: Jun 2010
Location: Warwickshire, England, UK
Distribution: Slackware 13.1
Posts: 45

Rep: Reputation: 22
KVM command not found though QEMU works fine Slackware64 13.1 multilib


I've been trying to get some kind of virtualisation solution for my Slackware64, and I'd been having an absolute nightmare trying to get virtualbox to work on my Slackware64 install, so I decided to ditch it and move to KVM instead, as a type 1 hypervisor, having had success with QEMU in the past.

I installed qemu-kvm along with all the dependencies using sbopkg, and I didn't have any problems building it, nor creating a user for kvm, or anything of that sort. However, now if I try to open a .iso on a disk image I created using qemu:

Code:
qemu-img create -f qcow2 ubuntu.qcow 4G
Which I am then easily able to access with qemu using the following command:

Code:
qemu ubuntu.qcow -cdrom /ISO/ubuntu-8.10-dvd-i386.iso -m 256 &
(I have an old ubuntu 8.10.iso on my PC that I used just to see if the thing would work)

This works just as expected. However, if I try to launch the same .iso using kvm

Code:
kvm -hda ubuntu.qcow -cdrom /ISO/ubuntu-8.10-dvd-i386.iso -m 256 -boot -d &
all I get is "bash: command not found: kvm"

I have already loaded the following modules: kvm, kvm-intel, tun. Could I be missing something?

Has anyone successfully got KVM to work before and thinks they could help me?

[edit]

Also just noticed that though I have created a group for kvm and added myself to libvirt, but when I issue the command "groups" neither of them are there, though I did use:

Code:
groupadd -g 221 kvm
And I was under the impression that I just needed to add my user to libvirt, without needing to manually create the group itself.

I may have misunderstood the procedure for installing this properly, but I'm not sure what I've done wrong.

Last edited by RajahBrooke; 08-17-2010 at 12:27 PM.
 
Old 08-17-2010, 02:19 PM   #2
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 421

Rep: Reputation: 58
What do you mean you installed all the dependencies? All you need is the qemu-kvm package. You also don't need libvert if you run qemu-kvm from the command line.

The start up command is not "kvm" but is "qemu-system-x86_64" for both 32bit and 64bit slackware.

Make sure you load either the kvm-intel or kvm-amd modules depending on your cpu type.
 
Old 08-17-2010, 04:04 PM   #3
RajahBrooke
Member
 
Registered: Jun 2010
Location: Warwickshire, England, UK
Distribution: Slackware 13.1
Posts: 45

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by Chuck56 View Post
What do you mean you installed all the dependencies? All you need is the qemu-kvm package. You also don't need libvert if you run qemu-kvm from the command line.

The start up command is not "kvm" but is "qemu-system-x86_64" for both 32bit and 64bit slackware.

Make sure you load either the kvm-intel or kvm-amd modules depending on your cpu type.
alright will check that out - i think what i've done is created a conflict since i had intended to use virt-manager but decided against it. will uninstall all related packages and start clean since the packages are already compiled.

[edit] wait, just checking - so all i need is qemu-kvm and i'll have kvm and qemu? that might sound like a stupid question, but slackbuilds has packages for qemu, kvm, kmod and qemu-kvm - and most of the how-to's available online are for ubuntu, with v different package names.

Last edited by RajahBrooke; 08-17-2010 at 04:13 PM.
 
Old 08-17-2010, 04:30 PM   #4
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 421

Rep: Reputation: 58
Quote:
Originally Posted by RajahBrooke View Post
[edit] wait, just checking - so all i need is qemu-kvm and i'll have kvm and qemu? that might sound like a stupid question, but slackbuilds has packages for qemu, kvm, kmod and qemu-kvm - and most of the how-to's available online are for ubuntu, with v different package names.
That's right, all you need is qemu-kvm.

qemu(0.12.5) - pure qemu with limited kvm functionality
kqemu(1.4.0pre1) - software acceleration for qemu
qemu-kvm(0.12.5) - slightly modified qemu with full kvm functionality
kvm-kmod(2.6.34.1) - updated kvm modules as of 2.6.34.1 kernel
kvm(88) - development qemu-kvm & kvm-kmod combined (not current code)
 
  


Reply

Tags
kvm, qemu, slackware64


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
On qemu-kvm, qemu-ifup script not found on Slackware 13 AndrewGaven Linux - Virtualization and Cloud 14 01-29-2010 03:36 AM
Loading kvm-intel module for qemu-kvm 0.11.0 alkos333 Slackware 6 11-13-2009 10:01 PM
QEMU/KVM GUI = AQEMU segmentation fault on slackware64 13.0! agentdcooper Slackware 3 09-16-2009 05:59 AM
SED command doesn't works fine on AIX JSnake AIX 4 07-01-2004 12:32 PM
'command not found' but works fine anyway HickorySlim Linux - General 11 08-03-2002 06:47 AM


All times are GMT -5. The time now is 07:23 PM.

Main Menu
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