Installing Windows Server 2016 on OpenNebula 5.6.1 (nested virtualization)


#1

I successfully installed Open Nebula 5.6.1 on VirtualBox under Ubuntu 16.04.
I achieved to create some linux virtual machines but I stumbled upon Windows Server 2016.

I uploaded a WinServer 2016 ISO, Virtio Drivers ISO and create a new empty disk-image.
Then I created a new template and added stuff.
Finally, I instantiated a virtual machine but at the installation process it failed.

That is my template …

CONTEXT = [
NETWORK = “YES”,
SSH_PUBLIC_KEY = “$USER[SSH_PUBLIC_KEY]” ]
CPU = “1”
DISK = [
DEV_PREFIX = “vd”,
IMAGE = “WindowsServer2016_HD”,
IMAGE_UNAME = “oneadmin” ]
DISK = [
IMAGE = “WinServer_ISO”,
IMAGE_UNAME = “oneadmin” ]
DISK = [
IMAGE = “Virtio Drivers”,
IMAGE_UNAME = “oneadmin” ]
FEATURES = [
ACPI = “yes”,
APIC = “yes”,
LOCALTIME = “no” ]
GRAPHICS = [
LISTEN = “0.0.0.0”,
RANDOM_PASSWD = “YES”,
TYPE = “VNC” ]
HYPERVISOR = “kvm”
INPUT = [
BUS = “usb”,
TYPE = “tablet” ]
INPUTS_ORDER = “”
LOGO = “images/logos/windows8.png”
MEMORY = “4096”
MEMORY_UNIT_COST = “MB”
NIC = [
NETWORK = “mired”,
NETWORK_UNAME = “oneadmin”,
SECURITY_GROUPS = “0” ]
NIC_DEFAULT = [
MODEL = “virtio” ]
OS = [
ARCH = “x86_64”,
BOOT = “disk0,disk1,disk2” ]

and this is my instance…

User template
HYPERVISOR = “kvm”
INPUTS_ORDER = “”
LOGO = “images/logos/windows8.png”
MEMORY_UNIT_COST = “MB”

