This folder contains operator-facing examples for the Go migration engine.
config.full.example.yaml- Fully commented config with all supported fields.
- Comments mark each field as
MANDATORYorOPTIONAL. - Comments also describe runtime/default behavior.
-
spec.run.single-vm.single-disk.single-nic.yaml- One VM.
- One boot disk only.
- One NIC mapping.
-
spec.run.single-vm.multi-disk.multi-nic.yaml- One VM.
- Boot disk plus multiple data disks.
- Multiple NIC mappings.
-
spec.run.single-vm.defaults-only.yaml- One VM.
- Uses
config.yaml -> cloudstack_defaultsand other config defaults. - Minimal operator input.
-
spec.run.multi-vm.single-disk.single-nic.yaml- Multiple VMs.
- Each VM uses one boot disk and one NIC.
-
spec.run.multi-vm.multi-disk.multi-nic.yaml- Multiple VMs.
- Each VM demonstrates data disk mapping and multi-NIC mapping.
-
spec.run.multi-vm.defaults-only.yaml- Multiple VMs.
- Uses config defaults for target fields and migration defaults.
-
runmode applies defaults fromconfig.yaml -> cloudstack_defaultsto:target.cloudstack.zoneidtarget.cloudstack.clusteridtarget.cloudstack.storageidtarget.cloudstack.networkidtarget.cloudstack.serviceofferingidtarget.cloudstack.diskofferingid
-
For data disks,
diskofferingidresolves in this order:disks.<unit>.diskofferingidtarget.cloudstack.diskofferingidconfig.yaml -> cloudstack_defaults.diskofferingid
-
For data disk storage,
storageidresolves in this order:disks.<unit>.storageidtarget.cloudstack.storageidconfig.yaml -> cloudstack_defaults.storageid
-
If
nic_mappingsis present:Network adapter 1/source_index: 0is used forimportVm- additional NICs are attached after VM creation
-
If
nic_mappingsis omitted:- engine falls back to
target.cloudstack.networkid - if that is missing in spec,
config.yaml -> cloudstack_defaults.networkidis used
- engine falls back to