Project

General

Profile

Bug #11410

Feature #7526: Fix Vagrant situation or replace it

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

Added by intrigeri over 3 years ago. Updated about 3 years ago.

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

100%

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

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

Associated revisions

Revision 16e2bd47 (diff)
Added by intrigeri over 3 years ago

Vagrant: use 'host-passthrough' CPU mode.

refs: #11410

Revision eb2860a1
Added by anonym over 3 years ago

Merge remote-tracking branch 'origin/bugfix/11410-vagrant-libvirt-cpu-mode' into devel

Fix-committed: #11410

History

#1 Updated by intrigeri over 3 years ago

#2 Updated by intrigeri over 3 years ago

#3 Updated by intrigeri over 3 years ago

  • Parent task set to #7526

#4 Updated by intrigeri over 3 years ago

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

#5 Updated by anonym over 3 years ago

  • 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 about 3 years ago

  • Status changed from Fix committed to Resolved

Also available in: Atom PDF