install from hd img (not iso)

CarlFK

New Member
Sep 20, 2022
12
0
1
Code:
wget https://deb.debian.org/debian/dists/bookworm/main/installer-amd64/current/images/hd-media/boot.img.gz
gunzip boot.img.gz

file boot.img 
boot.img: DOS/MBR boot sector, code offset 0x58+2, OEM-ID "SYSLINUX", sectors/cluster 8, Media descriptor 0xf8, sectors/track 63, heads 32, sectors 1953063 (volumes > 32 MB), FAT (32 bit), sectors/FAT 1904, serial number 0xdeb00001, label: "Debian Inst"

qemu-system-x86_64 boot.img

this 'works' (it boots the installer. I didn't give it a disk to install to, but the point is the installer boots.)

When I put that URL/image into proxmox, it doesn't boot. "not bootable disk" which I am sure because it is expecting an iso, not a fat fs on a disk image.

I want to use that image because it is easy to mount and edit syslinux.cfg (so I can add the following line:

APPEND --- debconf/priority=high auto=true netcfg/dhcp_timeout=60 fb=false hostname?=base url=video-setup.debian.net hw-detect/load_firmware=false

I can see the qemu parameters that specifies media=cdrom, but I don't see a way to change that.

Is there an advanced option somewhere that will let me augment the qemu parameters?
 
Code:
 etc/pve/local/qemu-server$ sudo cat 101.conf 
boot: order=scsi0;ide2;net0
cores: 1
cpu: x86-64-v2-AES
ide2: local:iso/boot.img,media=cdrom,size=976560K
memory: 2048
meta: creation-qemu=8.1.5,ctime=1707762870
name: boot.img
net0: virtio=BC:24:11:0C:4D:77,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: local:101/vm-101-disk-0.qcow2,iothread=1,size=32G
scsihw: virtio-scsi-single
smbios1: uuid=a8498151-807f-42a2-9f74-06767b739c49
sockets: 1
vmgenid: 360ce4f3-5b65-4539-a327-b9acb85e25b5