Problem instantiating VM on my host (fails)

Hello,

I have my frontend and KVM running on Ubuntu Server 18.04 within virtual Box on my 2015 Mac. I have connected the Host onto Sunstone but when I try to implement the ttylinux VM it fails with the logs below and the error shown below on Sunstone itself.

I have been able to passwordless SSH between both, I have tried adding the hostname to the ssh-keygen but I get the same results anyway with no change. When I run “virt-host-validate” I get one FAILURE which could possibly be the cause which leads to the question of how do I allow virtualization on either my mac or VirtualBox?
oned.logs:


Sat Nov 23 00:37:28 2019 [Z0][DiM][D]: Deploying VM 10

Sat Nov 23 00:37:28 2019 [Z0][ReM][D]: Req:6352 UID:0 one.vm.deploy result SUCCESS, 10

Sat Nov 23 00:37:29 2019 [Z0][ReM][D]: Req:4560 UID:0 one.vm.info invoked , 10

Sat Nov 23 00:37:29 2019 [Z0][ReM][D]: Req:4560 UID:0 one.vm.info result SUCCESS, “10…”

Sat Nov 23 00:37:31 2019 [Z0][TM][D]: Message received: TRANSFER SUCCESS 10 -

Sat Nov 23 00:37:32 2019 [Z0][VMM][D]: Message received: LOG I 10 Successfully execute transfer manager driver operation: tm_context.

Sat Nov 23 00:37:32 2019 [Z0][VMM][D]: Message received: LOG I 10 Successfully execute network driver operation: pre.

Sat Nov 23 00:37:33 2019 [Z0][VMM][D]: Message received: LOG I 10 Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy ‘/var/lib/one//datastores/0/10/deployment.0’ ‘10.0.0.111’ 10 10.0.0.111

Sat Nov 23 00:37:33 2019 [Z0][VMM][D]: Message received: LOG I 10 error: Failed to create domain from /var/lib/one//datastores/0/10/deployment.0

Sat Nov 23 00:37:33 2019 [Z0][VMM][D]: Message received: LOG I 10 error: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm

Sat Nov 23 00:37:33 2019 [Z0][VMM][D]: Message received: LOG E 10 Could not create domain from /var/lib/one//datastores/0/10/deployment.0

Sat Nov 23 00:37:33 2019 [Z0][VMM][D]: Message received: LOG I 10 ExitCode: 255

Sat Nov 23 00:37:33 2019 [Z0][VMM][D]: Message received: LOG I 10 Failed to execute virtualization driver operation: deploy.

Sat Nov 23 00:37:33 2019 [Z0][VMM][D]: Message received: DEPLOY FAILURE 10 Could not create domain from /var/lib/one//datastores/0/10/deployment.0


10.log:

Sat Nov 23 00:37:32 2019 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.

Sat Nov 23 00:37:32 2019 [Z0][VMM][I]: Successfully execute network driver operation: pre.

Sat Nov 23 00:37:33 2019 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy ‘/var/lib/one//datastores/0/10/deployment.0’ ‘10.0.0.111’ 10 10.0.0.111

Sat Nov 23 00:37:33 2019 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/10/deployment.0

Sat Nov 23 00:37:33 2019 [Z0][VMM][I]: error: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm

Sat Nov 23 00:37:33 2019 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/0/10/deployment.0

Sat Nov 23 00:37:33 2019 [Z0][VMM][I]: ExitCode: 255

Sat Nov 23 00:37:33 2019 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.

Sat Nov 23 00:37:33 2019 [Z0][VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/10/deployment.0

Sat Nov 23 00:37:33 2019 [Z0][VM][I]: New LCM state is BOOT_FAILURE

Versions of the related components and OS (frontend, hypervisors, VMs):


ON HOST:

virt-host-validate

QEMU: Checking for hardware virtualization : FAIL (Only emulated CPUs are available, performance will be significantly limited)
QEMU: Checking if device /dev/vhost-net exists : PASS
QEMU: Checking if device /dev/net/tun exists : PASS
QEMU: Checking for cgroup ‘memory’ controller support : PASS
QEMU: Checking for cgroup ‘memory’ controller mount-point : PASS
QEMU: Checking for cgroup ‘cpu’ controller support : PASS
QEMU: Checking for cgroup ‘cpu’ controller mount-point : PASS
QEMU: Checking for cgroup ‘cpuacct’ controller support : PASS
QEMU: Checking for cgroup ‘cpuacct’ controller mount-point : PASS
QEMU: Checking for cgroup ‘cpuset’ controller support : PASS
QEMU: Checking for cgroup ‘cpuset’ controller mount-point : PASS
QEMU: Checking for cgroup ‘devices’ controller support : PASS
QEMU: Checking for cgroup ‘devices’ controller mount-point : PASS
QEMU: Checking for cgroup ‘blkio’ controller support : PASS
QEMU: Checking for cgroup ‘blkio’ controller mount-point : PASS
WARN (Unknown if this platform has IOMMU support)
LXC: Checking for Linux >= 2.6.26 : PASS
LXC: Checking for namespace ipc : PASS
LXC: Checking for namespace mnt : PASS
LXC: Checking for namespace pid : PASS
LXC: Checking for namespace uts : PASS
LXC: Checking for namespace net : PASS
LXC: Checking for namespace user : PASS
LXC: Checking for cgroup ‘memory’ controller support : PASS
LXC: Checking for cgroup ‘memory’ controller mount-point : PASS
LXC: Checking for cgroup ‘cpu’ controller support : PASS
LXC: Checking for cgroup ‘cpu’ controller mount-point : PASS
LXC: Checking for cgroup ‘cpuacct’ controller support : PASS
LXC: Checking for cgroup ‘cpuacct’ controller mount-point : PASS
LXC: Checking for cgroup ‘cpuset’ controller support : PASS
LXC: Checking for cgroup ‘cpuset’ controller mount-point : PASS
LXC: Checking for cgroup ‘devices’ controller support : PASS
LXC: Checking for cgroup ‘devices’ controller mount-point : PASS
LXC: Checking for cgroup ‘blkio’ controller support : PASS
LXC: Checking for cgroup ‘blkio’ controller mount-point : PASS
LXC: Checking if device /sys/fs/fuse/connections exists : PASS


Error Shown on Sunstone:

Sat Nov 23 00:37:33 2019 : Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/10/deployment.0


onehost list shows
ID NAME CLUSTER TVM ALLOCATED_CPU ALLOCATED_MEM STAT
2 10.0.0.111 default 1 10 / 200 (5%) 128M / 7G (1%) on

Sat Nov 23 00:37:33 2019 [Z0][VMM][I]: error: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm

You are trying to use the KVM driver within a Virtual Machine, you need to enable nested Virtualization in order for the VM to create VMs, or, if you want to avoid the hassle, use the LXD driver instead.

I believe that both systems do have nested virtualization enabled according to Virtual Box. I’m not familiar with the LXD driver method, is there anything else I can try before switching over to that method?

03%20AM

Well, your host is not able to run KVM, you can try to manually create a virtual machine to confirm it. The experience when using the LXD driver is almost the same as KVM.

Alright, thanks for the info! I’ll try the LXD driver method but I think I’d still like to get it to work with nested virtualization so I’ll try the original method on my home PC, I was just hoping to be able to work on it on the go