Skip to content

Commit 8ac620b

Browse files
authored
F OpenNebula/one#7235: Auto-enable index during multiple persistent VMs (#437)
1 parent 8c4aeb1 commit 8ac620b

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

content/product/virtual_machines_operation/virtual_machines/vm_instances.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,25 @@ $ oneimage list
533533
8 oneadmin oneadmin my_vm-disk-0 default 200M OS Yes used 1
534534
```
535535

536+
To "instantiate multiple persistent" VMs use the options `-m N` **and** `--name`. You **must** provide `--name` when `-m` > 1. Include `%i` in the name to insert the VM index (0..N-1) at a custom place:
537+
538+
```default
539+
$ onetemplate instantiate -m 2 --persistent --name 'test'
540+
VM ID: 0
541+
VM ID: 1
542+
543+
$ onetemplate instantiate -m 2 --persistent --name '%i-test'
544+
VM ID: 2
545+
VM ID: 3
546+
547+
$ onevm list
548+
ID USER GROUP NAME STAT CPU MEM HOST TIME
549+
3 oneadmin oneadmin 1-test hold 1 768M 0d 00h00
550+
2 oneadmin oneadmin 0-test hold 1 768M 0d 00h00
551+
1 oneadmin oneadmin test-1 hold 1 768M 0d 00h00
552+
0 oneadmin oneadmin test-0 hold 1 768M 0d 00h00
553+
```
554+
536555
Equivalently, in Sunstone activate the “Persistent” switch next to the Create button.
537556

538557
Please bear in mind the following `ontemplate instantiate --persistent` limitation: volatile disks cannot be persistent. The contents of the disks will be lost when the VM is terminated. The cloned VM template will contain the definition for an empty volatile disk.

content/software/release_information/release_notes_72/whats_new.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ We encourage you to review the [Known Issues]({{% relref "known_issues" %}}) and
5959
## API and CLI
6060
<!--keeping some examples-->
6161
- [The `onedb purge-history` command now removes history records only within the specified `–start`, `–end` range for the `–id`, instead of deleting all records](https://github.com/OpenNebula/one/issues/6699).
62-
- The output of `onemarketapp list` list now contains 2 extra columns displaying **HYPERVISOR** and
63-
**ARCHITECTURE**.
62+
- The output of `onemarketapp list` list now contains 2 extra columns displaying **HYPERVISOR** and **ARCHITECTURE**.
63+
- [Add automatic VM index for multiple persistent VM instantiation](../../../product/virtual_machines_operation/virtual_machines/vm_instances.md#instantiate-to-persistent)
6464

6565
## KVM & Networking
6666
<!--keeping some examples-->

0 commit comments

Comments
 (0)