FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 02-03-2009, 04:57 PM
Freddy Freeloader
 
Default Xen problems in Lenny

I know this isn't strictly a Debian issue but this has really got me
stumped. I've installed the following Xen packages on a Lenny machine
and cannot successfully create a working guest using xen-create-image.



dpkg -l | grep xen
ii libc6-xen 2.7-18
GNU C Library: Shared libraries [Xen version
ii libxenstore3.0 3.2.1-2
Xenstore communications library for Xen
ii linux-image-2.6.26-1-xen-686 2.6.26-13
Linux 2.6.26 image on i686, oldstyle Xen sup
ii linux-modules-2.6.26-1-xen-686 2.6.26-13
Linux 2.6.26 modules on i686
ii xen-docs-3.2 3.2.1-2
Documentation for Xen
ii xen-hypervisor-3.2-1-i386 3.2.1-2
The Xen Hypervisor on i386
ii xen-linux-system-2.6.26-1-xen-686 2.6.26-13
XEN system with Linux 2.6.26 image on i686
ii xen-shell 1.8-3
Console based Xen administration utility
ii xen-tools 3.9-4
Tools to manage Debian XEN virtual servers
ii xen-utils-3.2-1 3.2.1-2
XEN administrative tools
ii xen-utils-common 3.2.0-2
XEN administrative tools - common files
ii xenstore-utils 3.2.1-2
Xenstore utilities for Xen



Here is the log file produced when running xen-create-image. The
failures all seem to be related to the inability of the installation
script to use chroot and I can't figure out why as I can use chroot on
the host OS. Is this a bug or am I missing something in the config files?



General Information
--------------------
Hostname : test2.gawako.local
Distribution : lenny
Partitions : swap 256Mb (swap)
/ 10Gb (reiserfs)
Image type : sparse
Memory size : 512Mb
Kernel path : /boot/vmlinuz-2.6.26-1-xen-686
Initrd path : /boot/initrd.img-2.6.26-1-xen-686

Networking Information
----------------------
IP Address 1 : 192.168.1.43 [MAC: 00:16:3E:FE:30:04]
Netmask : 255.255.255.0
Broadcast : 192.168.1.255
Gateway : 192.168.1.1

Creating partition image: /xen/domains/test2.gawako.local/swap.img
0+0 records in
0+0 records out
0 bytes (0 B) copied, 1.6915e-05 s, 0.0 kB/s
Done

Creating swap on /xen/domains/test2.gawako.local/swap.img
Setting up swapspace version 1, size = 134213 kB
no label, UUID=61334cb4-df9f-4b7d-9526-7692bd143955
Done

Creating partition image: /xen/domains/test2.gawako.local/disk.img
0+0 records in
0+0 records out
0 bytes (0 B) copied, 2.9659e-05 s, 0.0 kB/s
Done

Creating reiserfs filesystem on /xen/domains/test2.gawako.local/disk.img
mkfs.reiserfs 3.6.19 (2003 www.namesys.com)

A pair of credits:
Alexander Zarochentcev (zam) wrote the high low priority locking code,
online
resizer for V3 and V4, online repacker for V4, block allocation code,
and major
parts of the flush code, and maintains the transaction manager code.
We give
him the stuff that we know will be hard to debug, or needs to be very
cleanly

structured.

Hans Reiser was the project initiator, source of all funding for the
first 5.5

years. He is the architect and official maintainer.


Done
Installation method: debootstrap
Falling back to default debootstrap command

Copying files from host to image.
Copying files from /var/cache/apt/archives ->
/tmp/wjDNA2ChFT/var/cache/apt/archives

Done
Done
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://ftp.us.debian.org/debian...
I: Validating adduser
I: Validating apt
I: Validating apt-utils
I: Validating aptitude
I: Validating base-files
I: Validating base-passwd
I: Validating bash
I: Validating bsdmainutils
I: Validating bsdutils
I: Validating coreutils
I: Validating cpio
I: Validating cron
I: Validating debconf
I: Validating debconf-i18n
I: Validating debian-archive-keyring
I: Validating debianutils
I: Validating dhcp3-client
I: Validating dhcp3-common
I: Validating diff
I: Validating dmidecode
I: Validating dpkg
I: Validating e2fslibs
I: Validating e2fsprogs
I: Validating ed
I: Validating findutils
I: Validating gcc-4.2-base
I: Validating gcc-4.3-base
I: Validating gnupg
I: Validating gpgv
I: Validating grep
I: Validating groff-base
I: Validating gzip
I: Validating hostname
I: Validating ifupdown
I: Validating info
I: Validating initscripts
I: Validating iproute
I: Validating iptables
I: Validating iputils-ping
I: Validating libacl1
I: Validating libattr1
I: Validating libblkid1
I: Validating libbz2-1.0
I: Validating libc6
I: Validating libcomerr2
I: Validating libconsole
I: Validating libcwidget3
I: Validating libdb4.6
I: Validating libdevmapper1.02.1
I: Validating libept0
I: Validating libgcc1
I: Validating libgcrypt11
I: Validating libgdbm3
I: Validating libgnutls26
I: Validating libgpg-error0
I: Validating liblocale-gettext-perl
I: Validating libncurses5
I: Validating libncursesw5
I: Validating libnewt0.52
I: Validating libpam-modules
I: Validating libpam-runtime
I: Validating libpam0g
I: Validating libpopt0
I: Validating libreadline5
I: Validating libsasl2-2
I: Validating libselinux1
I: Validating libsepol1
I: Validating libsigc++-2.0-0c2a
I: Validating libslang2
I: Validating libss2
I: Validating libssl0.9.8
I: Validating libstdc++6
I: Validating libtasn1-3
I: Validating libtext-charwidth-perl
I: Validating libtext-iconv-perl
I: Validating libtext-wrapi18n-perl
I: Validating libusb-0.1-4
I: Validating libuuid1
I: Validating libwrap0
I: Validating libxapian15
I: Validating login
I: Validating logrotate
I: Validating lsb-base
I: Validating lzma
I: Validating makedev
I: Validating man-db
I: Validating manpages
I: Validating mawk
I: Validating mktemp
I: Validating module-init-tools
I: Validating mount
I: Validating nano
I: Validating ncurses-base
I: Validating ncurses-bin
I: Validating net-tools
I: Validating netbase
I: Validating netcat-traditional
I: Validating passwd
I: Validating perl-base
I: Validating procps
I: Validating readline-common
I: Validating rsyslog
I: Validating sed
I: Validating sysv-rc
I: Validating sysvinit
I: Validating sysvinit-utils
I: Validating tar
I: Validating tasksel
I: Validating tasksel-data
I: Validating tcpd
I: Validating traceroute
I: Validating tzdata
I: Validating update-inetd
I: Validating util-linux
I: Validating vim-common
I: Validating vim-tiny
I: Validating wget
I: Validating whiptail
I: Validating zlib1g
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting bsdutils...
I: Extracting coreutils...
I: Extracting debconf...
I: Extracting debconf-i18n...
I: Extracting debianutils...
I: Extracting diff...
I: Extracting dpkg...
I: Extracting e2fslibs...
I: Extracting e2fsprogs...
I: Extracting findutils...
I: Extracting gcc-4.2-base...
I: Extracting gcc-4.3-base...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting initscripts...
I: Extracting libacl1...
I: Extracting libattr1...
I: Extracting libblkid1...
I: Extracting libc6...
I: Extracting libcomerr2...
I: Extracting libdb4.6...
I: Extracting libdevmapper1.02.1...
I: Extracting libgcc1...
I: Extracting liblocale-gettext-perl...
I: Extracting libncurses5...
I: Extracting libpam-modules...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting libselinux1...
I: Extracting libsepol1...
I: Extracting libslang2...
I: Extracting libss2...
I: Extracting libstdc++6...
I: Extracting libtext-charwidth-perl...
I: Extracting libtext-iconv-perl...
I: Extracting libtext-wrapi18n-perl...
I: Extracting libuuid1...
I: Extracting login...
I: Extracting lsb-base...
I: Extracting lzma...
I: Extracting makedev...
I: Extracting mawk...
I: Extracting mktemp...
I: Extracting mount...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting passwd...
I: Extracting perl-base...
I: Extracting procps...
I: Extracting sed...
I: Extracting sysv-rc...
I: Extracting sysvinit...
I: Extracting sysvinit-utils...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting util-linux...
I: Extracting zlib1g...
W: Failure trying to run: chroot /tmp/wjDNA2ChFT mount -t proc proc /proc

Copying files from new installation to host.
Copying files from /tmp/wjDNA2ChFT/var/cache/apt/archives ->
/var/cache/apt/archives

Done
Done
Done

Running hooks
Running hook 01-disable-daemons
hook 01-disable-daemons: done.
Running hook 05-shadowconfig-on
chroot: cannot run command `/sbin/shadowconfig': Exec format error
hook 05-shadowconfig-on: done.
Running hook 15-disable-hwclock
hook 15-disable-hwclock: done.
Running hook 20-setup-apt
chroot: cannot run command `/usr/bin/apt-get': No such file or directory
chroot: cannot run command `/usr/bin/apt-get': No such file or directory
hook 20-setup-apt: done.
Running hook 30-disable-gettys
sed: can't read /tmp/wjDNA2ChFT/etc/inittab: No such file or directory
sed: can't read /tmp/wjDNA2ChFT/etc/inittab: No such file or directory
hook 30-disable-gettys: done.
Running hook 35-setup-users
hook 35-setup-users: done.
Running hook 40-setup-networking
hook 40-setup-networking: done.
Running hook 50-setup-hostname
hook 50-setup-hostname: done.
Running hook 55-create-dev
/usr/lib/xen-tools/lenny.d/55-create-dev: line 39: ./MAKEDEV: No such
file or directory
/usr/lib/xen-tools/lenny.d/55-create-dev: line 40: ./MAKEDEV: No such
file or directory
/usr/lib/xen-tools/lenny.d/55-create-dev: line 41: ./MAKEDEV: No such
file or directory
/usr/lib/xen-tools/lenny.d/55-create-dev: line 42: ./MAKEDEV: No such
file or directory

hook 55-create-dev: done.
Running hook 60-copy-host-files
chroot: cannot run command `/usr/bin/apt-get': No such file or directory
hook 60-copy-host-files: done.
Running hook 65-copy-user-files
hook 65-copy-user-files: done.
Running hook 70-install-ssh
chroot: cannot run command `/usr/bin/apt-get': No such file or directory
hook 70-install-ssh: done.
Running hook 75-fixup-securetty
hook 75-fixup-securetty: done.
Running hook 80-install-modules
chroot: cannot run command `/usr/bin/apt-get': No such file or directory
hook 80-install-modules: done.
Running hook 90-make-fstab
chroot: cannot run command `/usr/bin/apt-get': No such file or directory
hook 90-make-fstab: done.
Running hook 95-configure-locales
chroot: cannot run command `/usr/bin/apt-get': No such file or directory
chroot: cannot run command `/usr/bin/apt-get': No such file or directory
hook 95-configure-locales: done.
Running hook 99-clean-image
chroot: cannot run command `/usr/bin/apt-get': No such file or directory
hook 99-clean-image: done.
Running hook 99-enable-daemons
hook 99-enable-daemons: done.
Done

No role scripts were specified. Skipping

Creating Xen configuration file
Done
All done


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-03-2009, 06:39 PM
Steve Kemp
 
Default Xen problems in Lenny

On Tue Feb 03, 2009 at 09:57:17 -0800, Freddy Freeloader wrote:

> I know this isn't strictly a Debian issue but this has really got me
> stumped. I've installed the following Xen packages on a Lenny machine
> and cannot successfully create a working guest using xen-create-image.

Exec Format Error suggests you're creating a 64-bit guest despite
you being a 32-bit host.

Add --arch=i386 to the creation call.

Steve
--


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-04-2009, 11:40 AM
Freddy Freeloader
 
Default Xen problems in Lenny

Steve Kemp wrote:

On Tue Feb 03, 2009 at 09:57:17 -0800, Freddy Freeloader wrote:


I know this isn't strictly a Debian issue but this has really got me
stumped. I've installed the following Xen packages on a Lenny machine
and cannot successfully create a working guest using xen-create-image.



Exec Format Error suggests you're creating a 64-bit guest despite
you being a 32-bit host.

Add --arch=i386 to the creation call.

Steve

Thanks. That worked.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 06:57 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org