Problem:
Sun Mar 10 23:20:06 2019 [Z0][VMM][D]: Message received: LOG I 15 Command execution fail: cat << EOT | /var/tmp/one/vmm/lxd/deploy '/var/lib/one//datastores/0/15/deployment.0' 'north-america' 15 north-america
Sun Mar 10 23:20:06 2019 [Z0][VMM][D]: Message received: LOG I 15 deploy: Overriding container
Sun Mar 10 23:20:06 2019 [Z0][VMM][D]: Message received: LOG I 15 deploy: Using raw filesystem mapper for /var/lib/one/datastores/0/15/disk.0
Sun Mar 10 23:20:06 2019 [Z0][VMM][D]: Message received: LOG I 15 deploy: Mapping disk at /var/lib/lxd/storage-pools/default/containers/one-15/rootfs using device /dev/loop0
Sun Mar 10 23:20:06 2019 [Z0][VMM][D]: Message received: LOG I 15 deploy: Resizing filesystem ext4 on /dev/loop0
Sun Mar 10 23:20:06 2019 [Z0][VMM][D]: Message received: LOG I 15 deploy: Mounting /dev/loop0 at /var/lib/lxd/storage-pools/default/containers/one-15/rootfs
Sun Mar 10 23:20:06 2019 [Z0][VMM][D]: Message received: LOG E 15 deploy: mount_on?: Mount detected in /var/lib/one/datastores/0/15/mapper/disk.1
Sun Mar 10 23:20:06 2019 [Z0][VMM][D]: Message received: LOG I 15 deploy: Using raw filesystem mapper for /var/lib/one/datastores/0/15/disk.0
Sun Mar 10 23:20:06 2019 [Z0][VMM][D]: Message received: LOG I 15 deploy: Unmapping disk at /var/lib/lxd/storage-pools/default/containers/one-15/rootfs
Sun Mar 10 23:20:06 2019 [Z0][VMM][D]: Message received: LOG I 15 deploy: Umounting disk mapped at /dev/loop0
Sun Mar 10 23:20:06 2019 [Z0][VMM][D]: Message received: LOG I 15 deploy: Unmapping disk at /var/lib/one/datastores/0/15/mapper/disk.1
Mon Mar 11 00:26:29 2019 [Z0][VMM][D]: Message received: LOG E 15 deploy: Failed to detect block device from /var/lib/one/datastores/0/15/mapper/disk.1
Mon Mar 11 00:26:29 2019 [Z0][VMM][D]: Message received: LOG E 15 deploy: failed to dismantle container storage
Mon Mar 11 00:26:29 2019 [Z0][VMM][D]: Message received: LOG I 15 /var/tmp/one/vmm/lxd/client.rb:145:in `initialize': undefined method `[]' for #<LXDError:0x000000021f20a0> (NoMethodError)
Mon Mar 11 00:26:29 2019 [Z0][VMM][D]: Message received: LOG I 15 from /var/tmp/one/vmm/lxd/deploy:86:in `exception'
Mon Mar 11 00:26:29 2019 [Z0][VMM][D]: Message received: LOG I 15 from /var/tmp/one/vmm/lxd/deploy:86:in `raise'
Mon Mar 11 00:26:29 2019 [Z0][VMM][D]: Message received: LOG I 15 from /var/tmp/one/vmm/lxd/deploy:86:in `rescue in <main>'
Mon Mar 11 00:26:29 2019 [Z0][VMM][D]: Message received: LOG I 15 from /var/tmp/one/vmm/lxd/deploy:74:in `<main>'
Mon Mar 11 00:26:29 2019 [Z0][VMM][D]: Message received: LOG I 15 ExitCode: 1
Mon Mar 11 00:26:29 2019 [Z0][VMM][D]: Message received: LOG I 15 Failed to execute virtualization driver operation: deploy.
Mon Mar 11 00:26:29 2019 [Z0][VMM][D]: Message received: DEPLOY FAILURE 15 -
I’ve downloaded ubuntu_bionic from Linux Containers data stores, added my image to a VM template like so:
CONTEXT = [
NETWORK = "YES",
SSH_PUBLIC_KEY = "$USER[SSH_PUBLIC_KEY]" ]
CPU = "1"
DISK = [
IMAGE = "ubuntu_bionic - LXD",
IMAGE_UNAME = "oneadmin" ]
GRAPHICS = [
LISTEN = "0.0.0.0",
TYPE = "VNC" ]
HYPERVISOR = "lxd"
LXD_SECURITY_NESTING = "no"
LXD_SECURITY_PRIVILEGED = "no"
MEMORY = "1024"
MEMORY_UNIT_COST = "MB"
OS = [
BOOT = "" ]
VCPU = "1"
Container always gets to “BOOT_FAILURE”. I can create new lxd containers manually (lxc launch ubuntu:18), its just within ON/sunstone that I can’t.