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 05-21-2010, 12:56 AM   #1
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
Is it possible to be able to decrease the time in booting on OS takes to boot in QEMU


I am working on a Debian lenny system.
2.6.26-2-xen-amd64

I am using QEMU but it is very slow.
Some one suggested me to use kqemu.So I installed that also.
I am still having the same problem that it is slow.
I will describe the steps that I used to install KQEMU if these are wrong let me know.Also I am not clear do I have to type any command to be able to use kqemu.

I searched on debian repository for kqemu

http://packages.debian.org/search?su...keywords=kqemu

kqemu was not there instead there was another package named
kqemu-source and kqemu-common
An article
http://www.debian-administration.org/articles/545
had some information but it did not worked as expected.

There was no package named as kqemu as the above link says
then I found a link here
http://www.illuminatedvirtual.com/node/14 which was working.

I added to /etc/apt/sources.list
Code:
deb http://ftp.debian.org/debian sid main
then
Code:
apt-get update
apt-get install kqemu-source
apt-get install module-assistant
module-assistant prepare
module-assistant build kqemu-source
module-assistant install kqemu-source
depmod -a
echo kqemu >> /etc/modules
had to unistall the previous version of qemu because after this when I started
Code:
qemu-system-x86_64 -boot d -cdrom /dev/cdrom -hda hd.img
I got an error version mistmatch.
Code:
apt-get install qemu  kqemu-common
modprobe kqemu
but there was no output from modprobe kqemu.
Now I installed CentOS in QEMU it is working fine.I am able to see graphical screen.
But the problem is it is very slow and it took more than 3 minutes to boot completely.
I am using an LVM based installation here is the command I use to do it
Code:
qemu-system-x86_64  -hda /dev/virtualization/centos5-disk -hdb /dev/virtualization/centos5-swap -m 1024 -boot c -net nic -net tap
I can see a grub screen which did boot.
I have uploaded a snapshot here.
The only problem is it is very slow to boot do I need to do some thing extra to be able to boot fastly.
 
Old 05-21-2010, 03:18 AM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi tkmsr

How much RAM and what kind of CPU power have you given the VM?
 
Old 05-21-2010, 05:19 AM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 849

Rep: Reputation: 91
1. You are using a xen kernel, and qemu?
2. what you need is VT/SVM enabled hardware and kvm. Otherwise qemu will be slow no matter what you do.
 
Old 05-21-2010, 06:32 AM   #4
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by alli_yas View Post
Hi tkmsr

How much RAM and what kind of CPU power have you given the VM?
RAM 8 GB and CPU Quad Core.I could not exactly understand your question how much power I gave to the VM
Code:
server:/etc/xen# qemu-system-x86_64  -hda /dev/virtualization/centos5-disk -hdb /dev/virtualization/centos5-swap -m 1024 -boot c -net nic -net tap &
Quote:
Originally Posted by dyasny View Post
1. You are using a xen kernel, and qemu?
2. what you need is VT/SVM enabled hardware and kvm. Otherwise qemu will be slow no matter what you do.
The hard ware is
Code:
 xm dmesg | grep VMX
(XEN) HVM: VMX enabled

Last edited by tkmsr; 05-21-2010 at 06:35 AM.
 
Old 05-21-2010, 05:17 PM   #5
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi tkmsr

Quote:
RAM 8 GB and CPU Quad Core.I could not exactly understand your question how much power I gave to the VM
Apologies, I may have been unclear; when you configured your Virtual Machine; you had to assign resources to it including RAM and CPU's - for a quad core CPU you'd be able to allocate up to 4 CPU's - how many did you allocate (unclear in your command - apologies I'm not very familiar with Debian Lenny ).

I think dyasny is suggesting that you use KVM instead of Xen, since I think your processor supports Hardware Virtualization; which is substantially quicker when using qemu.
 
Old 05-21-2010, 11:10 PM   #6
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Actually I used this command
Code:
qemu-system-x86_64  -hda /dev/virtualization/centos5-disk -hdb /dev/virtualization/centos5-swap -m 1024 -boot c -net nic -net tap
So memory is 1024 given but I do not know how to give it CPU etc.
Ok so KVM is faster is it faster than Xen etc also.
 
Old 05-24-2010, 03:34 AM   #7
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi tkmsr,

Quote:
Ok so KVM is faster is it faster than Xen etc also.
If your processor supports HW virtualization; definitely the performance of KVM will be better than that of a Xen guest.

Trawl the forums here in LQ virtualization about how to setup KVM VM's in Debian (I know how to do it in RHEL/Fedora/CentOS - not too sure about Debian )
 
  


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
Benchmarking a tape drive, time to copy takes forever, time to append takes longer? jeriryan Linux - Hardware 2 06-15-2008 01:15 AM
linux booting takes long time nesta Linux - Laptop and Netbook 1 12-07-2007 07:31 PM
sata hdd takes too much time booting Ubuntu feisty deepclutch Linux - Hardware 4 07-06-2007 02:38 PM
Yum update, booting takes lot of time invincible_king Linux - General 1 09-27-2006 08:35 AM
Booting process takes long time. benoy4007 Red Hat 8 06-13-2004 12:35 PM


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