Skip to content

Commit bb76459

Browse files
authored
F OpenNebula/one#7049: LXC Hot-plugging (#448)
1 parent f4ac464 commit bb76459

File tree

2 files changed

+49
-10
lines changed
  • content

2 files changed

+49
-10
lines changed

content/product/operation_references/hypervisor_configuration/lxc_driver.md

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,57 @@ You can pin containers to Host CPUs and NUMA nodes simply by adding a `TOPOLOGY`
6161

6262
### Container Actions
6363

64-
Some of the actions supported by OpenNebula for VMs are not yet implemented for LXC. The following actions are not currently supported:
64+
Some of the VM actions available in the OpenNebula API are not implemented yet for the LXC driver:
6565

66-
- `migration`
67-
- `live migration`
68-
- `live disk resize`
69-
- `save/restore`
70-
- `snapshots`
71-
- `disk-saveas`
72-
- `disk hot-plugging`
73-
- `nic hot-plugging`
66+
- [live migration](../../virtual_machines_operation/virtual_machine_instances/vm_instances.md#advanced-operations-for-administrators)
67+
- [live disk resize](../../virtual_machines_operation/virtual_machine_instances/vm_instances.md#resizing-vm-disks)
68+
- [vm state save and restore](../../virtual_machines_operation/virtual_machine_instances/vm_instances.md#save-a-vm-instance)
69+
- [system snapshots](../../virtual_machines_operation/virtual_machine_instances/vm_instances.md#virtual-machine-system-snapshots)
70+
- [live disk snapshots](../../virtual_machines_operation/virtual_machine_instances/vm_instances.md#virtual-machine-disk-snapshots)
71+
- [live disk save](../../virtual_machines_operation/virtual_machine_instances/vm_instances.md#saving-a-vm-disk-to-an-image)
72+
- [live capacity resize](../../virtual_machines_operation/virtual_machine_instances/vm_instances.md#live-resize-of-capacity)
7473

7574
### PCI Passthrough
7675

77-
PCI Passthrough is not currently supported for LXC containers.
76+
You can perform NIC PCI Passthrough on containers. For this you simply need the [PCI NICs to be monitored in the LXC hosts]({{% relref "../../cloud_clusters_infrastructure_configuration/hosts_and_clusters_configuration/pci_passthrough.md#driver-configuration" %}}). The configuration file for the PCI device detection is `/var/lib/one/remotes/etc/im/lxc-probes.d/pci.conf`. Once monitoring is successful, you can [use this PCI NIC]({{% relref "../../cloud_clusters_infrastructure_configuration/hosts_and_clusters_configuration/pci_passthrough.md#usage" %}})
77+
by declaring in it on the VM Template or hot plugging it.
78+
79+
Example PCI device monitoring
80+
81+
```bash
82+
onehost show 1 -j | jq .HOST.HOST_SHARE.PCI_DEVICES.PCI[-1]
83+
{
84+
"ADDRESS": "0000:00:08:0",
85+
"BUS": "00",
86+
"CLASS": "0200",
87+
"CLASS_NAME": "Ethernet controller",
88+
"DEVICE": "100e",
89+
"DEVICE_NAME": "82540EM Gigabit Ethernet Controller",
90+
"DOMAIN": "0000",
91+
"FUNCTION": "0",
92+
"NUMA_NODE": "-",
93+
"SHORT_ADDRESS": "00:08.0",
94+
"SLOT": "08",
95+
"TYPE": "8086:100e:0200",
96+
"VENDOR": "8086",
97+
"VENDOR_NAME": "Intel Corporation",
98+
"VMID": "-1"
99+
}
100+
```
101+
102+
NIC declaration in VM Template
103+
104+
```
105+
PCI=[
106+
NETWORK="public",
107+
NETWORK_ID="0",
108+
NETWORK_UID="0",
109+
NETWORK_UNAME="oneadmin",
110+
SHORT_ADDRESS="00:08.0",
111+
TYPE="NIC" ]
112+
```
78113

114+
Hot-plug that device with `onevm nic-attach $VM_ID -n $VNET_ID --pci "00:08.0"`
79115
### Wild Containers
80116

81117
Importing wild containers that weren’t deployed by OpenNebula is not currently supported.

content/software/release_information/release_notes_72/whats_new.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ We encourage you to review the [Known Issues]({{% relref "known_issues" %}}) and
5959
<!--keeping some examples-->
6060
- [Transparent proxying](../../../product/virtual_machines_operation/virtual_machines_networking/tproxy) allows VMs to access external services like OneGate without requiring complex networking setup.
6161

62+
## LXC
63+
64+
- NIC Hotplugging, recontextualization and NIC PCI passthrough are now available [driver features](../../../product/operation_references/hypervisor_configuration/lxc_driver.md).
6265

6366

6467
## OpenNebula Flow

0 commit comments

Comments
 (0)