You are not logged in.

#1 2007-01-25 09:11:17

xerverius
Member
From: ~
Registered: 2004-11-02
Posts: 230
Website

KVM package and kernel 2.6.20

When 2.6.20 enters testing/current, will Arch also provide the kvm package in the extra repository?

Offline

#2 2007-01-25 09:49:07

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,838

Re: KVM package and kernel 2.6.20

Have you a link to the source?

Offline

#3 2007-01-25 09:49:48

xerverius
Member
From: ~
Registered: 2004-11-02
Posts: 230
Website

Re: KVM package and kernel 2.6.20

kvm.sf.net

Offline

#4 2007-01-25 10:41:05

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,838

Re: KVM package and kernel 2.6.20

I'd say you can be fairly certain it will get packaged, but offhand I don't know if any of the devs have the right hardware to test it properly - all I can say for certain is that I don't. smile

Offline

#5 2007-01-25 12:05:24

Stalwart
Member
From: Latvia, Riga
Registered: 2005-10-18
Posts: 445
Website

Re: KVM package and kernel 2.6.20

Afaik with .20 kernel KVM will hit vanilla, so specific packaging won't be needed. We'll need KVM-patched QEmu to use it. I have KVM-compatible CPU and will test it right after release. On Arch64 of course wink


IRC: Stalwart @ FreeNode
Skype ID: thestalwart
WeeChat-devel nightly packages for i686

Offline

#6 2007-01-25 12:38:14

xerverius
Member
From: ~
Registered: 2004-11-02
Posts: 230
Website

Re: KVM package and kernel 2.6.20

The kvm package IS the userspace tool: http://kvm.qumranet.com/kvmwiki/HOWTO and the patched QEmu is part of the kvm package.

Offline

#7 2007-01-25 12:52:49

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: KVM package and kernel 2.6.20

xerverius wrote:

The kvm package IS the userspace tool: http://kvm.qumranet.com/kvmwiki/HOWTO and the patched QEmu is part of the kvm package.

Only for Kernel < 2.6.20


Have you tried to turn it off and on again?

Offline

#8 2007-01-25 13:06:02

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,838

Re: KVM package and kernel 2.6.20

fk - are you saying that no userspace tools will be required when 2.6.20 is released?

Offline

#9 2007-01-25 13:21:13

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: KVM package and kernel 2.6.20

tomk wrote:

fk - are you saying that no userspace tools will be required when 2.6.20 is released?

no, you need qemu or somthing else, but KVM is integrated in the kernel, the How To on the KVM site is only to patch an older Kernel with KVM


Have you tried to turn it off and on again?

Offline

#10 2007-01-25 14:17:33

xerverius
Member
From: ~
Registered: 2004-11-02
Posts: 230
Website

Re: KVM package and kernel 2.6.20

In the how-to on the website they installed the package in /usr/local/kvm and with the --with-patched-kernel configure option (and I think to disable the kernel module roll , optionally in the kvm package). After that they run /usr/local/kvm/bin/qemu-img and /usr/local/kvm/bin/qemu for the virtual machine, so I assume the patched qemu is provided by the kvm package and that's also the reason why I asked if this package was added to the Arch repo (to provide the usertool, not the driver).

And like the frontage of the kvm site tells me :The kernel component of KVM is included in mainline Linux, and will appear in Linux 2.6.20. So you still need the kvm package for other stuff then the kernel driver.

Or am I really going crazy now wink?

Offline

#11 2007-01-25 14:28:06

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: KVM package and kernel 2.6.20

xerverius wrote:

In the how-to on the website they installed the package in /usr/local/kvm and with the --with-patched-kernel configure option (and I think to disable the kernel module roll , optionally in the kvm package). After that they run /usr/local/kvm/bin/qemu-img and /usr/local/kvm/bin/qemu for the virtual machine, so I assume the patched qemu is provided by the kvm package and that's also the reason why I asked if this package was added to the Arch repo (to provide the usertool, not the driver).

And like the frontage of the kvm site tells me :The kernel component of KVM is included in mainline Linux, and will appear in Linux 2.6.20. So you still need the kvm package for other stuff then the kernel driver.

Or am I really going crazy now wink?

No, this is not right:


The with --patched-kernel is if you had a -mm patched kernel, the kvm-release is the newest release, and it replaces the normally older patch in -mm.

With Kernels < 2.6.20 you must patch the Kernel with the kvm-release

With 2.6.20 you only must load the kvm modul, and then you can use it with patched qemu.

The Kernel component ist KVM, the userspace Tool is qemu


Have you tried to turn it off and on again?

Offline

#12 2007-01-25 14:30:00

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,838

Re: KVM package and kernel 2.6.20

xerverius - that's my understanding also.

fk - the HOWTO linked by xerverius has no details about patching the kernel - it's about building and using the userspace side, and optionally creating a kernel module if your kernel does not already provide it.

Have a look for yourself. smile

Offline

#13 2007-01-25 14:34:14

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: KVM package and kernel 2.6.20

Look into the FAQ

What user space tools does kvm use?