Template
AUTOMATIC_DS_REQUIREMENTS = “(“CLUSTERS/ID” @> 0)”
AUTOMATIC_REQUIREMENTS = “(CLUSTER_ID = 0) & !(PUBLIC_CLOUD = YES)”
CONTEXT = [
DISK_ID = “3”,
ETH0_CONTEXT_FORCE_IPV4 = “”,
ETH0_DNS = “8.8.8.8”,
ETH0_GATEWAY = “10.0.2.2”,
ETH0_GATEWAY6 = “”,
ETH0_IP = “10.0.2.100”,
ETH0_IP6 = “”,
ETH0_IP6_PREFIX_LENGTH = “”,
ETH0_IP6_ULA = “”,
ETH0_MAC = “02:00:0a:00:02:64”,
ETH0_MASK = “255.255.255.0”,
ETH0_MTU = “”,
ETH0_NETWORK = “10.0.2.0”,
ETH0_SEARCH_DOMAIN = “”,
ETH0_VLAN_ID = “”,
ETH0_VROUTER_IP = “”,
ETH0_VROUTER_IP6 = “”,
ETH0_VROUTER_MANAGEMENT = “”,
NETWORK = “YES”,
SSH_PUBLIC_KEY = “ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVpvNrmwNktc2iRzWwthSMFV3/qYVFTWayxyQhOto31R0zaZjWyZXCZBig3aiceTbLRPUmvzpX79bXVeCEolGQUGHQSj+wN6h1/r49zCAkP1FghmM99VlmvZrHgjvyQvLIVRBczuVcliv4b0WFn7e/XY9etHT+qnUQ0U5BTyD8bssAUf0cNb9qirzmW3jDqJmZlDeHPQyZuAFBcNziwN/0EesEg3pfoaM3yYWGwx5pmQL5pXkII+g21toH0lzN2uMHi5Id86joymXnUzYazUasBuqfixNyQ627Z3gRm2vnBqO640mgQcPU2oLBGIdFTmBwMsi7C9W5zjuUTfmqH2Nb oneadmin@osboxes”,
TARGET = “hdc” ]
CPU = “1”
DISK = [
ALLOW_ORPHANS = “NO”,
CLONE = “YES”,
CLONE_TARGET = “SYSTEM”,
CLUSTER_ID = “0”,
DATASTORE = “default”,
DATASTORE_ID = “1”,
DEV_PREFIX = “vd”,
DISK_ID = “0”,
DISK_SNAPSHOT_TOTAL_SIZE = “0”,
DISK_TYPE = “FILE”,
DRIVER = “qcow2”,
IMAGE = “WindowsServer2016_HD”,
IMAGE_ID = “23”,
IMAGE_STATE = “2”,
IMAGE_UNAME = “oneadmin”,
LN_TARGET = “SYSTEM”,
ORDER = “1”,
ORIGINAL_SIZE = “51200”,
READONLY = “NO”,
SAVE = “NO”,
SIZE = “51200”,
SOURCE = “/var/lib/one//datastores/1/7038ee0f0248ee382d9d06eeab954b70”,
TARGET = “vda”,
TM_MAD = “ssh”,
TYPE = “FILE” ]
DISK = [
ALLOW_ORPHANS = “NO”,
CLONE = “NO”,
CLONE_TARGET = “SYSTEM”,
CLUSTER_ID = “0”,
DATASTORE = “default”,
DATASTORE_ID = “1”,
DEV_PREFIX = “hd”,
DISK_ID = “1”,
DISK_SNAPSHOT_TOTAL_SIZE = “0”,
DISK_TYPE = “FILE”,
DRIVER = “raw”,
IMAGE = “WinServer_ISO”,
IMAGE_ID = “18”,
IMAGE_STATE = “2”,
IMAGE_UNAME = “oneadmin”,
LN_TARGET = “SYSTEM”,
ORDER = “2”,
ORIGINAL_SIZE = “6673”,
READONLY = “YES”,
SAVE = “NO”,
SIZE = “6673”,
SOURCE = “/var/lib/one//datastores/1/2963c2542f6d79cb69f700441049af0e”,
TARGET = “hda”,
TM_MAD = “ssh”,
TYPE = “CDROM” ]
DISK = [
ALLOW_ORPHANS = “NO”,
CLONE = “NO”,
CLONE_TARGET = “SYSTEM”,
CLUSTER_ID = “0”,
DATASTORE = “default”,
DATASTORE_ID = “1”,
DEV_PREFIX = “hd”,
DISK_ID = “2”,
DISK_SNAPSHOT_TOTAL_SIZE = “0”,
DISK_TYPE = “FILE”,
DRIVER = “raw”,
IMAGE = “Virtio Drivers”,
IMAGE_ID = “19”,
IMAGE_STATE = “2”,
IMAGE_UNAME = “oneadmin”,
LN_TARGET = “SYSTEM”,
ORDER = “3”,
ORIGINAL_SIZE = “302”,
READONLY = “YES”,
SAVE = “NO”,
SIZE = “302”,
SOURCE = “/var/lib/one//datastores/1/b819691f3bd6d5340527754b37329ede”,
TARGET = “hdb”,
TM_MAD = “ssh”,
TYPE = “CDROM” ]
FEATURES = [
ACPI = “yes”,
APIC = “yes”,
LOCALTIME = “no” ]
GRAPHICS = [
LISTEN = “0.0.0.0”,
PASSWD = “e7da8a0b898996b645ac5b1896cfc8723803a4f6”,
PORT = “5960”,
RANDOM_PASSWD = “YES”,
TYPE = “VNC” ]
INPUT = [
BUS = “usb”,
TYPE = “tablet” ]
MEMORY = “4096”
NIC = [
AR_ID = “0”,
BRIDGE = “br0”,
CLUSTER_ID = “0”,
IP = “10.0.2.100”,
MAC = “02:00:0a:00:02:64”,
MODEL = “virtio”,
NETWORK = “mired”,
NETWORK_ID = “0”,
NIC_ID = “0”,
SECURITY_GROUPS = “0”,
TARGET = “one-60-0”,
VN_MAD = “bridge” ]
NIC_DEFAULT = [
MODEL = “virtio” ]
OS = [
ARCH = “x86_64”,
BOOT = “disk0,disk1,disk2” ]
SECURITY_GROUP_RULE = [
PROTOCOL = “ALL”,
RULE_TYPE = “OUTBOUND”,
SECURITY_GROUP_ID = “0”,
SECURITY_GROUP_NAME = “default” ]
SECURITY_GROUP_RULE = [
PROTOCOL = “ALL”,
RULE_TYPE = “INBOUND”,
SECURITY_GROUP_ID = “0”,
SECURITY_GROUP_NAME = “default” ]
TEMPLATE_ID = “10”
VMID = “60”

