* a (bad) kvm story from a plain user
@ 2007-08-14 19:22 Slohm Gadaburi
[not found] ` <f95a91fd0708141222h19dc65a7hf395658107703413-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 16+ messages in thread
From: Slohm Gadaburi @ 2007-08-14 19:22 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hello list.
I want to share my first kvm experience with you and ask for
your advice.
I run up-to-date Ubuntu 7.04 (kernel 2.6.20) on AMD processor.
I did apt-get installed kvm (which gave me the kvm-amd.ko module),
and qemu packages.
I modprobed kvm-adm.ko with no hassle.
and then I followed the HOWTO page on the kvm wiki -
created an qemu image and booted off a cd for installing RH9.0
(yeah, antique).
But the installation was sooooo slow. about 3 hours !
How can I know if the qemu I ran took advantage of the kvm module ?
I ran /usr/bin/qemu as I didn't have /usr/local/kvm/bin/qemu like the HOWTO
mentioned (as I didn't compiled the kvm bundle myself...).
So maybe the qemu I ran was just plain qemu, without the kvm changes ?
if so, then how could I have the kvm-changed qemu binaires ?
I even tried to compile the kvm bundle myself (i took the one that
is recommended for kernel 2.6.20, as the wiki says),
but alas, the ./configure shouted I don't have gcc 3.x
(which is indeed true as an up-to-date system today have gcc 4.x).
so was there another way to compile the kvm bundle ?
last question - the ./configure script has the option reflecting whether the
kernel is patched or not. if i download the cutting edge rc3 kernel,
should i add the --patched flag or not ?
thank you
hope u could help me
slohm
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
^ permalink raw reply [flat|nested] 16+ messages in thread[parent not found: <f95a91fd0708141222h19dc65a7hf395658107703413-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: a (bad) kvm story from a plain user [not found] ` <f95a91fd0708141222h19dc65a7hf395658107703413-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2007-08-14 19:30 ` Glauber de Oliveira Costa [not found] ` <5d6222a80708141230y2933d350h853ae866a51e5eda-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2007-08-14 19:32 ` Luca ` (2 subsequent siblings) 3 siblings, 1 reply; 16+ messages in thread From: Glauber de Oliveira Costa @ 2007-08-14 19:30 UTC (permalink / raw) To: Slohm Gadaburi; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f > How can I know if the qemu I ran took advantage of the kvm module ? By the time you reported, probably did not. > I even tried to compile the kvm bundle myself (i took the one that > is recommended for kernel 2.6.20, as the wiki says), > but alas, the ./configure shouted I don't have gcc 3.x > (which is indeed true as an up-to-date system today have gcc 4.x). It should be included in any up-to-date system as an alternative. Probably gcc-compat, or something like this. > last question - the ./configure script has the option reflecting whether the > kernel is patched or not. if i download the cutting edge rc3 kernel, > should i add the --patched flag or not ? > Yes ;-) -- Glauber de Oliveira Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act." ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <5d6222a80708141230y2933d350h853ae866a51e5eda-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: a (bad) kvm story from a plain user [not found] ` <5d6222a80708141230y2933d350h853ae866a51e5eda-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2007-08-14 21:20 ` Koen de Jonge [not found] ` <46C21C9A.2080806-OoqVcbiag8BWk0Htik3J/w@public.gmane.org> 0 siblings, 1 reply; 16+ messages in thread From: Koen de Jonge @ 2007-08-14 21:20 UTC (permalink / raw) To: Glauber de Oliveira Costa; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Glauber de Oliveira Costa wrote: >> I even tried to compile the kvm bundle myself (i took the one that >> is recommended for kernel 2.6.20, as the wiki says), >> but alas, the ./configure shouted I don't have gcc 3.x >> (which is indeed true as an up-to-date system today have gcc 4.x). >> > It should be included in any up-to-date system as an alternative. > Probably gcc-compat, or something like this. > I'm also trying exactly that: - use ubuntu 7.04 desktop edition - use ubuntu (updated) kernel (Linux kruimelvlaai 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux) Im using an AMD Athlon 64 X2 4800+ processor These where the packages I installed to get me started (added the sudo part for possibly easy copy pasting): sudo apt-get install libasound2-dev sudo apt-get install libsdl-gfx1.2-dev sudo apt-get install gcc-3.4 sudo apt-get install zlibc sudo apt-get install lib64z1-dev sudo apt-get install uuid-dev Which got me a compiled kvm-34 and an installed one. But starting it gave me: koen@kruimelvlaai:~$ sudo /usr/local/kvm/bin/qemu-system-x86_64 -hda images/ubuntu704-server.img -boot c -m 512 Password: kvm kernel version too old: KVM_GET_API_VERSION ioctl not supported Could not initialize KVM, will disable KVM support Then I checked if it would be easy/possible to keep using ubuntu and install a self-compiled kernel (processing power to spend, so why not). But that proved to be not such a good idea, since 'recompile kernel - nividia dont work - Ubuntu Forums' http://ubuntuforums.org/showthread.php?t=524411 So while downloading the daily snapshot of gutsy (http://cdimage.ubuntu.com/daily-live/current/) I tried version kvm-17. If you hit 'sudo apt-get install kvm' you'll get kvm-16 : ~$ zcat /usr/share/doc/kvm/changelog.Debian.gz | head kvm (1:16-1ubuntu2) feisty; urgency=low * Revert to kvm-16 to match released kernel. * Add epoch. This page does not tell you what version will work with the ubuntu supported kernel (of course) http://kvm.qumranet.com/kvmwiki/Downloads Can anyone tell me: - what is the linux host OS flavour and version the developers use? - what is the latest kvm-version that 'just works' on a ubuntu 7.04 desktop release? >> last question - the ./configure script has the option reflecting whether the >> kernel is patched or not. if i download the cutting edge rc3 kernel, >> should i add the --patched flag or not ? >> I found out that using the --with-patched-kernel I did not get it compiled at all. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <46C21C9A.2080806-OoqVcbiag8BWk0Htik3J/w@public.gmane.org>]
* Re: a (bad) kvm story from a plain user [not found] ` <46C21C9A.2080806-OoqVcbiag8BWk0Htik3J/w@public.gmane.org> @ 2007-08-14 21:23 ` Izik Eidus [not found] ` <1187126609.15054.37.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org> 0 siblings, 1 reply; 16+ messages in thread From: Izik Eidus @ 2007-08-14 21:23 UTC (permalink / raw) To: Koen de Jonge; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f this seems like you didnt load your new modules try to do: rmmod kvm_amd rmmod kvm and then load the moudles in your compiling dir: like: cd kvm-34/kernel insmod kvm.ko insmod kvm-amd.ko and then try On Tue, 2007-08-14 at 23:20 +0200, Koen de Jonge wrote: > Glauber de Oliveira Costa wrote: > >> I even tried to compile the kvm bundle myself (i took the one that > >> is recommended for kernel 2.6.20, as the wiki says), > >> but alas, the ./configure shouted I don't have gcc 3.x > >> (which is indeed true as an up-to-date system today have gcc 4.x). > >> > > It should be included in any up-to-date system as an alternative. > > Probably gcc-compat, or something like this. > > > I'm also trying exactly that: > - use ubuntu 7.04 desktop edition > - use ubuntu (updated) kernel (Linux kruimelvlaai 2.6.20-16-generic #2 > SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux) > > Im using an AMD Athlon 64 X2 4800+ processor > > These where the packages I installed to get me started (added the sudo > part for possibly easy copy pasting): > > sudo apt-get install libasound2-dev > sudo apt-get install libsdl-gfx1.2-dev > sudo apt-get install gcc-3.4 > sudo apt-get install zlibc > sudo apt-get install lib64z1-dev > sudo apt-get install uuid-dev > > Which got me a compiled kvm-34 and an installed one. > > But starting it gave me: > koen@kruimelvlaai:~$ sudo /usr/local/kvm/bin/qemu-system-x86_64 -hda > images/ubuntu704-server.img -boot c -m 512 > Password: > kvm kernel version too old: KVM_GET_API_VERSION ioctl not supported > Could not initialize KVM, will disable KVM support > > Then I checked if it would be easy/possible to keep using ubuntu and > install a self-compiled kernel (processing power to spend, so why not). > But that proved to be not such a good idea, since 'recompile kernel - > nividia dont work - Ubuntu Forums' > http://ubuntuforums.org/showthread.php?t=524411 > > So while downloading the daily snapshot of gutsy > (http://cdimage.ubuntu.com/daily-live/current/) I tried version kvm-17. > > If you hit 'sudo apt-get install kvm' you'll get kvm-16 : > ~$ zcat /usr/share/doc/kvm/changelog.Debian.gz | head > kvm (1:16-1ubuntu2) feisty; urgency=low > > * Revert to kvm-16 to match released kernel. > * Add epoch. > > This page does not tell you what version will work with the ubuntu > supported kernel (of course) http://kvm.qumranet.com/kvmwiki/Downloads > > Can anyone tell me: > - what is the linux host OS flavour and version the developers use? > - what is the latest kvm-version that 'just works' on a ubuntu 7.04 > desktop release? > > >> last question - the ./configure script has the option reflecting whether the > >> kernel is patched or not. if i download the cutting edge rc3 kernel, > >> should i add the --patched flag or not ? > >> > I found out that using the --with-patched-kernel I did not get it > compiled at all. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > kvm-devel mailing list > kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/kvm-devel ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <1187126609.15054.37.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org>]
* Re: a (bad) kvm story from a plain user [not found] ` <1187126609.15054.37.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org> @ 2007-08-14 21:46 ` Koen de Jonge 2007-08-14 21:48 ` Koen de Jonge 1 sibling, 0 replies; 16+ messages in thread From: Koen de Jonge @ 2007-08-14 21:46 UTC (permalink / raw) To: Izik Eidus; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Izik Eidus wrote: > this seems like you didnt load your new modules > try to do: > rmmod kvm_amd > rmmod kvm > > and then load the moudles in your compiling dir: > like: > cd kvm-34/kernel > insmod kvm.ko > insmod kvm-amd.ko > > and then try > That did help (a lot), now it is running on ubuntu 7.04 desktop with kvm-34 on kernel 2.6.20-16-generic. :) And what is more important, it feels a lot faster than the 'apt-get install' version. I'll reinstall my entire desktop again some time this week and write up a tutorial on how to get KVM running with the latest version on your ubuntu 7.04 desktop installation (starting with the ubuntu cd). Thanks, Koen > On Tue, 2007-08-14 at 23:20 +0200, Koen de Jonge wrote: > >> Glauber de Oliveira Costa wrote: >> >>>> I even tried to compile the kvm bundle myself (i took the one that >>>> is recommended for kernel 2.6.20, as the wiki says), >>>> but alas, the ./configure shouted I don't have gcc 3.x >>>> (which is indeed true as an up-to-date system today have gcc 4.x). >>>> >>>> >>> It should be included in any up-to-date system as an alternative. >>> Probably gcc-compat, or something like this. >>> >>> >> I'm also trying exactly that: >> - use ubuntu 7.04 desktop edition >> - use ubuntu (updated) kernel (Linux kruimelvlaai 2.6.20-16-generic #2 >> SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux) >> >> Im using an AMD Athlon 64 X2 4800+ processor >> >> These where the packages I installed to get me started (added the sudo >> part for possibly easy copy pasting): >> >> sudo apt-get install libasound2-dev >> sudo apt-get install libsdl-gfx1.2-dev >> sudo apt-get install gcc-3.4 >> sudo apt-get install zlibc >> sudo apt-get install lib64z1-dev >> sudo apt-get install uuid-dev >> >> Which got me a compiled kvm-34 and an installed one. >> >> But starting it gave me: >> koen@kruimelvlaai:~$ sudo /usr/local/kvm/bin/qemu-system-x86_64 -hda >> images/ubuntu704-server.img -boot c -m 512 >> Password: >> kvm kernel version too old: KVM_GET_API_VERSION ioctl not supported >> Could not initialize KVM, will disable KVM support >> >> Then I checked if it would be easy/possible to keep using ubuntu and >> install a self-compiled kernel (processing power to spend, so why not). >> But that proved to be not such a good idea, since 'recompile kernel - >> nividia dont work - Ubuntu Forums' >> http://ubuntuforums.org/showthread.php?t=524411 >> >> So while downloading the daily snapshot of gutsy >> (http://cdimage.ubuntu.com/daily-live/current/) I tried version kvm-17. >> >> If you hit 'sudo apt-get install kvm' you'll get kvm-16 : >> ~$ zcat /usr/share/doc/kvm/changelog.Debian.gz | head >> kvm (1:16-1ubuntu2) feisty; urgency=low >> >> * Revert to kvm-16 to match released kernel. >> * Add epoch. >> >> This page does not tell you what version will work with the ubuntu >> supported kernel (of course) http://kvm.qumranet.com/kvmwiki/Downloads >> >> Can anyone tell me: >> - what is the linux host OS flavour and version the developers use? >> - what is the latest kvm-version that 'just works' on a ubuntu 7.04 >> desktop release? >> >> >>>> last question - the ./configure script has the option reflecting whether the >>>> kernel is patched or not. if i download the cutting edge rc3 kernel, >>>> should i add the --patched flag or not ? >>>> >>>> >> I found out that using the --with-patched-kernel I did not get it >> compiled at all. >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> kvm-devel mailing list >> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >> https://lists.sourceforge.net/lists/listinfo/kvm-devel >> > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: a (bad) kvm story from a plain user [not found] ` <1187126609.15054.37.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org> 2007-08-14 21:46 ` Koen de Jonge @ 2007-08-14 21:48 ` Koen de Jonge [not found] ` <46C22325.3000403-OoqVcbiag8BWk0Htik3J/w@public.gmane.org> 1 sibling, 1 reply; 16+ messages in thread From: Koen de Jonge @ 2007-08-14 21:48 UTC (permalink / raw) To: Izik Eidus; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Izik Eidus wrote: <a reminder on how to remove and insert kernel modules> > On Tue, 2007-08-14 at 23:20 +0200, Koen de Jonge wrote: > >> Can anyone tell me: >> - what is the linux host OS flavour and version the developers use? >> - what is the latest kvm-version that 'just works' on a ubuntu 7.04 >> desktop release? >> I still like to know the answer to those questions though, that might also help in providing debug info once I get in a bit deeper. Koen ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <46C22325.3000403-OoqVcbiag8BWk0Htik3J/w@public.gmane.org>]
* Re: a (bad) kvm story from a plain user [not found] ` <46C22325.3000403-OoqVcbiag8BWk0Htik3J/w@public.gmane.org> @ 2007-08-15 2:47 ` Avi Kivity 2007-08-15 3:24 ` Anthony Liguori 1 sibling, 0 replies; 16+ messages in thread From: Avi Kivity @ 2007-08-15 2:47 UTC (permalink / raw) To: Koen de Jonge; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Koen de Jonge wrote: > Izik Eidus wrote: > > <a reminder on how to remove and insert kernel modules> > >> On Tue, 2007-08-14 at 23:20 +0200, Koen de Jonge wrote: >> >> >>> Can anyone tell me: >>> - what is the linux host OS flavour and version the developers use? >>> - what is the latest kvm-version that 'just works' on a ubuntu 7.04 >>> desktop release? >>> >>> > I still like to know the answer to those questions though, that might > also help in providing debug info once I get in a bit deeper. > Different developers use different distros. On my servers I use FC6 x86-64, with the kernel from kvm.git (all kvm changes, closely tracking mainline Linux); on my home machine I use F7 i386 with a similar kernel. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: a (bad) kvm story from a plain user [not found] ` <46C22325.3000403-OoqVcbiag8BWk0Htik3J/w@public.gmane.org> 2007-08-15 2:47 ` Avi Kivity @ 2007-08-15 3:24 ` Anthony Liguori 1 sibling, 0 replies; 16+ messages in thread From: Anthony Liguori @ 2007-08-15 3:24 UTC (permalink / raw) To: Koen de Jonge; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Tue, 2007-08-14 at 23:48 +0200, Koen de Jonge wrote: > Izik Eidus wrote: > > <a reminder on how to remove and insert kernel modules> > > On Tue, 2007-08-14 at 23:20 +0200, Koen de Jonge wrote: > > > >> Can anyone tell me: > >> - what is the linux host OS flavour and version the developers use? > >> - what is the latest kvm-version that 'just works' on a ubuntu 7.04 > >> desktop release? I have a mix of Feisty and Gutsy hosts. I think it's as well supported as anything else for all KVM releases. A few simple tips: 1) apt-get build-dep kvm will get you everything you need except gcc-3.4 2) the kvm that comes in Feisty is pretty old. Gutsy currently has kvm-28 which is relatively recent. Most importantly, it has a new enough version such that the ABI between kernel space and user space is stable. Ubuntu users won't face these incompatibility issues once Gutsy is released. Regards, Anthony Liguori > >> > I still like to know the answer to those questions though, that might > also help in providing debug info once I get in a bit deeper. > > Koen > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > kvm-devel mailing list > kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/kvm-devel ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: a (bad) kvm story from a plain user [not found] ` <f95a91fd0708141222h19dc65a7hf395658107703413-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2007-08-14 19:30 ` Glauber de Oliveira Costa @ 2007-08-14 19:32 ` Luca 2007-08-14 19:34 ` Izik Eidus 2007-08-15 2:44 ` Avi Kivity 3 siblings, 0 replies; 16+ messages in thread From: Luca @ 2007-08-14 19:32 UTC (permalink / raw) To: Slohm Gadaburi; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On 8/14/07, Slohm Gadaburi <slohmg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > I did apt-get installed kvm (which gave me the kvm-amd.ko module), > and qemu packages. > > I modprobed kvm-adm.ko with no hassle. > > and then I followed the HOWTO page on the kvm wiki - > created an qemu image and booted off a cd for installing RH9.0 > (yeah, antique). > > But the installation was sooooo slow. about 3 hours ! > > How can I know if the qemu I ran took advantage of the kvm module ? If it cannot use hw virtualization it tells you: Could not initialize KVM, will disable KVM support > I ran /usr/bin/qemu as I didn't have /usr/local/kvm/bin/qemu like the HOWTO > mentioned (as I didn't compiled the kvm bundle myself...). Under debian the executable is called kvm; I believe that it's the same under ubuntu. Run dpkg -L kvm and see what has been installed. Luca ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: a (bad) kvm story from a plain user [not found] ` <f95a91fd0708141222h19dc65a7hf395658107703413-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2007-08-14 19:30 ` Glauber de Oliveira Costa 2007-08-14 19:32 ` Luca @ 2007-08-14 19:34 ` Izik Eidus 2007-08-15 2:44 ` Avi Kivity 3 siblings, 0 replies; 16+ messages in thread From: Izik Eidus @ 2007-08-14 19:34 UTC (permalink / raw) To: Slohm Gadaburi; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f one easy way to check if the qemu binary you ran had kvm support at all is: run /usr/bin/qemu --help | grep kvm if you see there something like: -no-kvm disable KVM hardware... this is patched qemu with support to kvm. after this run: lsmod | grep kvm and check if the kvm driver is loaded if it is not do: modprobe kvm-amd if this fail please write the message it give you to this list. after this try to run qemu again, and check if it say something like: Could not initialize KVM, will disable KVM support in that case if the module was loaded you probably dont have permission to use it easy way would be trying as root, or adding yourself to the group. hope i helped you On Tue, 2007-08-14 at 22:22 +0300, Slohm Gadaburi wrote: > Hello list. > > I want to share my first kvm experience with you and ask for > your advice. > > I run up-to-date Ubuntu 7.04 (kernel 2.6.20) on AMD processor. > > I did apt-get installed kvm (which gave me the kvm-amd.ko module), > and qemu packages. > > I modprobed kvm-adm.ko with no hassle. > > and then I followed the HOWTO page on the kvm wiki - > created an qemu image and booted off a cd for installing RH9.0 > (yeah, antique). > > But the installation was sooooo slow. about 3 hours ! > > How can I know if the qemu I ran took advantage of the kvm module ? > > I ran /usr/bin/qemu as I didn't have /usr/local/kvm/bin/qemu like the HOWTO > mentioned (as I didn't compiled the kvm bundle myself...). > > So maybe the qemu I ran was just plain qemu, without the kvm changes ? > > if so, then how could I have the kvm-changed qemu binaires ? > > I even tried to compile the kvm bundle myself (i took the one that > is recommended for kernel 2.6.20, as the wiki says), > but alas, the ./configure shouted I don't have gcc 3.x > (which is indeed true as an up-to-date system today have gcc 4.x). > > so was there another way to compile the kvm bundle ? > > last question - the ./configure script has the option reflecting whether the > kernel is patched or not. if i download the cutting edge rc3 kernel, > should i add the --patched flag or not ? > > thank you > hope u could help me > slohm > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > kvm-devel mailing list > kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/kvm-devel ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: a (bad) kvm story from a plain user [not found] ` <f95a91fd0708141222h19dc65a7hf395658107703413-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> ` (2 preceding siblings ...) 2007-08-14 19:34 ` Izik Eidus @ 2007-08-15 2:44 ` Avi Kivity [not found] ` <46C2688D.80505-atKUWr5tajBWk0Htik3J/w@public.gmane.org> 3 siblings, 1 reply; 16+ messages in thread From: Avi Kivity @ 2007-08-15 2:44 UTC (permalink / raw) To: Slohm Gadaburi; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Slohm Gadaburi wrote: > How can I know if the qemu I ran took advantage of the kvm module ? > No one mentioned my favorite: when kvm is in control, the title bar of the guest console window changes to "QEMU/KVM". > I ran /usr/bin/qemu as I didn't have /usr/local/kvm/bin/qemu like the HOWTO > mentioned (as I didn't compiled the kvm bundle myself...). > Well, the HOWTO assumes you did all the previous steps. We should have a HOWTO/Ubuntu for distro users (but really, Ubuntu should have a gui for this). -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <46C2688D.80505-atKUWr5tajBWk0Htik3J/w@public.gmane.org>]
* Re: a (bad) kvm story from a plain user [not found] ` <46C2688D.80505-atKUWr5tajBWk0Htik3J/w@public.gmane.org> @ 2007-08-15 3:26 ` Anthony Liguori 2007-08-15 3:29 ` Daniel P. Berrange 0 siblings, 1 reply; 16+ messages in thread From: Anthony Liguori @ 2007-08-15 3:26 UTC (permalink / raw) To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Wed, 2007-08-15 at 05:44 +0300, Avi Kivity wrote: > Slohm Gadaburi wrote: > > How can I know if the qemu I ran took advantage of the kvm module ? > > > > No one mentioned my favorite: when kvm is in control, the title bar of > the guest console window changes to "QEMU/KVM". > > > I ran /usr/bin/qemu as I didn't have /usr/local/kvm/bin/qemu like the HOWTO > > mentioned (as I didn't compiled the kvm bundle myself...). > > > > Well, the HOWTO assumes you did all the previous steps. We should have > a HOWTO/Ubuntu for distro users (but really, Ubuntu should have a gui > for this). virt-manager isn't currently packaged for Ubuntu (even in Gutsy). If there any Ubuntu devs out there, please consider packaging it! Regards, Anthony Liguori > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: a (bad) kvm story from a plain user 2007-08-15 3:26 ` Anthony Liguori @ 2007-08-15 3:29 ` Daniel P. Berrange [not found] ` <20070815032935.GA17021-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 16+ messages in thread From: Daniel P. Berrange @ 2007-08-15 3:29 UTC (permalink / raw) To: Anthony Liguori; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Tue, Aug 14, 2007 at 10:26:24PM -0500, Anthony Liguori wrote: > > On Wed, 2007-08-15 at 05:44 +0300, Avi Kivity wrote: > > Slohm Gadaburi wrote: > > > How can I know if the qemu I ran took advantage of the kvm module ? > > > > > > > No one mentioned my favorite: when kvm is in control, the title bar of > > the guest console window changes to "QEMU/KVM". > > > > > I ran /usr/bin/qemu as I didn't have /usr/local/kvm/bin/qemu like the HOWTO > > > mentioned (as I didn't compiled the kvm bundle myself...). > > > > > > > Well, the HOWTO assumes you did all the previous steps. We should have > > a HOWTO/Ubuntu for distro users (but really, Ubuntu should have a gui > > for this). > > virt-manager isn't currently packaged for Ubuntu (even in Gutsy). If > there any Ubuntu devs out there, please consider packaging it! There are virt-manager packages for Debian so it shouldn't be hard to port them. Regards, Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <20070815032935.GA17021-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: a (bad) kvm story from a plain user [not found] ` <20070815032935.GA17021-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2007-08-15 4:43 ` Jorge Lucángeli Obes [not found] ` <59abf66e0708142143s68acf009h2513fafe10bd9071-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 16+ messages in thread From: Jorge Lucángeli Obes @ 2007-08-15 4:43 UTC (permalink / raw) To: Daniel P. Berrange; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On 8/15/07, Daniel P. Berrange <berrange-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: > On Tue, Aug 14, 2007 at 10:26:24PM -0500, Anthony Liguori wrote: > > > > On Wed, 2007-08-15 at 05:44 +0300, Avi Kivity wrote: > > > Slohm Gadaburi wrote: > > > > How can I know if the qemu I ran took advantage of the kvm module ? > > > > > > > > > > No one mentioned my favorite: when kvm is in control, the title bar of > > > the guest console window changes to "QEMU/KVM". > > > > > > > I ran /usr/bin/qemu as I didn't have /usr/local/kvm/bin/qemu like the HOWTO > > > > mentioned (as I didn't compiled the kvm bundle myself...). > > > > > > > > > > Well, the HOWTO assumes you did all the previous steps. We should have > > > a HOWTO/Ubuntu for distro users (but really, Ubuntu should have a gui > > > for this). > > > > virt-manager isn't currently packaged for Ubuntu (even in Gutsy). If > > there any Ubuntu devs out there, please consider packaging it! > > There are virt-manager packages for Debian so it shouldn't be hard to port > them. Just today I was trying virt-manager and libvirt. I got this error when creating a VM: Unable to complete install: 'virDomainCreateLinux() failed Cannot find QEMU binary /usr/bin/qemu: No such file or directory' I guess libvirt is confused by qemu-system-x86_64. ¿Any ideas? I'll try to prepare a patch. Cheers, Jorge ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <59abf66e0708142143s68acf009h2513fafe10bd9071-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: a (bad) kvm story from a plain user [not found] ` <59abf66e0708142143s68acf009h2513fafe10bd9071-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2007-08-15 11:58 ` Daniel P. Berrange [not found] ` <20070815115833.GA31563-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 16+ messages in thread From: Daniel P. Berrange @ 2007-08-15 11:58 UTC (permalink / raw) To: Jorge Lucángeli Obes; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Wed, Aug 15, 2007 at 01:43:58AM -0300, Jorge Luc?ngeli Obes wrote: > On 8/15/07, Daniel P. Berrange <berrange-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: > > On Tue, Aug 14, 2007 at 10:26:24PM -0500, Anthony Liguori wrote: > > > > > > On Wed, 2007-08-15 at 05:44 +0300, Avi Kivity wrote: > > > > Slohm Gadaburi wrote: > > > > > How can I know if the qemu I ran took advantage of the kvm module ? > > > > > > > > > > > > > No one mentioned my favorite: when kvm is in control, the title bar of > > > > the guest console window changes to "QEMU/KVM". > > > > > > > > > I ran /usr/bin/qemu as I didn't have /usr/local/kvm/bin/qemu like the HOWTO > > > > > mentioned (as I didn't compiled the kvm bundle myself...). > > > > > > > > > > > > > Well, the HOWTO assumes you did all the previous steps. We should have > > > > a HOWTO/Ubuntu for distro users (but really, Ubuntu should have a gui > > > > for this). > > > > > > virt-manager isn't currently packaged for Ubuntu (even in Gutsy). If > > > there any Ubuntu devs out there, please consider packaging it! > > > > There are virt-manager packages for Debian so it shouldn't be hard to port > > them. > > Just today I was trying virt-manager and libvirt. I got this error > when creating a VM: > > Unable to complete install: 'virDomainCreateLinux() failed Cannot find > QEMU binary /usr/bin/qemu: No such file or directory' The KVM support in libvirt is just an extension to the generic QEMU support. So you have to have a plain QEMU installed, as well as the KVM-ified version. To avoid filename clashes it expects the KVM version of QEMU to be named /usr/bin/qemu-kvm. Regards, Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <20070815115833.GA31563-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: a (bad) kvm story from a plain user [not found] ` <20070815115833.GA31563-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2007-08-15 15:35 ` Jorge Lucángeli Obes 0 siblings, 0 replies; 16+ messages in thread From: Jorge Lucángeli Obes @ 2007-08-15 15:35 UTC (permalink / raw) To: Daniel P. Berrange; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On 8/15/07, Daniel P. Berrange <berrange-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: > On Wed, Aug 15, 2007 at 01:43:58AM -0300, Jorge Luc?ngeli Obes wrote: > > On 8/15/07, Daniel P. Berrange <berrange-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: > > Just today I was trying virt-manager and libvirt. I got this error > > when creating a VM: > > > > Unable to complete install: 'virDomainCreateLinux() failed Cannot find > > QEMU binary /usr/bin/qemu: No such file or directory' > > The KVM support in libvirt is just an extension to the generic QEMU > support. So you have to have a plain QEMU installed, as well as the > KVM-ified version. To avoid filename clashes it expects the KVM version > of QEMU to be named /usr/bin/qemu-kvm. Thanks. I had reached more or less that conclusion after looking at 'src/qemu_driver.c', but it's good to have confirmation. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2007-08-15 15:35 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-14 19:22 a (bad) kvm story from a plain user Slohm Gadaburi
[not found] ` <f95a91fd0708141222h19dc65a7hf395658107703413-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-14 19:30 ` Glauber de Oliveira Costa
[not found] ` <5d6222a80708141230y2933d350h853ae866a51e5eda-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-14 21:20 ` Koen de Jonge
[not found] ` <46C21C9A.2080806-OoqVcbiag8BWk0Htik3J/w@public.gmane.org>
2007-08-14 21:23 ` Izik Eidus
[not found] ` <1187126609.15054.37.camel-wV29XY6ncz+I84jL4+POOYeT0m0igiSA0E9HWUfgJXw@public.gmane.org>
2007-08-14 21:46 ` Koen de Jonge
2007-08-14 21:48 ` Koen de Jonge
[not found] ` <46C22325.3000403-OoqVcbiag8BWk0Htik3J/w@public.gmane.org>
2007-08-15 2:47 ` Avi Kivity
2007-08-15 3:24 ` Anthony Liguori
2007-08-14 19:32 ` Luca
2007-08-14 19:34 ` Izik Eidus
2007-08-15 2:44 ` Avi Kivity
[not found] ` <46C2688D.80505-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-15 3:26 ` Anthony Liguori
2007-08-15 3:29 ` Daniel P. Berrange
[not found] ` <20070815032935.GA17021-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2007-08-15 4:43 ` Jorge Lucángeli Obes
[not found] ` <59abf66e0708142143s68acf009h2513fafe10bd9071-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-15 11:58 ` Daniel P. Berrange
[not found] ` <20070815115833.GA31563-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2007-08-15 15:35 ` Jorge Lucángeli Obes
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox