Hi Steve, Sorry bout the delay; Shoud'a run the --debug myself first :)
I notice the first error is cat: /etc/resolv.conf: input file is output file. This is bug 355910, actually unresolved - headed there to update that. I manually patched my resolv.conf to be normal and ran a second pass with the same command. I have included both passes below, the second fails, without the resolv.conf problem. -- xen-tools with Debug Pass 1: root:~# xen-create-image --ip=X.X.X.X --host=tester --debug General Infomation -------------------- Hostname : tester Distribution : sarge Fileystem Type : ext3 Size Information ---------------- Image size : 2048k Swap size : 128 Memory size : 64 Kernel Path : /boot/xen-linux-2.6.12.6-xenu Networking Information ---------------------- IP Address : 192.168.78.18 Netmask : 255.255.255.0 Gateway : 192.168.78.10 Creating swapfile : /var/xen/domains/tester/swap.img Executing : /bin/dd if=/dev/zero of=/var/xen/domains/tester/swap.img bs=1024k count=128 128+0 records in 128+0 records out 134217728 bytes transferred in 3.106451 seconds (43206130 bytes/sec) Finished : /bin/dd if=/dev/zero of=/var/xen/domains/tester/swap.img bs=1024k count=128 Executing : /sbin/mkswap /var/xen/domains/tester/swap.img Finished : /sbin/mkswap /var/xen/domains/tester/swap.img Done Creating disk image: /var/xen/domains/tester/disk.img Executing : /bin/dd if=/dev/zero of=/var/xen/domains/tester/disk.img bs=2048k count=0 seek=1024 0+0 records in 0+0 records out 0 bytes transferred in 0.000134 seconds (0 bytes/sec) Finished : /bin/dd if=/dev/zero of=/var/xen/domains/tester/disk.img bs=2048k count=0 seek=1024 Done Creating ext3 filesystem Executing : /sbin/mkfs.ext3 -F /var/xen/domains/tester/disk.img mke2fs 1.37 (21-Mar-2005) Finished : /sbin/mkfs.ext3 -F /var/xen/domains/tester/disk.img Done Executing : mount -t ext3 -o loop /var/xen/domains/tester/disk.img /tmp/cBqnLFrOda Finished : mount -t ext3 -o loop /var/xen/domains/tester/disk.img /tmp/cBqnLFrOda Executing : /bin/mount Finished : /bin/mount Copying files from host to image. Executing : mkdir -p /tmp/cBqnLFrOda/var/cache/apt/archives Finished : mkdir -p /tmp/cBqnLFrOda/var/cache/apt/archives Done Running debootstrap to install the system. This will take a while! Executing : debootstrap sarge /tmp/cBqnLFrOda http://mirror.direct.ca/linux/debian/ Finished Caching debootstrap files to the host system Done Running hooks from : /etc/xen-tools/hook.d/ Running hook: 10-disable-tlsExecuting : /etc/xen-tools/hook.d/10-disable-tls /tmp/cBqnLFrOda Finished : /etc/xen-tools/hook.d/10-disable-tls /tmp/cBqnLFrOda - done. Running hook: 20-setup-aptExecuting : /etc/xen-tools/hook.d/20-setup-apt /tmp/cBqnLFrOda chroot: cannot run command `/usr/bin/apt-get': No such file or directory Finished : /etc/xen-tools/hook.d/20-setup-apt /tmp/cBqnLFrOda - done. Running hook: 30-fix-inittabExecuting : /etc/xen-tools/hook.d/30-fix-inittab /tmp/cBqnLFrOda Finished : /etc/xen-tools/hook.d/30-fix-inittab /tmp/cBqnLFrOda - done. Running hook: 40-setup-networkingExecuting : /etc/xen-tools/hook.d/40-setup-networking /tmp/cBqnLFrOda /etc/xen-tools/hook.d/40-setup-networking: line 18: /tmp/cBqnLFrOda/etc/network/interfaces: No such file or directory Finished : /etc/xen-tools/hook.d/40-setup-networking /tmp/cBqnLFrOda - done. Running hook: 50-setup-hostnameExecuting : /etc/xen-tools/hook.d/50-setup-hostname /tmp/cBqnLFrOda Finished : /etc/xen-tools/hook.d/50-setup-hostname /tmp/cBqnLFrOda - done. Running hook: 55-create-devExecuting : /etc/xen-tools/hook.d/55-create-dev /tmp/cBqnLFrOda /etc/xen-tools/hook.d/55-create-dev: line 22: ./MAKEDEV: No such file or directory Finished : /etc/xen-tools/hook.d/55-create-dev /tmp/cBqnLFrOda - done. Running hook: 60-copy-host-filesExecuting : /etc/xen-tools/hook.d/60-copy-host-files /tmp/cBqnLFrOda cat: /etc/resolv.conf: input file is output file chroot: cannot run command `/usr/bin/apt-get': No such file or directory Finished : /etc/xen-tools/hook.d/60-copy-host-files /tmp/cBqnLFrOda - done. Running hook: 70-install-sshExecuting : /etc/xen-tools/hook.d/70-install-ssh /tmp/cBqnLFrOda chroot: cannot run command `/usr/bin/apt-get': No such file or directory chroot: cannot run command `/etc/init.d/ssh': No such file or directory Finished : /etc/xen-tools/hook.d/70-install-ssh /tmp/cBqnLFrOda - done. Running hook: 80-install-modulesExecuting : /etc/xen-tools/hook.d/80-install-modules /tmp/cBqnLFrOda chroot: cannot run command `/usr/bin/apt-get': No such file or directory Finished : /etc/xen-tools/hook.d/80-install-modules /tmp/cBqnLFrOda - done. Running hook: 90-make-fstabExecuting : /etc/xen-tools/hook.d/90-make-fstab /tmp/cBqnLFrOda Finished : /etc/xen-tools/hook.d/90-make-fstab /tmp/cBqnLFrOda - done. Running hook: 95-create-cfgExecuting : /etc/xen-tools/hook.d/95-create-cfg /tmp/cBqnLFrOda Finished : /etc/xen-tools/hook.d/95-create-cfg /tmp/cBqnLFrOda - done. Running hook: 99-clean-imageExecuting : /etc/xen-tools/hook.d/99-clean-image /tmp/cBqnLFrOda chroot: cannot run command `/usr/bin/apt-get': No such file or directory Finished : /etc/xen-tools/hook.d/99-clean-image /tmp/cBqnLFrOda - done. Done Setting root passwd: passwd: Permission denied Executing : umount /tmp/cBqnLFrOda Finished : umount /tmp/cBqnLFrOda New Image Created ----------------- To make any manual tweaks to the setup of tester please run: mkdir /mnt/tmp mount -t ext3 -o loop /var/xen/domains/tester/disk.img /mnt/tmp chroot /mnt/tmp /bin/bash # make your changes exit umount /mnt/tmp Once completed you may start your new instance of Xen with: xm create tester.cfg -c -- xen-create-image Pass 2 with fixed resolv.conf: root~# xen-create-image --ip=X.X.X.X --host=tester --debug General Infomation -------------------- Hostname : tester Distribution : sarge Fileystem Type : ext3 Size Information ---------------- Image size : 2048k Swap size : 128 Memory size : 64 Kernel Path : /boot/xen-linux-2.6.12.6-xenu Networking Information ---------------------- IP Address : X.X.X.X Netmask : 255.255.255.0 Gateway : X.X.X.X Creating swapfile : /var/xen/domains/tester/swap.img Executing : /bin/dd if=/dev/zero of=/var/xen/domains/tester/swap.img bs=1024k count=128 128+0 records in 128+0 records out 134217728 bytes transferred in 2.716687 seconds (49404929 bytes/sec) Finished : /bin/dd if=/dev/zero of=/var/xen/domains/tester/swap.img bs=1024k count=128 Executing : /sbin/mkswap /var/xen/domains/tester/swap.img Finished : /sbin/mkswap /var/xen/domains/tester/swap.img Done Creating disk image: /var/xen/domains/tester/disk.img Executing : /bin/dd if=/dev/zero of=/var/xen/domains/tester/disk.img bs=2048k count=0 seek=1024 0+0 records in 0+0 records out 0 bytes transferred in 0.000446 seconds (0 bytes/sec) Finished : /bin/dd if=/dev/zero of=/var/xen/domains/tester/disk.img bs=2048k count=0 seek=1024 Done Creating ext3 filesystem Executing : /sbin/mkfs.ext3 -F /var/xen/domains/tester/disk.img mke2fs 1.37 (21-Mar-2005) Finished : /sbin/mkfs.ext3 -F /var/xen/domains/tester/disk.img Done Executing : mount -t ext3 -o loop /var/xen/domains/tester/disk.img /tmp/0Cc0SdoRGJ Finished : mount -t ext3 -o loop /var/xen/domains/tester/disk.img /tmp/0Cc0SdoRGJ Executing : /bin/mount Finished : /bin/mount Copying files from host to image. Executing : mkdir -p /tmp/0Cc0SdoRGJ/var/cache/apt/archives Finished : mkdir -p /tmp/0Cc0SdoRGJ/var/cache/apt/archives Done Running debootstrap to install the system. This will take a while! Executing : debootstrap sarge /tmp/0Cc0SdoRGJ http://mirror.direct.ca/linux/debian/ Finished Caching debootstrap files to the host system Done Running hooks from : /etc/xen-tools/hook.d/ Running hook: 10-disable-tlsExecuting : /etc/xen-tools/hook.d/10-disable-tls /tmp/0Cc0SdoRGJ Finished : /etc/xen-tools/hook.d/10-disable-tls /tmp/0Cc0SdoRGJ - done. Running hook: 20-setup-aptExecuting : /etc/xen-tools/hook.d/20-setup-apt /tmp/0Cc0SdoRGJ chroot: cannot run command `/usr/bin/apt-get': No such file or directory Finished : /etc/xen-tools/hook.d/20-setup-apt /tmp/0Cc0SdoRGJ - done. Running hook: 30-fix-inittabExecuting : /etc/xen-tools/hook.d/30-fix-inittab /tmp/0Cc0SdoRGJ Finished : /etc/xen-tools/hook.d/30-fix-inittab /tmp/0Cc0SdoRGJ - done. Running hook: 40-setup-networkingExecuting : /etc/xen-tools/hook.d/40-setup-networking /tmp/0Cc0SdoRGJ /etc/xen-tools/hook.d/40-setup-networking: line 18: /tmp/0Cc0SdoRGJ/etc/network/interfaces: No such file or directory Finished : /etc/xen-tools/hook.d/40-setup-networking /tmp/0Cc0SdoRGJ - done. Running hook: 50-setup-hostnameExecuting : /etc/xen-tools/hook.d/50-setup-hostname /tmp/0Cc0SdoRGJ Finished : /etc/xen-tools/hook.d/50-setup-hostname /tmp/0Cc0SdoRGJ - done. Running hook: 55-create-devExecuting : /etc/xen-tools/hook.d/55-create-dev /tmp/0Cc0SdoRGJ /etc/xen-tools/hook.d/55-create-dev: line 22: ./MAKEDEV: No such file or directory Finished : /etc/xen-tools/hook.d/55-create-dev /tmp/0Cc0SdoRGJ - done. Running hook: 60-copy-host-filesExecuting : /etc/xen-tools/hook.d/60-copy-host-files /tmp/0Cc0SdoRGJ chroot: cannot run command `/usr/bin/apt-get': No such file or directory Finished : /etc/xen-tools/hook.d/60-copy-host-files /tmp/0Cc0SdoRGJ - done. Running hook: 70-install-sshExecuting : /etc/xen-tools/hook.d/70-install-ssh /tmp/0Cc0SdoRGJ chroot: cannot run command `/usr/bin/apt-get': No such file or directory chroot: cannot run command `/etc/init.d/ssh': No such file or directory Finished : /etc/xen-tools/hook.d/70-install-ssh /tmp/0Cc0SdoRGJ - done. Running hook: 80-install-modulesExecuting : /etc/xen-tools/hook.d/80-install-modules /tmp/0Cc0SdoRGJ chroot: cannot run command `/usr/bin/apt-get': No such file or directory Finished : /etc/xen-tools/hook.d/80-install-modules /tmp/0Cc0SdoRGJ - done. Running hook: 90-make-fstabExecuting : /etc/xen-tools/hook.d/90-make-fstab /tmp/0Cc0SdoRGJ Finished : /etc/xen-tools/hook.d/90-make-fstab /tmp/0Cc0SdoRGJ - done. Running hook: 95-create-cfgExecuting : /etc/xen-tools/hook.d/95-create-cfg /tmp/0Cc0SdoRGJ Finished : /etc/xen-tools/hook.d/95-create-cfg /tmp/0Cc0SdoRGJ - done. Running hook: 99-clean-imageExecuting : /etc/xen-tools/hook.d/99-clean-image /tmp/0Cc0SdoRGJ chroot: cannot run command `/usr/bin/apt-get': No such file or directory Finished : /etc/xen-tools/hook.d/99-clean-image /tmp/0Cc0SdoRGJ - done. Done Setting root passwd: passwd: Permission denied Executing : umount /tmp/0Cc0SdoRGJ Finished : umount /tmp/0Cc0SdoRGJ New Image Created ----------------- To make any manual tweaks to the setup of tester please run: mkdir /mnt/tmp mount -t ext3 -o loop /var/xen/domains/tester/disk.img /mnt/tmp chroot /mnt/tmp /bin/bash # make your changes exit umount /mnt/tmp Once completed you may start your new instance of Xen with: xm create tester.cfg -c Hope that helps. Let me know if I can be of further assistance. cheers, Ian. On Mon, 2006-03-20 at 16:01 +0000, Steve Kemp wrote: > Would you mind repeating the command with '--debug' ? > > The failure at the bottom seems significant, but I'll need to > investigate this more: > > Setting root passwd: > passwd: Permission denied > > Steve -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]