Comments (8)
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.
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.
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.
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.
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.
What should TART_HOME
be set to? I don't see it set at all right now.
from packer-plugin-tart.
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.
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)
- 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
- Cannot extend the image with "Error: -69519: The target disk is too small for this operation" HOT 3
- Keyboard layout problem with boot_command HOT 2
- Occasional Timeout waiting for SSH HOT 14
- Document new http file serving example
- 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.