blob: c4f074f9d48089c277e8aeb96e1df45767904f47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
provider "libvirt" {
uri = "qemu:///system"
}
// blank 10GB image for net install.
resource "libvirt_volume" "debian9-qcow2" {
name = "debian9-qcow2"
pool = "default"
format = "qcow2"
size = 10000000000
}
// set boot order hd, network
resource "libvirt_domain" "domain-debian9-qcow2" {
name = "debian9"
memory = "1024"
vcpu = 1
network_interface {
bridge = "br0"
mac = "52:54:00:b2:2f:86"
}
boot_device {
dev = [ "hd", "network"]
}
disk {
volume_id = "${libvirt_volume.debian9-qcow2.id}"
}
graphics {
type = "vnc"
listen_type = "address"
}
}
|