Commit 74ff5eb1 authored by John Hackett's avatar John Hackett

Setting container to be privileged

parent 57394c9d
......@@ -23,6 +23,8 @@ resource "lxd_container" "opennebula" {
name = "opennebula"
image = "images:debian/stretch"
privileged = "true"
device {
name = "vol1"
type = "disk"
......@@ -43,6 +45,10 @@ resource "lxd_container" "opennebula" {
resource "lxd_profile" "opennebula" {
name = "opennebula"
config {
security.privileged = "true"
}
device {
name = "wlp58s0"
type = "nic"
......@@ -52,10 +58,11 @@ resource "lxd_profile" "opennebula" {
parent = "${lxd_network.opennebula.name}"
}
}
}
resource "lxd_storage_pool" "opennebula" {
name = "%s"
name = "opennebula"
driver = "dir"
config {
......@@ -69,5 +76,6 @@ resource "lxd_network" "opennebula" {
config {
ipv4.address = "10.0.25.1/24"
ipv4.nat = "true"
ipv6.address = "2001:8b0:baa7:e6b9:4424:8f87:eac4:1000/64"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment