Open johanneskastl opened 1 year ago
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @Ajpantuso @Thulium-Drake @UnderGreen @joshainglis @karmab @tleguern click here for bot help
It's like
disk: 'local-zfs:3'
with local-zfs being the storage name in proxmox that can store containers and then the size in gb
You can select a pre-allocated volume via
disk: 'storage-provider:volume-name'
but you MUST do NOT define the parameter storage
Thanks @raiyni @lildadou, that answers my questions. I have tested @raiyni 's way and it works.
If I find time, I'll try to adapt the documentation.
PRs for improving the docs are always welcome! :)
disk
option can take a look at it! Thanks :)cc @krauthosting click here for bot help
Summary
Creating an LXC container on a proxmox host only works if I omit the
disk
parameter. I have not found any syntax that is being accepted by my proxmox host.The Proxmox documentation on LXC containers mentions that the rootfs argument should be something like this:
So it is
name of the local storage
, then acolon
, thensome name
, then acomma
, and thensize=8GB
. I also see a similar output in my existing lxc contains in the proxmox GUI.However, no matter what I specify in the
disk
option I getnot a valid disk size: 2GB\\n\\n
.Issue Type
Bug Report
Component Name
proxmox.py
Ansible Version
Community.general Version
Configuration
No response
OS / Environment
openSUSE Tumbleweed, python3.10
Steps to Reproduce
I tried multiple things for the
disk
parameter (my storage seems to be calledlocal-lvm
):local-lvm:some-disk-name,size=2G
local-lvm:some-disk-name,size=local-lvm:2G
(the docs say something about a<STORAGE>:<SIZE>
syntax)local-lvm:some-disk-name,size=local-lvm:2
(the docs say something about a<STORAGE>:<SIZE>
syntax)size=local-lvm:2
(the docs say something about a<STORAGE>:<SIZE>
syntax)Expected Results
I would like to be able to set the size of the disk that is being allocated.
Actual Results
Code of Conduct