[xen-tools] Re: Problem's setting up new machines

Steve Kemp steve at steve.org.uk
Thu Jun 22 10:42:59 CEST 2006


On Thu, Jun 22, 2006 at 10:37:21AM +0200, mirco.schmidt at mac.com wrote:

> >>>---cut
> >>>#  This is the command we'll run
> >>>    #
> >>>    my $command = "/usr/sbin/debootstrap $VERBOSE $CONFIG{'dist'}
> >>>$CONFIG{'location'} $CONFIG{'mirror'} --arch i386";
> >>>---cut

> I tried to add "2>/tmp/stderr.log >/tmp/stdout.log" to my default  
> command:
> 
> xen-create-image --hostname=intranet --ip=192.168.115.17 --verbose 2>/ 
> tmp/stderr.log >/tmp/stdout.log

  No, I meant add that to the debootstrap command which is contained
 in /usr/bin/xt-install-image:

   my $command = "/usr/sbin/debootstrap $VERBOSE $CONFIG{'dist'} $CONFIG{'location'} $CONFIG{'mirror'} --arch i386 2>/tmp/stderr.log >/stderr.log";

  Then run:

    xen-create-image --verbose ...

  (You need the --verbose flag when running xen-create-image otherwise
 stdout + stderr will get modified when external commands are executed).

  This way you can see the output which debootstrap generates.

  An alternative would be to run "debootstrap --keep-debootstrap-dir .."
 then look in the new image in /debootstrap/debootstrap.log to see more
 details.

> /usr/sbin/debootstrap --arch i386 --verbose sarge /xen/domains/test  http://ftp2.de.debian.org/debian/
> all went fine.

  That is strange, running it under the script shouldn't be different
 than running it as a normal user.  

Steve
-- 





More information about the xen-tools-discuss mailing list