>
> Well, the problem is that I wanted to add network to the booting options.
> I want to PXE boot the VM.
>

qvm-prefs the-vm kernelopts 'your kernel options here'

You might need to also edit the QEMU command-line if you're using HVM, e.g.
in case PXE is not activated in the BIOS. It is fairly difficult to do so,
I used this hack to switch the disks from SCSI to IDE:

# From:
https://github.com/QubesOS/qubes-issues/issues/4321#issuecomment-423011787
# and:
https://github.com/QubesOS/qubes-issues/issues/3494#issuecomment-427698388

sudo cp -i /usr/lib/xen/boot/stubdom-linux-rootfs
/usr/lib/xen/boot/stubdom-linux-rootfs.bak-"$(date +%s)"
mkdir stubroot
cd stubroot
# unpack:
zcat /usr/lib/xen/boot/stubdom-linux-rootfs | cpio -i -d -H newc
--no-absolute-filenames
nano init # make your changes here. The blunt way is to use sed to
edit/append options in $dm_args just before the IFS=$'\x1b' which precedes
the actual call to qemu.
# repack:
find . -print0 | cpio --null -ov --format=newc | gzip -9 | sudo tee
/usr/lib/xen/boot/stubdom-linux-rootfs > /dev/null

Cheers,
Georges Dupéron

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/CAKQnwqaZauH36RfeHXL259ry_O6xSehxw%3DO16bNm3j7%2Bk_09pg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to