public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* kvm rpms for sles
@ 2008-07-02 21:30 carlopmart
  2008-07-03  5:57 ` David Mair
  0 siblings, 1 reply; 6+ messages in thread
From: carlopmart @ 2008-07-02 21:30 UTC (permalink / raw)
  To: kvm

Hi all,

  Sombedody knows where I can find rpm kvm-70 packages for sles 10 sp2?? If not, 
can I compile kvm-70 without problems under sles 10 sp2??

Many thanks.

-- 
CL Martinez
carlopmart {at} gmail {d0t} com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: kvm rpms for sles
  2008-07-02 21:30 carlopmart
@ 2008-07-03  5:57 ` David Mair
  0 siblings, 0 replies; 6+ messages in thread
From: David Mair @ 2008-07-03  5:57 UTC (permalink / raw)
  To: kvm

carlopmart wrote:
> Hi all,
> 
>  Sombedody knows where I can find rpm kvm-70 packages for sles 10 sp2?? 
> If not, can I compile kvm-70 without problems under sles 10 sp2??

I've been compiling it for OpenSuSE 10.3 (and 11.0 recently) with only 
minor effort since kvm-65 or earlier. My method should work as-is for 
SLE 10 versions. This message may be a bit long and OT for the list but 
I'll take the heat and maybe someone can help me understand why the 
second part of the patch is needed for me. If you have any questions 
that require much discussion maybe we can take it off-list.

Procedure (kvm-70 and later):

Make sure you have the kernel source and C/C++ development pattern 
installed.

# cd /usr/src/linux
# make cloneconfig
# make modules-prepare

Download the kvm source tarball
Explode it somewhere
# cd kvm-<version>
# ./configure

Patch kernel/Makefile as follows, the first change can be avoided easily 
but it's easier to just patch the Makefile as shown. The second change 
really seems necessary on my SuSE platforms. Be careful to consider if 
my or your mail client word wraps the patch (I pasted it as plain text). 
The patch just replaces the relative path to the kernel source with a 
literal path that works on OpenSuSE 10.3/11.0 and adds the kernel 
source's linux/include as a higher priority include path than the kvm 
include-compat.

--- kernel/Makefile    2008-04-28 11:54:18.000000000 -0600
+++ kernel/Makefile    2008-04-28 11:59:36.000000000 -0600
@@ -9,7 +9,7 @@

  rpmrelease = devel

-LINUX = ../linux-2.6
+LINUX = /usr/src/linux

  version = $(shell cd $(LINUX); git describe)

@@ -27,7 +27,8 @@
  all::
  #      include header priority 1) $LINUX 2) $KERNELDIR 3) include-compat
         $(MAKE) -C $(KERNELDIR) M=`pwd` \
-               LINUXINCLUDE="-I`pwd`/include -Iinclude 
-I`pwd`/include-compat \
+               LINUXINCLUDE="-I`pwd`/include -Iinclude 
-I/usr/src/linux/include \
+               -I`pwd`/include-compat \
                 -include include/linux/autoconf.h" \
                 "$$@"

# make
# make install

OpenSuSE 10.3 and 11.0 include kvm modules and qemu. I delete all the 
kvm stuff under /lib/modules/<current kernel> before the install.

To get the kvm drivers to load at boot time add the kvm.ko and 
kvm-<platform>.ko module to the INITRD_MODULES section of 
/etc/sysconfig/kernel and run mkinitrd. modprobe or insmod the drivers 
to start right away or reboot the host to load them from the ramdisk.

When you update the kernel you may as well repeat the process from the top.

The qemu executable is qemu-system-x86_64 and has been working really 
well for me.

---
David.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: kvm rpms for sles
@ 2008-07-03  7:31 Matthias Pfafferodt
  2008-07-03 11:01 ` Alexander Graf
  0 siblings, 1 reply; 6+ messages in thread
From: Matthias Pfafferodt @ 2008-07-03  7:31 UTC (permalink / raw)
  To: kvm

Hello,

you could try the openSUSE build service:

ftp://ftp5.gwdg.de/pub/opensuse/repositories/Virtualization:/KVM:/git/SLE_10

If the compiled rpms do not work, try to comile the source rpm on your
computer. If you know which rpms you need (and which are working!) you can
even create your own repository with only these rpms (as links to the
original rpms so they are rebuild if there are changes).

Matthias

(resent mail to the list)
-- 
Matthias Pfafferodt - http://www.mapfa.de
Matthias.Pfafferodt <at> mapfa.de

> Hi all,
>
>   Sombedody knows where I can find rpm kvm-70 packages for sles 10 sp2??
> If not,
> can I compile kvm-70 without problems under sles 10 sp2??
>
> Many thanks.
>
> --
> CL Martinez
> carlopmart {at} gmail {d0t} com
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in the
body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: kvm rpms for sles
  2008-07-03  7:31 kvm rpms for sles Matthias Pfafferodt
@ 2008-07-03 11:01 ` Alexander Graf
  2008-07-11 10:43   ` carlopmart
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Graf @ 2008-07-03 11:01 UTC (permalink / raw)
  To: carlopmart; +Cc: kvm, Matthias Pfafferodt


On Jul 3, 2008, at 9:31 AM, Matthias Pfafferodt wrote:

> Hello,
>
> you could try the openSUSE build service:
>
> ftp://ftp5.gwdg.de/pub/opensuse/repositories/Virtualization:/KVM:/git/SLE_10

This is actually the "current git" repository, so if things work  
correctly this is the absolute bleeding-edge of KVM.
To get KVM-70 for SLE10, please consider this repository:

http://download.opensuse.org/repositories/Virtualization:/KVM/SLE_10/


If it does not work for you, please let me know.

Alex

>
>
> If the compiled rpms do not work, try to comile the source rpm on your
> computer. If you know which rpms you need (and which are working!)  
> you can
> even create your own repository with only these rpms (as links to the
> original rpms so they are rebuild if there are changes).
>
> Matthias
>
> (resent mail to the list)
> -- 
> Matthias Pfafferodt - http://www.mapfa.de
> Matthias.Pfafferodt <at> mapfa.de


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: kvm rpms for sles
  2008-07-03 11:01 ` Alexander Graf
