-
First, thanks for the great tool! We are using it with manually creating VMs with Now we ran into the issue, that the disk size we specified is not enough. Is there any way to extend the existing VM disk-size? Instead of re-creating everything from scratch with a bigger disk-size. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I found this related comment: #17 (comment), but I would love to be able to have tart to automate this process if possible, too. |
Beta Was this translation helpful? Give feedback.
-
We now found a solution for our problem. First there is a --recovery option for On the host you then can use Then start the vm with above command We had the issue, that we had an additional recovery partition between our free space and our container. In recovery mode, disable csrutil
You should now have the free space to your demand. Find your apfs container you want to grow.
reenable csr.
and reboot without --recovery. |
Beta Was this translation helpful? Give feedback.
-
Alternatively, one can use Tart Packer Plugin to automate image creation. The plugin removes a recovery partition by default and can resize disks too. Here is a repository with our example templates. |
Beta Was this translation helpful? Give feedback.
We now found a solution for our problem.
First there is a --recovery option for
tart run
. So you can run into recovery mode viatart 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…