Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions docs/USER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3081,11 +3081,6 @@ d8 k get vmsop <vmsop-name> -o json | jq '.status.resources'

VM cloning is performed using the VirtualMachineOperation resource with the `Clone` operation type.

{{< alert level="warning">}}
Before cloning, the source VM must be [powered off](#vm-start-and-state-management-policy).
It is recommended to set the `.spec.runPolicy: AlwaysOff` parameter in the configuration of the VM being cloned if you want to prevent the VM clone from starting automatically. This is because the clone inherits the behaviour of the parent VM.
{{< /alert >}}

Before cloning, you need to prepare the guest OS to avoid conflicts with unique identifiers and network settings.

Linux:
Expand Down
6 changes: 0 additions & 6 deletions docs/USER_GUIDE.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -3114,12 +3114,6 @@ d8 k get vmsop <vmsop-name> -o json | jq '.status.resources'

Клонирование ВМ выполняется с использованием ресурса VirtualMachineOperation с типом операции `Clone`.

{{< alert level="warning">}}
Перед клонированием ВМ должна быть [выключена](#политика-запуска-и-управление-состоянием-вм).

Рекомендуется задавать параметр `.spec.runPolicy: AlwaysOff` в конфигурации клонируемой ВМ, чтобы предотвратить автоматический запуск клона ВМ. Это связано с тем, что клон наследует поведение родительской ВМ.
{{< /alert >}}

Перед клонированием необходимо подготовить гостевую ОС, чтобы избежать конфликтов уникальных идентификаторов и сетевых настроек.

Linux:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (o CloneOperation) Execute(ctx context.Context) (reconcile.Result, error) {
}

func (o CloneOperation) IsApplicableForVMPhase(phase v1alpha2.MachinePhase) bool {
return phase == v1alpha2.MachineStopped
return phase == v1alpha2.MachineStopped || phase == v1alpha2.MachineRunning
}

func (o CloneOperation) IsApplicableForRunPolicy(runPolicy v1alpha2.RunPolicy) bool {
Expand Down
Loading