~alpine/users

QEMU + netboot kernel and access to hda

Marvin Preuss <marvin@xsteadfastx.org>
Details
Message ID
<20210604081937.GA13830@xsteadfastx.org>
DKIM signature
missing
Download raw message
Hi,

im experementing with a really strange setup of mine :) i want to run
qemu in a docker container to create some raspberrypi sd card images
without priviliged mode.

i want to build myself a alpine qcow2 virtual hd in a automatic way in
my drone ci. if i download the netboot files and it like this:

        qemu-system-x86_64 -nographic -kernel boot/vmlinuz-virt -initrd boot/initramfs-virt  -append "console=ttyS0 ip=dhcp alpine_repo=http://dl-cdn.alpinelinux.org/alpine/edge/main/" -hda alpine.qcow2

a `fdisk -l` shows me nothing after the boot.

even if in the boot message i get this:

        [    1.797984] ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100
        [    1.798310] ata1.00: 16777216 sectors, multi 16: LBA48
        [    1.801441] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
        [    1.825231] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
        [    1.835673] scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     2.5+ PQ: 0 ANSI: 5
        [    2.549378] tsc: Refined TSC clocksource calibration: 2304.055 MHz

Anyone with a idea?

~marv
Reply to thread Export thread (mbox)