Feature #3484

machine type q35 libvirt support

Added by alan zhang over 4 years ago. Updated over 4 years ago.

Status:ClosedStart date:01/06/2015
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:worksforme Pull request:

Description

libvirt 1.2.10
qemu 2.2.0
opennebula 4.10.1
centos 6.6

when i change machine type to q35, create vm will be this error:

Tue Jan 6 15:27:44 2015 [Z0][DiM][I]: New VM state is ACTIVE.
Tue Jan 6 15:27:44 2015 [Z0][LCM][I]: New VM state is PROLOG.
Tue Jan 6 15:27:44 2015 [Z0][LCM][I]: New VM state is BOOT
Tue Jan 6 15:27:44 2015 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/11/deployment.0
Tue Jan 6 15:27:44 2015 [Z0][VMM][I]: ExitCode: 0
Tue Jan 6 15:27:44 2015 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Tue Jan 6 15:27:45 2015 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/100/11/deployment.0' 'nebula' 11 nebula
Tue Jan 6 15:27:45 2015 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/100/11/deployment.0
Tue Jan 6 15:27:45 2015 [Z0][VMM][I]: error: internal error Process exited while reading console log output: char device redirected to /dev/pts/2 (label charserial0)
Tue Jan 6 15:27:45 2015 [Z0][VMM][I]: 2015-01-06T07:27:45.315923Z qemu-system-x86_64: -device ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1: Can't create IDE unit 1, bus supports only 1 units
Tue Jan 6 15:27:45 2015 [Z0][VMM][I]: 2015-01-06T07:27:45.315965Z qemu-system-x86_64: -device ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1: Device initialization failed.
Tue Jan 6 15:27:45 2015 [Z0][VMM][I]: 2015-01-06T07:27:45.315990Z qemu-system-x86_64: -device ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1: Device 'ide-drive' could not be initialized
Tue Jan 6 15:27:45 2015 [Z0][VMM][I]:
Tue Jan 6 15:27:45 2015 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/100/11/deployment.0
Tue Jan 6 15:27:45 2015 [Z0][VMM][I]: ExitCode: 255
Tue Jan 6 15:27:45 2015 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Tue Jan 6 15:27:45 2015 [Z0][VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/100/11/deployment.0
Tue Jan 6 15:27:45 2015 [Z0][DiM][I]: New VM state is FAILED

file deployment.0

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>one-11</name>
<vcpu>1</vcpu>
<cputune>
<shares>1024</shares>
</cputune>
<memory>131072</memory>
<os>
<type arch='x86_64' machine='q35'>hvm</type>
<boot dev='hd'/>
</os>
<devices>
<emulator>/usr/local/qemu/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<source file='/var/lib/one//datastores/100/11/disk.0'/>
<target dev='hda'/>
<driver name='qemu' type='raw' cache='none'/>
</disk>
<disk type='file' device='cdrom'>
<source file='/var/lib/one//datastores/100/11/disk.1'/>
<target dev='hdb'/>
<readonly/>
<driver name='qemu' type='raw'/>
</disk>
<interface type='bridge'>
<source bridge='br0'/>
<mac address='02:00:0a:07:00:14'/>
<model type='virtio'/>
<filterref filter='clean-traffic'>
<parameter name='IP' value='10.7.0.20'/>
</filterref>
</interface>
<graphics type='vnc' listen='0.0.0.0' port='5911'/>
</devices>
<features>
<acpi/>
</features>
<devices><serial type="pty"><source path="/dev/pts/5"/><target port="0"/></serial><console type="pty" tty="/dev/pts/5"><source path="/dev/pts/5"/><target port="0"/></console></devices>
</domain>

from these, it must be opennebula generate deployment file unsupport q35. i440fx chipset is ok.

History

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

  • Status changed from Pending to Closed
  • Resolution set to worksforme

Machine type is a supported parameter, you can adjust it in the VM template (to something different to q35) or set a default in one_vmm_exec_kvm.conf

Also available in: Atom PDF