Skip to content

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

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

provisioning (applehv): expand image and CoW tip#804
eriksjolund wants to merge 1 commit intocoreos: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

Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
@eriksjolund eriksjolund force-pushed the applehv-disk-expansion branch from 3728b83 to ba3e577 Compare May 9, 2026 16:24
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.

1 participant