This commit is contained in:
+4
-4
@@ -537,7 +537,7 @@ class Tools:
|
||||
def vm_create_from_template(
|
||||
vmid,
|
||||
name,
|
||||
template_vmid=999,
|
||||
template_vmid=1000,
|
||||
full=True,
|
||||
memory=None,
|
||||
cores=None,
|
||||
@@ -552,7 +552,7 @@ class Tools:
|
||||
):
|
||||
"""
|
||||
Create a new VM by cloning from a template.
|
||||
Default template: VM #999 (ubuntu-2404-ci).
|
||||
Default template: VM #1000 (cloud-init).
|
||||
|
||||
Cloud-init params (for guest OS user setup):
|
||||
ciuser: username in the guest (e.g. "ubuntu")
|
||||
@@ -663,7 +663,7 @@ class Tools:
|
||||
def vm_create(
|
||||
vmid,
|
||||
name,
|
||||
template_vmid=999,
|
||||
template_vmid=1000,
|
||||
memory=4096,
|
||||
cores=2,
|
||||
disk_size="32G",
|
||||
@@ -685,7 +685,7 @@ class Tools:
|
||||
Universal VM creation.
|
||||
|
||||
Modes:
|
||||
1. From template (default): clones VM #999 (ubuntu-2404-ci)
|
||||
1. From template (default): clones VM #1000 (cloud-init)
|
||||
2. From ISO: template_vmid=None, iso="local:iso/image.iso"
|
||||
|
||||
Cloud-init params (for mode 1):
|
||||
|
||||
Reference in New Issue
Block a user