Sample Header Ad - 728x90

mount errors of /dev/vda when running virt-install with --inject-initrd option

1 vote
0 answers
27 views
I'm trying to automate installation of a debian machine with a preseed configuration file and despite a few hiccups here and there it seems to work. I am confused though why adding --inject-initrd makes the installer throw these errors:
conf
mount: mounting /dev/vda on /media failed: Invalid argument
umount: can't unmount /media: Invalid argument
mount: mounting /dev/fd0 on /media failed: No such file or directory
umount: can't unmount /media: Invalid argument
Installation then continues fine, but I can't understand why these errors come up. They don't show up when there is no --inject-initrd option any ideas would be appreciated, I've tried adding --debug option, but it didn't reveal anything full command:
virt-install --name  --vcpus=8 --memory=20000 --disk size=400 --network network= --location=/tmp/debian-12.11.0-amd64-netinst.iso --os-variant=debian11 --graphics none --initrd-inject ./preseed.cfg --extra-args "console=ttyS0" --debug
Asked by Daniel Krajnik (371 rep)
Jun 3, 2025, 08:51 PM