Skip to content
Open
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
23 changes: 15 additions & 8 deletions content/en/docs/v1/virtualization/cloneable-vms.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,21 @@ as an example.
name: sourcevm
namespace: tenant-root
spec:
external: true
externalMethod: PortList
disks:
- name: ubuntu-source
externalPorts:
- 22
disks:
- name: ubuntu-source
instanceProfile: ubuntu
instanceType: ""
running: true
runStrategy: Once
sshKeys:
- <paste your ssh public key here>
external: true
resources:
cpu: "2"
memory: 4Gi
sockets: "1"
```

When VM is created, it will get load balancer external IP address. You can get it using:
Expand Down Expand Up @@ -140,14 +141,20 @@ as an example.
spec:
external: true
externalMethod: PortList
externalPorts:
- 22
cloudInit: "hostname: my-cloned-vm"
cloudInitSeed: "1"
cloudInitSeed: "1" # This must be unique!
disks:
- name: ubuntu-cloned-1
externalPorts:
- 22
instanceProfile: ubuntu
running: true
instanceType: ""
runStrategy: Once
resources:
cpu: "2"
memory: 4Gi
sockets: "1"

```

To ensure the cloned VM's network functions correctly, you must override its `hostname` via `.spec.cloudInit` and
Expand Down