Comments (3)
- Which version of Packer Plugin Tart are you running?
- Which version of Tart are you running?
- Which macOS version are you trying to run in the guest?
Also, please provide a minimally reproducing example of a .pkr.hcl
that reproduces the issue.
The error itself most likely comes from the diskutil apfs resizeContainer
that we run inside of a guest to finalize the partition resizing that you've requested via disk_size_gb
.
from packer-plugin-tart.
Hi, @edigaryev super sorry for not detailed report - literally forgot to post the second message with the details:
Packer plugin:
$ packer plugins installed
/opt/homebrew/bin/github.com/cirruslabs/tart/packer-plugin-tart_v1.11.1_x5.0_darwin_arm64
Tart itself:
$ tart --version
2.9.0
The Host OS:
$ sw_vers
ProductName: macOS
ProductVersion: 14.3.1
BuildVersion: 23D60
The base.pkr.hcl
is completely equivalent to the https://github.com/cirruslabs/macos-image-templates/blob/master/templates/vanilla-sonoma.pkr.hcl
Part related to the disk:
source "tart-cli" "tart" {
from_ipsw = "https://updates.cdn-apple.com/2024WinterFCS/fullrestores/052-77579/4569734E-120C-4F31-AD08-FC1FF825D059/UniversalMac_14.4.1_23E224_Restore.ipsw"
vm_name = "sonoma-base"
cpu_count = 4
memory_gb = 8
disk_size_gb = 20 # here is the base disk size
ssh_password = "admin"
ssh_username = "admin"
ssh_timeout = "120s"
boot_command = [
# skip boot commands
]
create_grace_time = "30s"
}
The xcode.pkr.hcl
:
source "tart-cli" "tart" {
vm_base_name = "ghcr.io/ourteamname/sonoma-base:latest" # extends the previous `base.pkr.hcl`
vm_name = "${var.macos_version}-xcode:${var.xcode_version}"
cpu_count = 4
memory_gb = 8
disk_size_gb = 90 # here is the increased disk size
headless = true
ssh_password = "admin"
ssh_username = "admin"
ssh_timeout = "120s"
}
from packer-plugin-tart.
Should be fixed now as of release 1.12.0
.
from packer-plugin-tart.
Related Issues (20)
- Support for Remote Builds HOT 1
- Attaching additional disks during build HOT 3
- VNC password is not printed in debug log
- No cleanup after failure HOT 7
- Fails after VM start with "Failed to lock auxiliary storage" HOT 5
- PACKER_HTTP_ADDR is unset for shell provisioner
- Duplicated code between step_run and step_create_linux_vm HOT 3
- macOS 12 VM does not respond to VNC input HOT 3
- 2.7.0 crashes when trying to use via packer HOT 8
- Software Update doesn't work in VMs from tart packer plugin HOT 2
- Don't delete `vm_name` if it already exists HOT 4
- `build.SSHPrivateKey` template variable is set to emptry string HOT 2
- Packer 1.12.0-alpha1 testing HOT 2
- IPSW data source HOT 2
- Tart push post processor
- Plugin version 1.5.3 breaking on disk resize
- Allow running provisioners when recovery = true HOT 2
- Allow --resolver option when getting VM's IP HOT 1
- `{{ .HTTPIP }}` and `{{ .HTTPPort }}` are substituted as `<no value>` in `boot_command` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-plugin-tart.