qemu-s390x
[Top][All Lists]
Advanced

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

Re: [PATCH for-9.2 00/10] s390: Convert virtio-ccw, cpu to three-phase r


From: Peter Maydell
Subject: Re: [PATCH for-9.2 00/10] s390: Convert virtio-ccw, cpu to three-phase reset, and followup cleanup
Date: Thu, 29 Aug 2024 16:08:25 +0100

On Thu, 29 Aug 2024 at 15:44, Nico Boehr <nrb@linux.ibm.com> wrote:
>
> Quoting Peter Maydell (2024-08-29 15:35:30)
> > On Thu, 29 Aug 2024 at 14:26, Nico Boehr <nrb@linux.ibm.com> wrote:
> > >
> > > Quoting Peter Maydell (2024-08-29 15:09:44)
> > > > Thanks. I tried this repro, but mkosi falls over almost
> > > > immediately:
> >
> > > In the meantime, looks like mkosi is trying to create an block image, but
> > > that's not what it's configured to do; are you sure mkosi.conf is in the
> > > same directory you're calling it from?
> >
> > It is. I notice however that the manpage for mkosi
> > says that it looks for "mkosi.default", not "mkosi.conf".
> > Maybe it needs a newer mkosi than Ubuntu ships?
> > (mkosi --version says "mkosi 12".)
>
> Likely. I have mkosi 22 here.
>
> > I'll use the images Cédric has kindly generated.
>
> Thanks, images by Cédric look good, but I forgot to tell you that
> you need a SSH key for login too :)
>
> You could unpack image.cpio.gz, add your key to root/.ssh and repack the
> whole thing to image.new.xz:
> - mkdir xtract && cd xtract
> - unxz < ../image.cpio.xz | cpio -H newc -iv
> - cp ~/.ssh/authorized_keys root/.ssh/
> - find . 2>/dev/null | cpio -o -c -R root:root | xz -9 --format=lzma > 
> ../image.new.xz

Thanks, I was just wondering how to get the ssh key into there.

I found I needed ...  cpio -H newc -o -R root:root | xz -9 -C crc32
when creating the new image, otherwise the kernel doesn't
like the format. (Also since I'm not root I needed to
sprinkle in some sudo invocations.)

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]