kvm uses a slightly modified qemu program to instantiate the virtual machine. Once running, a virtual machine is just a regular process. You can use top(1), kill(1), taskset(1) and similar tools to manage virtual machines.

http://kvm.qumranet.com/kvmwiki/FAQ

also



http://kerneltrap.org/node/7545

The userland aspect of KVM is a slighlty modified version of qemu, used to instantiate the virtual machine.


Have you tried to turn it off and on again?

Offline

#14 2007-01-25 14:43:17

xerverius
Member
From: ~
Registered: 2004-11-02
Posts: 230
Website

Re: KVM package and kernel 2.6.20

:evil: I know that, but that modified qemu is inside the kvm package. Go here download it and see for you're self. Inside the tarball you'll find a qemu directory (REALLY IT'S THERE wink) and that's the modified version you're looking for (well actually /me is looking for) or are you going to ignore this too?

Offline

#15 2007-01-25 14:49:10

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: KVM package and kernel 2.6.20

xerverius wrote:

:evil: I know that, but that modified qemu is inside the kvm package. Go here download it and see for you're self. Inside the tarball you'll find a qemu directory (REALLY IT'S THERE wink) and that's the modified version you're looking for (well actually /me is looking for) or are you going to ignore this too?

@xerverius

I haven't say that there is no patched quemu in the packege, I have say with Kernel 2.6.20 yo don't need this package for KVM, with Kernel <2.6.20 you need this pakage for KVM, I have nothing say about qemu patch is not needed

I have say

KVM = Kernel
Qemu = Userspace Tool


I think we have talk at cross-purposes


Have you tried to turn it off and on again?

Offline

#16 2007-01-25 15:02:18

xerverius
Member
From: ~
Registered: 2004-11-02
Posts: 230
Website

Re: KVM package and kernel 2.6.20

Well I can't help it they called the entire project (and the tarball) kvm and you 'need' the patched qemu, so pointing at the qemu website isn't an option either.

Offline

#17 2007-01-25 18:32:30

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,838

Re: KVM package and kernel 2.6.20

Well... if it helps at all, I've downloaded the kvm tarball, applied the gcc4 patches that we currently use for qemu, made a couple of hacks to the top-level configure script, and it builds without errors.

I have also asked around the dev team, and at least one of us has a box with the right CPU, so we'll be able to do some testing.

Offline

#18 2007-01-25 18:58:32

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: KVM package and kernel 2.6.20

I have also asked around the dev team, and at least one of us has a box with the right CPU, so we'll be able to do some testing.

I also can help with testing if you want, or need, I have a CoreDuo with VT


Have you tried to turn it off and on again?

Offline

#19 2007-01-25 20:20:00

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 4,311

Re: KVM package and kernel 2.6.20

I have a laptop with an AMD X2 Turion TL-50 with pacifica (and a free partition) ,  so i can help also.





Added  : I intend to make a seperate install for this, so i leave the decision which kernel should be tested with the dev team.


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#20 2007-01-25 20:39:40

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,838

Re: KVM package and kernel 2.6.20

Cool - thanks guys. smile

Not only that, but both Intel and AMD covered - I like how this is shaping up. Would you both be OK with running kernel26mm (to be updated shortly) or would you prefer to wait for vanilla?

Offline

#21 2007-01-25 21:15:08

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,750

Re: KVM package and kernel 2.6.20

http://kvm.qumranet.com/kvmwiki/Debian

So will this kvm work with stock Arch kernel...?

looks interesting


Mr Green

Offline

#22 2007-01-25 22:02:14

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,838

Re: KVM package and kernel 2.6.20

Yes, when stock gets to 2.6.20 - but remember it's hardware-dependent. You need a VT capable Intel or an SVM capable AMD.

Offline

#23 2007-01-25 22:32:36

xerverius
Member
From: ~
Registered: 2004-11-02
Posts: 230
Website

Re: KVM package and kernel 2.6.20

I can also test the package, but the mm kernel definitely needs the latest mm and rc patch because there are a lot of kvm fixes in rc6.

Offline

#24 2007-01-25 22:37:18

xerverius
Member
From: ~
Registered: 2004-11-02
Posts: 230
Website

Re: KVM package and kernel 2.6.20

tomk wrote:

But remember it's hardware-dependent. You need a VT capable Intel or an SVM capable AMD.

Maybe it's useful to test this in the install file? Something like

supported=0
egrep '^flags.*(vmx|svm)' /proc/cpuinfo &> /dev/null && supported=1
if [ $supported -eq 0 ]; then
  echo "Meh, you don't have VT or SVM support"
fi

Offline

#25 2007-01-25 23:00:26

noriko
Member
From: In My Mind
Registered: 2006-06-09
Posts: 535
Website

Re: KVM package and kernel 2.6.20

{Inside the tarball you'll find a qemu directory}isn't kvm a modified qemu?
correct me if i'm wrong.. i read it a some time ago..


The.Revolution.Is.Coming - - To fight, To hunger, To Resist!

Offline

Board footer

Powered by FluxBB