Add slides about metadata.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 12 Jun 2019 10:22:23 +0000 (11:22 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 12 Jun 2019 10:22:23 +0000 (11:22 +0100)
2019-tech-introductions/8100-metadata-ovf.html [new file with mode: 0644]
2019-tech-introductions/8200-metadata-cnv.html [new file with mode: 0644]
2019-tech-introductions/8300-reuse-the-tools.html [moved from 2019-tech-introductions/8100-reuse-the-tools.html with 100% similarity]

diff --git a/2019-tech-introductions/8100-metadata-ovf.html b/2019-tech-introductions/8100-metadata-ovf.html
new file mode 100644 (file)
index 0000000..b0579b4
--- /dev/null
@@ -0,0 +1,123 @@
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<link rel="stylesheet" href="style.css" type="text/css"/>
+<script src="code.js" type="text/javascript"></script>
+
+<h1>KVM to KVM migrations: metadata</h1>
+
+<pre>
+
+&lt;?xml version='1.0' encoding='utf-8'?&gt;
+&lt;ovf:Envelope xmlns:rasd='http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData' xmlns:vssd='http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ovf='http://schemas.dmtf.org/ovf/envelope/1/' xmlns:ovirt='http://www.ovirt.org/ovf' ovf:version='0.9'&gt;
+  &lt;!-- generated by virt-v2v 1.40.0local,libvirt --&gt;
+  &lt;References&gt;
+    &lt;File ovf:href='VOL' ovf:id='VOL' ovf:description='generated by virt-v2v 1.40.0local,libvirt' ovf:size='4460544'/&gt;
+  &lt;/References&gt;
+  &lt;NetworkSection&gt;
+    &lt;Info&gt;List of networks&lt;/Info&gt;
+    &lt;Network ovf:name='default'/&gt;
+  &lt;/NetworkSection&gt;
+  &lt;DiskSection&gt;
+    &lt;Info&gt;List of Virtual Disks&lt;/Info&gt;
+    &lt;Disk ovf:diskId='IMAGE' ovf:size='1' ovf:capacity='536870912' ovf:fileRef='VOL' ovf:parentRef='' ovf:vm_snapshot_id='1378805d-9045-4166-a7f5-737cb815d577' ovf:volume-format='COW' ovf:volume-type='Sparse' ovf:format='http://en.wikipedia.org/wiki/Byte' ovf:disk-interface='VirtIO' ovf:disk-type='System' ovf:boot='True' ovf:actual_size='1'/&gt;
+  &lt;/DiskSection&gt;
+  &lt;VirtualSystem ovf:id='VM'&gt;
+    &lt;Name&gt;windows&lt;/Name&gt;
+    &lt;TemplateId&gt;00000000-0000-0000-0000-000000000000&lt;/TemplateId&gt;
+    &lt;TemplateName&gt;Blank&lt;/TemplateName&gt;
+    &lt;Description&gt;generated by virt-v2v 1.40.0local,libvirt&lt;/Description&gt;
+    &lt;Domain/&gt;
+    &lt;CreationDate&gt;2019/06/12 10:17:17&lt;/CreationDate&gt;
+    &lt;IsInitilized&gt;True&lt;/IsInitilized&gt;
+    &lt;IsAutoSuspend&gt;False&lt;/IsAutoSuspend&gt;
+    &lt;TimeZone/&gt;
+    &lt;IsStateless&gt;False&lt;/IsStateless&gt;
+    &lt;VmType&gt;0&lt;/VmType&gt;
+    &lt;DefaultDisplayType&gt;1&lt;/DefaultDisplayType&gt;
+    &lt;BiosType&gt;0&lt;/BiosType&gt;
+    &lt;OperatingSystemSection ovf:id='VM' ovf:required='false' ovirt:id='11'&gt;
+      &lt;Info&gt;Microsoft Windows 7 Phony Edition&lt;/Info&gt;
+      &lt;Description&gt;Windows7&lt;/Description&gt;
+    &lt;/OperatingSystemSection&gt;
+    &lt;VirtualHardwareSection&gt;
+      &lt;Info&gt;1 CPU, 1024 Memory&lt;/Info&gt;
+      &lt;Item&gt;
+        &lt;rasd:Caption&gt;1 virtual cpu&lt;/rasd:Caption&gt;
+        &lt;rasd:Description&gt;Number of virtual CPU&lt;/rasd:Description&gt;
+        &lt;rasd:InstanceId&gt;1&lt;/rasd:InstanceId&gt;
+        &lt;rasd:ResourceType&gt;3&lt;/rasd:ResourceType&gt;
+        &lt;rasd:num_of_sockets&gt;1&lt;/rasd:num_of_sockets&gt;
+        &lt;rasd:cpu_per_socket&gt;1&lt;/rasd:cpu_per_socket&gt;
+      &lt;/Item&gt;
+      &lt;Item&gt;
+        &lt;rasd:Caption&gt;1024 MB of memory&lt;/rasd:Caption&gt;
+        &lt;rasd:Description&gt;Memory Size&lt;/rasd:Description&gt;
+        &lt;rasd:InstanceId&gt;2&lt;/rasd:InstanceId&gt;
+        &lt;rasd:ResourceType&gt;4&lt;/rasd:ResourceType&gt;
+        &lt;rasd:AllocationUnits&gt;MegaBytes&lt;/rasd:AllocationUnits&gt;
+        &lt;rasd:VirtualQuantity&gt;1024&lt;/rasd:VirtualQuantity&gt;
+      &lt;/Item&gt;
+      &lt;Item&gt;
+        &lt;rasd:Caption&gt;USB Controller&lt;/rasd:Caption&gt;
+        &lt;rasd:InstanceId&gt;3&lt;/rasd:InstanceId&gt;
+        &lt;rasd:ResourceType&gt;23&lt;/rasd:ResourceType&gt;
+        &lt;rasd:UsbPolicy&gt;Disabled&lt;/rasd:UsbPolicy&gt;
+      &lt;/Item&gt;
+      &lt;Item&gt;
+        &lt;rasd:Caption&gt;Graphical Controller&lt;/rasd:Caption&gt;
+        &lt;rasd:InstanceId&gt;21ec45b0-8b47-4fef-94b4-ae1b1ed87fc6&lt;/rasd:InstanceId&gt;
+        &lt;rasd:ResourceType&gt;32768&lt;/rasd:ResourceType&gt;
+        &lt;Type&gt;video&lt;/Type&gt;
+        &lt;rasd:VirtualQuantity&gt;1&lt;/rasd:VirtualQuantity&gt;
+        &lt;rasd:Device&gt;qxl&lt;/rasd:Device&gt;
+      &lt;/Item&gt;
+      &lt;Item&gt;
+        &lt;rasd:Caption&gt;RNG Device&lt;/rasd:Caption&gt;
+        &lt;rasd:InstanceId&gt;c6c54cb5-07af-41d5-a81c-17bd1f05e754&lt;/rasd:InstanceId&gt;
+        &lt;rasd:ResourceType&gt;0&lt;/rasd:ResourceType&gt;
+        &lt;Type&gt;rng&lt;/Type&gt;
+        &lt;Device&gt;virtio&lt;/Device&gt;
+        &lt;SpecParams&gt;
+          &lt;source&gt;urandom&lt;/source&gt;
+        &lt;/SpecParams&gt;
+      &lt;/Item&gt;
+      &lt;Item&gt;
+        &lt;rasd:Caption&gt;Memory Ballooning Device&lt;/rasd:Caption&gt;
+        &lt;rasd:InstanceId&gt;6452b13b-31bd-407a-b537-aa5a72b5b13a&lt;/rasd:InstanceId&gt;
+        &lt;rasd:ResourceType&gt;0&lt;/rasd:ResourceType&gt;
+        &lt;Type&gt;balloon&lt;/Type&gt;
+        &lt;Device&gt;memballoon&lt;/Device&gt;
+        &lt;SpecParams&gt;
+          &lt;model&gt;virtio&lt;/model&gt;
+        &lt;/SpecParams&gt;
+      &lt;/Item&gt;
+      &lt;Item&gt;
+        &lt;rasd:Caption&gt;Drive 1&lt;/rasd:Caption&gt;
+        &lt;rasd:InstanceId&gt;VOL&lt;/rasd:InstanceId&gt;
+        &lt;rasd:ResourceType&gt;17&lt;/rasd:ResourceType&gt;
+        &lt;Type&gt;disk&lt;/Type&gt;
+        &lt;rasd:HostResource&gt;VOL&lt;/rasd:HostResource&gt;
+        &lt;rasd:Parent&gt;00000000-0000-0000-0000-000000000000&lt;/rasd:Parent&gt;
+        &lt;rasd:Template&gt;00000000-0000-0000-0000-000000000000&lt;/rasd:Template&gt;
+        &lt;rasd:ApplicationList/&gt;
+        &lt;rasd:StorageId&gt;12345678-1234-1234-1234-123456789abc&lt;/rasd:StorageId&gt;
+        &lt;rasd:StoragePoolId&gt;00000000-0000-0000-0000-000000000000&lt;/rasd:StoragePoolId&gt;
+        &lt;rasd:CreationDate&gt;2019/06/12 10:17:17&lt;/rasd:CreationDate&gt;
+        &lt;rasd:LastModified&gt;2019/06/12 10:17:17&lt;/rasd:LastModified&gt;
+        &lt;rasd:last_modified_date&gt;2019/06/12 10:17:17&lt;/rasd:last_modified_date&gt;
+        &lt;BootOrder&gt;1&lt;/BootOrder&gt;
+      &lt;/Item&gt;
+      &lt;Item&gt;
+        &lt;rasd:InstanceId&gt;22c5a61a-18b8-49d9-9eb9-8469258bb68d&lt;/rasd:InstanceId&gt;
+        &lt;rasd:Caption&gt;Ethernet adapter on default&lt;/rasd:Caption&gt;
+        &lt;rasd:ResourceType&gt;10&lt;/rasd:ResourceType&gt;
+        &lt;rasd:ResourceSubType&gt;3&lt;/rasd:ResourceSubType&gt;
+        &lt;Type&gt;interface&lt;/Type&gt;
+        &lt;rasd:Connection&gt;default&lt;/rasd:Connection&gt;
+        &lt;rasd:Name&gt;eth0&lt;/rasd:Name&gt;
+        &lt;rasd:MACAddress&gt;00:11:22:33:44:55&lt;/rasd:MACAddress&gt;
+      &lt;/Item&gt;
+    &lt;/VirtualHardwareSection&gt;
+  &lt;/VirtualSystem&gt;
+&lt;/ovf:Envelope&gt;
+
+</pre>
diff --git a/2019-tech-introductions/8200-metadata-cnv.html b/2019-tech-introductions/8200-metadata-cnv.html
new file mode 100644 (file)
index 0000000..48d7d19
--- /dev/null
@@ -0,0 +1,79 @@
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<link rel="stylesheet" href="style.css" type="text/css"/>
+<script src="code.js" type="text/javascript"></script>
+
+<h1>KVM to KVM migrations: metadata</h1>
+
+<pre>
+---
+apiVersion: v1
+kind: Template
+metadata:
+  annotations:
+    description: OCP KubeVirt Red Hat Enterprise Linux 7.4 VM template
+    iconClass: icon-rhel
+    tags: kubevirt,ocp,template,linux,virtualmachine
+  labels:
+    kubevirt.io/os: rhel-7.4
+    miq.github.io/kubevirt-is-vm-template: "true"
+  name: vm-template-rhel7
+objects:
+- apiVersion: kubevirt.io/v1alpha3
+  kind: VirtualMachine
+  metadata:
+    creationTimestamp: null
+    labels:
+      kubevirt-vm: vm-${NAME}
+      kubevirt.io/os: rhel-7.4
+    name: ${NAME}
+  spec:
+    running: false
+    template:
+      metadata:
+        creationTimestamp: null
+        labels:
+          kubevirt-vm: vm-${NAME}
+          kubevirt.io/os: rhel-7.4
+      spec:
+        domain:
+          cpu:
+            cores: ${{CPU_CORES}}
+          devices:
+            disks:
+            - disk:
+                bus: virtio
+              name: disk0
+          machine:
+            type: ""
+          resources:
+            requests:
+              memory: ${MEMORY}
+        terminationGracePeriodSeconds: 0
+        volumes:
+        - name: disk0
+          persistentVolumeClaim:
+            claimName: linux-vm-pvc-${NAME}
+  status: {}
+- apiVersion: v1
+  kind: PersistentVolumeClaim
+  metadata:
+    creationTimestamp: null
+    name: linux-vm-pvc-${NAME}
+  spec:
+    accessModes:
+    - ReadWriteOnce
+    resources:
+      requests:
+        storage: 10Gi
+  status: {}
+parameters:
+- description: Name for the new VM
+  name: NAME
+- description: Amount of memory
+  name: MEMORY
+  value: 4096Mi
+- description: Amount of cores
+  name: CPU_CORES
+  value: "4"
+
+</pre>