tuto:virtualisation:compiler_la_derniere_version_de_libvirt

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
tuto:virtualisation:compiler_la_derniere_version_de_libvirt [22/06/2010 20:00]
dani
tuto:virtualisation:compiler_la_derniere_version_de_libvirt [12/07/2012 23:30] (Version actuelle)
dani Page moved from compiler_la_derniere_version_de_libvirt to tuto:virtualisation:compiler_la_derniere_version_de_libvirt
Ligne 31: Ligne 31:
 Normalement, aucune modification n'est nécessaire, le spec fournit prend en charge la plateforme el5 Normalement, aucune modification n'est nécessaire, le spec fournit prend en charge la plateforme el5
 On passe juste certains arguments, qui désactive les fonctions non utilisées On passe juste certains arguments, qui désactive les fonctions non utilisées
 +
 +À partir de la v 0.8.1, il faut faire une toute petite modification du fichier spec, un test doit être désactivé, car notre version de libxml2 a un bug:
 +
 +Chercher la section
 +<code bash>
 +for i in nodeinfotest daemon-conf seclabeltest
 +do
 +  rm -f $i
 +  printf "#!/bin/sh\nexit 0\n" > $i
 +  chmod +x $i
 +done
 +</code>
 +et la remplacer par
 +<code bash>
 +for i in nodeinfotest daemon-conf seclabeltest interfaceschematest
 +do
 +  rm -f $i
 +  printf "#!/bin/sh\nexit 0\n" > $i
 +  chmod +x $i
 +done
 +</code>
  
 <code> <code>
Ligne 36: Ligne 57:
             --without lxc --without vbox --without esx \             --without lxc --without vbox --without esx \
             --without phyp --without one --without avahi \             --without phyp --without one --without avahi \
-            --without openvz --without uml"+            --without openvz --without uml --with nwfilter \ 
 +            --with libpcap"
 </code> </code>
  
Ligne 42: Ligne 64:
  
  
 +===== solution alternative =====
 +Pour compiler avec un serveur de build (type plague), il faut applliquer ce patch au fichier spec:
 +<hidden Patch pour le fichier spec>
 +<code diff>
 +--- F/libvirt.spec.orig 2011-01-04 09:08:53.000000000 +0100
 ++++ F/libvirt.spec      2011-01-06 13:01:06.000000000 +0100
 +@@ -107,6 +107,14 @@
 + %define with_lxc 0
 + %endif
 + 
 ++# Custom Firewall-Services
 ++%if 0%{?rhel} == 5
 ++%define with_avahi 0
 ++%define with_xen 0
 ++%define with_esx 0
 ++%endif
 ++# End customization
 ++
 + # RHEL-6 has restricted QEMU to x86_64 only, stopped including Xen
 + # on all archs. Other archs all have LXC available though
 + %if 0%{?rhel} >= 6
 +@@ -177,7 +185,7 @@
 + %endif
 + 
 + # Force QEMU to run as non-root
 +-%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
 ++%if 0%{?fedora} >= 12 || 0%{?rhel} >= 5
 + %define qemu_user  qemu
 + %define qemu_group  qemu
 + %else
 +@@ -705,7 +713,7 @@
 + %check
 + cd tests
 + # These 3 tests don't current work in a mock build root
 +-for i in nodeinfotest daemon-conf seclabeltest
 ++for i in virshtest nodeinfotest daemon-conf seclabeltest interfaceschematest
 + do
 +   rm -f $i
 +   printf "#!/bin/sh\nexit 0\n" > $i
 +</code>
 +</hidden>
  
  • tuto/virtualisation/compiler_la_derniere_version_de_libvirt.1277229659.txt.gz
  • Dernière modification: 22/06/2010 20:00
  • de dani