diff --git a/05. 資料收集/Linux/lxc.md b/05. 資料收集/Linux/lxc.md index 3ed8166..87018b0 100644 --- a/05. 資料收集/Linux/lxc.md +++ b/05. 資料收集/Linux/lxc.md @@ -40,4 +40,19 @@ Would you like a YAML "init" preseed to be printed? (yes/no) [default=no]: ## 建立 pool ```shell 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 device set windows eth0 nictype=macvlan +sudo incus profile device set windows eth0 parent=br0 +sudo incus profile show windows ``` \ No newline at end of file