Git Product home page Git Product logo

addon-storpool's People

Contributors

atodorov-storpool avatar feldsam avatar krokodilerian avatar nikolay-tenev avatar sp-bmilanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

addon-storpool's Issues

Graphics tweak

ONE defaults to the libvirt default which is very legacy cirrus driver. virtio should be fine for all hosts as falls back to standard VGA if no drivers installed. Suggest something like:

+# Add in a modern graphics driver (not the default legacy cirrus driver)
+# See full details at
+# https://www.kraxel.org/blog/2019/09/display-devices-in-qemu/ . We should
+# probably use vhostuser in a newer libvirt version for extra speed and
+# security
+if not root.find("./devices/video"):
+    new_device = ET.SubElement(root, 'devices')
+    video = ET.SubElement(new_device, 'video')
+    ET.SubElement(video, 'model', {
+            # should have vga fallback if no virtio drivers specified, but if we have virtio then will be much better
+            'type': 'virtio',
+            'vram': '16384',
+        })

Consider using virtinst Python module for editing libvirt xml?

Hi

I just found https://github.com/OpenNebula/addon-storpool/blob/master/vmm/kvm/deploy-tweaks.d.example/cpu.py

while playing with the virt-xml command on Debian from the virtinst package. This command uses this Python module:

/usr/share/virt-manager/virtinst/domain/cpu.py

Might that be helpful? I have not found any reference in this repo to virtinst or virt-xml.

PS: I currently don’t use OpenNebula, so if I am missing something please excuse.

Update Drivers for 6.8 release

In relation with OpenNebula/one#6162 issue, we have updated the datastore drivers to take the driver message action through stdin. The change is rather simple, just read DRV_ACTION from stdin, see for example this change, something like:

DRV_ACTION=`cat -`
ID=$1

This needs to happen for every datastore/* action file and tm/monitor script (for example see here)

Note: Releases 6.4.x and 6.6.x will support both behaviors (configurable through oned.conf) to preserve compatibility

Allow q35 hotplugging in deployment tweaks

Here's a deployment tweak script to fix OpenNebula/one#4045

# Due to the nature of q35 model, there are no hotplugging slots available. See
# https://libvirt.org/pci-hotplug.html for more info. We need to hack the
# libvirt config (raw data) to have:
#
# pcie-root - normally autocreated but needs to be defined here
# pcie-to-pci-bridge - for legacy devices to hotplug to like virtio networking
# pcie-root-port - A large number of ports defined. The normal devices (disks
# etc) will take these first so we need a number of additional free ones.

machine_type = root.find("./os/type")
if 'q35' in machine_type.attrib['machine']:
    new_device = ET.SubElement(root, 'devices', {})

    ET.SubElement(new_device, 'controller', {
            'type': 'pci',
            'model': 'pcie-root'
        })
    for i in range(0,16):
        ET.SubElement(new_device, 'controller', {
                'type': 'pci',
                'model': 'pcie-root-port'
            })
    ET.SubElement(new_device, 'controller', {
            'type': 'pci',
            'model': 'pcie-to-pci-bridge'
        })

Better hyperv settings for win 2016/2019

For https://github.com/OpenNebula/addon-storpool/blob/master/vmm/kvm/deploy-tweaks.d.example/hyperv-clock.py change to:

clock = root.find("./clock")
hyperv = root.find("./features/hyperv")

if hyperv is not None:
    hyperv.append(ET.Element("synic", state = 'on'))
    hyperv.append(ET.Element("stimer", state = 'on'))

Previously idling was ~30-40% on those servers, now 1-3% cpu.

per https://serverfault.com/questions/955439/why-windows-10-virtual-machine-show-high-cpu-load-on-kvm-hyprvisor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.