Feature #2143

Add machine type to KVM deployment file

Added by Carlos Martín almost 7 years ago. Updated about 6 years ago.

Status:ClosedStart date:06/27/2013
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Documentation
Target version:Release 4.6
Resolution:fixed Pull request:

Description

From the mailing list:
http://lists.opennebula.org/pipermail/users-opennebula.org/2013-June/023590.html

Hi

Please consider adding machine type to the OS section of the machine
definition file for kvm

Shank

For example, in my template definition I have

OS=[BOOT="hd",ARCH="x86_64"]

But I should be able to use, currently machine is ignored.

OS=[BOOT="hd",MACHINE="q35",ARCH="x86_64"]

Qemu is currently adding a new machine type to the list, the ICH9 chipset,
the ubuntu 13.04 qemu comes with

none empty machine
pc Standard PC (i440FX + PIIX, 1996) (alias of
pc-i440fx-1.4)
pc-i440fx-1.4 Standard PC (i440FX + PIIX, 1996) (default)
pc-1.3 Standard PC
pc-1.2 Standard PC
pc-1.1 Standard PC
pc-1.0 Standard PC
pc-0.15 Standard PC
pc-0.14 Standard PC
pc-0.13 Standard PC
pc-0.12 Standard PC
pc-0.11 Standard PC, qemu 0.11
pc-0.10 Standard PC, qemu 0.10
isapc ISA-only PC
xenfv Xen Fully-virtualized PC
q35 Standard PC (Q35 + ICH9, 2009) (alias of pc-q35-1.4)
pc-q35-1.4 Standard PC (Q35 + ICH9, 2009)
xenpv Xen Para-virtualized PC

But notice the default is still the i440fx chipset. The new q35 emulated
machine provides better support for pci-express pass-through.

Shank

os_machine_param.diff Magnifier - patch for MACHINE parameter support for open nebula 4.4 (992 Bytes) Vladislav Gorbunov, 12/05/2013 10:27 PM

Associated revisions

Revision b2332e12
Added by Javi Fontan over 6 years ago

feature #2143: add machine type to KVM deployment file

Based on a patch submited by Vladislav Gorbunov <>
in http://dev.opennebula.org/issues/2143#note-2

Revision c380015f
Added by Carlos Martín about 6 years ago

Feature #2143: Add machine type to sunstone wizard

History

#1 Updated by Ruben S. Montero almost 7 years ago

  • Tracker changed from Request to Backlog

In the meantime this can be easily achieved with the RAW attribute.

#2 Updated by Vladislav Gorbunov over 6 years ago

I patch opennebula-4.4.0/src/vmm/LibVirtDriverKVM.cc for support MACHINE parameter (in attachment). You can download binary rpm for CentOS 6.4 with this patch from the https://dl.dropboxusercontent.com/u/2296931/rpm/opennebula-server-4.4.0-1.x86_64.rpm
But look like libvirt not support q35 pc type.
https://www.redhat.com/archives/libvir-list/2013-February/msg00431.html

"libvirt's address assignment code is basically
already broken for anything which isn't a x86 system with PIIX
controller. eg address assignment for QEMU ARM / PPC / etc is
mostly fubar. Regardless of what Q35 involves, libvirt needs to
sort out the existing mess it has in this area. Sorting this
should then make support for Q35 more or less trivial, since all
the hardwork will have been done."

#3 Updated by Ruben S. Montero over 6 years ago

  • Tracker changed from Backlog to Feature
  • Target version set to Release 4.6

Moving this to feature for 4.6. Thanks for your contribution!!

#4 Updated by Ruben S. Montero over 6 years ago

  • Status changed from Pending to New

#5 Updated by Jaime Melis over 6 years ago

  • Category changed from Drivers - VM to Documentation
  • Assignee set to Javi Fontan

#6 Updated by Javi Fontan over 6 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

#7 Updated by Jochem Ippers about 6 years ago

That's a nice feature! I just had some vm migration problems because of it and forgetting to put it in the RAW attribute.
Maybe it is too much but an input field for it in Sunstone with a nice hover/popup help (incl. example values and a rather safe minimal value or so) would be a nice thing too. :-)

#8 Updated by Ruben S. Montero about 6 years ago

A new field has been added with a brief tip, thanks for your feedback

Also available in: Atom PDF