KVM, libvirt and virtmanager really slow or just me?
SlackwareThis 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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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.
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*.)
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.