Skip to content

Resize of manually created VM (macOS) #573

Answered by dockay
dockay asked this question in Q&A
Discussion options

You must be logged in to vote

We now found a solution for our problem.

First there is a --recovery option for tart run. So you can run into recovery mode via tart run vmname --recovery.

On the host you then can use truncate to resize the disk.img to desired size.

Then start the vm with above command tart run vmname --recovery.

We had the issue, that we had an additional recovery partition between our free space and our container.

In recovery mode, disable csrutil csrutil disable.

diskutil list to find the Apple_APFS_recovery partition.

diskutil apfs deletecontainer diskxx

diskutil repairdisk disk2

You should now have the free space to your demand.

Find your apfs container you want to grow.

diskutil apfs resizecontaine…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@dockay
Comment options

Comment options

You must be logged in to vote
2 replies
@qorzi
Comment options

@ethaniel86
Comment options

Answer selected by dockay
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants