opennebula / addon-storpool Goto Github PK
View Code? Open in Web Editor NEWOpenNebula StorPool Storage Driver
License: Apache License 2.0
OpenNebula StorPool Storage Driver
License: Apache License 2.0
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',
+ })
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.
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
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'
})
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.
This link is broken in the readme. I would fix the link, but I don't know where it is supposed to link to
For OpenNebula 5.10.x please use the following installation instructions For OpenNebula 5.6.x please use the following installation instructions For OpenNebula 5.4.x please use the following installation instructions
https://github.com/OpenNebula/addon-storpool/blob/master/docs/install-5.10.0.md
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.