After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 677714 - Cannot access VM properties while it's off
Cannot access VM properties while it's off
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
3.5.x (unsupported)
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks: 686777 686781
 
 
Reported: 2012-06-08 14:05 UTC by Christophe Fergeau
Modified: 2016-03-31 13:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add properties button to selection toolbar (2.62 KB, patch)
2012-10-26 09:28 UTC, Alexander Larsson
committed Details | Review
Avoid warnings when going to properties view for non-running vm (1.56 KB, patch)
2012-10-26 09:28 UTC, Alexander Larsson
committed Details | Review
Only make force shutdown button sensitive if vm is running (1.25 KB, patch)
2012-10-26 09:28 UTC, Alexander Larsson
committed Details | Review
Disable selection mode before going to properties view (935 bytes, patch)
2012-10-30 19:38 UTC, Alexander Larsson
committed Details | Review
Rename MachineActor.display to MachineActor.thumbnail (8.13 KB, patch)
2012-10-31 13:10 UTC, Alexander Larsson
committed Details | Review
Machine: Always disconnect display when we're not displaying it (1.79 KB, patch)
2012-10-31 13:11 UTC, Alexander Larsson
committed Details | Review
Show screenshot as thumbnail in properties view if not connected (7.98 KB, patch)
2012-10-31 13:11 UTC, Alexander Larsson
committed Details | Review
Break out machine connection into App.connect_to (5.45 KB, patch)
2012-10-31 13:11 UTC, Alexander Larsson
committed Details | Review
Allow clicking on thumbnail in properties view (2.35 KB, patch)
2012-10-31 13:11 UTC, Alexander Larsson
committed Details | Review
Properties: Fix back button name (1.18 KB, patch)
2012-10-31 13:11 UTC, Alexander Larsson
committed Details | Review
Show cd icon, not thumbnail in properties during install (2.14 KB, patch)
2012-10-31 13:11 UTC, Alexander Larsson
committed Details | Review

Description Christophe Fergeau 2012-06-08 14:05:20 UTC
VM properties are only accessible through the top bar which is only present while the VM is running. This means that to change memory/disk settings on a non-runnig VM, one has to start the VM, change the settings and restart the VM.
Comment 1 Marc-Andre Lureau 2012-06-08 14:46:28 UTC
In some ways, this isn't so bad. For example, you can't change VM resolution without using the VM. I think you should say what and why you would want to change VM settings. (RAM can be dynamically adjusted with ballooning afaik etc.)
Comment 2 Christophe Fergeau 2012-06-08 15:04:23 UTC
I have mostly RAM and disk in mind, in therory this could all be done at runtime, in practice I assume most OSes will want to be rebooted to notice these were changed.
Comment 3 Alexander Larsson 2012-10-26 09:28:41 UTC
Created attachment 227341 [details] [review]
Add properties button to selection toolbar

This allows showing the properties view for both running and
non-running boxes.
Comment 4 Alexander Larsson 2012-10-26 09:28:44 UTC
Created attachment 227342 [details] [review]
Avoid warnings when going to properties view for non-running vm

If the vm is not running then there will be no display to
animate and show in the sidebar.
Comment 5 Alexander Larsson 2012-10-26 09:28:47 UTC
Created attachment 227343 [details] [review]
Only make force shutdown button sensitive if vm is running
Comment 6 Alexander Larsson 2012-10-26 09:30:59 UTC
This is based on the patches in bug 686777 and bug 686883
Comment 7 Zeeshan Ali 2012-10-26 14:04:48 UTC
Review of attachment 227341 [details] [review]:

That easy? :)
Comment 8 Zeeshan Ali 2012-10-26 14:11:33 UTC
Review of attachment 227342 [details] [review]:

ACK

