#1137464 virt-install fails with utf-8 ValueError invalid start byte

#1137464#5
Date:
2026-05-24 05:56:52 UTC
From:
To:
Dear Maintainer,

virt-install fails with

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 10:
invalid start byte

/usr/bin/virt-install --name debug-virt-installer --disk size=20 --cdrom
~/Downloads/debian-13.5.0-amd64-netinst.iso

pretty early on: I guess when it builds a configuration for the VM it is
supposed to create

I did some debugging:
- existing disk image fails in the same way (--import)
- (not) specifying osinfo doesn't change anything
- checked all files it opens (strace --trace file -f) whether byte 10 is 0xfc:
none do.
- the storage pool locations all have ascii paths
- ran with pdb: with pdb, but without debug, the first UnicodeDecodeError
either doesn't occur or is caught.
- ran with LANG=C

I guess this is in either my setup or debian, because I couldn't find bug
report on the internet