Skip to content

provisioning (applehv): expand image and CoW tip#804

Open
eriksjolund wants to merge 1 commit into
coreos:mainfrom
eriksjolund:applehv-disk-expansion
Open

provisioning (applehv): expand image and CoW tip#804
eriksjolund wants to merge 1 commit into
coreos:mainfrom
eriksjolund:applehv-disk-expansion

Conversation

@eriksjolund

Copy link
Copy Markdown
Contributor

Add info about how to expand the image with truncate

Add tip about using cp -c to save disk space

Rationale

I think the information could be useful.

Some extra info that is not included in the PR:
This how I usually handle an image file.

  1. Download image.raw.gz
  2. Uncompress
    gunzip image.raw.gz
    
  3. Create dir
    mkdir backup
    
  4. Create Copy-on-Write clone
    cp -c image.raw backup
    
  5. Expand image
    truncate -c -s +10G image.raw
    
  6. Start the vm with vfkit

@eriksjolund eriksjolund force-pushed the applehv-disk-expansion branch from 3728b83 to ba3e577 Compare May 9, 2026 16:24

@travier travier left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, some nits but sounds like a good tip.

Comment thread modules/ROOT/pages/provisioning-applehv.adoc Outdated
Comment thread modules/ROOT/pages/provisioning-applehv.adoc Outdated
Comment thread modules/ROOT/pages/provisioning-applehv.adoc Outdated
Comment thread modules/ROOT/pages/provisioning-applehv.adoc Outdated
Comment thread modules/ROOT/pages/provisioning-applehv.adoc Outdated
Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
Co-authored-by: Timothée Ravier <tim@siosm.fr>

Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
@eriksjolund eriksjolund force-pushed the applehv-disk-expansion branch from 5112aa7 to 01e2e65 Compare June 7, 2026 20:16
@eriksjolund

Copy link
Copy Markdown
Contributor Author

I applied all changes requested (I hope).

I also removed the word downloaded from this sentence

TIP: If you want to keep a copy of the downloaded image file, use `cp` with the `-c` flag.

as I wanted the recommendation to be about taking a backup of the decompressed image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants