This lets us free up the space allocated for the partition and gives us dynamically allocated space for boot data like we have with the rest of the operating system. We do not do this for s390x because zipl does not support it. Reference: https://fedoraproject.org/wiki/Changes/BtrfsBootForCloud
78 lines
3.1 KiB
XML
78 lines
3.1 KiB
XML
<image>
|
|
<profiles>
|
|
<profile name="VagrantCore" description="Vagrant core packages">
|
|
<requires profile="CloudCore"/>
|
|
</profile>
|
|
<profile name="Cloud-Base-Vagrant-libvirt" description="Vagrant Base guest image for libvirt">
|
|
<requires profile="VagrantCore"/>
|
|
</profile>
|
|
<profile name="Cloud-Base-Vagrant-VirtualBox" description="Vagrant Base guest image for VirtualBox">
|
|
<requires profile="VagrantCore"/>
|
|
</profile>
|
|
</profiles>
|
|
<preferences profiles="Cloud-Base-Vagrant-libvirt" arch="x86_64,aarch64">
|
|
<type image="oem" format="vagrant"
|
|
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"
|
|
kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8"
|
|
devicepersistency="by-uuid"
|
|
bootpartition="false" efipartsize="100" firmware="uefi"
|
|
rootfs_label="fedora"
|
|
>
|
|
<bootloader name="grub2" bls="true" console="serial" timeout="1"/>
|
|
<size unit="G">5</size>
|
|
<vagrantconfig provider="libvirt" virtualsize="5"/>
|
|
<systemdisk>
|
|
<volume name="@root=root"/>
|
|
<volume name="boot" parent="/"/>
|
|
<volume name="home" parent="/"/>
|
|
<volume name="var" parent="/"/>
|
|
</systemdisk>
|
|
<oemconfig>
|
|
<oem-resize>false</oem-resize>
|
|
</oemconfig>
|
|
</type>
|
|
</preferences>
|
|
<preferences profiles="Cloud-Base-Vagrant-VirtualBox" arch="x86_64">
|
|
<type image="oem" format="vagrant"
|
|
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"
|
|
kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8"
|
|
devicepersistency="by-uuid"
|
|
bootpartition="false" efipartsize="100" firmware="uefi"
|
|
rootfs_label="fedora"
|
|
>
|
|
<bootloader name="grub2" bls="true" console="serial" timeout="1"/>
|
|
<size unit="G">5</size>
|
|
<vagrantconfig provider="virtualbox" virtualbox_guest_additions_present="true" virtualsize="5"/>
|
|
<systemdisk>
|
|
<volume name="@root=root"/>
|
|
<volume name="boot" parent="/"/>
|
|
<volume name="home" parent="/"/>
|
|
<volume name="var" parent="/"/>
|
|
</systemdisk>
|
|
<oemconfig>
|
|
<oem-resize>false</oem-resize>
|
|
</oemconfig>
|
|
</type>
|
|
</preferences>
|
|
<users profiles="VagrantCore">
|
|
<!-- Standard password for the vagrant user, used by all images -->
|
|
<user name="vagrant" groups="vagrant" password="vagrant" home="/home/vagrant" pwdformat="plain" />
|
|
<user password="$1$wYJUgpM5$RXMMeASDc035eX.NbYWFl0" home="/root" name="root" groups="root"/>
|
|
</users>
|
|
<packages type="image" patternType="plusRecommended" profiles="VagrantCore">
|
|
<package name="rsync"/>
|
|
<package name="fuse-sshfs"/>
|
|
<package name="gdisk"/>
|
|
<package name="glibc-langpack-en"/>
|
|
</packages>
|
|
<packages type="image" patternType="plusRecommended" profiles="Cloud-Base-Vagrant-libvirt">
|
|
<package name="qemu-guest-agent"/>
|
|
</packages>
|
|
<packages type="image" patternType="plusRecommended" profiles="Cloud-Base-Vagrant-VirtualBox">
|
|
<package name="virtualbox-guest-additions"/>
|
|
</packages>
|
|
<packages type="uninstall" profiles="VagrantCore">
|
|
<package name="cloud-init"/>
|
|
</packages>
|
|
</image>
|