From 15397ca11a68c2d69a5d477e5700304a39c43aad Mon Sep 17 00:00:00 2001 From: Awin Huang Date: Sat, 30 Mar 2024 23:05:32 +0800 Subject: [PATCH] vault backup: 2024-03-30 23:05:32 --- 05. 資料收集/Linux/lxc.md | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) 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: [] +``` +