Commit Graph

107 Commits

Author SHA1 Message Date
Emmanuel Kasper
eca87c69bc virtio-scsi-pci as default SCSI for new VMS fix #1106 2016-09-15 11:36:35 +02:00
Dominik Csapak
67fc6ddf0e add onlineHelp for UEFI
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-13 16:46:07 +02:00
Dominik Csapak
1535df627b give error instead of disabling efidisk button
when seabios is selected, we do not want to simply
disable the add efi button, because it is not clear
why it is disabled

so we give a meaningful error message instead

the button is still 'just' disabled when there
is already an efidisk, because then it is clear
that you alread have one

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-13 16:45:49 +02:00
Dominik Csapak
3c724630b3 add onlineHelp to qemu
and its options

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-13 16:42:06 +02:00
Dominik Csapak
816b62b0aa fix #1104: add missing /firewall in url
with the reorganizing of the tabs to
the treelist, we forgot to add /firewall to some
urls, making the url for source/destination invalid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-13 08:03:20 +02:00
Dominik Csapak
3b37ab6db8 add efidisk button to add menu
this adds a new button "efi disk" to the
qemu hardware add menu

this is only enabled if the vm has ovmf enabled and
no active efidisk

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-13 07:52:46 +02:00
Dominik Csapak
194c9b0964 add efidisk to qemu hardwareview
this shows an active efidisk above
unused disks, without an editor (because there are no options)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-13 07:51:19 +02:00
Dominik Csapak
1c67cee1ed add new efidisk edit window
this will be used to add an efidisk,
mostly copied from hdedit, but stripped down,
because we do not use most of the functionality here

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-13 07:50:09 +02:00
Dominik Csapak
1939a0069e partially rever qemu gui structure
this restores the structure of the qemu options
and moves the console to the second position

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-01 11:43:59 +02:00
Dominik Csapak
4661648a14 drop all hide calls
since we do not use tabpanels anymore,
the hide calls and listeners do nothing,
so we can drop them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-24 12:46:47 +02:00
Dominik Csapak
c284be32bd reorganize qemu items
use new tree functionality of configpanel

move options,monitor,console under hardware (now system)
move firewall subpanels into tree

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-24 12:31:11 +02:00
Dominik Csapak
4cb8c20f16 delete old lxc/qemu statusview classes
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-19 13:54:37 +02:00
Dominik Csapak
d57f413ae2 make lxc/qemu use new statusview
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-19 13:54:37 +02:00
Dominik Csapak
36720d75c4 fix lint error
no traling commas

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-02 11:30:34 +02:00
Emmanuel Kasper
9875a997c8 closes #195 : hide disallowed commands in tree
When basic capabilities are missing, don't display the corresponding actions in
the tree menu.

Note that we *hide* the corresponding actions, instead of disabling by greying
out the menu command. Disabling here does not make sense, since a low privilege
user has no way to reenable the menu commands by himself.

This is mainly a usability improvement, as the real capabilities test is done in
the backend.
2016-08-01 17:16:18 +02:00
Emmanuel Kasper
6cc8cfb361 Set VirtIO drivers as default when using the Qemu Wizard and the OS Type is Linux
virtio-blk and virtio-net have been in the kernel since 2.6.25 released in 2008, so
it safe to assume distributions using the l26 type will have these drivers.
2016-07-21 12:52:27 +02:00
Emmanuel Kasper
39c06c6925 USe PVE.qemu.OSDefaults statics to get defaults for NIC and Storage Controller 2016-07-21 12:50:27 +02:00
Emmanuel Kasper
b70e9ef5c8 Add PVE.qemu.OSDefaults class to hold OS-dependant wizard defaults 2016-07-21 12:46:52 +02:00
Emmanuel Kasper
42902182c0 Rename Wizard Component aliases using camelCase
this is ExtJS recommended practise, follows most of our
conventions and is necessary for querying
components with Ext.ComponentQuery.query() without escaping the
dots in the component widget name.
2016-07-21 12:44:13 +02:00
Dominik Csapak
3335a948e9 correctly delete name of a qemu vm
we mistakenly sent
'name:'
instead of:
'delete:name'

in case of an empty name of qemu guest
which lead to an error message that it is
not a valid dns name

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-07 08:09:53 +02:00
Dominik Csapak
a4d292d9da remove unnecessary information on template summary
since most of the information on the summary page is
irrelevant for templates (e.g. status,ha,using memory,graphs, etc),
we only show just the information which is available and helpful

since we then have the vertical space, we move the notes panel
below the statuspanel, to allow visually more space for the description
(which makes sense for a template)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-15 16:39:11 +02:00
Dominik Csapak
688677441d move notepanel padding out of the class
it makes more sense to define the padding in context,
rather than directly in the component

