LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 12-14-2009, 02:12 AM   #1
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
windows 7 install 3x slower using kvm


I have a machine with a 3ware hardware raid card in raid 5, core 2 quad, and 8GB ram. Installing Windows 7 directly on the hardware took 15:34 (mm:ss) and doing it with qemu/kvm and a qcow2 type image took 42:10. That seemed like a pretty significant slow down to me. Is this level of degradation expected or have I done something wrong? The command I used to run the kvm install was:

Code:
kvm -m 2048 -hda win7.img -cdrom /media/win7.iso -boot d -usb -smp 2
 
Old 12-14-2009, 09:49 AM   #2
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 421

Rep: Reputation: 58
During installation you are using the default QEMU emulators without the benefit of any tuning so expect it to be slower.

After installation you can start tuning your guest. Depending on the type of usage you may choose to migrate to the raw format instead of the qcow2 format for a slight speed increase. Changing to the virtio ethernet and block paravirtual drivers along with the installing the Windows guest drivers will also help with speed increases.

Don't expect the final product to be as fast as a bare metal Windows install but it should get better than the initial install speed.
 
Old 12-16-2009, 03:56 AM   #3
ischraub
LQ Newbie
 
Registered: Dec 2004
Location: Germany
Distribution: Ubuntu, Fedora, Astlinux, Red Hat, custom
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by mrtwice View Post
I have a machine with a 3ware hardware raid card in raid 5, core 2 quad, and 8GB ram. Installing Windows 7 directly on the hardware took 15:34 (mm:ss) and doing it with qemu/kvm and a qcow2 type image took 42:10. That seemed like a pretty significant slow down to me. Is this level of degradation expected or have I done something wrong? The command I used to run the kvm install was:

Code:
kvm -m 2048 -hda win7.img -cdrom /media/win7.iso -boot d -usb -smp 2
You should check, that you have actually enabled kvm. You can do this by running the command 'info kvm' inside the qemu monitor. If kvm support is not enabled, you may not have loaded the required kernel modules (modprobe kvm; modprobe kvm-(intel/amd)

Personally I have seen a speed boost with the combo kvm-kmod-2.6.32 and the recently "released" qemu-kvm-0.12.0-rc2. Note, those packages are not intended for production servers, but give them a try.
 
Old 12-17-2009, 01:46 PM   #4
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Original Poster
Rep: Reputation: 31
I reconfigured qemu-kvm to use an LVM partition directly for the c drive and my install dropped to 17 minutes, almost as good as native.

However, I installed using VirtualBox and an LVM partition and my install time dropped to about 10 minutes. That's better than native!
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AMD64 slower than Windows ? Starbucks Suse/Novell 7 03-26-2006 09:34 PM
Why Linux is slower than Windows Almazick General 20 09-24-2004 07:13 PM
Ut2k3 slower than windows ? Le_coyote Linux - Games 7 08-06-2004 05:58 PM
Linux slower than Windows? fedivh Linux - General 22 12-23-2003 12:31 AM
Linux slower than Windows NT plisken Linux - Networking 5 04-07-2002 07:26 AM


All times are GMT -5. The time now is 02:43 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration