虚拟机配置
作者: smira创建于 2026年9月8日更新于 2026年9月18日
apiVersion: v1alpha1
kind: VirtualMachineConfig
name: my-postgres-db1 # 一个安全的名称(用于文件系统)
uuid: 0001-2233-4445-6379 # 可选,如果未设置则以稳定的方式导出
profiles:
- q35
resources:
cpu:
cores: 4
memory:
size: 16GB
ballooning: true
networking:
links:
- name: eth0
driver: virtio_net # 如何映射到 VM 中
macvlan:
mac: 33:44:55:.... # 物理节点上的链路
disks:
- name: disk1
type: disk
storagePool: pool1
size: 1TiB
driver: virtio_scsi
source: # 可选
contentLibrary: library1
image: talos1.14.qcow
- name: iso1
type: iso
driver: ?
source: # 必需
contentLibrary: library1
image: talos1.14.iso内容来源: siderolabs/talos