Happy new year everyone.
I am trying to use the CLI to create a new VM with a pre-existing image.
Specifically I am trying to install a mikrotik CHR using the bash script found here: https://wiki.mikrotik.com/wiki/Manual:CHR_ProxMox_installation
Everything works fine, but a minor inconvenience. The script does not set a disk size and I have to manually set it after it's creation.
I was wondering if I can set the disk size during it's creation.
I believe the size must be set here:
In the documentation I found: "Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume."
but couldn't find an example use for it.
Appreciate your help and time.
Regards
I am trying to use the CLI to create a new VM with a pre-existing image.
Specifically I am trying to install a mikrotik CHR using the bash script found here: https://wiki.mikrotik.com/wiki/Manual:CHR_ProxMox_installation
Everything works fine, but a minor inconvenience. The script does not set a disk size and I have to manually set it after it's creation.
I was wondering if I can set the disk size during it's creation.
I believe the size must be set here:
qm create $vmID \
--name chr-$version \
--net0 virtio,bridge=vmbr0 \
--bootdisk virtio0 \
--ostype l26 \
--memory 256 \
--onboot no \
--sockets 1 \
--cores 1 \
--virtio0 local:$vmID/vm-$vmID-disk-1.qcow2
In the documentation I found: "Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume."
but couldn't find an example use for it.
Appreciate your help and time.
Regards
Last edited: