I don’t think you should be mounting
/dev/xvdi. You are correct in using the
/dev/xvdi device – that would be the first “attached” block device for a domain. But I think, for the use case you’re describing, you need to
dd on to
/dev/xvdi directly, without mounting it. Something like:
dd of=/dev/xvdi if=/path/to/iso ...
dd is quite risky because it would overwrite the disk straight away, without any warnings. You might also want to look into a more user-friendly option, e.g. Balena Etcher. I have used both Balena Etcher and
dd successfully to create bootable USBs (from