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: docs/vm/nic-hotplug.md
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ keywords:
9
9
- virtual machine
10
10
- Hotplug
11
11
- NIC
12
-
description: Create VM with CPU / Memory Hotplug
12
+
description: Hotplug and hotunplug network interfaces to a running VM.
13
13
---
14
14
15
15
<head>
@@ -20,11 +20,50 @@ _Available as of v1.7.0_
20
20
21
21
:::note
22
22
23
+
The virtual machine must be [live-migratable](./live-migration.md#live-migratable-virtual-machines).
24
+
25
+
For virtual machine created prior to v1.7.0, they are not allowed to perform NIC hotplug or hotunplug if there is a network interface configured without settings MAC address explicitly. Restart is required for them to enable NIC hotplug since the observed MAC addresses would be backfilled to the virtual machine configuration during the corresponding reconciliation steps.
26
+
27
+
Besides, virtual machines created by [Harvester node driver](../rancher/node/node-driver.md) are not allowed for hotplugging and hotunplugging.
28
+
23
29
:::
24
30
25
31
Harvester supports hotplugging and hotunplugging NICs to a live-migratable virtual machine. This feature allows you to add and remove NICs to a running virtual machine without requiring a reboot.
26
32
27
33
## Hotplug NICs to a Running VM
28
34
35
+
:::note
36
+
37
+
Only [VLAN network](../../networking/harvester-network.md#vlan-network), [untagged network](../../networking/harvester-network.md#untagged-network), [VLAN trunk network](../../networking/harvester-network.md#vlan-trunk-network) are supported for hotplugging.
38
+
39
+
:::
40
+
41
+
You can hotplug an interface to a network using the **Hotplug Network Interface** button.
Once you click **Apply**, Harvester [migrates the virtual machine](./live-migration.md#prerequisites) and the new `virtio` model interface would be connected through bridge binding.
47
+
48
+
49
+
:::note
50
+
51
+
Be aware that there are limitations to the number of hotplugged interfaces. Please refer to [this KubeVirt documentation](https://kubevirt.io/user-guide/network/hotplug_interfaces/#virtio-limitations).
52
+
53
+
:::
29
54
30
55
## Hotunplug NICs from a Running VM
56
+
57
+
:::note
58
+
59
+
Hot-unplug is only supported for interfaces connected through bridge binding.
60
+
If there is only single network interface left, it's not allowed to be hotunplugged.
61
+
62
+
:::
63
+
64
+
Navigate to the **Networks** tab of the detail page of a virtual machine. **Detach Network Interface** button can be used to hotunplug the interface.
0 commit comments