::: src/machine.vala
@@ +669,3 @@
+            if (widget == null) {
+                if (previous_ui_state == UIState.WIZARD) {
+                    // FIXME: We should draw a CD instead as in the mockup:

would be nice if you could fix this fixme while you are at this.
Comment 9 Zeeshan Ali 2012-10-26 14:16:56 UTC
Review of attachment 227343 [details] [review]:

ACK
Comment 10 Alexander Larsson 2012-10-26 15:01:16 UTC
Attachment 227341 [details] pushed as 9f02dc4 - Add properties button to selection toolbar
Attachment 227342 [details] pushed as 2bc6ca1 - Avoid warnings when going to properties view for non-running vm
Attachment 227343 [details] pushed as f7a74d8 - Only make force shutdown button sensitive if vm is running
Comment 11 Marc-Andre Lureau 2012-10-29 12:57:51 UTC
Some bug though, going back to Collection will leave the selection mode, although it is still active.
Comment 12 Alexander Larsson 2012-10-30 07:57:57 UTC
Reopening to handle that.
Comment 13 Marc-Andre Lureau 2012-10-30 13:04:51 UTC
also I am not sure if it's intentionnal,  but the selection toolbar overlay stays around when the properties page is shown.
Comment 14 Alexander Larsson 2012-10-30 19:38:24 UTC
Created attachment 227677 [details] [review]
Disable selection mode before going to properties view

We kept showing the selection bar in the properties view, and
we returned to a half-broken selection mode. Lets just disable
selection mode before going to the properties view.
Comment 15 Marc-Andre Lureau 2012-10-30 21:46:56 UTC
Review of attachment 227677 [details] [review]:

::: src/app.vala
@@ +648,3 @@
 
+        selection_mode = false;
+

that's good enough for me if we leave selection mode, so ack
Comment 16 Marc-Andre Lureau 2012-10-31 00:57:09 UTC
why not show the last thumbnail in properties view? it looks weird that if I go to properties via display, I get a thumbnail, if I go via collection selection, I don't get anything (running on non-running). Imho, we should have the thumbnail, if the VM is started, when clicking, it should switch to its display, if the VM is not running, it should start it and switch to display as well.
Comment 17 Alexander Larsson 2012-10-31 07:56:24 UTC
Marc: Agreed, or the CD icon as per
https://raw.github.com/gnome-design-team/gnome-mockups/master/boxes/boxes-install5.5.png
during install
Comment 18 Alexander Larsson 2012-10-31 07:58:20 UTC
Comment on attachment 227677 [details] [review]
Disable selection mode before going to properties view

Attachment 227677 [details] pushed as 361d7e4 - Disable selection mode before going to properties view
Comment 19 Alexander Larsson 2012-10-31 13:10:58 UTC
Created attachment 227720 [details] [review]
Rename MachineActor.display to MachineActor.thumbnail

This was really confusing vs Machine.display which is a SpiceDisplay
as these are defined in the same source file (but in different classes).
Comment 20 Alexander Larsson 2012-10-31 13:11:00 UTC
Created attachment 227721 [details] [review]
Machine: Always disconnect display when we're not displaying it

We used to only disconnect Machine.display when going into collection
view, but that is not always what happens. For instance, we might
go directly to the wizard if we use the "New" app menu item.
So, we move this disconnect from App.ui_state_changed to
Machine.ui_state_changed and disconnect on any state except
DISPLAY, PROPERTIES and CREDS.
Comment 21 Alexander Larsson 2012-10-31 13:11:03 UTC
Created attachment 227722 [details] [review]
Show screenshot as thumbnail in properties view if not connected
Comment 22 Alexander Larsson 2012-10-31 13:11:06 UTC
Created attachment 227723 [details] [review]
Break out machine connection into App.connect_to

This merges all the code that handles connection and going into
the CREDS state into a single function instead of being distributed
into App.select_item() and CollectionView UIState.CREDS handling.
This allows connecting to a machine without the collection view being
involved (such as when starting a box from the properties page).

It also moves the place where we collect the actor animation start
position to App.select_item() so that we can use a different start
in other cases.
Comment 23 Alexander Larsson 2012-10-31 13:11:10 UTC
Created attachment 227724 [details] [review]
Allow clicking on thumbnail in properties view

This connects to the vm.
Comment 24 Alexander Larsson 2012-10-31 13:11:13 UTC
Created attachment 227725 [details] [review]
Properties: Fix back button name

Don't use name on back button if it goes to the collection view
rather than to the named display.
Comment 25 Alexander Larsson 2012-10-31 13:11:17 UTC
Created attachment 227726 [details] [review]
Show cd icon, not thumbnail in properties during install

Also, don't allow clicking on it to connect to the vm.

The image is squashed a bit, need to figure out how to keep
the aspect ratio of it.
Comment 26 Marc-Andre Lureau 2012-11-02 11:33:00 UTC
Review of attachment 227726 [details] [review]:

The series looks good. The only bug I noticed is that wizard-properties with remote display will still let you click the thumbnail.
Comment 27 Alexander Larsson 2012-11-02 13:11:48 UTC
Attachment 227720 [details] pushed as 2f9ea2b - Rename MachineActor.display to MachineActor.thumbnail
Attachment 227721 [details] pushed as 9bfb280 - Machine: Always disconnect display when we're not displaying it
Attachment 227722 [details] pushed as dd208c6 - Show screenshot as thumbnail in properties view if not connected
Attachment 227723 [details] pushed as ec26d54 - Break out machine connection into App.connect_to
Attachment 227724 [details] pushed as bb5ee04 - Allow clicking on thumbnail in properties view
Attachment 227725 [details] pushed as 4dfa749 - Properties: Fix back button name
Attachment 227726 [details] pushed as 02a1c08 - Show cd icon, not thumbnail in properties during install
Comment 28 Alexander Larsson 2012-11-02 13:13:12 UTC
Remaining issues:
* squashed CD icon
* wizard-properties with remote display will let you click the thumbnail.
Comment 29 Alexander Larsson 2012-11-14 16:51:45 UTC
Remaining issues split out to bug 688329 and 688328. Closing this.