Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd November 2009, 06:14
computer_freak_8 computer_freak_8 is offline
Junior Member
 
Join Date: Sep 2009
Posts: 18
Thanks: 3
Thanked 5 Times in 5 Posts
Default Xen amd64 kernel on Debian is i386???

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:
debian-lenny:~# dpkg -i ./debs/ia32-libs_2.7_amd64.deb 
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
debian-lenny:~# 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
debian-lenny:~# cat /boot/config-2.6.26-2-xen-amd64 | grep -i i386
debian-lenny:~# cat /boot/config-2.6.26-2-xen-amd64 | grep -i *86
debian-lenny:~# cat /boot/config-2.6.26-2-xen-amd64 | grep -i 86
# 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
debian-lenny:~# cat /boot/config-2.6.26-2-xen-amd64 | grep -i amd
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
debian-lenny:~# cat /boot/config-2.6.26-2-xen-amd64 | grep -i 64 
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
debian-lenny:~# 
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. ;-)
Reply With Quote
Sponsored Links
  #2  
Old 4th November 2009, 15:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

What's in /etc/apt/sources.list?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 5th November 2009, 03:17
computer_freak_8 computer_freak_8 is offline
Junior Member
 
Join Date: Sep 2009
Posts: 18
Thanks: 3
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by falko View Post
What's in /etc/apt/sources.list?
Code:
debian-lenny:~# cat /etc/apt/sources.list
#
#  /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
debian-lenny:~# 
I don't know whether this helps or not... Maybe it expands the mystery; maybe it narrows it down.

Ideas?

Thanks!
Reply With Quote
  #4  
Old 5th November 2009, 16:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Looks ok. According to http://packages.debian.org/search?ke...le&section=all , apt should be able to find the package. What's the output of
Code:
apt-cache search ia32-libs
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 6th November 2009, 00:14
computer_freak_8 computer_freak_8 is offline
Junior Member
 
Join Date: Sep 2009
Posts: 18
Thanks: 3
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by falko View Post
What's the output of [...] ?
Either a null or newline character:
Code:
debian-lenny:~# 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
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
debian-lenny:~# apt-cache search ia32-libs
debian-lenny:~# apt-cache search ia32
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
debian-lenny:~# apt-cache search ia32*
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
debian-lenny:~# apt-cache search lib32
debian-lenny:~# ls /
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:
root@server:~# apt-cache search ia32-libs
ia32-libs - ia32 shared libraries for use on amd64 and ia64 systems
ia32-libs-gtk - GTK+ ia32 shared libraries
root@server:~# apt-cache search ia32
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
root@server:~# apt-cache search ia32*
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
root@server:~# apt-cache search lib32
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)
root@server:~# ls /
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
root@server:~# 
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...
Reply With Quote
  #6  
Old 6th November 2009, 16:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

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?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
computer_freak_8 (8th November 2009)
  #7  
Old 8th November 2009, 04:02
computer_freak_8 computer_freak_8 is offline
Junior Member
 
Join Date: Sep 2009
Posts: 18
Thanks: 3
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by falko View Post
Is the sources.list on the guest the same as on the host?
No. For the server (host), I have:
Code:
root@server:~# cat /etc/apt/sources.list
# 
# 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
root@server:~# 
The Xen machine (guest) has:
Code:
debian-lenny:~# cat /etc/apt/sources.list
#
#  /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
debian-lenny:~# 
Quote:
Originally Posted by falko View Post
How exactly did you create the guest? Is it somehow possible you created it as i386 and run it with an x86_64 kernel?
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?
Reply With Quote
  #8  
Old 8th November 2009, 15:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Quote:
Originally Posted by computer_freak_8 View Post
I mostly went by a tutorial from HowtoForge
Which one (URL)?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
computer_freak_8 (8th November 2009)
  #9  
Old 8th November 2009, 18:00
computer_freak_8 computer_freak_8 is offline
Junior Member
 
Join Date: Sep 2009
Posts: 18
Thanks: 3
Thanked 5 Times in 5 Posts
 
Default

Quote:
Originally Posted by falko View Post
Which one (URL)?
Oops, forgot to mention that part, LOL.
http://www.howtoforge.com/virtualiza...an-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 --arch=i386 --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!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[debian 5 + ispconfig 3] Unable to send mail tanakskool HOWTO-Related Questions 6 4th November 2009 19:20
Ispconfig IE7 Xen aurelius Installation/Configuration 8 19th October 2008 11:46
Google Apps dayjahone General 19 29th March 2008 18:25
WG311v2 almost working with Edgy (w/o ndiswrapper) need help with the rest caudata Server Operation 11 13th November 2006 21:02
KErnel not showing all my memory Jorem Kernel Questions 8 13th April 2006 13:59


All times are GMT +2. The time now is 06:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.