Bug #11410

vagrant-libvirt's chosen CPU cannot be emulated on Intel Core i7-4600U

Added by intrigeri 2016-05-11 05:22:42 . Updated 2016-06-08 01:27:08 .

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Build system
Target version:
Start date:
2016-05-11
Due date:
% Done:

100%

Feature Branch:
bugfix/11410-vagrant-libvirt-cpu-mode
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

==> default: Starting domain.
There was an error talking to Libvirt. The error message is shown
below:

Call to virDomainCreateWithFlags failed: internal error: early end of file from monitor, possible problem: warning: host doesn't support requested feature: CPUID.01H:EDX.ds [bit 21]
warning: host doesn't support requested feature: CPUID.01H:EDX.acpi [bit 22]
warning: host doesn't support requested feature: CPUID.01H:EDX.ht [bit 28]
warning: host doesn't support requested feature: CPUID.01H:EDX.tm [bit 29]
warning: host doesn't support requested feature: CPUID.01H:EDX.pbe [bit 31]
warning: host doesn't support requested feature: CPUID.01H:ECX.dtes64 [bit 2]
warning: host doesn't support requested feature: CPUID.01H:ECX.monitor [bit 3]
warning: host doesn't support requested feature: CPUID.01H:ECX.ds_cpl [bit 4]
warning: host doesn't support requested feature: CPUID.01H:ECX.smx [bit 6]
warning: host doesn't support requested feature: CPUID.01H:ECX.est [bit 7]
warning: host doesn't support requested feature: CPUID.01H:ECX.tm2 [bit 8]
warning: host doesn't support requested feature: CPUID.01H:ECX.xtpr [bit 14]
warning: host doesn't support requested feature: CPUID.01
rake aborted!

And the domain’s XML says:

  <cpu mode='host-model'>
    <model fallback='allow'>qemu64</model>
  </cpu>

… which actually is not really valid, btw: https://libvirt.org/formatdomain.html#elementsCPU says that “Specifying CPU model is not supported either”, about host-model.

This fixes it for me:

--- a/vagrant/Vagrantfile
+++ b/vagrant/Vagrantfile
@@ -37,6 +37,7 @@ Vagrant.configure("2") do |config|
     domain.connect_via_ssh = false
     domain.machine_arch = 'x86_64'
     domain.machine_type = 'q35'
+    domain.cpu_mode = 'host-passthrough'
     domain.emulator_path = '/usr/bin/qemu-system-x86_64'
     domain.memory = ENV['TAILS_RAM_BUILD'] ? VM_MEMORY_FOR_RAM_BUILDS :
                                              VM_MEMORY_FOR_DISK_BUILDS

Subtasks


History

#1 Updated by intrigeri 2016-05-11 05:22:59

#2 Updated by intrigeri 2016-05-11 05:46:17

#3 Updated by intrigeri 2016-05-11 05:46:21

#4 Updated by intrigeri 2016-05-11 06:36:33

  • Feature Branch set to bugfix/11410-vagrant-libvirt-cpu-mode

#5 Updated by anonym 2016-05-11 14:13:12

  • Status changed from In Progress to Fix committed
  • Assignee deleted (anonym)
  • % Done changed from 0 to 100
  • QA Check changed from Ready for QA to Pass

Still works for me, as expected => merged.

#6 Updated by anonym 2016-06-08 01:27:08

  • Status changed from Fix committed to Resolved