Enable xen-hvm support in my cluster (device_model missing)

349 views
Skip to first unread message

John N.

unread,
Jun 23, 2015, 8:03:59 AM6/23/15
to gan...@googlegroups.com
Hi,

I would like my ganeti 2.12 cluster to additionaly enable Xen HVM as hypervisor and as such I am using the following command:

$ gnt-cluster modify -H xen-hvm:kernel_path=/usr/lib/xen-4.4/boot/hvmloader --enabled-hypervisors=xen-pvm,xen-hvm
Failure: command execution error:
Hypervisor parameter validation failed on node node1test.domain: Parameter 'device_model' fails validation: not found or not a file (current value: '/usr/lib/xen/bin/qemu-dm')

The problem here is that I am on Debian 8 and it looks like qemu-dm does not exist anymore. So my question here is, what binary do I use for the device_model parameter?

Cheers
John

John N.

unread,
Jun 23, 2015, 11:20:48 AM6/23/15
to gan...@googlegroups.com
I should precise here that I am using Xen 4.4 with the official Debian packages.

Aditya Bhimanavajjula

unread,
Jun 24, 2015, 6:41:48 AM6/24/15
to gan...@googlegroups.com
I suspect qemu-dm is in a different location. Find out where it is using "find /usr -name qemu-dm" and soft link it to "/usr/lib/xen/bin/qemu-dm". If this is the case, it maybe better to softlink xen's entire bin directory. For example, if the directory is "/usr/lib/xen-4.4/bin", use "ln -s /usr/lib/xen-4.4/bin /usr/lib/xen/bin".


On Tuesday, June 23, 2015 at 2:03:59 PM UTC+2, John N. wrote:

Hrvoje Ribicic

unread,
Jun 24, 2015, 7:02:09 AM6/24/15
to gan...@googlegroups.com
Hi!

Actually, qemu-dm has been removed starting from Xen 4.2. That fork was maintained to have some Xen-specific features, and while there are some complications related to why and how it was removed, and legitimate reasons for still using it, it appears that you should be able to just use the proper qemu binaries from now on. If you do run into issues, there is the xen-qemu-dm-4.0 package which should supply an old qemu-dm.

The correct value is then presumably just /usr/bin/qemu, or whatever specific qemu-system-* you want to run.
I did not test this though - please report back whether it works.

For more details, see:

Cheers,
Riba

Hrvoje Ribicic
Ganeti Engineering
Google Germany GmbH
Dienerstr. 12, 80331, München

Geschäftsführer: Graham Law, Christine Elizabeth Flores
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg

John N.

unread,
Jun 24, 2015, 7:55:00 AM6/24/15
to gan...@googlegroups.com
Hi Riba,

So on Debian 8, would that be the file /usr/bin/qemu-system-x86_64 provided by the qemu-system-x86 package?

Regards,
J.
Reply all
Reply to author
Forward
0 new messages