coreos / fedora-coreos-docs

Documentation for Fedora CoreOS
https://docs.fedoraproject.org/en-US/fedora-coreos/
Other
50 stars 121 forks source link

libvirt.adoc: add note about `DISK_GB` #510

Closed HuijingHei closed 1 year ago

HuijingHei commented 1 year ago

NOTE: DISK_GB should be >= OS image size, if failed to boot with dev-disk-by\x2dlabel-boot.device: Job dev-disk-by\x2dlabel-boot. device/start timed out., when you get emergency shell, run sgdisk -p /dev/vda to check the partition table.

travier commented 1 year ago

We're currently using 10 GB for disk size so you can not use anything smaller as that would just truncate the disk: https://github.com/coreos/fedora-coreos-config/blob/testing-devel/image-base.yaml#L4

travier commented 1 year ago

Maybe we should mention that 10 GB is the minimum here instead?

HuijingHei commented 1 year ago

Actually 10G works for fedora-coreos. The problem is when I try rhcos, the default image size is 16G (define in https://github.com/openshift/os/blob/master/image-rhel-8.6.yaml#L2), which always makes the VM failed to boot if using 10G. Add note to remind that the disk size should not be smaller than OS image size.

travier commented 1 year ago

OK, but this is the Fedora CoreOS docs, so let's word that differently.