Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
9cf6d99b
Commit
9cf6d99b
authored
Aug 29, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add scsihw option to GUI
parent
c8abee0d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
0 deletions
+64
-0
changelog.Debian
debian/changelog.Debian
+4
-0
Makefile
www/manager/Makefile
+2
-0
Utils.js
www/manager/Utils.js
+14
-0
ScsiHwSelector.js
www/manager/form/ScsiHwSelector.js
+17
-0
Options.js
www/manager/qemu/Options.js
+6
-0
ScsiHwEdit.js
www/manager/qemu/ScsiHwEdit.js
+21
-0
No files found.
debian/changelog.Debian
View file @
9cf6d99b
...
...
@@ -2,6 +2,10 @@ pve-manager (2.1-15) unstable; urgency=low
* Slovenian translation (thanks to Dojan Borstnar)
* new option to select SCSI controller hardware
* add SATA to GUI
-- Proxmox Support Team <support@proxmox.com> Wed, 29 Aug 2012 07:15:54 +0200
pve-manager (2.1-14) unstable; urgency=low
...
...
www/manager/Makefile
View file @
9cf6d99b
...
...
@@ -48,6 +48,7 @@ JSSRC= \
form/ContentTypeSelector.js
\
form/DayOfWeekSelector.js
\
form/BackupModeSelector.js
\
form/ScsiHwSelector.js
\
dc/Tasks.js
\
dc/Log.js
\
panel/StatusPanel.js
\
...
...
@@ -97,6 +98,7 @@ JSSRC= \
qemu/KeyboardEdit.js
\
qemu/HardwareView.js
\
qemu/StartupEdit.js
\
qemu/ScsiHwEdit.js
\
qemu/Options.js
\
qemu/Config.js
\
qemu/CreateWizard.js
\
...
...
www/manager/Utils.js
View file @
9cf6d99b
...
...
@@ -128,6 +128,20 @@ Ext.define('PVE.Utils', { statics: {
return
value
;
},
render_scsihw
:
function
(
value
)
{
if
(
!
value
)
{
return
PVE
.
Utils
.
defaultText
+
'
(lsi)
'
;
}
else
if
(
value
===
'
lsi
'
)
{
return
'
LSI 53C895A
'
;
}
else
if
(
value
===
'
megasas
'
)
{
return
'
MegaRAID SAS 8708EM2
'
;
}
else
if
(
value
===
'
virtio-scsi-pci
'
)
{
return
'
VIRTIO
'
;
}
else
{
return
value
;
}
},
// fixme: auto-generate this
// for now, please keep in sync with PVE::Tools::kvmkeymaps
kvm_keymaps
:
{
...
...
www/manager/form/ScsiHwSelector.js
0 → 100644
View file @
9cf6d99b
Ext
.
define
(
'
PVE.form.ScsiHwSelector
'
,
{
extend
:
'
PVE.form.KVComboBox
'
,
alias
:
[
'
widget.pveScsiHwSelector
'
],
initComponent
:
function
()
{
var
me
=
this
;
me
.
data
=
[
[
''
,
PVE
.
Utils
.
render_scsihw
(
''
)],
[
'
lsi
'
,
PVE
.
Utils
.
render_scsihw
(
'
lsi
'
)],
[
'
megasas
'
,
PVE
.
Utils
.
render_scsihw
(
'
megasas
'
)],
[
'
virtio-scsi-pci
'
,
PVE
.
Utils
.
render_scsihw
(
'
virtio-scsi-pci
'
)],
];
me
.
callParent
();
}
});
www/manager/qemu/Options.js
View file @
9cf6d99b
...
...
@@ -121,6 +121,12 @@ Ext.define('PVE.qemu.Options', {
}
}
:
undefined
},
scsihw
:
{
header
:
'
SCSI Controller Type
'
,
editor
:
caps
.
vms
[
'
VM.Config.Options
'
]
?
'
PVE.qemu.ScsiHwEdit
'
:
undefined
,
renderer
:
PVE
.
Utils
.
render_scsihw
,
defaultValue
:
''
},
kvm
:
{
header
:
'
KVM hardware virtualization
'
,
defaultValue
:
true
,
...
...
www/manager/qemu/ScsiHwEdit.js
0 → 100644
View file @
9cf6d99b
Ext
.
define
(
'
PVE.qemu.ScsiHwEdit
'
,
{
extend
:
'
PVE.window.Edit
'
,
initComponent
:
function
()
{
var
me
=
this
;
Ext
.
applyIf
(
me
,
{
subject
:
gettext
(
'
SCSI Controller Type
'
),
items
:
{
xtype
:
'
pveScsiHwSelector
'
,
name
:
'
scsihw
'
,
value
:
''
,
fieldLabel
:
gettext
(
'
Type
'
)
}
});
me
.
callParent
();
me
.
load
();
}
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment