LinuxQuestions.org
Review your favorite Linux distribution.
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 05-25-2013, 06:12 PM   #1
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
KVM, libvirt and virtmanager really slow or just me?


Ok, so I've been using vm's for a while now. I have in my server rack 2 machines for doing them and they both run VBox for them. So one day I decided to put a 3rd box in and put CentOS on it. It introduced me to virtmanager. I decided to try it out on Slack on my laptop (Lenovo T510, Core I5, 4G RAM). I'm trying to install Slack in a vm, and it is PAINFULLY slow, as in taking ~8hrs or more for install. Anyone know any tricks to speeding this up? Am I missing something? Basically the process I used was: install libvirt, then install virtmanager, run vm. Any help is welcome.
 
Old 05-25-2013, 06:31 PM   #2
kfritz
Member
 
Registered: Aug 2006
Distribution: Slackware, OpenBSD, CentOS, Ubuntu
Posts: 99

Rep: Reputation: 31
I have no experience with VirtualBox, libvirt, or virtmanager, but I use qemu/KVM. Slow installs had everything to do with how the disk was configured for caching. On Qemu, the defaults are slow for installs, so I use "cache=writeback". Take a look at your documentation and see what caching models they support.
 
Old 05-25-2013, 08:52 PM   #3
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 295

Rep: Reputation: 181Reputation: 181
Are you using virtio? Are you creating your VMs with the right --os-type and --os-variant?

If it is an existing VM, you probably need to redo its libvirt configuration to use virtio, and also redo the VM's fstab (as virtio block devices will show up as /dev/vd* instead of /dev/sd*.)
 
Old 05-25-2013, 09:35 PM   #4
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,180

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by manwichmakesameal View Post
Ok, so I've been using vm's for a while now. I have in my server rack 2 machines for doing them and they both run VBox for them. So one day I decided to put a 3rd box in and put CentOS on it. It introduced me to virtmanager. I decided to try it out on Slack on my laptop (Lenovo T510, Core I5, 4G RAM). I'm trying to install Slack in a vm, and it is PAINFULLY slow, as in taking ~8hrs or more for install. Anyone know any tricks to speeding this up? Am I missing something? Basically the process I used was: install libvirt, then install virtmanager, run vm. Any help is welcome.
Make sure the kvm modules are loaded on the host machine:

Code:
lsmod|grep kvm
If not, try this (select second option according to your CPU):

Code:
modprobe kvm
modprobe kvm-intel | kvm-amd
Make sure as well that the host processor has virtualization extensions, and that they are turned on in BIOS.
 
Old 05-25-2013, 09:40 PM   #5
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 295

Rep: Reputation: 181Reputation: 181
Yep that last bit is important especially for ThinkPads. IIRC hardware virtualization is usually disabled by default.
 
Old 05-26-2013, 09:17 AM   #6
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Original Poster
Rep: Reputation: 110Reputation: 110
Kernel modules are loaded. There is no option for Slackware with virtmanager when creating vm's. I just use generic >2.6* option. Changing the caching mode to writeback did seem to have a little improvement. Guess I'll have to keep tweaking it.
 
  


Reply

Tags
kvm, virt-manager, virtual machines, vm



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
LibVirt/KVM: HyperThreading On or Off? r0b0 Linux - Virtualization and Cloud 3 02-17-2013 11:49 PM
kvm/libvirt bridge etheraap Linux - Server 0 02-04-2013 08:44 PM
LXer: Scripting KVM with Python, Part 2: Add a GUI to manage KVM with libvirt and Python LXer Syndicated Linux News 0 01-17-2012 08:11 PM
CentOS 6 libvirt KVM Live Snapshot is Slow bjl Linux - Virtualization and Cloud 7 11-03-2011 01:43 PM
LXer: Set up Ubuntu 11.04 KVM to run is spice session on Fedora 14 KVM Server ( Libvirt Preview Env) LXer Syndicated Linux News 0 03-20-2011 12:00 AM

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

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