Code Monkey home page Code Monkey logo

Comments (3)

edigaryev avatar edigaryev commented on September 24, 2024
  1. Which version of Packer Plugin Tart are you running?
  2. Which version of Tart are you running?
  3. 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.

sc0rp10 avatar sc0rp10 commented on September 24, 2024

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.

edigaryev avatar edigaryev commented on September 24, 2024

Should be fixed now as of release 1.12.0.

from packer-plugin-tart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.