]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/qemu/OSDefaults.js
2 * This class holds performance *recommended* settings for the PVE Qemu wizards
3 * the *mandatory* settings are set in the PVE::QemuServer
4 * config_to_command sub
5 * We store this here until we get the data from the API server
8 // this is how you would add an hypothetic FreeBSD > 10 entry
10 //virtio-blk is stable but virtIO net still
11 // problematic as of 10.3
12 // see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=165059
14 // parent: 'generic', // inherits defaults
15 // pveOS: 'freebsd10', // must match a radiofield in OSTypeEdit.js
16 // busType: 'virtio' // must match a pveBusController value
17 // // networkCard muss match a pveNetworkCardSelector
20 Ext
.define('PVE.qemu.OSDefaults', {
21 singleton
: true, // will also force creation when loaded
23 constructor: function() {
26 var addOS = function(settings
) {
27 if (me
.hasOwnProperty(settings
.parent
)) {
28 var child
= Ext
.clone(me
[settings
.parent
]);
29 me
[settings
.pveOS
] = Ext
.apply(child
, settings
);
32 throw("Could not find your genitor");
40 scsihw
: 'virtio-scsi-pci'
43 // both of them are in kernel since 2.6.25
51 // recommandation from http://wiki.qemu.org/Windows2000
55 networkCard
: 'rtl8139'