# resource "proxmox_vm_qemu" "sandbox" {
#   vmid        = 123
#   name        = "sandbox"
#   target_node = var.pm_node
#   agent       = 1
#   cpu {
#     cores     = 2
#   }
#   memory      = 1024
#   boot        = " " #"order=scsi0" # has to be the same as the OS disk of the template
#   clone_id    = 9000
#   full_clone  = true
#   scsihw      = "virtio-scsi-single"
#   vm_state    = "running"
#   automatic_reboot = true

#   # Cloud-Init configuration
#   # cicustom   = "vendor=local:snippets/qemu-guest-agent.yml" # /var/lib/vz/snippets/qemu-guest-agent.yml
#   ciupgrade  = true
#   ipconfig0  = "ip=dhcp"
#   skip_ipv6  = true
#   ciuser     = "root"
#   # ci pasword doesn't seem to work with nix
#   # cipassword = "Enter123!"
#   sshkeys    = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICUP7m8jZJiclZGfSje8CeBYFhX10SrdtjYziuChmj1X plasmagoat@macbook-air"

#   # Most cloud-init images require a serial device for their display
#   serial {
#     id = 0
#   }

#   disks {
#     virtio {
#       virtio0 {
#         # We have to specify the disk from our template, else Terraform will think it's not supposed to be there
#         disk {
#           storage = "pv1"
#           # The size of the disk should be at least as big as the disk in the template. If it's smaller, the disk will be recreated
#           size    = "5G"
#         }
#       }
#     }
#     ide {
#       # Some images require a cloud-init disk on the IDE controller, others on the SCSI or SATA controller
#       ide1 {
#         cloudinit {
#           storage = "local-lvm"
#         }
#       }
#     }
#   }

#   network {
#     id = 0
#     bridge = "vmbr0"
#     model  = "virtio"
#   }
# }
