Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #202215

Re: Installing Debian with preseed file using qemu

From Reco <recoverym4n@enotuniq.net>
Newsgroups linux.debian.user
Subject Re: Installing Debian with preseed file using qemu
Date 2018-11-07 07:30 +0100
Message-ID <wRpvH-3fi-1@gated-at.bofh.it> (permalink)
References <wRadk-2x2-17@gated-at.bofh.it> <wRb9o-35R-9@gated-at.bofh.it> <wRc5s-3EH-9@gated-at.bofh.it> <wRfwl-5xs-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


	Hi.

On Tue, Nov 06, 2018 at 08:44:08PM +0100, john doe wrote:
> On 11/6/2018 5:05 PM, john doe wrote:
> > On 11/6/2018 4:02 PM, Reco wrote:
> >> 	Hi.
> >>
> >> On Tue, Nov 06, 2018 at 03:04:25PM +0100, john doe wrote:
> >>> Hi,
> >>>
> >>> I'm trying to install Debian Stretch using a preseeding file.
> >>> All of this is with Qemu and  I'm not sure how  to pass the path of the
> >>> preseed file:
> >>>
> >>> qemu-system-x86_64 -drive file=debian.img,format=raw -cdrom
> >>> debian-9.5.0-amd64-netinst.iso -boot d -nographic -kernel vmlinuz
> >>> -append "console=ttyS0,115200n8 auto=true priority=critical
> >>> DEBIAN_FRONTEND=text preseed=preseed.cfg" -initrd initrd.gz
> >>>
> >>> The d-i can not find the preseed.cfg file, as anyone has any idea on how
> >>> I can install Debian with a preseed file using qemu?
> >>
> >> Since you do not specify "-net", that means "-net user".
> >> As [1] shows us, "-net user" comes with built-in TFTP server.
> >>
> >> So, you either replace your "-kernel", "-initrd" and "-append" with TFTP
> >> invocation, and install Debian as if it was installed from TFTP.
> >> Or rebuild d-i initrd to include your preseed.cfg.
> >>
> > 
> > Thank you, I didn't think to install debian using PXE with qemu acting
> > as tftp server.
> > 
> 
> Ok -- I have downloaded/extracted netboot.tar.gz and I use the following
> command:
> 
> "qemu-system-x86_64" -drive file=debian.img,format=raw -m 8126 -accel
> hax   -machine q35 -boot n -device e1000,netdev=n1 -netdev
> user,id=n1,tftp=$PWD,bootfile=/pxelinux.0 -nographic
> 
> I get the error "could not read the boot disk".
> 
> Any thoughts on what I'm missing?

Both tcpdump and strace outputs? I know, I know ;)

This does not look right; "bootfile=/pxelinux.0".
You're assumed to have pxelinux binary, its libraries, pxelinux.cfg, etc
in the same directory, and to point QEMU there.

Reco

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Installing Debian with preseed file using qemu john doe <johndoe65534@mail.com> - 2018-11-06 15:10 +0100
  Re: Installing Debian with preseed file using qemu Reco <recoverym4n@enotuniq.net> - 2018-11-06 16:10 +0100
    Re: Installing Debian with preseed file using qemu john doe <johndoe65534@mail.com> - 2018-11-06 17:10 +0100
      Re: Installing Debian with preseed file using qemu john doe <johndoe65534@mail.com> - 2018-11-06 20:50 +0100
        Re: Installing Debian with preseed file using qemu Reco <recoverym4n@enotuniq.net> - 2018-11-07 07:30 +0100
          Re: Installing Debian with preseed file using qemu john doe <johndoe65534@mail.com> - 2018-11-07 14:30 +0100
            Re: Installing Debian with preseed file using qemu Reco <recoverym4n@enotuniq.net> - 2018-11-07 15:00 +0100
              Re: Installing Debian with preseed file using qemu john doe <johndoe65534@mail.com> - 2018-11-09 07:20 +0100

csiph-web