LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 10-01-2010, 04:36 PM   #16
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 418

Rep: Reputation: 58

Quote:
Originally Posted by maxmiorim View Post
Note that the virtio interface requires a customized kernel with the virtio-blk module, you'd have to replace it for scsi or ide if you don't want to customize the installer.
I don't recompile the host kernel to use virtio drives with the guests. I use the generic kernel on the host and guests. I get virtio working using a roundabout process that installs the initrd on the guest with the virtio_pci and virtio_blk drivers. Roundabout is a kind description, it's a pain in the butt and I've screwed it up more than a few times.
 
Old 10-01-2010, 04:46 PM   #17
maxmiorim
Member
 
Registered: Sep 2010
Location: Brazil
Distribution: Slackware
Posts: 43

Rep: Reputation: 8
Quote:
Originally Posted by Chuck56 View Post
I don't recompile the host kernel to use virtio drives with the guests. I use the generic kernel on the host and guests. I get virtio working using a roundabout process that installs the initrd on the guest with the virtio_pci and virtio_blk drivers. Roundabout is a kind description, it's a pain in the butt and I've screwed it up more than a few times.
I was talking about the guest, not the host. The kernel used by 13.1 and -current installer needs to be recompiled because virtio-blk isn't enabled by default for whatever reason.

tbh i prefer the roudabout process over customizing the installer kernel, after all i don't deal with installations very often because I just make a snapshot after the installation per se and if i need a new box i just copy the disk image, revert to the "post-inst" snapshot and carry on.
 
Old 10-01-2010, 04:59 PM   #18
Squall90
Member
 
Registered: Oct 2009
Distribution: Currently several distros :S
Posts: 148

Original Poster
Rep: Reputation: 29
Hmm... If I start qemu-system-x86_64 without a running kvm-amd daemon it prints
Quote:
Could not initialize KVM, will disable KVM support
But even if kvm-amd is running qemu is still veeeeeeeery slow. Probably my mainboard doesn't support it as mentioned before? I looked in the BIOS configuration but I couldn't find anything about virtualization.
I have an Asus M4N75TD mainboard.
 
Old 10-01-2010, 05:04 PM   #19
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 418

Rep: Reputation: 58
Quote:
Originally Posted by maxmiorim View Post
The kernel used by 13.1 and -current installer needs to be recompiled because virtio-blk isn't enabled by default for whatever reason.
What I'm saying is that you never need to recompile a host or guest kernel to get virtio_blk working. In a nutshell...

Phase 1:
standard install of guest generic kernel using /dev/sd# drives, change fstab from /dev/sda# to /dev/vda#, do mkinitrd using /dev/sda# drives and add the virtio_pci and virtio_blk drivers, run lilo,

Phase 2:
reboot but add boot=/dev/vda root/dev/vda# at the lilo prompt (use 5 second delay option), make many changes to lilo.conf (I'll list if interested), redo mkinitrd using /dev/vda# drives and add again virto_pci and virtio_blk drivers, run lilo

You are good to go unless you screw it up like I do regularly!
 
Old 10-01-2010, 05:07 PM   #20
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 418

Rep: Reputation: 58
Quote:
Originally Posted by Squall90 View Post
Hmm... If I start qemu-system-x86_64 without a running kvm-amd daemon
kvm-amd is a module, not a daemon. You definitely need to load kvm-amd before launching qemu-system-x86_64 otherwise it falls back to super slow qemu only mode.
 
Old 10-01-2010, 09:01 PM   #21
maxmiorim
Member
 
Registered: Sep 2010
Location: Brazil
Distribution: Slackware
Posts: 43

Rep: Reputation: 8
Quote:
Originally Posted by Chuck56 View Post
What I'm saying is that you never need to recompile a host or guest kernel to get virtio_blk working. In a nutshell...
Sure you can do a lot of stuff to work around the kernel compilation - i do it myself, pretty much like you described - but my point was that using a stock kernel won't work as in "just install and use it, like an ide or scsi disk".
 
Old 10-02-2010, 02:36 AM   #22
Squall90
Member
 
