-
Notifications
You must be signed in to change notification settings - Fork 43
Feedback from customer on PDF #1065
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -187,17 +187,33 @@ DESCRIPTION: | |
|
|
||
| Now that KubeVirt and CDI are deployed, let us define a simple virtual machine based on https://get.opensuse.org/tumbleweed/[openSUSE Tumbleweed]. This virtual machine has the most simple of configurations, using standard "pod networking" for a networking configuration identical to any other pod. It also employs non-persistent storage, ensuring the storage is ephemeral, just like in any container that does not have a https://kubernetes.io/docs/concepts/storage/persistent-volumes/[PVC]. | ||
|
|
||
| [,shell] | ||
| ---- | ||
| [,shell, literal] | ||
| ---- | ||
| $ cat <<EOF > user-data.yaml | ||
| #cloud-config | ||
| disable_root: false | ||
| ssh_pwauth: True | ||
| users: | ||
| - default | ||
| - name: suse | ||
| groups: sudo | ||
| shell: /bin/bash | ||
| sudo: ALL=(ALL) NOPASSWD:ALL | ||
| lock_passwd: False | ||
| plain_text_passwd: 'suse' | ||
| EOF | ||
| $ kubectl apply -f - <<EOF | ||
| apiVersion: kubevirt.io/v1 | ||
| kind: VirtualMachine | ||
| metadata: | ||
| name: tumbleweed | ||
| name: ingress-example | ||
| namespace: default | ||
| spec: | ||
| runStrategy: Always | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: nginx | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason for this addition? |
||
| spec: | ||
| domain: | ||
| devices: {} | ||
|
|
@@ -211,7 +227,7 @@ spec: | |
| image: quay.io/containerdisks/opensuse-tumbleweed:1.0.0 | ||
| name: tumbleweed-containerdisk-0 | ||
| - cloudInitNoCloud: | ||
| userDataBase64: I2Nsb3VkLWNvbmZpZwpkaXNhYmxlX3Jvb3Q6IGZhbHNlCnNzaF9wd2F1dGg6IFRydWUKdXNlcnM6CiAgLSBkZWZhdWx0CiAgLSBuYW1lOiBzdXNlCiAgICBncm91cHM6IHN1ZG8KICAgIHNoZWxsOiAvYmluL2Jhc2gKICAgIHN1ZG86ICBBTEw9KEFMTCkgTk9QQVNTV0Q6QUxMCiAgICBsb2NrX3Bhc3N3ZDogRmFsc2UKICAgIHBsYWluX3RleHRfcGFzc3dkOiAnc3VzZScK | ||
| userDataBase64: $(cat user-data.yaml) | ||
| name: cloudinitdisk | ||
| EOF | ||
| ---- | ||
|
|
@@ -338,11 +354,15 @@ $ chmod a+x /usr/local/bin/virtctl | |
|
|
||
| You can then use the `virtctl` command-line tool to create virtual machines. Let us replicate our previous virtual machine, noting that we are piping the output directly into `kubectl apply`: | ||
|
|
||
| [,shell] | ||
| [,shell, literal] | ||
| ---- | ||
| $ virtctl create vm --name virtctl-example --memory=1Gi \ | ||
| --volume-containerdisk=src:quay.io/containerdisks/opensuse-tumbleweed:1.0.0 \ | ||
| --cloud-init-user-data "I2Nsb3VkLWNvbmZpZwpkaXNhYmxlX3Jvb3Q6IGZhbHNlCnNzaF9wd2F1dGg6IFRydWUKdXNlcnM6CiAgLSBkZWZhdWx0CiAgLSBuYW1lOiBzdXNlCiAgICBncm91cHM6IHN1ZG8KICAgIHNoZWxsOiAvYmluL2Jhc2gKICAgIHN1ZG86ICBBTEw9KEFMTCkgTk9QQVNTV0Q6QUxMCiAgICBsb2NrX3Bhc3N3ZDogRmFsc2UKICAgIHBsYWluX3RleHRfcGFzc3dkOiAnc3VzZScK" | kubectl apply -f - | ||
| --cloud-init-user-data "I2Nsb3VkLWNvbmZpZwpkaXNhYmxlX3Jvb3Q6IGZhbHNlCnNzaF9wd2F1dGg6IFRyd | ||
| WUKdXNlcnM6CiAgLSBkZWZhdWx0CiAgLSBuYW1lOiBzdXNlCiAgICBncm91cHM6IH | ||
| N1ZG8KICAgIHNoZWxsOiAvYmluL2Jhc2gKICAgIHN1ZG86ICBBTEw9KEFMTCkgTk9 | ||
| QQVNTV0Q6QUxMCiAgICBsb2NrX3Bhc3N3ZDogRmFsc2UKICAgIHBsYWluX3RleHRf | ||
| cGFzc3dkOiAnc3VzZScK" | kubectl apply -f - | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this will work as the spaces and newlines will be passed into the argument? Perhaps something like this instead which escapes the newlines and removes the leading whitespace? |
||
| ---- | ||
|
|
||
| This should then show the virtual machine running (it should start a lot quicker this time given that the container image will be cached): | ||
|
|
@@ -429,8 +449,21 @@ In the example environment, another openSUSE Tumbleweed virtual machine is deplo | |
|
|
||
| Let us create this virtual machine now: | ||
|
|
||
| [,shell] | ||
| ---- | ||
| [,shell, literal] | ||
| ---- | ||
| $ cat <<EOF > user-data.yaml | ||
| #cloud-config | ||
| disable_root: false | ||
| ssh_pwauth: True | ||
| users: | ||
| - default | ||
| - name: suse | ||
| groups: sudo | ||
| shell: /bin/bash | ||
| sudo: ALL=(ALL) NOPASSWD:ALL | ||
| lock_passwd: False | ||
| plain_text_passwd: 'suse' | ||
| EOF | ||
| $ kubectl apply -f - <<EOF | ||
| apiVersion: kubevirt.io/v1 | ||
| kind: VirtualMachine | ||
|
|
@@ -456,7 +489,7 @@ spec: | |
| image: quay.io/containerdisks/opensuse-tumbleweed:1.0.0 | ||
| name: tumbleweed-containerdisk-0 | ||
| - cloudInitNoCloud: | ||
| userDataBase64: I2Nsb3VkLWNvbmZpZwpkaXNhYmxlX3Jvb3Q6IGZhbHNlCnNzaF9wd2F1dGg6IFRydWUKdXNlcnM6CiAgLSBkZWZhdWx0CiAgLSBuYW1lOiBzdXNlCiAgICBncm91cHM6IHN1ZG8KICAgIHNoZWxsOiAvYmluL2Jhc2gKICAgIHN1ZG86ICBBTEw9KEFMTCkgTk9QQVNTV0Q6QUxMCiAgICBsb2NrX3Bhc3N3ZDogRmFsc2UKICAgIHBsYWluX3RleHRfcGFzc3dkOiAnc3VzZScKcnVuY21kOgogIC0genlwcGVyIGluIC15IG5naW54CiAgLSBzeXN0ZW1jdGwgZW5hYmxlIC0tbm93IG5naW54CiAgLSBlY2hvICJJdCB3b3JrcyEiID4gL3Nydi93d3cvaHRkb2NzL2luZGV4Lmh0bQo= | ||
| userDataBase64: $(cat user-data.yaml) | ||
| name: cloudinitdisk | ||
| EOF | ||
| ---- | ||
|
|
@@ -524,7 +557,7 @@ The extension allows you to directly interact with KubeVirt Virtual Machine reso | |
| 2. Navigate to *KubeVirt > Virtual Machines* page and click `Create from YAML` in the upper right of the screen. | ||
| 3. Fill in or paste a virtual machine definition and press `Create`. Use virtual machine definition from Deploying Virtual Machines section as an inspiration. | ||
|
|
||
| image::virtual-machines-page.png[] | ||
| image::virtual-machines-page.png[scaledwidth=100%] | ||
|
|
||
| ==== Virtual Machine Actions | ||
|
|
||
|
|
@@ -538,7 +571,7 @@ The "Virtual machines" list provides a `Console` drop-down list that allows to c | |
|
|
||
| In some cases, it takes a short while before the console is accessible on a freshly started virtual machine. | ||
|
|
||
| image::vnc-console-ui.png[] | ||
| image::vnc-console-ui.png[scaledwidth=100%] | ||
|
|
||
| == Installing with Edge Image Builder | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why has this name changed? AFAICS there's no ingress involved here and it is deploying tumbleweed, so likely the old name is better?