hashicorp / hashicorp/packer-plugin-lxc

packer lxc failing to create container

Open
#76 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
7
Forks
8
PR merge metrics
No merged PRs in 30d

Description

_This issue was originally opened by @Dialgatrainer02 in https://github.com/hashicorp/packer/issues/12907 and has been migrated to this repository. The original issue description is below._

---

#### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.

#### Overview of the Issue

when i run packer build . i get errors saying it couldnt create the vm

and im unsure why i can create containers using
sudo lxc-create -t download -n packer-test -- -d alpine -a amd64

#### Reproduction Steps

install lxc
git clone https://github.com/jpancoast/image-builder.git
cd ./image-builder/lxc/examples/alpine
sudo packer init .
sudo chmod +x build.sh
sudo bash build.sh
### Packer version

From `packer version`
```
Packer v1.10.2-dev

Your version of Packer is out of date! The latest version
is 1.10.2. You can update by downloading from www.packer.io/downloads
```
### Simplified Packer Template

If the file is longer than a few dozen lines, please include the URL to the
[gist](https://gist.github.com/) of the log or use the [Github detailed
format](https://gist.github.com/ericclemmons/b146fe5da72ca1f706b2ef72a20ac39d)
instead of posting it directly in the issue.
git clone https://github.com/jpancoast/image-builder.git this is my first time using packer so just coping a git repo

### Operating system and Environment details

OS, Architecture, and any other information you can provide about the
environment.

arch linux (just for testing)
x86_64
packer and lxc on latest versions
### Log Fragments and crash.log files

Include appropriate log fragments. If the log is longer than a few dozen lines,
please include the URL to the [gist](https://gist.github.com/) of the log or
use the [Github detailed format](https://gist.github.com/ericclemmons/b146fe5da72ca1f706b2ef72a20ac39d) instead of posting it directly in the issue.
https://gist.github.com/Dialgatrainer02/c28b16d8a7ab72424323b91e3294d38e

Set the env var `PACKER_LOG=1` for maximum log detail.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.