You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/virt-attaching-vm-secondary-network-cli.adoc
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,16 +31,19 @@ spec:
31
31
devices:
32
32
interfaces:
33
33
- bridge: {}
34
-
name: bridge-net <1>
34
+
name: bridge-net
35
35
# ...
36
36
networks:
37
-
- name: bridge-net <2>
37
+
- name: bridge-net
38
38
multus:
39
-
networkName: bridge-network <3>
39
+
networkName: bridge-network
40
40
----
41
-
<1> The name of the bridge interface.
42
-
<2> The name of the network. This value must match the `name` value of the corresponding `spec.template.spec.domain.devices.interfaces` entry.
43
-
<3> The name of the network attachment definition.
41
+
+
42
+
where:
43
+
44
+
`spec.template.spec.domain.devices.interface`:: Specifies the name of the bridge interface.
45
+
`spec.template.spec.networks.name`:: Specifies the name of the network. This value must match the `name` value of the corresponding `spec.template.spec.domain.devices.interfaces` entry.
46
+
`spec.template.spec.networks.multus.networkName`:: Specifies the name of the network attachment definition.
44
47
45
48
. Apply the configuration:
46
49
+
@@ -53,5 +56,5 @@ $ oc apply -f example-vm.yaml
53
56
+
54
57
[NOTE]
55
58
====
56
-
When running {VirtProductName} on {ibm-z-name} using an OSA card, you must register the MAC address of the device. For more information, see link:https://www.ibm.com/docs/en/linux-on-systems?topic=choices-osa-interface-traffic-forwarding[OSA interface traffic forwarding] (IBM documentation).
57
-
====
59
+
When running {VirtProductName} on {ibm-z-name} using OSA, RoCE, or HiperSockets interfaces, you must register the MAC address of the device. For more information, see link:https://www.ibm.com/docs/en/linux-on-systems?topic=choices-osa-interface-traffic-forwarding[OSA interface traffic forwarding] (IBM documentation).
Copy file name to clipboardExpand all lines: modules/virt-attaching-vm-to-secondary-udn.adoc
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,37 +15,38 @@ You can connect a virtual machine (VM) to multiple secondary cluster-scoped user
15
15
.Procedure
16
16
. Edit the `VirtualMachine` manifest to add the CUDN interface details, as in the following example:
17
17
+
18
-
.Example `VirtualMachine` manifest
19
18
[source,yaml]
20
19
----
21
20
apiVersion: kubevirt.io/v1
22
21
kind: VirtualMachine
23
22
metadata:
24
23
name: example-vm
25
-
namespace: red # <1>
24
+
namespace: red
26
25
spec:
27
26
template:
28
27
spec:
29
28
domain:
30
29
devices:
31
30
interfaces:
32
-
- name: secondary_localnet # <2>
31
+
- name: secondary_localnet
33
32
bridge: {}
34
33
machine:
35
34
type: ""
36
35
resources:
37
36
requests:
38
37
memory: 2048M
39
38
networks:
40
-
- name: secondary_localnet # <3>
39
+
- name: secondary_localnet
41
40
multus:
42
-
networkName: <localnet_cudn_name> # <4>
43
-
# ...
41
+
networkName: <localnet_cudn_name>
44
42
----
45
-
<1> The namespace in which the VM is located. This value must match a namespace that is associated with the secondary CUDN.
46
-
<2> The name of the secondary user-defined network interface.
47
-
<3> The name of the network. This must match the value of the `spec.template.spec.domain.devices.interfaces.name` field.
48
-
<4> The name of the localnet `ClusterUserDefinedNetwork` object that you previously created.
43
+
+
44
+
where:
45
+
46
+
`metadata.namespace`:: Specifies the namespace in which the VM is located. This value must match a namespace that is associated with the secondary CUDN.
47
+
`spec.template.spec.domain.devices.interfaces.name`:: Specifies the name of the secondary user-defined network interface.
48
+
`spec.template.spec.networks.name`:: Specifies the name of the network. This value must match the value of the `spec.template.spec.domain.devices.interfaces.name` field.
49
+
`spec.template.spec.networks.multus.networkName`:: Specifies the name of the localnet `ClusterUserDefinedNetwork` object that you previously created.
49
50
50
51
. Apply the `VirtualMachine` manifest by running the following command:
51
52
+
@@ -57,8 +58,8 @@ $ oc apply -f <filename>.yaml
57
58
where:
58
59
59
60
<filename>:: Specifies the name of your `VirtualMachine` manifest YAML file.
60
-
61
+
+
61
62
[NOTE]
62
63
====
63
-
When running {VirtProductName} on {ibm-z-name} using an OSA card, be aware that the OSA card only forwards network traffic to devices that are registered with the OSA device. As a result, any traffic destined for unregistered devices is not forwarded.
64
+
When running {VirtProductName} on {ibm-z-name}, be aware that certain network interfaces, such as OSA, RoCE, and HiperSockets, only forward network traffic to devices that are registered with the respective interface. As a result, any traffic that is destined for unregistered devices is not forwarded. For more information, see link:https://www.ibm.com/docs/en/linux-on-systems?topic=choices-osa-interface-traffic-forwarding[OSA interface traffic forwarding] (IBM documentation).
* xref:../../networking/multiple_networks/primary_networks/about-user-defined-networks.adoc#about-cudn_about-user-defined-networks[About the `ClusterUserDefinedNetwork` CR]
* xref:../../networking/multiple_networks/primary_networks/about-user-defined-networks.adoc#about-cudn_about-user-defined-networks[About the `ClusterUserDefinedNetwork` CR]
0 commit comments