Code Monkey home page Code Monkey logo

Comments (8)

fkorotkov avatar fkorotkov commented on September 23, 2024

Which version of the plugin are you using? Could you please also share your source block for the VM? Lastly, are you overriding TART_HOME by any change?

from packer-plugin-tart.

mcaulifn avatar mcaulifn commented on September 23, 2024

No overriding TART_HOME that I am aware of.

source:

source "tart-cli" "base" {
  cpu_count    = 4
  disk_size_gb = 300
  headless     = true
  memory_gb    = 8
  ssh_username = local.user
  ssh_password = local.password
  vm_name      = local.image_name
  vm_base_name = "ghcr.io/cirruslabs/macos-monterey-base:latest"
}

plugin:

packer {
  required_plugins {
    tart = {
      version = ">= 1.1.0"
      source  = "github.com/cirruslabs/tart"
    }
  }
}

from packer-plugin-tart.

mcaulifn avatar mcaulifn commented on September 23, 2024

I changed the name and tried again:

==> Builds finished. The artifacts of successful builds are:
--> base.tart-cli.base: macos-12.6-test
% tart list
Source Name Size Running
local  macos-12.6-test 70   false
oci    916370655143.dkr.ecr.us-west-2.amazonaws.com/macos-12.6:latest 300  false

% tart push macos-12.6-test xxx.dkr.ecr.us-west-2.amazonaws.com/macos-12.6:latest --chunk-size 15 --populate-cache
the specified VM "macos-12.6-test" does not exist

% tart list
Source Name Size Running
local  macos-12.6-f8ba557b-7222-4393-85f5-55fcb80531bd

from packer-plugin-tart.

mcaulifn avatar mcaulifn commented on September 23, 2024

I had a second build going on a different instance. I was able to do a quick clone. I can run the vm, but I cannot push it up to ECR. Not sure if this is a cause or a symptom of cloning while it was being deleted.

% tart push testtest 916370655143.dkr.ecr.us-west-2.amazonaws.com/macos-12.6:latest --chunk-size 15 --populate-cache
pushing testtest to xxxx.dkr.ecr.us-west-2.amazonaws.com/macos-12.6:latest...
pushing config...
pushing disk... this will take a while...
0%
Error: UnexpectedHTTPStatusCode(when: "streaming blob to https://xxx.dkr.ecr.us-west-2.amazonaws.com/v2/macos-12.6/blobs/uploads/guid", code: 416, details: "{\"errors\":[{\"code\":\"BLOB_UPLOAD_INVALID\",\"message\":\"First byte of the layer part is 300
00000 instead of 25485760\"}]}\n")

from packer-plugin-tart.

fkorotkov avatar fkorotkov commented on September 23, 2024

I wasn't able to reproduce with our templates and it's hard to diagnose without seeing your code. Does seem like either some cleanup script removes it or TART_HOME is overridden so when you run in terminal there is nothing to be found.

from packer-plugin-tart.

mcaulifn avatar mcaulifn commented on September 23, 2024

What should TART_HOME be set to? I don't see it set at all right now.

from packer-plugin-tart.

fkorotkov avatar fkorotkov commented on September 23, 2024

Ideally it shouldn't be set but some people prefer to store all the VMs on external drives and point TART_HOME to it. By default, Tart stores everything in ~/.tart.

from packer-plugin-tart.

fkorotkov avatar fkorotkov commented on September 23, 2024

Closing since it seems like a setup issue rather than something that can be done on Tart side.

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.