Xen amd64 kernel on Debian is i386???

Discussion in 'Installation/Configuration' started by computer_freak_8, Nov 3, 2009.

  1. computer_freak_8

    computer_freak_8 New Member

    I was trying to install the "ia32-libs" package (for the Folding@Home Linux SMP client), but neither "apt-get" nor "aptitude" could find it. So, I fetched it with "wget", but when I tried to install it, it told me I have the wrong architecture.

    This is really confusing me. Lines with the prompt are in bold:
    Code:
    [B]debian-lenny:~# dpkg -i ./debs/ia32-libs_2.7_amd64.deb [/B]
    dpkg: error processing ./debs/ia32-libs_2.7_amd64.deb (--install):
     package architecture (amd64) does not match system (i386)
    Errors were encountered while processing:
     ./debs/ia32-libs_2.7_amd64.deb
    [B]debian-lenny:~# uname -a[/B]
    Linux debian-lenny 2.6.26-2-xen-amd64 #1 SMP Thu Aug 20 00:36:34 UTC 2009 x86_64 GNU/Linux
    [B]debian-lenny:~# cat /boot/config-2.6.26-2-xen-amd64 | grep -i i386[/B]
    [B]debian-lenny:~# cat /boot/config-2.6.26-2-xen-amd64 | grep -i *86[/B]
    [B]debian-lenny:~# cat /boot/config-2.6.26-2-xen-amd64 | grep -i 86[/B]
    # CONFIG_X86_32 is not set
    CONFIG_X86_64=y
    CONFIG_X86=y
    CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
    CONFIG_X86_SMP=y
    CONFIG_X86_64_SMP=y
    CONFIG_X86_NO_TSS=y
    CONFIG_X86_NO_IDT=y
    # CONFIG_X86_PC is not set
    # CONFIG_X86_XEN is not set
    # CONFIG_X86_ELAN is not set
    # CONFIG_X86_VOYAGER is not set
    # CONFIG_X86_NUMAQ is not set
    # CONFIG_X86_SUMMIT is not set
    # CONFIG_X86_BIGSMP is not set
    # CONFIG_X86_VISWS is not set
    # CONFIG_X86_GENERICARCH is not set
    # CONFIG_X86_ES7000 is not set
    # CONFIG_X86_RDC321X is not set
    CONFIG_X86_64_XEN=y
    # CONFIG_X86_VSMP is not set
    # CONFIG_M386 is not set
    # CONFIG_M486 is not set
    # CONFIG_M586 is not set
    # CONFIG_M586TSC is not set
    # CONFIG_M586MMX is not set
    # CONFIG_M686 is not set
    CONFIG_X86_CPU=y
    CONFIG_X86_L1_CACHE_BYTES=128
    CONFIG_X86_INTERNODE_CACHE_BYTES=128
    CONFIG_X86_CMPXCHG=y
    CONFIG_X86_L1_CACHE_SHIFT=7
    CONFIG_X86_GOOD_APIC=y
    CONFIG_X86_CMOV=y
    CONFIG_X86_MINIMUM_CPU_FAMILY=64
    CONFIG_X86_DEBUGCTLMSR=y
    CONFIG_X86_LOCAL_APIC=y
    CONFIG_X86_IO_APIC=y
    CONFIG_X86_XEN_GENAPIC=y
    CONFIG_X86_MSR=m
    CONFIG_X86_CPUID=m
    CONFIG_BLK_DEV_TC86C001=m
    CONFIG_SENSORS_VIA686A=m
    CONFIG_SENSORS_W83L786NG=m
    CONFIG_DVB_USB_GL861=m
    CONFIG_DVB_TDA10086=m
    CONFIG_FB_VT8623=m
    # CONFIG_RTC_DRV_DS1286 is not set
    CONFIG_RTC_DRV_M48T86=m
    CONFIG_SOLARIS_X86_PARTITION=y
    CONFIG_NLS_CODEPAGE_860=m
    CONFIG_NLS_CODEPAGE_861=m
    CONFIG_NLS_CODEPAGE_862=m
    CONFIG_NLS_CODEPAGE_863=m
    CONFIG_NLS_CODEPAGE_864=m
    CONFIG_NLS_CODEPAGE_865=m
    CONFIG_NLS_CODEPAGE_866=m
    CONFIG_NLS_CODEPAGE_869=m
    # CONFIG_X86_PTDUMP is not set
    CONFIG_X86_MPPARSE=y
    CONFIG_CRYPTO_AES_X86_64=m
    CONFIG_CRYPTO_SALSA20_X86_64=m
    CONFIG_CRYPTO_TWOFISH_X86_64=m
    [B]debian-lenny:~# cat /boot/config-2.6.26-2-xen-amd64 | grep -i amd[/B]
    CONFIG_MTD_CFI_AMDSTD=m
    # CONFIG_MTD_AMD76XROM is not set
    CONFIG_BLK_DEV_AMD74XX=m
    # CONFIG_PATA_AMD is not set
    CONFIG_AMD8111_ETH=m
    CONFIG_AMD8111E_NAPI=y
    CONFIG_HW_RANDOM_AMD=m
    CONFIG_I2C_AMD756=m
    CONFIG_I2C_AMD756_S4882=m
    CONFIG_I2C_AMD8111=m
    CONFIG_AGP_AMD64=y
    [B]debian-lenny:~# cat /boot/config-2.6.26-2-xen-amd64 | grep -i 64 [/B]
    CONFIG_64BIT=y
    CONFIG_X86_64=y
    CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
    # CONFIG_ARCH_HAS_ILOG2_U64 is not set
    CONFIG_X86_64_SMP=y
    CONFIG_X86_64_XEN=y
    CONFIG_X86_MINIMUM_CPU_FAMILY=64
    CONFIG_RESOURCES_64BIT=y
    CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
    CONFIG_IP6_NF_MATCH_EUI64=m
    CONFIG_BLK_DEV_CMD640=m
    # CONFIG_BLK_DEV_CMD640_ENHANCED is not set
    CONFIG_BLK_DEV_CMD64X=m
    CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64
    # CONFIG_PATA_CMD640_PCI is not set
    # CONFIG_PATA_CMD64X is not set
    CONFIG_I2O_EXT_ADAPTEC_DMA64=y
    CONFIG_R3964=m
    CONFIG_VIDEO_TEA6415C=m
    CONFIG_VIDEO_TEA6420=m
    CONFIG_VIDEO_UPD64031A=m
    CONFIG_VIDEO_UPD64083=m
    CONFIG_USB_ZR364XX=m
    CONFIG_DVB_L64781=m
    CONFIG_DVB_ISL6405=m
    CONFIG_DVB_ISL6421=m
    CONFIG_AGP_AMD64=y
    CONFIG_SND_MTS64=m
    CONFIG_NLS_CODEPAGE_864=m
    CONFIG_CRYPTO_AES_X86_64=m
    CONFIG_CRYPTO_SALSA20_X86_64=m
    CONFIG_CRYPTO_TWOFISH_X86_64=m
    [B]debian-lenny:~# [/B]
    
    Note: I have not messed with the configuration file in the concatenation above; I posted it because I figured it might help someone to help me. ;-)
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/apt/sources.list?
     
  3. computer_freak_8

    computer_freak_8 New Member

    Code:
    [B]debian-lenny:~# cat /etc/apt/sources.list[/B]
    #
    #  /etc/apt/sources.list
    #
    
    
    #
    # lenny
    #
    deb     http://ftp.us.debian.org/debian/     lenny main contrib non-free
    deb-src http://ftp.us.debian.org/debian/     lenny main contrib non-free
    
    # 
    #  Security updates
    # 
    deb     http://security.debian.org/ lenny/updates  main contrib non-free
    deb-src http://security.debian.org/ lenny/updates  main contrib non-free
    [B]debian-lenny:~# [/B]
    
    I don't know whether this helps or not... Maybe it expands the mystery; maybe it narrows it down.

    Ideas?

    Thanks!
     
  4. falko

    falko Super Moderator ISPConfig Developer

  5. computer_freak_8

    computer_freak_8 New Member

    Either a null or newline character:
    Code:
    [B]debian-lenny:~# uname -a[/B]
    Linux debian-lenny 2.6.26-2-xen-amd64 #1 SMP Thu Aug 20 00:36:34 UTC 2009 x86_64 GNU/Linux
    debian-lenny:~# clear && !!
    clear && uname -a
    Linux debian-lenny 2.6.26-2-xen-amd64 #1 SMP Thu Aug 20 00:36:34 UTC 2009 x86_64 GNU/Linux
    [B]debian-lenny:~# apt-cache search ia32-libs[/B]
    [B]debian-lenny:~# apt-cache search ia32[/B]
    elilo - Bootloader for systems using EFI-based firmware
    lsb-core - Linux Standard Base 3.2 core support package
    lsb-cxx - Linux Standard Base 3.2 C++ support package
    lsb-desktop - Linux Standard Base 3.2 Desktop support package
    lsb-graphics - Linux Standard Base 3.2 graphics support package
    lsb-languages - Linux Standard Base 3.2 Runtime Languages package
    lsb-multimedia - Linux Standard Base 3.2 Multimedia package
    lsb-printing - Linux Standard Base 3.2 Printing package
    lsb-qt4 - Linux Standard Base 3.2 Qt4 support package
    refit - graphical boot menu for ia32 and x64 EFI systems
    microcode.ctl - Intel IA32/IA64 CPU Microcode Utility
    [B]debian-lenny:~# apt-cache search ia32*[/B]
    elilo - Bootloader for systems using EFI-based firmware
    lsb-core - Linux Standard Base 3.2 core support package
    lsb-cxx - Linux Standard Base 3.2 C++ support package
    lsb-desktop - Linux Standard Base 3.2 Desktop support package
    lsb-graphics - Linux Standard Base 3.2 graphics support package
    lsb-languages - Linux Standard Base 3.2 Runtime Languages package
    lsb-multimedia - Linux Standard Base 3.2 Multimedia package
    lsb-printing - Linux Standard Base 3.2 Printing package
    lsb-qt4 - Linux Standard Base 3.2 Qt4 support package
    mplayer - movie player for Unix-like systems
    refit - graphical boot menu for ia32 and x64 EFI systems
    microcode.ctl - Intel IA32/IA64 CPU Microcode Utility
    [B]debian-lenny:~# apt-cache search lib32[/B]
    [B]debian-lenny:~# ls /[/B]
    bin   dev  home  lib64	     media  opt   root	selinux  sys  usr
    boot  etc  lib	 lost+found  mnt    proc  sbin	srv	 tmp  var
    debian-lenny:~# 
    
    So, it looks like something is way messed up with my Xen guest... But my server, for some reason, is just fine (I think...). Here:
    Code:
    [B]root@server:~# apt-cache search ia32-libs[/B]
    ia32-libs - ia32 shared libraries for use on amd64 and ia64 systems
    ia32-libs-gtk - GTK+ ia32 shared libraries
    [B]root@server:~# apt-cache search ia32[/B]
    elilo - Bootloader for systems using EFI-based firmware
    ia32-libs - ia32 shared libraries for use on amd64 and ia64 systems
    ia32-libs-gtk - GTK+ ia32 shared libraries
    refit - graphical boot menu for ia32 and x64 EFI systems
    [B]root@server:~# apt-cache search ia32*[/B]
    elilo - Bootloader for systems using EFI-based firmware
    ia32-libs - ia32 shared libraries for use on amd64 and ia64 systems
    ia32-libs-gtk - GTK+ ia32 shared libraries
    mplayer - movie player for Unix-like systems
    refit - graphical boot menu for ia32 and x64 EFI systems
    [B]root@server:~# apt-cache search lib32[/B]
    lib32asound2 - ALSA library (32 bit)
    lib32asound2-dev - ALSA library development files (32 bit)
    lib32bz2-1.0 - high-quality block-sorting file compressor library - 32bit runtime
    lib32bz2-dev - high-quality block-sorting file compressor library - 32bit development
    lib32ffi-dev - Foreign Function Interface library (development files, 32bit)
    lib32ffi5 - Foreign Function Interface library runtime (32bit)
    lib32g2c0 - Runtime library for GNU Fortran 77 applications (32bit)
    lib32gcc1 - GCC support library (32 bit Version)
    lib32gcc1-dbg - GCC support library (debug symbols)
    lib32gfortran2 - Runtime library for GNU Fortran applications (32bit)
    lib32gfortran2-dbg - Runtime library for GNU Fortran applications (32 bit debug symbols)
    lib32gfortran3 - Runtime library for GNU Fortran applications (32bit)
    lib32gfortran3-dbg - Runtime library for GNU Fortran applications (32 bit debug symbols)
    lib32gomp1 - GCC OpenMP (GOMP) support library (32bit)
    lib32gomp1-dbg - GCC OpenMP (GOMP) support library (32 bit debug symbols)
    lib32mudflap0 - GCC mudflap shared support libraries (32bit)
    lib32mudflap0-dbg - GCC mudflap shared support libraries (32 bit debug symbols)
    lib32ncurses5 - shared libraries for terminal handling (32-bit)
    lib32ncurses5-dev - developer's libraries for ncurses (32-bit)
    lib32ncursesw5 - shared libraries for terminal handling (wide character support) (32-bit)
    lib32ncursesw5-dev - developer's libraries for ncursesw (32-bit)
    lib32nss-mdns - NSS module for Multicast DNS name resolution (32-bits version)
    lib32objc2 - Runtime library for GNU Objective-C applications (32bit)
    lib32objc2-dbg - Runtime library for GNU Objective-C applications (32 bit debug symbols)
    lib32readline5 - GNU readline and history libraries, run-time libraries (32-bit)
    lib32readline5-dev - GNU readline and history libraries, development files (32-bit)
    lib32stdc++6 - The GNU Standard C++ Library v3 (32 bit Version)
    lib32stdc++6-4.1-dbg - The GNU Standard C++ Library v3 (debugging files)
    lib32stdc++6-4.2-dbg - The GNU Standard C++ Library v3 (debugging files)
    lib32stdc++6-4.3-dbg - The GNU Standard C++ Library v3 (debugging files)
    lib32z1 - compression library - 32 bit runtime
    lib32z1-dev - compression library - 32 bit development
    libc6-dev-i386 - GNU C Library: 32bit development libraries for AMD64
    lib32icu-dev - Development files for International Components for Unicode (32-bit)
    lib32icu38 - International Components for Unicode (32-bit)
    [B]root@server:~# ls /[/B]
    bin    dev   home        lib32       media  proc  selinux  tmp  vmlinuz
    boot   emul  initrd.img  lib64       mnt    root  srv      usr
    cdrom  etc   lib         lost+found  opt    sbin  sys      var
    [B]root@server:~# [/B]
    
    Note that the "okay" system (host/server) has both lib64 and lib32 directories on the filesystem root, but the "problem" system (guest/virtual) has no lib32 directory - just a lib64 directory.

    This is quite odd...
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Is the sources.list on the guest the same as on the host?

    How exactly did you create the guest? Is it somehow possible you created it as i386 and run it with an x86_64 kernel?
     
  7. computer_freak_8

    computer_freak_8 New Member

    No. For the server (host), I have:
    Code:
    [B]root@server:~# cat /etc/apt/sources.list[/B]
    # 
    # deb cdrom:[Debian GNU/Linux 5.0.2 _Lenny_ - Official amd64 CD Binary-1 20090628-17:29]/ lenny main
    
    ## # deb cdrom:[Debian GNU/Linux 5.0.2 _Lenny_ - Official amd64 CD Binary-1 20090628-17:29]/ lenny main
    
    deb http://ftp.us.debian.org/debian/ lenny main
    deb-src http://ftp.us.debian.org/debian/ lenny main
    
    deb http://security.debian.org/ lenny/updates main
    deb-src http://security.debian.org/ lenny/updates main
    
    deb http://volatile.debian.org/debian-volatile lenny/volatile main
    deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
    [B]root@server:~# [/B]
    
    The Xen machine (guest) has:
    Code:
    [B]debian-lenny:~# cat /etc/apt/sources.list[/B]
    #
    #  /etc/apt/sources.list
    #
    
    
    #
    # lenny
    #
    deb     http://ftp.us.debian.org/debian/     lenny main contrib non-free
    deb-src http://ftp.us.debian.org/debian/     lenny main contrib non-free
    
    # 
    #  Security updates
    # 
    deb     http://security.debian.org/ lenny/updates  main contrib non-free
    deb-src http://security.debian.org/ lenny/updates  main contrib non-free
    [B]debian-lenny:~# [/B]
    
    Knowing me, any goof-up is possible! :) I mostly went by a tutorial from HowtoForge, but I deviated enough that it's entirely possible I completely messed up the whole process. (I've been thinking about scrapping my Xen machines and starting over, but keeping the host OS installation.)

    Hmm... My main reason for trying to get these certain things done (that seem to get me messed up) is to create a cluster; perhaps I should start a thread detailing what I'd like it to do, and then see what you folks think the best solution would be?
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Which one (URL)?
     
  9. computer_freak_8

    computer_freak_8 New Member

    Oops, forgot to mention that part, LOL.
    http://www.howtoforge.com/virtualization-with-xen-on-debian-lenny-amd64
    Like I said, I did deviate from it enough that it's entirely possible/likely that I'm the one that messed it up... but yeah, there's the link.

    Also, just since I typed the first part of this post, ran "cat ./.bash_history" and saw (along with a bunch of other commands) the most likely reason that it's messed up:
    Code:
    sudo xen-create-image --hostname=debian-lenny --size=9GB --swap=1GB --ip=192.168.5.44 --memory=786MB --dist=lenny [B]--arch=i386[/B] --role=udev --force
    Oh, wow, now I feel pretty stupid, but hey, it's just a part of the learning process I guess! I'm going to try it with "--arch=amd64" and let you know what happens. Thanks! :eek:
     

Share This Page