[SOLVED] How to get support os list by current pve environment

Philomath123

New Member
Jun 7, 2024
2
0
1
How can I send an API to get a list of supported operating system types for the current pve environment?

The ostype parameter enumeration values that describe the creation of the virtual machine are as follows
<other | wxp | w2k | w2k3 | w2k8 | wvista | win7 | win8 | win10 | win11 | l24 | l26 | solaris>,

Where the number of windows os is different from the number of reality in the web.

So how do I get to the list displayed on the web?

31609236510a6f33930769189876aba.png
 
Last edited:
So all of these are related to the windows versions that the backend expects:
  • wxp is “Microsoft Windows”, Version “XP/2003”
  • w2k is “Microsoft Windows”, Version “2000”
  • w2k8 is “Microsoft Windows”, Version “Vista/2008”
  • win7 is “Microsoft Windows”, Version “7/2008r2”
  • win8 is “Microsoft Windows”, Version “8.x/2012/2012r2”
  • win10 is “Microsoft Windows”, Version “10/2016/2019”
  • win11 is “Microsoft Windows”, Version “11/2022/2025”
For completeness’s sake here are also the non-Windows OSes
  • other would be type “Other” in the front-end (this specifies an unknown OS type)
  • l24 is “Linux”, Version “2.4 Kernel”, so Linux OSes that are using the 2.4 kernel
  • l26 is “Linux”, Version “6.x - 2.6 Kernel”, so modern Linux OSes that use the 2.6 kernel or later
  • solaris is “Solaris”, which are all Solaris based OSes
There are two Windows types missing, w2k3 and wvista, but they are equivalent to the wxp and w2k8 respectively anyway at the moment if you look at the code [1]. So there isn't much of a point to exposing these types.

[1]: https://git.proxmox.com/?p=qemu-ser...941fded14e600532dd69b4c2779a4052;hb=HEAD#l268
 
So all of these are related to the windows versions that the backend expects:
  • wxp is “Microsoft Windows”, Version “XP/2003”
  • w2k is “Microsoft Windows”, Version “2000”
  • w2k8 is “Microsoft Windows”, Version “Vista/2008”
  • win7 is “Microsoft Windows”, Version “7/2008r2”
  • win8 is “Microsoft Windows”, Version “8.x/2012/2012r2”
  • win10 is “Microsoft Windows”, Version “10/2016/2019”
  • win11 is “Microsoft Windows”, Version “11/2022/2025”
For completeness’s sake here are also the non-Windows OSes
  • other would be type “Other” in the front-end (this specifies an unknown OS type)
  • l24 is “Linux”, Version “2.4 Kernel”, so Linux OSes that are using the 2.4 kernel
  • l26 is “Linux”, Version “6.x - 2.6 Kernel”, so modern Linux OSes that use the 2.6 kernel or later
  • solaris is “Solaris”, which are all Solaris based OSes
There are two Windows types missing, w2k3 and wvista, but they are equivalent to the wxp and w2k8 respectively anyway at the moment if you look at the code [1]. So there isn't much of a point to exposing these types.

[1]: https://git.proxmox.com/?p=qemu-ser...941fded14e600532dd69b4c2779a4052;hb=HEAD#l268
Thank you for your prompt answer!