Advertisement
Guest User

Untitled

a guest
May 9th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py
  2. index 78f9c7ca01..4abdb8e325 100644
  3. --- a/nova/virt/libvirt/driver.py
  4. +++ b/nova/virt/libvirt/driver.py
  5. @@ -4235,7 +4235,7 @@ class LibvirtDriver(driver.ComputeDriver):
  6. guest.add_device(consolelog)
  7.  
  8. def _add_video_driver(self, guest, image_meta, flavor):
  9. - VALID_VIDEO_DEVICES = ("vga", "cirrus", "vmvga", "xen", "qxl")
  10. + VALID_VIDEO_DEVICES = ("vga", "cirrus", "vmvga", "xen", "qxl", "virtio")
  11. video = vconfig.LibvirtConfigGuestVideo()
  12. # NOTE(ldbragst): The following logic sets the video.type
  13. # depending on supported defaults given the architecture,
  14. @@ -4251,6 +4251,10 @@ class LibvirtDriver(driver.ComputeDriver):
  15. # NOTE(ldbragst): PowerKVM doesn't support 'cirrus' be default
  16. # so use 'vga' instead when running on Power hardware.
  17. video.type = 'vga'
  18. + elif guestarch in (arch.AARCH64):
  19. + # NOTE: arm64 doesn't support 'cirrus'
  20. + # use 'virtio-gpu' instead
  21. + video.type = 'virtio'
  22. elif CONF.spice.enabled:
  23. video.type = 'qxl'
  24. if image_meta.properties.get('hw_video_model'):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement