projectacrn / acrn-libvirt

Libvirt is an open-source API, daemon and management tool for managing platform virtualization, widely used in the orchestration layer in a cloud-based solution. For ACRN, we add this "ACRN driver” to libvirt to extend its support to ACRN. So a libvirt application, orchestrator like OpenStack can manage ACRN’s Guest VMs remotely.
GNU Lesser General Public License v2.1
11 stars 17 forks source link

libvirt XML error: device type video not supported (Ignore or support) #11

Open tunicashashi opened 4 years ago

tunicashashi commented 4 years ago

I tried to run a VM on ACRN hypervisior compute node using Devstack controller but fails as compute node libvirt XML is not parsed completely. It is because of device type video not supported.

I have installead acrn hypervisior and acrn-libvirt on my compute node. I can see node and hypervisor type when I list in the openstack controller.

be75ee97451d),plugin='ovs',port_profile=VIFPortProfileOpenVSwitch,preserve_on_delete=False,vif_name='tap028b3c79-ea') {{(pid=2 0748) nova_to_osvif_vif /opt/stack/nova/nova/network/os_vif_util.py:553}} Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: DEBUG os_vif [None req-1a621e09-f10b-47ed-bae9-e82107b7292b admin admin] Plugging vif VIFOpenVSwitch(active=False,address=fa:16:3e:74:29:ec,bridge_name='br-int',has_traffic_filteri ng=True,id=028b3c79-ea40-43e8-a5cb-a3fe0311ee3b,network=Network(09038790-cbed-4306-916a-be75ee97451d),plugin='ovs',port_profile=VIFPortProfileOpenVSwitch,preserve_on_delete=False,vif_name='tap028b3c79-ea') {{(pid=20748) plug /usr/local/ lib/python3.6/dist-packages/os_vif/init.py:76}} Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: INFO os_vif [None req-1a621e09-f10b-47ed-bae9-e82107b7292b admin admin] Successfully plugged vif VIFOpenVSwitch(active=False,address=fa:16:3e:74:29:ec ,bridge_name='br-int',has_traffic_filtering=True,id=028b3c79-ea40-43e8-a5cb-a3fe0311ee3b,network=Network(09038790-cbed-4306-916a-be75ee97451d),plugin='ovs',port_profile=VIFPortProfileOpenVSwitch,preserve_on_delete=False,vif_name='tap028b3c79-ea') Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: ERROR nova.virt.libvirt.guest [None req-1a621e09-f10b-47ed-bae9-e82107b7292b admin admin] Error defining a guest with XML: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: 84fc9c92-a8bb-4e96-b48b-9693330a1cde Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: instance-00000007 Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: 262144 Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: 3 Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: cl_lix_nova</nova:name> Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: 2020-09-29 08:51:40</nova:creationTime> Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: 256</nova:memory> Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: 2</nova:disk> Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: 0</nova:swap> Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: 0</nova:ephemeral> Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: 3</nova:vcpus> Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: </nova:flavor> Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: admin</nova:user> Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: admin</nova:project> Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: </nova:owner> Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: </nova:instance> Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: hvm Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: /opt/stack/OVMF.fd Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: : libvirt.libvirtError: XML error: device type video not supported Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: ERROR nova.virt.libvirt.driver [None req-1a621e09-f10b-47ed-bae9-e82107b7292b admin admin] [instance: 84fc9c92-a8bb-4e96-b48b-9693330a1cde] Failed to start libvirt guest: libvirt.libvirtError: XML error: device type video not supported Sep 29 10:51:40 acrnoff-NUC7i7DNHE nova-compute[20748]: DEBUG nova.virt.libvirt.vif [None req-1a621e09-f10b-47ed-bae9-e82107b7292b admin admin] vif_type=ovs instance=Instance(access_ip_v4=None,access_ip_v6=None,architecture=None,auto_disk_config=True,availability_zone='nova',cell_name=None,cleaned

peterfang commented 4 years ago

Video devices are currently unsupported by the ACRN driver. If you can configure OpenStack to not use the video device, that would be our recommendation.