[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#560348: xen: racy temporary files for kernel and initrd



Am Dienstag, den 10.08.2010, 15:10 +0100 schrieb Ian Campbell:
> On Tue, 2010-08-10 at 15:40 +0200, Paul Menzel wrote:
> > Am Montag, den 21.12.2009, 09:19 +0000 schrieb Ian Campbell:
> > > On Fri, 2009-12-11 at 11:30 +0100, Ferenc Wagner wrote:
> > > > 
> > > > The guest is the Debian Installer daily image, you surely know it much
> > > > better than I do. :)  The host is a Lenny system with the Etch kernel:
> > 
> > I am using Lenny with a standard Lenny kernel.
> > 
> > $ uname -a
> > Linux hostname 2.6.26-2-xen-amd64 #1 SMP Wed Mar 10 00:29:48 UTC 2010 x86_64 GNU/Linux
> > 
> > > I think the issue is with the host's Xen utilities rather than the
> > > Debian Installer image which makes it tricky to fix in Lenny. I believe
> > > it works with the Xen utilities in Squeeze.
> > 
> > Should this bug be reassigned then?
> > 
> > > For Lenny you could workaround by downloading the kernel and ramdisk
> > > locally and use the install-kernel= and install-ramdisk= options to
> > > xm-debian.cfg, or if you have a local mirror you could just use
> > > install-installer=.
> > 
> > Unfortunately that work-around does not work for me.
> > 
> >         $ ls -l /tmp/{vmlinuz,initrd.gz}
> >         -rw-r--r-- 1 user user 17859729 2010-08-10 10:05 /tmp/initrd.gz
> >         -rw-r--r-- 1 user user  2351776 2010-08-10 10:05 /tmp/vmlinuz
> >         $ sudo xm create /tmp/xm-debian.cfg install=true install-mirror=ftp://ftp.de.debian.org/debian install-installer=http://people.debian.org/~joeyh/d-i/images/daily/ install-suite=squeeze install-kernel=/tmp/vmlinuz install-ramdisk=/tmp/initrd.gz
> >         Using config file "/tmp/xm-debian.cfg".
> >         Install Mirror: ftp://ftp.de.debian.org/debian
> >         Install Suite: squeeze
> >         Installer: http://people.debian.org/~joeyh/d-i/images/daily/
> >         
> >         WARNING: Installer kernel and ramdisk are not authenticated.
> >         
> >         Fetching /tmp/vmlinuz
> >         Fetching /tmp/initrd.gz
> >         command line is "debian-installer/exit/always_halt=true -- quiet console=hvc0"
> >         Error: Kernel image does not exist: /tmp/vmlinuz
> > 
> > Do you have any ideas?
> 
> It's not clear looking back over the bug that anyone ever actually tried
> the workaround, rather than hypothesising it. Unfortunately I don't have
> a suitable Lenny system to hand.
> 
> You could try "install-kernel=file:///...."

That did not work either.

        […]
        Fetching file:///tmp/vmlinuz
        Fetching file:///tmp/initrd.gz
        command line is "debian-installer/exit/always_halt=true -- quiet
        console=hvc0"
        Error: Kernel image does not exist: /tmp/vmlinuz

> Alternatively you can always use your own configuration file (like you
> would for a non-Debian domain) with none of this "clever" stuff in it,
> i.e. just set kernel= and ramdisk= to static paths to run the installer
> and then change it to use bootloader=pygrub afterwards. e.g. I often use
> as a template:
> 
>         #  -*- mode: python; -*-
>         
>         bootloader = "/usr/bin/pygrub"
>         
>         vcpus = 2
>         
>         memory = 128
>         
>         name = "d32-1"
>         vif = [ 'mac=00:16:3E:74:34:76' ]
>         disk = ['phy:/dev/VG/debian-x86_32-1,xvda,w']
>         
>         hostname = "debian-1"
>         
>         tsc_mode=2
>         extra = "xencons=hvc console=hvc0 ro root=/dev/xvda1" #
>         
>         # Install...
>         #extra = "debian-installer/exit/always_halt=true -- " + extra
>         #kernel = "/scratch/lenny/i386/vmlinuz"
>         #ramdisk = "/scratch/lenny/i386/initrd.gz"
> 
> and uncomment the 3 lines at the end to do installs then recomment them
> afterwards.

Thank you for your suggestion. Unfortunately I get the following error
message.

        $ sudo xm create /tmp/squeeze.cfg
        Using config file "/tmp/squeeze.cfg".
        Error: Boot loader didn't return any data!
        $ ls -l /usr/bin/pygrub 
        lrwxrwxrwx 1 root root 29 2010-06-15 10:51 /usr/bin/pygrub -> /usr/lib/xen-3.2-1/bin/pygrub
        $ dpkg -S /usr/lib/xen-3.2-1/bin/pygrub 
        xen-utils-3.2-1: /usr/lib/xen-3.2-1/bin/pygrub
        $ dpkg -l xen-utils-3.2-1
        ii  xen-utils-3.2- 3.2.1-2        XEN administrative tools

But reading [1] and your comment before I commented the bootloader line
too.

        $ grep vmlinuz /tmp/squeeze.cfg 
        kernel = "/tmp/vmlinuz"
        $ sudo xm create /tmp/squeeze.cfg
        Using config file "/tmp/squeeze.cfg".
        Error: Kernel image does not exist: /tmp/vmlinuz

Do you have any idea? This is with the daily Debian Installer files from
[2].

[…]


Thanks,

Paul


[1] http://wiki.xensource.com/xenwiki/PyGrub
[2] http://people.debian.org/~joeyh/d-i/images/daily/netboot/xen/

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: