-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create volume mount point in LXC #1393
Comments
Nvm, now it does not work even with plain number. |
Hi @megastary 👋🏼 Just a sanity check regarding the error message:
Do you have the You can also check an example here. These templates are used as part of the integration test suite, which runs on every release. |
I have the same problem in 0.55 as well as in 0.60, I just screwed around a bit and this helped:
mount_point {
volume = "local:1"
size = "1G"
path = "/mnt/foobar"
backup = true
} Based on https://forum.proxmox.com/threads/unable-to-parse-directory-volume-name-with-pct-create.55373/post-254947 and the API request I got from the debug logs it seems like on creation the size in the volume param is missing. Also:
Trying a system update, maybe this'll fix it. |
Right, after testing out your link @bpg I've been able to reproduce the error by lowering the resource "proxmox_virtual_environment_container" "example_template" {
vm_id = 323
start_on_boot = "true"
disk {
datastore_id = "local-zfs" // Hardcoded some vals to fit my Proxmox instance
size = 4
}
// ...
} Do you have an idea why this would lead to that rootfs error? Edit: Thinking about it, maybe the container disk size is just too small for Ubuntu to work properly. |
That is my guess as well. After you provisioned with size e.g. EDIT: That's what I have with my example (10G + 4G mount):
Now sure why 4G rootfs is a limit. I can reproduce it too, so will try to debug. |
I found the bug, 4Gb rootfs size is the default "magic number". Any value != 4 should work 🤦🏼 |
Haha, great to hear! Thanks so much for picking up the terraform provider btw, incredibly helpful (when it works ;) ) |
Edited as it throws errors nearly all the time.
Describe the bug
When defining mount point for LXC, you will receive various errors depending on current state of the VM.
To Reproduce
Steps to reproduce the behavior:
When adding mount_point to existing LXC I get this error:
When creating fresh LXC including volume mountpoint from the start:
Please also provide a minimal Terraform configuration that reproduces the issue.
Expected behavior
LXC gets created with specified volume mount point.
TF_LOG=DEBUG terraform apply
):The text was updated successfully, but these errors were encountered: