Re: a (bad) kvm story from a plain user

Koen de Jonge
2007-08-14T21:20:26Z

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.