I checked out logs, but I coudn´t find anything strange.

Can anyone give me a hand?


(Sergio) #2

You should add the VM logs, they will provide more information about your issue.


(Roland) #3

hi,

I must admin I haven’t dug thru your template to find a mistake, but I know that from > win10 (incl. server > 2016) - Windows will not install on the default “QEMU virtual CPU” or whatever Virtualbox has as CPU emulator setting.

Try the solutions posted in the end of this thread, hope this helps:

see this post:


#4

Sorry for the delay, but I have been overworked and trying multiple vm configurations.

Windows Server 2016 installation still does not work.

If I don’t attach nothing to my template the vm reboots unexpectedly at some point of installation, allways after language settings:

If I add to my template :

RAW = [ DATA = “<cpu mode=‘host-passthrough’></cpu>”, TYPE = kvm ]

the VM log outputs:

Sat Nov 17 17:28:03 2018 [Z0][VM][I]: New state is ACTIVE
Sat Nov 17 17:28:03 2018 [Z0][VM][I]: New LCM state is BOOT_POWEROFF
Sat Nov 17 17:28:03 2018 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/70/deployment.2
Sat Nov 17 17:28:04 2018 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Sat Nov 17 17:28:04 2018 [Z0][VMM][I]: ExitCode: 0
Sat Nov 17 17:28:04 2018 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Sat Nov 17 17:28:06 2018 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy ‘/var/lib/one//datastores/0/70/deployment.2’ ‘10.0.2.15’ 70 10.0.2.15
Sat Nov 17 17:28:06 2018 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/70/deployment.2
Sat Nov 17 17:28:06 2018 [Z0][VMM][I]: error: unsupported configuration: CPU mode ‘host-passthrough’ is only supported with kvm
Sat Nov 17 17:28:06 2018 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/0/70/deployment.2
Sat Nov 17 17:28:06 2018 [Z0][VMM][I]: ExitCode: 255
Sat Nov 17 17:28:06 2018 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Sat Nov 17 17:28:06 2018 [Z0][VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/70/deployment.2
Sat Nov 17 17:28:06 2018 [Z0][VM][I]: New state is POWEROFF
Sat Nov 17 17:28:06 2018 [Z0][VM][I]: New LCM state is LCM_INIT

One thing I have to say here is that I changed “kvm” for “qemu” in /etc/one/oned.conf for vms to work.

Anyway, I’ve been trying other configurations such as:

RAW=[ DATA="&lt;cpu&gt;&lt;model fallback='allow'&gt;core2duo&lt;/model&gt;&lt;/cpu&gt;", TYPE="kvm" ]

and either does not work.

I attach the outputs of the following commands just in case they were useful:

profe@osboxes:/var/log/one$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 142
model name      : Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
stepping        : 10
cpu MHz         : 1800.002
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single kaiser fsgsbase avx2 invpcid rdseed clflushopt
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
bogomips        : 3600.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 142
model name      : Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
stepping        : 10
cpu MHz         : 1800.002
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 4
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single kaiser fsgsbase avx2 invpcid rdseed clflushopt
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
bogomips        : 3600.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 142
model name      : Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
stepping        : 10
cpu MHz         : 1800.002
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 2
cpu cores       : 4
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single kaiser fsgsbase avx2 invpcid rdseed clflushopt
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
bogomips        : 3600.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 142
model name      : Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
stepping        : 10
cpu MHz         : 1800.002
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 3
cpu cores       : 4
apicid          : 3
initial apicid  : 3
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single kaiser fsgsbase avx2 invpcid rdseed clflushopt
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
bogomips        : 3600.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

profe@osboxes:/var/log/one$ virsh capabilities
<capabilities>

  <host>
    <uuid>44011110-4f12-4143-938c-91d569e1197d</uuid>
    <cpu>
      <arch>x86_64</arch>
      <model>Westmere</model>
      <vendor>Intel</vendor>
      <topology sockets='1' cores='4' threads='1'/>
      <feature name='invtsc'/>
      <feature name='rdseed'/>
      <feature name='invpcid'/>
      <feature name='avx2'/>
      <feature name='fsgsbase'/>
      <feature name='3dnowprefetch'/>
      <feature name='abm'/>
      <feature name='rdtscp'/>
      <feature name='hypervisor'/>
      <feature name='rdrand'/>
      <feature name='avx'/>
      <feature name='osxsave'/>
      <feature name='xsave'/>
      <feature name='movbe'/>
      <feature name='x2apic'/>
      <feature name='pcid'/>
      <feature name='pclmuldq'/>
      <feature name='ht'/>
      <feature name='vme'/>
      <pages unit='KiB' size='4'/>
      <pages unit='KiB' size='2048'/>
    </cpu>
    <power_management>
      <suspend_mem/>
      <suspend_disk/>
      <suspend_hybrid/>
    </power_management>
    <migration_features>
      <live/>
      <uri_transports>
        <uri_transport>tcp</uri_transport>
        <uri_transport>rdma</uri_transport>
      </uri_transports>
    </migration_features>
    <topology>
      <cells num='1'>
        <cell id='0'>
          <memory unit='KiB'>8174820</memory>
          <pages unit='KiB' size='4'>2043705</pages>
          <pages unit='KiB' size='2048'>0</pages>
          <distances>
            <sibling id='0' value='10'/>
          </distances>
          <cpus num='4'>
            <cpu id='0' socket_id='0' core_id='0' siblings='0'/>
            <cpu id='1' socket_id='0' core_id='1' siblings='1'/>
            <cpu id='2' socket_id='0' core_id='2' siblings='2'/>
            <cpu id='3' socket_id='0' core_id='3' siblings='3'/>
          </cpus>
        </cell>
      </cells>
    </topology>
    <secmodel>
      <model>apparmor</model>
      <doi>0</doi>
    </secmodel>
    <secmodel>
      <model>dac</model>
      <doi>0</doi>
      <baselabel type='kvm'>+9869:+9869</baselabel>
      <baselabel type='qemu'>+9869:+9869</baselabel>
    </secmodel>
  </host>

  <guest>
    <os_type>hvm</os_type>
    <arch name='i686'>
      <wordsize>32</wordsize>
      <emulator>/usr/bin/qemu-system-i386</emulator>
      <machine maxCpus='255'>pc-i440fx-xenial</machine>
      <machine canonical='pc-i440fx-xenial' maxCpus='255'>ubuntu</machine>
      <machine maxCpus='255'>pc-i440fx-2.4</machine>
      <machine maxCpus='255'>pc-1.3</machine>
      <machine maxCpus='255'>pc-0.12</machine>
      <machine maxCpus='255'>pc-q35-1.6</machine>
      <machine maxCpus='255'>pc-q35-1.5</machine>
      <machine maxCpus='1'>xenpv</machine>
      <machine maxCpus='255'>pc-i440fx-1.6</machine>
      <machine maxCpus='255'>pc-q35-2.2</machine>
      <machine maxCpus='255'>pc-i440fx-vivid</machine>
      <machine maxCpus='255'>pc-0.11</machine>
      <machine maxCpus='255'>pc-i440fx-2.3</machine>
      <machine maxCpus='255'>pc-0.10</machine>
      <machine maxCpus='255'>pc-1.2</machine>
      <machine maxCpus='255'>pc-i440fx-2.2</machine>
      <machine maxCpus='1'>isapc</machine>
      <machine maxCpus='255'>pc-i440fx-1.7</machine>
      <machine maxCpus='255'>pc-q35-xenial</machine>
      <machine maxCpus='255'>pc-q35-1.4</machine>
      <machine maxCpus='255'>pc-i440fx-trusty</machine>
      <machine maxCpus='255'>pc-i440fx-wily</machine>
      <machine maxCpus='128'>xenfv</machine>
      <machine maxCpus='255'>pc-q35-2.5</machine>
      <machine canonical='pc-q35-2.5' maxCpus='255'>q35</machine>
      <machine maxCpus='255'>pc-0.15</machine>
      <machine maxCpus='255'>pc-i440fx-utopic</machine>
      <machine maxCpus='255'>pc-i440fx-1.5</machine>
      <machine maxCpus='255'>pc-0.14</machine>
      <machine maxCpus='255'>pc-q35-2.0</machine>
      <machine maxCpus='255'>pc-i440fx-1.4</machine>
      <machine maxCpus='255'>pc-q35-2.1</machine>
      <machine maxCpus='255'>pc-i440fx-2.5</machine>
      <machine canonical='pc-i440fx-2.5' maxCpus='255'>pc</machine>
      <machine maxCpus='255'>pc-1.1</machine>
      <machine maxCpus='255'>pc-q35-1.7</machine>
      <machine maxCpus='255'>pc-i440fx-2.1</machine>
      <machine maxCpus='255'>pc-1.0</machine>
      <machine maxCpus='255'>pc-i440fx-2.0</machine>
      <machine maxCpus='255'>pc-q35-2.4</machine>
      <machine maxCpus='255'>pc-q35-2.3</machine>
      <machine maxCpus='255'>pc-0.13</machine>
      <domain type='qemu'/>
    </arch>
    <features>
      <cpuselection/>
      <deviceboot/>
      <disksnapshot default='on' toggle='no'/>
      <acpi default='on' toggle='yes'/>
      <apic default='on' toggle='no'/>
      <pae/>
      <nonpae/>
    </features>
  </guest>

  <guest>
    <os_type>hvm</os_type>
    <arch name='x86_64'>
      <wordsize>64</wordsize>
      <emulator>/usr/bin/qemu-system-x86_64</emulator>
      <machine maxCpus='255'>pc-i440fx-xenial</machine>
      <machine canonical='pc-i440fx-xenial' maxCpus='255'>ubuntu</machine>
      <machine maxCpus='255'>pc-i440fx-2.4</machine>
      <machine maxCpus='255'>pc-1.3</machine>
      <machine maxCpus='255'>pc-0.12</machine>
      <machine maxCpus='255'>pc-q35-1.6</machine>
      <machine maxCpus='255'>pc-q35-1.5</machine>
      <machine maxCpus='255'>pc-i440fx-1.6</machine>
      <machine maxCpus='255'>pc-q35-2.2</machine>
      <machine maxCpus='255'>pc-i440fx-1.7</machine>
      <machine maxCpus='255'>pc-i440fx-vivid</machine>
      <machine maxCpus='255'>pc-0.11</machine>
      <machine maxCpus='1'>xenpv</machine>
      <machine maxCpus='255'>pc-q35-2.1</machine>
      <machine maxCpus='255'>pc-q35-xenial</machine>
      <machine maxCpus='255'>pc-0.10</machine>
      <machine maxCpus='255'>pc-1.2</machine>
      <machine maxCpus='255'>pc-i440fx-2.2</machine>
      <machine maxCpus='1'>isapc</machine>
      <machine maxCpus='255'>pc-i440fx-2.3</machine>
      <machine maxCpus='255'>pc-i440fx-trusty</machine>
      <machine maxCpus='255'>pc-q35-1.4</machine>
      <machine maxCpus='255'>pc-i440fx-wily</machine>
      <machine maxCpus='128'>xenfv</machine>
      <machine maxCpus='255'>pc-q35-2.5</machine>
      <machine canonical='pc-q35-2.5' maxCpus='255'>q35</machine>
      <machine maxCpus='255'>pc-0.15</machine>
      <machine maxCpus='255'>pc-i440fx-utopic</machine>
      <machine maxCpus='255'>pc-i440fx-1.5</machine>
      <machine maxCpus='255'>pc-q35-2.0</machine>
      <machine maxCpus='255'>pc-i440fx-1.4</machine>
      <machine maxCpus='255'>pc-i440fx-2.5</machine>
      <machine canonical='pc-i440fx-2.5' maxCpus='255'>pc</machine>
      <machine maxCpus='255'>pc-0.14</machine>
      <machine maxCpus='255'>pc-1.1</machine>
      <machine maxCpus='255'>pc-i440fx-2.1</machine>
      <machine maxCpus='255'>pc-q35-1.7</machine>
      <machine maxCpus='255'>pc-1.0</machine>
      <machine maxCpus='255'>pc-i440fx-2.0</machine>
      <machine maxCpus='255'>pc-q35-2.4</machine>
      <machine maxCpus='255'>pc-q35-2.3</machine>
      <machine maxCpus='255'>pc-0.13</machine>
      <domain type='qemu'/>
    </arch>
    <features>
      <cpuselection/>
      <deviceboot/>
      <disksnapshot default='on' toggle='no'/>
      <acpi default='on' toggle='yes'/>
      <apic default='on' toggle='no'/>
    </features>
  </guest>

</capabilities>

profe@osboxes:/var/log/libvirt/qemu$ nano one-70.log
2018-11-16 14:09:17.344+0000: starting up libvirt version: 1.3.1, package: 1ubuntu10.24 (Marc Deslauriers <marc.deslauriers@ubuntu.com> Wed, 23 May 2018 13:29:29 -0400), qemu version: 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.32), hostname: osboxes
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-system-x86_64 -name one-70 -S -machine pc-i440fx-xenial,accel=tcg,usb=off -m 4096 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 29ce6c12-c91e-4961-8adf-fe301a8f9d0e -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-one-70/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/one//datastores/0/70/disk.0,format=qcow2,if=none,id=drive-virtio-disk0,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/var/lib/one//datastores/0/70/disk.1,format=raw,if=none,id=drive-ide0-0-0,readonly=on,cache=none -device ide-cd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=2 -drive file=/var/lib/one//datastores/0/70/disk.2,format=raw,if=none,id=drive-ide0-0-1,readonly=on,cache=none -device ide-cd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1,bootindex=3 -drive file=/var/lib/one//datastores/0/70/disk.3,format=raw,if=none,id=drive-ide0-1-0,readonly=on -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=26,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=02:00:0a:00:02:66,bus=pci.0,addr=0x3 -device usb-tablet,id=input0 -vnc 0.0.0.0:70,password -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -msg timestamp=on
warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
main-loop: WARNING: I/O thread spun for 1000 iterations
2018-11-16T15:13:07.938683Z qemu-system-x86_64: terminating on signal 15 from pid 1207
2018-11-16 15:13:09.346+0000: shutting down
2018-11-17 16:21:36.583+0000: starting up libvirt version: 1.3.1, package: 1ubuntu10.24 (Marc Deslauriers <marc.deslauriers@ubuntu.com> Wed, 23 May 2018 13:29:29 -0400), qemu version: 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.32), hostname: osboxes
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-system-x86_64 -name one-70 -S -machine pc-i440fx-xenial,accel=tcg,usb=off -m 4096 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 7e6a95a5-016c-44ad-b316-2c519cd85a9d -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-one-70/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/one//datastores/0/70/disk.0,format=qcow2,if=none,id=drive-virtio-disk0,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/var/lib/one//datastores/0/70/disk.1,format=raw,if=none,id=drive-ide0-0-0,readonly=on,cache=none -device ide-cd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=2 -drive file=/var/lib/one//datastores/0/70/disk.2,format=raw,if=none,id=drive-ide0-0-1,readonly=on,cache=none -device ide-cd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1,bootindex=3 -drive file=/var/lib/one//datastores/0/70/disk.3,format=raw,if=none,id=drive-ide0-1-0,readonly=on -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=26,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=02:00:0a:00:02:66,bus=pci.0,addr=0x3 -device usb-tablet,id=input0 -vnc 0.0.0.0:70,password -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -msg timestamp=on
warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
main-loop: WARNING: I/O thread spun for 1000 iterations
2018-11-17T16:25:53.944482Z qemu-system-x86_64: terminating on signal 15 from pid 1255
2018-11-17 16:25:54.146+0000: shutting down
2018-11-17 16:28:05.750+0000: shutting down

(Roland) #5

hi,

I guess that your virtualbox doesnt support a feature qemu wants to use. all threads with similar error messages indicate that using a newer version solved this, but that probably doesnt help you…

maybe this page https://wiki.qemu.org/Hosts/Linux helps, it mentions extra packages and a simple qemu test to debug your hypervisor?

See chapters:


#6

I installed all additional packages as you suggested, but althoug the installation process continued it stopped later with a "Trusted Installer" message. I never dealt with Qemu before, so I will have to give a deeper insight .

Until now, the only solution I found was install Windows Server 2016 on a hypervisor that allows full nested virtualization, such as VMWare (Windows) or KVM (Linux). I enable VTx flag on the Virtual Machine and I can install it successfully. I don´t even need Virtio Drivers, only an empty disk-image and Windows Server 2016 ISO.

Although VirtualBox have a VT-x option available in the VM’s Processor tab, I think it does not really support nested virtualization because it does not pass VT-x to the VM.

As I found in this post https://www.virtualbox.org/ticket/4032 Nested AMD-V is functional but Nested VT-x is still work-in-progress, so I believe this feature will come out soon.

Regards.