new nas config

This commit is contained in:
tolerryan
2025-08-24 22:34:24 -05:00
parent 7c99734da4
commit 6144f45615

155
nas.tf
View File

@@ -1,78 +1,151 @@
resource "proxmox_vm_qemu" "nas" {
# VM General Settings
target_node = "ryuk"
vmid = "301"
name = "nas"
description = "nas storage"
# VM Advanced General Settings
onboot = true
# VM OS Settings
clone = "Debian12Template"
# VM System Settings
# agent = 1
# VM CPU Settings
# VM Memory Settings
agent = 0
args = null
balloon = 0
bios = "seabios"
boot = "order=net0;scsi0"
bootdisk = null
cipassword = (sensitive value)
ciupgrade = false
ciuser = "root"
cores = 0
cpu_type = null
current_node = "ryuk"
define_connection_info = false
desc = "nas storage"
force_create = false
full_clone = false
hagroup = null
hastate = null
hotplug = "network,disk,usb"
id = "301"
ipconfig0 = "ip=192.168.0.50/24,gw=192.168.0.1"
kvm = true
linked_vmid = 0
machine = null
memory = 4024
name = "nas"
numa = false
onboot = true
pool = null
protection = false
qemu_os = "l26"
reboot_required = false
scsihw = "lsi"
sockets = 0
sshkeys = <<-EOT
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFw70PrMsilcsqCrwW1I6PAt3anQbhmVg+t/HUfomug ryan@mxDesktop
EOT
startup = null
tablet = true
tags = null
target_nodes = [
"ryuk",
]
unused_disk = []
vcpus = 0
vm_state = "running"
vmid = 301
cpu {
affinity = null
cores = 6
limit = 0
numa = false
sockets = 1
type = "host"
units = 0
vcores = 0
}
disks {
scsi {
scsi0 {
ignore = false
disk {
asyncio = "native"
backup = true
cache = "none"
asyncio = "native"
discard = true
emulatessd = true
format = "raw"
id = 0
iops_r_burst = 0
iops_r_burst_length = 0
iops_r_concurrent = 0
iops_wr_burst = 0
iops_wr_burst_length = 0
iops_wr_concurrent = 0
iothread = true
mbps_r_burst = 0.0
mbps_r_concurrent = 0.0
mbps_wr_burst = 0.0
mbps_wr_concurrent = 0.0
linked_disk_id = -1
mbps_r_burst = 0
mbps_r_concurrent = 0
mbps_wr_burst = 0
mbps_wr_concurrent = 0
readonly = false
replicate = true
serial = null
size = "42G"
storage = "local-lvm"
wwn = null
}
}
}
virtio {
virtio0 {
ignore = false
disk {
asyncio = "native"
backup = false
cache = null
discard = false
format = "raw"
id = 0
iops_r_burst = 0
iops_r_burst_length = 0
iops_r_concurrent = 0
iops_wr_burst = 0
iops_wr_burst_length = 0
iops_wr_concurrent = 0
iothread = true
linked_disk_id = -1
mbps_r_burst = 0
mbps_r_concurrent = 0
mbps_wr_burst = 0
mbps_wr_concurrent = 0
readonly = false
replicate = false
serial = null
size = "8T"
storage = "Ceph"
format = "raw"
wwn = null
}
}
}
}
# VM Network Settings
network {
id = 1
bridge = "vmbr0"
firewall = false
id = 0
link_down = false
macaddr = "ae:dd:45:0f:ee:eb"
model = "virtio"
mtu = 0
queues = 0
rate = 0
tag = 0
}
# 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 = "root"
# (Optional) Add your SSH KEY
sshkeys = <<EOF
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFw70PrMsilcsqCrwW1I6PAt3anQbhmVg+t/HUfomug ryan@mxDesktop
EOF
smbios {
family = null
manufacturer = null
product = null
serial = null
sku = null
uuid = "0fe6b111-6c0a-4373-9eea-a072b946baf7"
version = null
}
}