-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-o kubevirt: Create a VirtualMachine instead of a VirtualMachineInstance
VMs converted by virt-v2v are pets not cattle so we want to create permanent non-running machines. (They may later or even soon afterwards be started up by some other tool, at which point they also become Instances.) Therefore use a different kind and slightly restructure the yaml around this. Thanks: Lee Yarwood
- Loading branch information
Showing
3 changed files
with
66 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,34 @@ | ||
--- | ||
# generated by virt-v2v | ||
apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachineInstance | ||
kind: VirtualMachine | ||
metadata: | ||
name: test | ||
labels: | ||
libguestfs.org/virt-v2v-version: | ||
libguestfs.org/osinfo: fedora14 | ||
libguestfs.org/source: test | ||
spec: | ||
domain: | ||
os: | ||
firmware: bios | ||
resources: | ||
requests: | ||
memory: 1024Mi | ||
features: | ||
cpu: | ||
cores: 1 | ||
devices: | ||
useVirtioTransitional: true | ||
disks: | ||
- disk: | ||
bus: virtio | ||
template: | ||
spec: | ||
domain: | ||
os: | ||
firmware: bios | ||
resources: | ||
requests: | ||
memory: 1024Mi | ||
features: | ||
cpu: | ||
cores: 1 | ||
devices: | ||
useVirtioTransitional: true | ||
disks: | ||
- disk: | ||
bus: virtio | ||
name: disk-0 | ||
volumes: | ||
- hostDisk: | ||
path: test-sda | ||
type: Disk | ||
name: disk-0 | ||
volumes: | ||
- hostDisk: | ||
path: test-sda | ||
type: Disk | ||
name: disk-0 | ||
terminationGracePeriodSeconds: 0 | ||
terminationGracePeriodSeconds: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,52 @@ | ||
--- | ||
# generated by virt-v2v | ||
apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachineInstance | ||
kind: VirtualMachine | ||
metadata: | ||
name: test | ||
labels: | ||
libguestfs.org/virt-v2v-version: | ||
libguestfs.org/osinfo: win7 | ||
libguestfs.org/source: test | ||
spec: | ||
domain: | ||
os: | ||
firmware: bios | ||
resources: | ||
clock: | ||
timer: | ||
hpet: | ||
present: false | ||
hyperv: {} | ||
pit: | ||
tickPolicy: delay | ||
rtc: | ||
tickPolicy: catchup | ||
utc: {} | ||
requests: | ||
memory: 1024Mi | ||
features: | ||
cpu: | ||
cores: 1 | ||
devices: | ||
rng: {} | ||
disks: | ||
- disk: | ||
bus: virtio | ||
template: | ||
spec: | ||
domain: | ||
os: | ||
firmware: bios | ||
resources: | ||
clock: | ||
timer: | ||
hpet: | ||
present: false | ||
hyperv: {} | ||
pit: | ||
tickPolicy: delay | ||
rtc: | ||
tickPolicy: catchup | ||
utc: {} | ||
requests: | ||
memory: 1024Mi | ||
features: | ||
cpu: | ||
cores: 1 | ||
devices: | ||
rng: {} | ||
disks: | ||
- disk: | ||
bus: virtio | ||
name: disk-0 | ||
interfaces: | ||
- name: net_default | ||
masquerade: {} | ||
macAddress: 00:11:22:33:44:55 | ||
model: virtio | ||
volumes: | ||
- hostDisk: | ||
path: test-sda | ||
type: Disk | ||
name: disk-0 | ||
interfaces: | ||
- name: net_default | ||
masquerade: {} | ||
macAddress: 00:11:22:33:44:55 | ||
model: virtio | ||
volumes: | ||
- hostDisk: | ||
path: test-sda | ||
type: Disk | ||
name: disk-0 | ||
networks: | ||
- networkName: default | ||
name: net_default | ||
terminationGracePeriodSeconds: 0 | ||
networks: | ||
- networkName: default | ||
name: net_default | ||
terminationGracePeriodSeconds: 0 |