especially if we want to use this panel elsewhere in the future

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-15 16:37:45 +02:00
Dominik Csapak
9038682fed add a 'bootdisk size' entry to the status view
to show the size of the current bootdisk of the vm/container

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-15 16:25:38 +02:00
Emmanuel Kasper
de38208467 Add Help buttons for three more Qemu Panels 2016-06-14 12:20:38 +02:00
Dietmar Maurer
64ff6a1920 GUI: move status into column layout 2016-06-02 07:21:57 +02:00
Dominik Csapak
d49b640b6c make the graphs on the summary pages use empty space
this patch lets the graphs flow if you have enough
horizontal space

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-02 06:26:06 +02:00
Dominik Csapak
4a01bc8345 hide snapshot tab with qemu templates
since we cannot create templates with existing snapshots,
and we cannot take snapshots of templates, showing
the tab on templates makes no sense

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-01 16:46:41 +02:00
Emmanuel Kasper
8aa37826e7 Add online help for some complex Qemu InputPanels 2016-06-01 12:39:11 +02:00
Emmanuel Kasper
8c70732ba9 set 'disabled' for grid panels which disaply a read only, not sortable content
* closes the bug #976
 * minor usability improvement: having a clickable row where
 no action was possible is a bit misleading
2016-05-17 12:07:07 +02:00
Emmanuel Kasper
3c813f7416 Enlarge Object Grid first column default size
The framework value of 100 is not enough for many of our description
fields.
Setting this at the parent component level allow to remove
the end component setting.
2016-05-17 11:33:34 +02:00
Dietmar Maurer
9cac6b7594 HDEdit: cleanup, move logic to view controller 2016-05-04 13:06:13 +02:00
Dietmar Maurer
180d7ef5b4 fix #973: disable iothread for non-virtio drives
this patch disables the iothread field, whenever the disk
is not a virtio disk, or the selected controller is not
virtio
2016-05-04 12:48:18 +02:00
Dominik Csapak
25e0bc2d9d improve pending changes for qemu hardware in gui
this patch fixes an access to an undefined value
if a disk/cd/network device was pending

also improve how this is displayed:
instead of
****
undefined
new value
****

show just the new value

this occured when having a new disk under pending,
or having a disk removal under pending

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-03 11:24:47 +02:00
Dominik Csapak
16c162ec73 fix pending changes with boot order
this patch checks if only the bootdisk changed,
using the multikey funcionality

also use this in the revert button handler,
to revert the bootdisk also

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-03 06:44:02 +02:00
Dominik Csapak
a764c5f72e jslint: fix missing or extra semicolon
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:07:42 +02:00
Dominik Csapak
22f2f9d6c0 jslint: remove trailing commas
before ECMA5 trailing commas in arrays and objects
are forbidden

in jslint this is an error and cannot be deactivated

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:06:34 +02:00
Dominik Csapak
ec0bd652db jslint: fix type confusion and property access
fix various type confusion, for example:
items: {} and items: []
style: string and style: {}

also fix object['property'] access with
object.property

also fix /=/ with either '=' or /\=/ where appropriate
(/=/ can be confused with /= according to jslint)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:06:23 +02:00
Dominik Csapak
4edfc518b9 refactor bootdisk test and prevent multiple bootdisks
refactor the test for the bootdisk, to make future changes easier,
also, only allow one bootdisk to be selected

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-25 11:19:49 +02:00
Dominik Csapak
9e7b4d8dc5 fix #943: allow saving of values
we mistakenly did not reset the originalvalues after the inital
load, which meant that on reset we would not get the correct values

furthermore we have to suspend only the change event and not all,
otherwise the functions for enabling/disabling the ok/reset buttons
do not trigger (on validitychange and dirtychange)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-25 11:18:57 +02:00
Thomas Lamprecht
ced1677b2b StatusView: more verbose HA status output
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-04-19 09:07:13 +02:00
Dominik Csapak
adaac36f72 fix #181: rewrite Boot Order Window
changed the way the boot order selection behaves:

now when choosing a value which already is chosen elsewhere,
switch them

also when assigning any device as none, move the remaining devices up

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-15 09:42:33 +02:00
Dietmar Maurer
6a0b8c26c9 GUI: use raw format for DRBD images 2016-04-15 08:23:32 +02:00
Wolfgang Bumiller
0052bd0a3c www: monitor: support page up/down
to scroll the textbox while keeping focus in the inputbox
2016-04-13 08:17:22 +02:00
Dominik Csapak
efbc9f5d7e cleanup of contextmenus
change the order of the contextmenu items to
group functions, also introducing separators

like this:

***
power options
***
moving options
***
console
***

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-11 13:03:19 +02:00
Dominik Csapak
52af3f0de4 correct qemu cmdMenu
start button should be disabled when suspended

use 'file' icon instead of 'sticky-note'
to be consistent with tree icons

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-11 11:51:05 +02:00
Dominik Csapak
79ae73ee35 new icons for snapshottree
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-11 11:50:39 +02:00
Dominik Csapak
5ca0c804c6 remove displayfield height hack
this did not work anymore,
instead overwrite css for displayfields to have correct
min-height

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-06 16:29:35 +02:00
Dominik Csapak
9bd6cd80de fix trailing whitespaces
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-05 12:00:52 +02:00
Dominik Csapak
ce8dac510e make contextmenus status-sensitive
for example, allow starting from contextmenu
only if vm/ct is stopped, etc.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-05 12:00:44 +02:00
Dominik Csapak
d4333933e5 use font-awesome icons for action buttons and cmdmenu
this patch makes use of font-awesome for
lxc/qemu action buttons (start/shutdown etc.)
node actions buttons (restart/shutdown etc.)
and lxc/qemu cmdmenus

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-05 11:59:25 +02:00