@ 2008-07-11 10:43   ` carlopmart
  2008-07-11 11:30     ` Alexander Graf
  0 siblings, 1 reply; 6+ messages in thread
From: carlopmart @ 2008-07-11 10:43 UTC (permalink / raw)
  To: Alexander Graf; +Cc: kvm

Alexander Graf wrote:
> 
> On Jul 3, 2008, at 9:31 AM, Matthias Pfafferodt wrote:
> 
>> Hello,
>>
>> you could try the openSUSE build service:
>>
>> ftp://ftp5.gwdg.de/pub/opensuse/repositories/Virtualization:/KVM:/git/SLE_10 
>>
> 
> This is actually the "current git" repository, so if things work 
> correctly this is the absolute bleeding-edge of KVM.
> To get KVM-70 for SLE10, please consider this repository:
> 
> http://download.opensuse.org/repositories/Virtualization:/KVM/SLE_10/
> 
> 
> If it does not work for you, please let me know.
> 
> Alex

Thanks Alex. At this moment I am installing a test server with SLES10-SP2 with 
all patches. One question: can I use 
kvm-kmp-smp-70_2.6.16.46_0.12-8.1.x86_64.rpm with latest release kernel: 
kernel-smp-2.6.16.60-0.23.x86_64.rpm??


-- 
CL Martinez
carlopmart {at} gmail {d0t} com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: kvm rpms for sles
  2008-07-11 10:43   ` carlopmart
@ 2008-07-11 11:30     ` Alexander Graf
  0 siblings, 0 replies; 6+ messages in thread
From: Alexander Graf @ 2008-07-11 11:30 UTC (permalink / raw)
  To: carlopmart; +Cc: kvm


On Jul 11, 2008, at 12:43 PM, carlopmart wrote:

> Alexander Graf wrote:
>> On Jul 3, 2008, at 9:31 AM, Matthias Pfafferodt wrote:
>>> Hello,
>>>
>>> you could try the openSUSE build service:
>>>
>>> ftp://ftp5.gwdg.de/pub/opensuse/repositories/Virtualization:/KVM:/git/SLE_10
>> This is actually the "current git" repository, so if things work  
>> correctly this is the absolute bleeding-edge of KVM.
>> To get KVM-70 for SLE10, please consider this repository:
>> http://download.opensuse.org/repositories/Virtualization:/KVM/SLE_10/
>> If it does not work for you, please let me know.
>> Alex
>
> Thanks Alex. At this moment I am installing a test server with  
> SLES10-SP2 with all patches. One question: can I use kvm-kmp- 
> smp-70_2.6.16.46_0.12-8.1.x86_64.rpm with latest release kernel:  
> kernel-smp-2.6.16.60-0.23.x86_64.rpm??

Right after I replied to you last time I realized that the SLE_10  
kernel module isn't of too much use for you, as you're using SP2 and  
that's still on SP1 (IIRC). For SP2 please use this repository:

http://download.opensuse.org/repositories/Virtualization:/KVM/SLE_10_SP2/

Nevertheless we're getting into SUSE details, so if more questions  
arise that don't really belong to the list (repo URLs might be useful  
here though imho), please mail me directly.

Alex


>
>
>
> -- 
> CL Martinez
> carlopmart {at} gmail {d0t} com


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-07-11 11:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-03  7:31 kvm rpms for sles Matthias Pfafferodt
2008-07-03 11:01 ` Alexander Graf
2008-07-11 10:43   ` carlopmart
2008-07-11 11:30     ` Alexander Graf
  -- strict thread matches above, loose matches on Subject: below --
2008-07-02 21:30 carlopmart
2008-07-03  5:57 ` David Mair

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox