diff --git a/05. 資料收集/Linux/lxc.md b/05. 資料收集/Linux/lxc.md index 4e66e95..9c99ab1 100644 --- a/05. 資料收集/Linux/lxc.md +++ b/05. 資料收集/Linux/lxc.md @@ -45,12 +45,29 @@ sudo incus storage create vmpool dir source=/lvm1/lxd_storage ## 建立 profile ```shell sudo incus profile copy default windows -sudo incus profile set windows --property description="Windows: 16CPU, 16GB RAM, 1024GB DISK" -sudo incus profile set windows limits.cpu=16 -sudo incus profile set windows limits.memory=16GiB -sudo incus profile set windows raw.qemu="-device intel-hda -device hda-duplex -audio spice" -sudo incus profile device add windows vtpm tpm path=/dev/tpm0 -sudo incus profile device set windows root pool=vmpool -sudo incus profile device set windows root size=1024GiB -sudo incus profile show windows -``` \ No newline at end of file +``` + +編輯profile,內容如下: +``` +config: + limits.cpu: "16" + limits.memory: 16GiB + raw.qemu: -device intel-hda -device hda-duplex -audio spice +description: 'Windows: 16CPU, 16GB RAM, 1024GB DISK' +devices: + eth0: + name: eth0 + nictype: macvlan + parent: br0 + type: nic + root: + path: / + pool: vmpool + type: disk + vtpm: + path: /dev/tpm0 + type: tpm +name: windows +used_by: [] +``` +