Registered: Oct 2009
Distribution: Currently several distros :S
Posts: 148

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by Chuck56 View Post
kvm-amd is a module, not a daemon. You definitely need to load kvm-amd before launching qemu-system-x86_64 otherwise it falls back to super slow qemu only mode.
Of course, you're right. I was tired while I was writing this post. I meant module.
 
Old 10-02-2010, 06:02 AM   #23
maxmiorim
Member
 
Registered: Sep 2010
Location: Brazil
Distribution: Slackware
Posts: 43

Rep: Reputation: 8
Have you added your user to the 'kvm' group? You need to be a member of the said group to access /dev/kvm and thus use the kvm capabilities.

The name 'kvm' may be different in your setup, it is the group you listed in $KVMGROUP when you ran the slackbuild. If you have not created the 'kvm' group nor set $KVMGROUP to anything different, create it and add your user to it:

Code:
groupadd -g 221 kvm
gpasswd -a yourusername kvm
# log out and log in now
The GID 221 is suggested by the UID/GID list maintained by slackbuilds.org [1].


[1] - http://slackbuilds.org/uid_gid.txt

Last edited by maxmiorim; 10-02-2010 at 06:03 AM. Reason: clarification
 
Old 10-02-2010, 07:13 AM   #24
Squall90
Member
 
Registered: Oct 2009
Distribution: Currently several distros :S
Posts: 148

Original Poster
Rep: Reputation: 29
Yep, I'm also in the group.
Quote:
christian@tux:~$ groups
users wheel floppy audio video cdrom plugdev power netdev scanner vboxusers kvm
 
Old 10-02-2010, 07:57 AM   #25
the3dfxdude
Member
 
Registered: May 2007
Posts: 304

Rep: Reputation: 66
Are you loading the virtualbox modules? Can they conflict with kvm?
 
Old 10-02-2010, 08:04 AM   #26
Squall90
Member
 
Registered: Oct 2009
Distribution: Currently several distros :S
Posts: 148

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by the3dfxdude View Post
Are you loading the virtualbox modules? Can they conflict with kvm?
Nope, I uninstalled VirtualBox. Only the group remains.
 
Old 10-02-2010, 09:06 AM   #27
the3dfxdude
Member
 
Registered: May 2007
Posts: 304

Rep: Reputation: 66
Quote:
Originally Posted by Squall90 View Post
Hmm... If I start qemu-system-x86_64 without a running kvm-amd daemon it prints
Could not initialize KVM, will disable KVM support
Are there any messages prior to this? Or is it the only message?
 
Old 10-02-2010, 02:32 PM   #28
Squall90
Member
 
Registered: Oct 2009
Distribution: Currently several distros :S
Posts: 148

Original Poster
Rep: Reputation: 29
No, it's the only message.
 
Old 10-04-2010, 09:25 AM   #29
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-14.1 (3.14.0) UEFI enabled
Posts: 344

Rep: Reputation: 71
/dev/kvm

Does device /dev/kvm exist?
if not do

/sbin/mknod /dev/kvm c 10
chown root.kvm /dev/kvm

this is a one time creation. you should use udev to create the device on each reboot
ala
KERNEL=="kvm", GROUP="kvm", MODE="0660"
this should be in /lib/udev/rules.d

john
 
Old 10-04-2010, 09:27 AM   #30
Squall90
Member
 
Registered: Oct 2009
Distribution: Currently several distros :S
Posts: 148

Original Poster
Rep: Reputation: 29
Jep, it exists...
Quote:
root@tux:/home/christian# ls /dev|grep ^k
kmem
kmsg
kvm
 
  


Reply

Tags
kvm, slackbuilds


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackbuilds - Net-SSLay building problem hua Slackware 4 08-01-2010 05:44 AM
[SOLVED] Problem building from slackbuilds ~sHyLoCk~ Slackware 14 05-18-2010 01:48 PM
Building slackbuilds.org packages with gcc 4.4.2 ponce Slackware 1 11-05-2009 11:07 AM
building kdebluetooth from Slackbuilds on Slackware64-current gtludwig Slackware 5 06-27-2009 05:59 PM
KVM-85 and using SlackBuilds kvm (83) script Chuck56 Slackware 2 04-22-2009 01:24 PM


All times are GMT -5. The time now is 04:28 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