Comments (15)
Hi, with the latest version of the plugin, the platform field of the VMs should be populated with the VM's os_version.distro
. Is that enough for your use case?
from xen-orchestra.
Thanks!
Yes, perhaps. What is the latest version of the plugin? We are running v0.3.7.
from xen-orchestra.
@pdonias I found the answer to my last question. I will ask about upgrading internally and test the feature.
Thanks!
from xen-orchestra.
@pdonias we are now running v1.0.0 of the plugin. "Platform" field in netbox is indeed populated with main distro type (have a look at the image below). Great!
I would be nice to have it a bit more verbose though, like Ubuntu 16.04.7, as opposed to just "Ubuntu". Would that be possible?
from xen-orchestra.
The issue with the verbose name is that it can vary a lot and one of the use cases of that field is to search all the VMs that are running a specific OS. For that use case, it's better if there are as few platform names as possible. A platform object also has a virtualmachine_count
, which would become unusable if the platform names vary too much. But I agree it would also be nice to see the OS version, I wonder if we could fit that somewhere else.
from xen-orchestra.
I get that. Fair points.
I wonder though. Looking at the information pulled from VMs: os_version major and minor could possibly be concatenated with distro for the API pull?
"os_version": {
"distro": "centos",
"major": "7",
"minor": "9",
or
"os_version": {
"distro": "windows",
"major": "10",
"minor": "0",
So platform in these cases would say centos 7.9
or windows 10.0
? Wouldn't be too verbose in my opinion, but I realize I don't have all info here.
from xen-orchestra.
I guess that could work! What about even only adding major
? I think for some OS's like Windows, it would be enough but maybe for Linux distributions, it's too little information?
from xen-orchestra.
I think you're right. Major version might be sufficient. After all, the main point would be to quickly find the amount of VMs running, say, CentOS 6 or Ubuntu 16 and to start planning for upgrades. Minor version is not that relevant.
I have looked through the examples from our setup. All Linux distros and major Windows versions behave as expected. I do find a couple of Windows weirdos though:
"os_version": {
"distro": "windows",
"major": "6",
"minor": "2",
"name": "Microsoft Windows Server 2012 R2 Standard
"os_version": {
"distro": "windows",
"major": "6",
"minor": "3",
"name": "Microsoft Windows 8.1 Pro
"os_version": {
"distro": "windows",
"major": "6",
"minor": "2",
"name": "Microsoft Windows Server 2016 Standard
from xen-orchestra.
Looking a bit more into it, I found some other issues. For instance, in some cases, the major version isn't exposed at all by the guest tools, so you can end up with those platforms in Netbox:
- debian 9 (3 VMs)
- debian 11 (2 VMs)
- debian (2 VMs)
And that could be a problem because if you're checking the "debian" platform object in your Netbox interface, you might think that you only have 2 VMs running Debian, which isn't true.
from xen-orchestra.
Regarding Windows versions: https://learn.microsoft.com/en-us/windows/win32/sysinfo/operating-system-version
from xen-orchestra.
Hmm, I understand the problem. Do you think it's a dealbreaker for this?
Thanks for the Windows info! Learn something new every day :)
from xen-orchestra.
I don't think it's a good idea to implement it like this without finding solutions to the problems we found as it would be confusing. One solution could have been if Netbox had added a platform version to their data models but it has been discussed before and is unlikely to ever be added. This could also be achieved with a custom field on the VM objects, what do you think?
from xen-orchestra.
That might work, sure. I guess the custom fields should be possible to filter through a dropdown selection, as opposed to free text. I think that's possible, not sure about the dependencies on your end for that to work? Perhaps it's possible to automatically populate the values in the custom field as they are created from Xen?
Also, many admins might want to limit the amount of custom fields in their setup. Any chance of making that particular sync optional somehow?
from xen-orchestra.
Yes, I think it would be an optional custom field: XO would check if the custom field exists and populate it if it does.
from xen-orchestra.
There are many ambiguous version numbers that could unnecessarily split VM groups within Netbox so I'm closing this until we either find a better way to do this or the reported versions get more consistent.
Feel free to continue the discussion and suggest solutions :)
from xen-orchestra.
Related Issues (20)
- Backup job failed
- Backup of metadata is missing settings options for reporting failures.
- Error on host.isHyperThreadingEnabled - unable to reboot host from XO HOT 8
- Show VM status at storage-disks tab
- Storage usage progress bar view at chrome HOT 1
- Unable to unmount iscsi SR - SR_BACKEND_FAILURE_1200 HOT 1
- Unable to import 3.4TB disk from VMware. HOT 1
- xo-cli | TypeError: os.machine is not a function HOT 1
- Error on pool.merge "POOL_JOINING_HOST_MANAGEMENT_VLAN_DOES_NOT_MATCH" HOT 1
- Rolling pool update does not resume after reboot. HOT 4
- Add color support for badges in VM Notes (Markdown) HOT 5
- Expose mdadm status in host/advanced
- Netbox plugin: Sync disk size error HOT 4
- VMware importer uses configured proxy also for internal addresses ignores no_proxy HOT 2
- Compatibility with Netbox 4.x HOT 7
- Unable to use VMware import - "message": "Cannot read properties of undefined (reading 'name')" HOT 2
- Windows Cloudbase-init support
- Smart VM cycle
- XOA as a subordinate CA
- SAML auth improvements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xen-orchestra.