From 01e2e65c42fa77b8c005296aa892af0e0cb64a87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Sj=C3=B6lund?= Date: Sun, 7 Jun 2026 22:16:36 +0200 Subject: [PATCH] provisioning (applehv): expand image and CoW tip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Erik Sjölund Co-authored-by: Timothée Ravier Signed-off-by: Erik Sjölund --- modules/ROOT/pages/provisioning-applehv.adoc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/modules/ROOT/pages/provisioning-applehv.adoc b/modules/ROOT/pages/provisioning-applehv.adoc index 222f12e3..0ee71806 100644 --- a/modules/ROOT/pages/provisioning-applehv.adoc +++ b/modules/ROOT/pages/provisioning-applehv.adoc @@ -35,6 +35,16 @@ This section shows how to boot a new VM with vfkit. Vfkit is known to work with Fetch the latest image suitable for your target stream (or https://fedoraproject.org/coreos/download/[download and verify] it from the web). Remember to download the appropriate image based on the architecture of your Mac. Once downloaded, you will also need to decompress the image. +TIP: If you want to keep a copy of the image file, use `cp` with the `-c` flag. + +[source, bash] +``` +cp -c image.raw image.raw.original +``` + +This copies the file using clonefile(2), thus creating a Copy-on-Write (CoW) clone of the file. +Less disk space will be used for storing the file `image.raw.original`. + === Setting up a new VM Vfkit is not a stateful virtual machine framework. You simply need to run the vfkit binary to start a virtual machine. The following command line will launch a VM with: @@ -73,3 +83,13 @@ When FCOS is completed booting, you will see the IP address of the VM displayed ---- ssh core@192.168.64.5 ---- + +=== Increasing disk size + +To have more free disk space available inside the image, you can increase the size of the image after downloading it. + +.Increase the size of the disk image by 10 GB +[source, bash] +``` +truncate -c -s +10G image.raw +```