Packer fails to build any LXC template
- Dominant language
- Go
- Stars
- 15.8k
- Forks
- 3.3k
- PR merge metrics
- PR metrics pending
Description
#### 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 trying to build an LXC template, packer will fail to do so.
#### Reproduction Steps
0. Use the packer template below
0. Run `packer build template.pkr.hcl`
### Packer version
1.9.1
### Simplified Packer Template
```
packer {
required_plugins {
lxc = {
version = ">= 1.0.0"
source = "github.com/hashicorp/lxc"
}
}
}
source "lxc" "jammy" {
config_file = "/etc/lxc/default.conf"
template_name = "download"
template_parameters = ["-d", "ubuntu", "-r", "jammy", "-a", "amd64"]
}
build {
sources = ["sources.lxc.jammy"]
provisioner "shell" {
inline = ["echo `uname -a`"]
}
}
```
```
# /etc/lxc/default.conf
lxc.net.0.type = veth
lxc.net.0.link = lxcbr0
lxc.net.0.flags = up
lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx
```
### Operating system and Environment details
```
$ uname -a
Linux peanut 5.15.0-72-generic #79~20.04.1-Ubuntu SMP Thu Apr 20 22:12:07 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 20.3
Release: 20.3
Codename: una
```
### Log Fragments and crash.log files
https://gist.github.com/coaxial/4f258ffae2320d28f7c68f3bc8b162b8
Contributor guide
Assessment
This issue has not been assessed yet.