Determine available LXD server resources.
Display resources available on the LXD server (regular PC).
$ lxc info --resources
CPU (x86_64): Vendor: GenuineIntel Name: Intel(R) Core(TM) i5-4570S CPU @ 2.90GHz Caches: - Level 1 (type: Data): 32KiB - Level 1 (type: Instruction): 32KiB - Level 2 (type: Unified): 256KiB - Level 3 (type: Unified): 6MiB Cores: - Core 0 Frequency: 2598Mhz Threads: - 0 (id: 0, online: true, NUMA node: 0) - Core 1 Frequency: 2399Mhz Threads: - 0 (id: 1, online: true, NUMA node: 0) - Core 2 Frequency: 2347Mhz Threads: - 0 (id: 2, online: true, NUMA node: 0) - Core 3 Frequency: 2665Mhz Threads: - 0 (id: 3, online: true, NUMA node: 0) Frequency: 2502Mhz (min: 800Mhz, max: 3600Mhz) Memory: Free: 8.08GiB Used: 7.92GiB Total: 16.00GiB GPU: NUMA node: 0 Vendor: Intel Corporation (8086) Product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (0412) PCI address: 0000:00:02.0 Driver: i915 (5.4.0-97-generic) DRM: ID: 0 Card: card0 (226:0) Control: controlD64 (226:0) Render: renderD128 (226:128) NIC: NUMA node: 0 Vendor: Intel Corporation (8086) Product: Ethernet Connection I217-LM (153a) PCI address: 0000:00:19.0 Driver: e1000e (3.2.6-k) Ports: - Port 0 (ethernet) ID: eno1 Address: f8:b1:56:b2:fc:71 Supported modes: 10baseT/Half, 10baseT/Full, 100baseT/Half, 100baseT/Full, 1000baseT/Full Supported ports: twisted pair Port type: twisted pair Transceiver type: internal Auto negotiation: true Link detected: true Link speed: 1000Mbit/s (full duplex) Disks: Disk 0: NUMA node: 0 ID: sda Device: 8:0 Model: KIOXIA-EXCERIA S Type: scsi Size: 447.13GiB Read-Only: false Removable: false Partitions: - Partition 1 ID: sda1 Device: 8:1 Read-Only: false Size: 512.00MiB - Partition 2 ID: sda2 Device: 8:2 Read-Only: false Size: 446.63GiB Disk 1: NUMA node: 0 ID: sr0 Device: 11:0 Model: hp DVDRAM GT80N Type: cdrom Size: 0B Read-Only: false Removable: true
Display resources available on the LXD server (Raspberry Pi 3).
$ lxc info --resources
CPU (aarch64): Cores: - Core 0 Frequency: 900Mhz Threads: - 0 (id: 0, online: true, NUMA node: 0) - Core 1 Frequency: 900Mhz Threads: - 0 (id: 1, online: true, NUMA node: 0) - Core 2 Frequency: 900Mhz Threads: - 0 (id: 2, online: true, NUMA node: 0) - Core 3 Frequency: 900Mhz Threads: - 0 (id: 3, online: true, NUMA node: 0) Frequency: 900Mhz (min: 600Mhz, max: 1400Mhz) Memory: Free: 548.90MiB Used: 410.91MiB Total: 959.81MiB NICs: Card 0: NUMA node: 0 Driver: lan78xx (5.10.63-v8+) Ports: - Port 0 (ethernet) ID: eth0 Address: b8:27:eb:e4:38:57 Supported modes: 10baseT/Half, 10baseT/Full, 100baseT/Half, 100baseT/Full, 1000baseT/Full Supported ports: twisted pair, media-independent Port type: twisted pair Transceiver type: internal Auto negotiation: true Link detected: false Card 1: NUMA node: 0 Driver: brcmfmac (5.10.63-v8+) Ports: - Port 0 (ethernet) ID: wlan0 Address: b8:27:eb:b1:6d:02 Auto negotiation: false Link detected: false Disk: NUMA node: 0 ID: mmcblk0 Device: 179:0 Type: mmc Size: 14.48GiB Read-Only: false Removable: false Partitions: - Partition 1 ID: mmcblk0p1 Device: 179:1 Read-Only: false Size: 128.00MiB - Partition 2 ID: mmcblk0p2 Device: 179:2 Read-Only: false Size: 14.36GiB
Simple as that.