Здравствуйте! Конфиг main.tf
terraform {
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
version = "0.6.14"
}
}
}
provider "libvirt" {
uri = "qemu:///system"
}
resource "libvirt_domain" "default" {
name = "test"
disk {
volume_id = "${libvirt_volume.ubuntu_vm02_qcow2.id}"
}
graphics {
type = "vnc"
listen_type = "address"
listen_address = "192.168.1.250"
}
}
resource "libvirt_volume" "ubuntu_vm02_qcow2" {
name = "ubuntu_vm02.qcow2"
pool = "vhdd"
source = "http://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
format = "qcow2"
}
resource "libvirt_cloudinit_disk" "commoninit" {
name = "commoninit.iso"
pool = "iso"
user_data = data.template_file.user_data.rendered
}
data "template_file" "user_data" {
template = file("add_user.yaml")
}
Код файла add_user.yaml
system_info:
default_user:
name: Ubuntu
plain_text_passwd: 'ubuntu'
home: /home/ubuntu
shell: /bin/bash
lock_passwd: True
gecos: Ubuntu
groups: [adm, audio, cdrom, dialout, floppy, video, plugdev, dip, netdev]
Виртуальная машина поднимается, но когда я пытаюсь зайти под Ubuntu с пароелм ubuntu. Меня не пускает.
Где может быть ошибка?