diff --git a/nas.tf b/nas.tf new file mode 100644 index 0000000..b902cbc --- /dev/null +++ b/nas.tf @@ -0,0 +1,76 @@ +# --- +# Create a new VM + +resource "proxmox_vm_qemu" "nas" { + + # VM General Settings + target_node = "ryuk" + vmid = "301" + name = "nas" + desc = "nas storage" + + # VM Advanced General Settings + onboot = true + + # VM OS Settings +# clone = "your-clone" + + # VM System Settings +# agent = 1 + + # VM CPU Settings + cores = 6 + sockets = 1 + cpu = "host" + + # VM Memory Settings + memory = 4024 + + # VM Network Settings + network { + bridge = "vmbr0" + model = "virtio" + } + + disks { + ide { + ide2 { + cdrom { + iso = "cephfs:iso/debian-12.9.0-amd64-netinst.iso" + } + virtio { + virtio0 { + #root disk + asyncio = "native" + discard = "true" + iothread = "true" + size = "140G" + storage = "local-lvm" + } + virtio1 { + #bulk disk + asyncio = "native" + backup = "false" + iothread = "true" + size = "8T" + storage = "watari" + } + } + } + } + } + + # VM Cloud-Init Settings + os_type = "cloud-init" + + # (Optional) IP Address and Gateway + ipconfig0 = "ip=192.168.0.50/24,gw=192.168.0.1" + + # (Optional) Default User + # ciuser = "your-username" + + # (Optional) Add your SSH KEY + sshkeys = <