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
= Attaching a virtual machine to the primary user-defined network by using the web console
8
+
9
+
You can connect a virtual machine (VM) to the primary user-defined network (UDN) by using the {product-title} web console. VMs that are created in a namespace where the primary UDN is configured are automatically attached to the UDN with the Layer 2 bridge network binding plugin.
10
+
11
+
To attach a VM to the primary UDN by using the Plug a Simple Socket Transport (passt) binding, enable the plugin and configure the VM network interface in the web console.
12
+
13
+
:FeatureName: Using the passt binding plugin to attach a VM to the primary UDN
14
+
include::snippets/technology-preview.adoc[]
15
+
16
+
.Prerequisites
17
+
* You are logged in to the {product-title} web console.
18
+
19
+
.Procedure
20
+
. Follow these steps to enable the passt network binding plugin Technology Preview feature:
21
+
22
+
.. From the *Virtualization* perspective, click *Overview*.
23
+
24
+
.. On the *Virtualization* page, click the *Settings* tab.
25
+
26
+
.. Click *Preview features* and set *Enable Passt binding for primary user-defined networks* to on.
27
+
28
+
. From the *Virtualization* perspective, click *VirtualMachines*.
29
+
30
+
. Select a VM to open the *VirtualMachine details* page.
31
+
32
+
. Click the *Configuration* tab.
33
+
34
+
. Click *Network*.
35
+
36
+
. Click the Options menu {kebab} on the *Network interfaces* page and select *Edit*.
37
+
38
+
. In the *Edit network interface* dialog, select the default pod network attachment from the *Network* list.
39
+
40
+
. Expand *Advanced* and then select the *Passt* binding.
41
+
42
+
. Click *Save*.
43
+
44
+
. If your VM is running, restart it for the changes to take effect.
Copy file name to clipboardExpand all lines: modules/virt-attaching-vm-to-primary-udn.adoc
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,16 @@
6
6
[id="virt-attaching-vm-to-primary-udn_{context}"]
7
7
= Attaching a virtual machine to the primary user-defined network by using the CLI
8
8
9
-
You can connect a virtual machine (VM) to the primary user-defined network (UDN) by requesting the pod network attachment, and configuring the interface binding.
9
+
You can connect a virtual machine (VM) to the primary user-defined network (UDN) by using the CLI.
10
10
11
11
.Prerequisites
12
12
* You have installed the OpenShift CLI (`oc`).
13
13
14
14
.Procedure
15
15
. Edit the `VirtualMachine` manifest to add the UDN interface details, as in the following example:
16
16
+
17
-
.Example `VirtualMachine` manifest
17
+
Example `VirtualMachine` manifest:
18
+
+
18
19
[source,yaml]
19
20
----
20
21
apiVersion: kubevirt.io/v1
@@ -39,9 +40,21 @@ spec:
39
40
----
40
41
<1> The namespace in which the VM is located. This value must match the namespace in which the UDN is defined.
41
42
<2> The name of the user-defined network interface.
42
-
<3> The name of the binding plugin that is used to connect the interface to the VM. The required value is `l2bridge`.
43
+
<3> The name of the binding plugin that is used to connect the interface to the VM. The possible values are `l2bridge` and `passt`. The default value is `l2bridge`.
43
44
<4> The name of the network. This must match the value of the `spec.template.spec.domain.devices.interfaces.name` field.
44
45
46
+
. Optional: If you are using the Plug a Simple Socket Transport (passt) network binding plugin, set the `hco.kubevirt.io/deployPasstNetworkBinding` annotation to `true` in the `HyperConverged` custom resource (CR) by running the following command:
* xref:../../virt/vm_networking/virt-connecting-vm-to-primary-udn.adoc#virt-creating-udn-namespace-cli_virt-connecting-vm-to-primary-udn[Create namespaces that are associated with the cluster-scoped UDN]
== Attaching a virtual machine to the primary user-defined network
64
+
65
+
You can connect a virtual machine (VM) to the primary user-defined network (UDN) by requesting the pod network attachment and configuring the interface binding.
66
+
67
+
{VirtProductName} supports the following network binding plugins to connect the network interface to the VM:
68
+
69
+
Layer 2 bridge:: The Layer 2 bridge binding creates a direct Layer 2 connection between the VM's virtual interface and the virtual switch of the UDN.
70
+
71
+
Passt:: The Plug a Simple Socket Transport (passt) binding provides a user-space networking solution that integrates seamlessly with the pod network, providing better integration with the {product-title} networking ecosystem.
72
+
+
73
+
Passt binding has the following benefits:
74
+
75
+
* You can define readiness and liveness HTTP probes to configure VM health checks.
76
+
* You can use Red Hat Advanced Cluster Security to monitor TCP traffic within the cluster with detailed insights.
77
+
78
+
:FeatureName: Using the passt binding plugin to attach a VM to the primary UDN
0 commit comments