From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: virbr0/bridge: No such file or directory Date: Fri, 26 Aug 2011 22:26:27 +0300 Message-ID: <20110826192627.GM32373@reaktio.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Scott Meyers Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, Aug 26, 2011 at 11:53:51AM -0500, Scott Meyers wrote: >=20 > Pasi, >=20 > Would it be possible for you to update your tutorial at: http://wiki.xens= ource.com/xenwiki/RHEL6Xen4Tutorial and create a patch file to take care of= this Xen bridge issue? >=20 > Per your suggestion, I tried mayoung's el6 xendom0 kernel rpm: kernel-2.6= =2E32-131.6.1.el6.xendom0.i686.rpm but, the server won't boot. >=20 Please set up a serial console and paste the full console output here: http://wiki.xen.org/xenwiki/XenSerialConsole also debugging tips here: http://wiki.xen.org/xenwiki/XenParavirtOps -- Pasi > =20 >=20 > I tried to compile its src file: kernel-2.6.32-131.6.1.el6.xendom0.src.rp= m, the system returned many errors and then halted at: + make -s ARCH=3Di3= 86 V=3D1 -j4 modules >=20 > (see attached copy of building errors) >=20 > =20 >=20 > Yur help is greatly appreciated. > =20 >=20 > =20 >=20 >=20 >=20 > > > Those errors are related to the bridge-utils rpm version.. > > > There is a workaround documented somewhere.. probably on centos maili= nglist. > > >=20 > >=20 > > or actually it's because the stock rhel6 kernel includes some patch to= =20 > > kernel bridging code so rhel6 bridge-utils rpm had to be patched for th= e kernel change. > >=20 > > so when you use xen.git 2.6.32 kernel (which is not based on rhel6 kern= el) you don't have > > the kernel change for bridging and the patched bridge-utils rpm doesn't= work anymore. > >=20 > > Try using mayoung's el6 xendom0 kernel rpm.. it *is* based on rhel6 ker= nel so it includes the bridging patch. > >=20 > > -- Pasi > > =20 > [root@pe1950 SPECS]# rpmbuild -bb kernel.spec=20 > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.wHoFnO > + umask 022 > + cd /root/rpmbuild/BUILD > + LANG=3DC > + export LANG > + unset DISPLAY > + patch_command=3D'patch -p1 -F1 -s' > + '[' '!' -d kernel-2.6.32-131.6.1.el6/vanilla-2.6.32-131.6.1.el6/ ']' > + rm -f pax_global_header > + cd /root/rpmbuild/BUILD > + rm -rf kernel-2.6.32-131.6.1.el6 > + /bin/mkdir -p kernel-2.6.32-131.6.1.el6 > + cd kernel-2.6.32-131.6.1.el6 > + /usr/bin/bzip2 -dc /root/rpmbuild/SOURCES/linux-2.6.32-131.6.1.el6.tar.= bz2 > + /bin/tar -xf - > + STATUS=3D0 > + '[' 0 -ne 0 ']' > + /bin/chmod -Rf a+rX,u+w,g-w,o-w . > + mv linux-2.6.32-131.6.1.el6 vanilla-2.6.32-131.6.1.el6 > + '[' -d linux-2.6.32-131.6.1.el6.xendom0.i686 ']' > + cp -rl vanilla-2.6.32-131.6.1.el6 linux-2.6.32-131.6.1.el6.xendom0.i686 > + cd linux-2.6.32-131.6.1.el6.xendom0.i686 > + cp /root/rpmbuild/SOURCES/config-debug /root/rpmbuild/SOURCES/config-de= bug-rhel /root/rpmbuild/SOURCES/config-framepointer /root/rpmbuild/SOURCES/= config-generic /root/rpmbuild/SOURCES/config-generic-rhel /root/rpmbuild/SO= URCES/config-i686 /root/rpmbuild/SOURCES/config-i686-debug /root/rpmbuild/S= OURCES/config-i686-debug-rhel /root/rpmbuild/SOURCES/config-i686-nodebug /r= oot/rpmbuild/SOURCES/config-i686-nodebug-rhel /root/rpmbuild/SOURCES/config= -i686-rhel /root/rpmbuild/SOURCES/config-ia64-generic-rhel /root/rpmbuild/S= OURCES/config-nodebug /root/rpmbuild/SOURCES/config-nodebug-rhel /root/rpmb= uild/SOURCES/config-powerpc-generic /root/rpmbuild/SOURCES/config-powerpc-g= eneric-rhel /root/rpmbuild/SOURCES/config-powerpc64 /root/rpmbuild/SOURCES/= config-powerpc64-kdump /root/rpmbuild/SOURCES/config-powerpc64-rhel /root/r= pmbuild/SOURCES/config-s390x /root/rpmbuild/SOURCES/config-s390x-debug /roo= t/rpmbuild/SOURCES/config-s390x-debug-rhel /root/rpmbuild/SOURCES/config-s3= 90x-generic-rhel /root/rpmbuild/SOURCES/config-s390x-kdump /root/rpmbuild/S= OURCES/config-s390x-kdump-rhel /root/rpmbuild/SOURCES/config-s390x-rhel /ro= ot/rpmbuild/SOURCES/config-x86-generic /root/rpmbuild/SOURCES/config-x86-ge= neric-rhel /root/rpmbuild/SOURCES/config-x86_64-debug /root/rpmbuild/SOURCE= S/config-x86_64-debug-rhel /root/rpmbuild/SOURCES/config-x86_64-generic /ro= ot/rpmbuild/SOURCES/config-x86_64-generic-rhel /root/rpmbuild/SOURCES/confi= g-x86_64-nodebug /root/rpmbuild/SOURCES/config-x86_64-nodebug-rhel . > + cp /root/rpmbuild/SOURCES/merge.pl /root/rpmbuild/SOURCES/Makefile.comm= on /root/rpmbuild/SOURCES/perf /root/rpmbuild/SOURCES/kabitool /root/rpmbui= ld/SOURCES/check-kabi . > + make -f /root/rpmbuild/SOURCES/Makefile.config VERSION=3D2.6.32 configs > removed `temp-i686-debug-final' > removed `temp-i686-final' > perl merge.pl config-nodebug-merged config-generic-merged > temp-generic > perl merge.pl config-x86-generic-merged temp-generic > temp-x86-generic > perl merge.pl config-i686-merged temp-x86-generic > temp-i686-final > perl merge.pl config-i686-nodebug-merged temp-i686-final i386 > kernel-2.= 6.32-i686.config > perl merge.pl config-debug-merged config-generic-merged > temp-debug-gene= ric > perl merge.pl config-x86-generic-merged temp-debug-generic > temp-x86-de= bug-generic > perl merge.pl config-i686-merged temp-x86-debug-generic > temp-i686-debug= -final > perl merge.pl config-i686-debug-merged temp-i686-debug-final i386 > kerne= l-2.6.32-i686-debug.config > perl merge.pl config-x86_64-generic-merged temp-generic > temp-x86_64-ge= neric > perl merge.pl config-x86_64-nodebug-merged temp-x86_64-generic x86_64 > k= ernel-2.6.32-x86_64.config > perl merge.pl config-x86_64-generic-merged temp-debug-generic > temp-x86= _64-debug-generic > perl merge.pl config-x86_64-debug-merged temp-x86_64-debug-generic x86_64= > kernel-2.6.32-x86_64-debug.config > perl merge.pl config-s390x-merged temp-generic > temp-s390x-generic > perl merge.pl config-s390x-merged temp-s390x-generic s390 > kernel-2.6.32= -s390x.config > perl merge.pl config-s390x-merged temp-debug-generic > temp-s390x-debug-= generic > perl merge.pl config-s390x-debug-merged temp-s390x-debug-generic s390 > k= ernel-2.6.32-s390x-debug.config > perl merge.pl config-s390x-kdump-merged kernel-2.6.32-s390x.config s390 >= kernel-2.6.32-s390x-kdump.config > perl merge.pl config-powerpc-generic-merged temp-generic > temp-powerpc-= generic > perl merge.pl config-powerpc64-merged temp-powerpc-generic powerpc > kern= el-2.6.32-ppc64.config > perl merge.pl config-powerpc64-kdump-merged kernel-2.6.32-ppc64.config po= werpc > kernel-2.6.32-ppc64-kdump.config > perl merge.pl config-powerpc-generic-merged temp-debug-generic > temp-po= werpc-debug-generic > perl merge.pl config-powerpc64-merged temp-powerpc-debug-generic powerpc = > kernel-2.6.32-ppc64-debug.config > + ApplyOptionalPatch linux-kernel-test.patch > + local patch=3Dlinux-kernel-test.patch > + shift > + '[' '!' -f /root/rpmbuild/SOURCES/linux-kernel-test.patch ']' > ++ wc -l /root/rpmbuild/SOURCES/linux-kernel-test.patch > ++ awk '{print $1}' > + local C=3D36630 > + '[' 36630 -gt 9 ']' > + ApplyPatch linux-kernel-test.patch > + local patch=3Dlinux-kernel-test.patch > + shift > + '[' '!' -f /root/rpmbuild/SOURCES/linux-kernel-test.patch ']' > + case "$patch" in > + patch -p1 -F1 -s > + chmod +x scripts/checkpatch.pl > + mkdir configs > + for cfg in 'kernel-2.6.32-*.config' > ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config > ++ grep -c kernel-2.6.32-i686-debug.config > + '[' 1 -eq 0 ']' > + for cfg in 'kernel-2.6.32-*.config' > ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config > ++ grep -c kernel-2.6.32-i686.config > + '[' 1 -eq 0 ']' > + for cfg in 'kernel-2.6.32-*.config' > ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config > ++ grep -c kernel-2.6.32-ppc64-debug.config > + '[' 0 -eq 0 ']' > + rm -f kernel-2.6.32-ppc64-debug.config > + for cfg in 'kernel-2.6.32-*.config' > ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config > ++ grep -c kernel-2.6.32-ppc64-kdump.config > + '[' 0 -eq 0 ']' > + rm -f kernel-2.6.32-ppc64-kdump.config > + for cfg in 'kernel-2.6.32-*.config' > ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config > ++ grep -c kernel-2.6.32-ppc64.config > + '[' 0 -eq 0 ']' > + rm -f kernel-2.6.32-ppc64.config > + for cfg in 'kernel-2.6.32-*.config' > ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config > ++ grep -c kernel-2.6.32-s390x-debug.config > + '[' 0 -eq 0 ']' > + rm -f kernel-2.6.32-s390x-debug.config > + for cfg in 'kernel-2.6.32-*.config' > ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config > ++ grep -c kernel-2.6.32-s390x-kdump.config > + '[' 0 -eq 0 ']' > + rm -f kernel-2.6.32-s390x-kdump.config > + for cfg in 'kernel-2.6.32-*.config' > ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config > ++ grep -c kernel-2.6.32-s390x.config > + '[' 0 -eq 0 ']' > + rm -f kernel-2.6.32-s390x.config > + for cfg in 'kernel-2.6.32-*.config' > ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config > ++ grep -c kernel-2.6.32-x86_64-debug.config > + '[' 0 -eq 0 ']' > + rm -f kernel-2.6.32-x86_64-debug.config > + for cfg in 'kernel-2.6.32-*.config' > ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config > ++ grep -c kernel-2.6.32-x86_64.config > + '[' 0 -eq 0 ']' > + rm -f kernel-2.6.32-x86_64.config > + for i in '*.config' > + mv kernel-2.6.32-i686-debug.config .config > ++ head -1 .config > ++ cut -b 3- > + Arch=3Di386 > + make ARCH=3Di386 nonint_oldconfig > + echo '# i386' > + cat .config > + rm -f include/generated/kernel.arch > + rm -f include/generated/kernel.cross > + for i in '*.config' > + mv kernel-2.6.32-i686.config .config > ++ head -1 .config > ++ cut -b 3- > + Arch=3Di386 > + make ARCH=3Di386 nonint_oldconfig > + echo '# i386' > + cat .config > + rm -f include/generated/kernel.arch > + rm -f include/generated/kernel.cross > + find . '(' -name '*.orig' -o -name '*~' ')' -exec rm -f '{}' ';' > + cp /root/rpmbuild/SOURCES/extrakeys.pub . > + cat > ### > ### Now generating a PGP key pair to be used for signing modules. > ### > ### If this takes a long time, you might wish to run rngd in the backgrou= nd to > ### keep the supply of entropy topped up. It needs to be run as root, and > ### should use a hardware random number generator if one is available, eg: > ### > ### rngd -r /dev/hwrandom > ### > ### If one isn't available, the pseudo-random number generator can be use= d: > ### > ### rngd -r /dev/urandom > ### > + gpg --homedir . --batch --gen-key /root/rpmbuild/SOURCES/genkey > gpg: WARNING: unsafe permissions on homedir `.' > ^Z > [1]+ Stopped rpmbuild -bb kernel.spec > [root@pe1950 SPECS]# rngd -r /dev/h > hpet hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 =20 > [root@pe1950 SPECS]# rngd -r /dev/h > hpet hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 =20 > [root@pe1950 SPECS]# rngd -r /dev/urandom=20 > [root@pe1950 SPECS]# bg > [1]+ rpmbuild -bb kernel.spec & > [root@pe1950 SPECS]# + cat > ### > ### Key pair generated. > ### > + '[' -s /root/rpmbuild/SOURCES/extrakeys.pub ']' > + gpg --homedir . --no-default-keyring --keyring kernel.pub --import /roo= t/rpmbuild/SOURCES/extrakeys.pub > gpg: WARNING: unsafe permissions on homedir `.' > gpg: key CD09BEDA: public key "Red Hat Enterprise Linux Driver Update Pro= gram " imported > gpg: Total number processed: 1 > gpg: imported: 1 > + gpg --homedir . --export --keyring ./kernel.pub Red > gpg: WARNING: unsafe permissions on homedir `.' > + gcc -o scripts/bin2c scripts/bin2c.c > + scripts/bin2c ksign_def_public_key __initdata > + cd .. > + exit 0 > Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.SdiN32 > + umask 022 > + cd /root/rpmbuild/BUILD > + cd kernel-2.6.32-131.6.1.el6 > + LANG=3DC > + export LANG > + unset DISPLAY > + export 'AFTER_LINK=3Dsh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR = -d /usr/src/debug -i $@"' > + AFTER_LINK=3D'sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr= /src/debug -i $@"' > + rm -rf /root/rpmbuild/BUILDROOT/kernel-2.6.32-131.6.1.el6.xendom0.i386 > + mkdir -p /root/rpmbuild/BUILDROOT/kernel-2.6.32-131.6.1.el6.xendom0.i38= 6/boot > + cd linux-2.6.32-131.6.1.el6.xendom0.i686 > + BuildKernel bzImage arch/x86/boot/bzImage > + MakeTarget=3DbzImage > + KernelImage=3Darch/x86/boot/bzImage > + Flavour=3D > + InstallName=3Dvmlinuz > + Config=3Dkernel-2.6.32-i686.config > + DevelDir=3D/usr/src/kernels/2.6.32-131.6.1.el6.xendom0.i686 > + '[' arch/x86/boot/bzImage =3D vmlinux ']' > + CopyKernel=3Dcp > + KernelVer=3D2.6.32-131.6.1.el6.xendom0.i686 > + echo BUILDING A KERNEL FOR i686... > BUILDING A KERNEL FOR i686... > + perl -p -i -e 's/^EXTRAVERSION.*/EXTRAVERSION =3D -131.6.1.el6.xendom0.= i686/' Makefile > + make -s mrproper > + cp configs/kernel-2.6.32-i686.config .config > ++ head -1 .config > ++ cut -b 3- > + Arch=3Di386 > + echo USING ARCH=3Di386 > USING ARCH=3Di386 > + '[' i386 =3D=3D s390 -a '' =3D=3D kdump ']' > + make -s ARCH=3Di386 nonint_oldconfig > + make -s ARCH=3Di386 V=3D1 -j4 bzImage > + /usr/lib/rpm/debugedit -b /root/rpmbuild/BUILD -d /usr/src/debug -i arc= h/x86/vdso/vdso32-int80.so.dbg > be08b652342172efda48aa85f6db264a0ebc016c > + /usr/lib/rpm/debugedit -b /root/rpmbuild/BUILD -d /usr/src/debug -i arc= h/x86/vdso/vdso32-sysenter.so.dbg > b98e2579bb694a7a7c698dcad915ba14c6ea9422 > WARNING: arch/x86/built-in.o(.text+0x259b): Section mismatch in reference= from the function xen_build_mfn_list_list() to the function .init.text:ext= end_brk() > The function xen_build_mfn_list_list() references > the function __init extend_brk(). > This is often because xen_build_mfn_list_list lacks a __init=20 > annotation or the annotation of extend_brk is wrong. >=20 > WARNING: arch/x86/built-in.o(.text+0x25c6): Section mismatch in reference= from the function xen_build_mfn_list_list() to the function .init.text:ext= end_brk() > The function xen_build_mfn_list_list() references > the function __init extend_brk(). > This is often because xen_build_mfn_list_list lacks a __init=20 > annotation or the annotation of extend_brk is wrong. >=20 > WARNING: arch/x86/built-in.o(.text+0x25df): Section mismatch in reference= from the function xen_build_mfn_list_list() to the function .init.text:ext= end_brk() > The function xen_build_mfn_list_list() references > the function __init extend_brk(). > This is often because xen_build_mfn_list_list lacks a __init=20 > annotation or the annotation of extend_brk is wrong. >=20 > WARNING: arch/x86/built-in.o(.text+0x2608): Section mismatch in reference= from the function xen_build_mfn_list_list() to the function .init.text:ext= end_brk() > The function xen_build_mfn_list_list() references > the function __init extend_brk(). > This is often because xen_build_mfn_list_list lacks a __init=20 > annotation or the annotation of extend_brk is wrong. >=20 > WARNING: vmlinux.o(.text+0x1b25): Section mismatch in reference from the = function xen_hvm_init_shared_info() to the function .init.text:__alloc_boot= mem() > The function xen_hvm_init_shared_info() references > the function __init __alloc_bootmem(). > This is often because xen_hvm_init_shared_info lacks a __init=20 > annotation or the annotation of __alloc_bootmem is wrong. >=20 > WARNING: vmlinux.o(.text+0x24c1): Section mismatch in reference from the = function xen_vcpu_setup() to the variable .init.data:setup_max_cpus > The function xen_vcpu_setup() references > the variable __initdata setup_max_cpus. > This is often because xen_vcpu_setup lacks a __initdata=20 > annotation or the annotation of setup_max_cpus is wrong. >=20 > WARNING: vmlinux.o(.text+0x24ca): Section mismatch in reference from the = function xen_vcpu_setup() to the variable .init.data:setup_max_cpus > The function xen_vcpu_setup() references > the variable __initdata setup_max_cpus. > This is often because xen_vcpu_setup lacks a __initdata=20 > annotation or the annotation of setup_max_cpus is wrong. >=20 > WARNING: vmlinux.o(.text+0x3c3b): Section mismatch in reference from the = function xen_build_mfn_list_list() to the function .init.text:extend_brk() > The function xen_build_mfn_list_list() references > the function __init extend_brk(). > This is often because xen_build_mfn_list_list lacks a __init=20 > annotation or the annotation of extend_brk is wrong. >=20 > WARNING: vmlinux.o(.text+0x3c66): Section mismatch in reference from the = function xen_build_mfn_list_list() to the function .init.text:extend_brk() > The function xen_build_mfn_list_list() references > the function __init extend_brk(). > This is often because xen_build_mfn_list_list lacks a __init=20 > annotation or the annotation of extend_brk is wrong. >=20 > WARNING: vmlinux.o(.text+0x3c7f): Section mismatch in reference from the = function xen_build_mfn_list_list() to the function .init.text:extend_brk() > The function xen_build_mfn_list_list() references > the function __init extend_brk(). > This is often because xen_build_mfn_list_list lacks a __init=20 > annotation or the annotation of extend_brk is wrong. >=20 > WARNING: vmlinux.o(.text+0x3ca8): Section mismatch in reference from the = function xen_build_mfn_list_list() to the function .init.text:extend_brk() > The function xen_build_mfn_list_list() references > the function __init extend_brk(). > This is often because xen_build_mfn_list_list lacks a __init=20 > annotation or the annotation of extend_brk is wrong. >=20 > + /usr/lib/rpm/debugedit -b /root/rpmbuild/BUILD -d /usr/src/debug -i .tm= p_vmlinux1 > d968154673ca84affcb9e50286ccafcac8565924 > + /usr/lib/rpm/debugedit -b /root/rpmbuild/BUILD -d /usr/src/debug -i .tm= p_vmlinux2 > 7fa0a26ff47385ab01fc1c4badfbfd884b86e1af > + /usr/lib/rpm/debugedit -b /root/rpmbuild/BUILD -d /usr/src/debug -i .tm= p_vmlinux3 > d6f6460db1dcdc524abf46567803046b397401e2 > unifdef: /root/rpmbuild/BUILD/kernel-2.6.32-131.6.1.el6/linux-2.6.32-131.= 6.1.el6.xendom0.i686/usr/include/xen/privcmd.h.tmp: 79: Premature EOF (#if = line 33 depth 1) > unifdef: output may be truncated > /root/rpmbuild/BUILD/kernel-2.6.32-131.6.1.el6/linux-2.6.32-131.6.1.el6.x= endom0.i686/usr/include/drm/drm_mode.h:85: found __[us]{8,16,32,64} type wi= thout #include > /root/rpmbuild/BUILD/kernel-2.6.32-131.6.1.el6/linux-2.6.32-131.6.1.el6.x= endom0.i686/usr/include/drm/i915_drm.h:120: found __[us]{8,16,32,64} type w= ithout #include > /root/rpmbuild/BUILD/kernel-2.6.32-131.6.1.el6/linux-2.6.32-131.6.1.el6.x= endom0.i686/usr/include/drm/mga_drm.h:260: found __[us]{8,16,32,64} type wi= thout #include > /root/rpmbuild/BUILD/kernel-2.6.32-131.6.1.el6/linux-2.6.32-131.6.1.el6.x= endom0.i686/usr/include/drm/radeon_drm.h:758: found __[us]{8,16,32,64} type= without #include > /root/rpmbuild/BUILD/kernel-2.6.32-131.6.1.el6/linux-2.6.32-131.6.1.el6.x= endom0.i686/usr/include/drm/via_drm.h:117: found __[us]{8,16,32,64} type wi= thout #include > + /usr/lib/rpm/debugedit -b /root/rpmbuild/BUILD -d /usr/src/debug -i vml= inux > d6f6460db1dcdc524abf46567803046b397401e2 > Root device is (9, 1) > Setup is 13564 bytes (padded to 13824 bytes). > System is 3676 kB > CRC 56a7917a > Kernel: arch/x86/boot/bzImage is ready (#1) > + '[' i386 '!=3D' s390 -o '' '!=3D' kdump ']' > + make -s ARCH=3Di386 V=3D1 -j4 modules