[gnome-boxes] Warn about unavailability of KVM
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Warn about unavailability of KVM
- Date: Tue, 26 Jun 2012 14:35:46 +0000 (UTC)
commit c7068730a68945f5ffddf80ba84a7c0bf88ee8a9
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed May 16 19:49:29 2012 +0300
Warn about unavailability of KVM
https://bugzilla.gnome.org/show_bug.cgi?id=674209
src/wizard.vala | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index 3fb7f14..ce74099 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -25,6 +25,7 @@ private class Boxes.Wizard: Boxes.UI {
private Gtk.ProgressBar prep_progress;
private Gtk.VBox setup_vbox;
private Gtk.Label review_label;
+ private Gtk.Label nokvm_label;
private Gtk.Image installer_image;
private MediaManager media_manager;
@@ -307,6 +308,7 @@ private class Boxes.Wizard: Boxes.UI {
}
private async bool review () {
+ nokvm_label.hide ();
summary.clear ();
if (install_media != null && install_media is UnattendedInstaller) {
@@ -366,6 +368,7 @@ private class Boxes.Wizard: Boxes.UI {
summary.add_property (_("Memory"), memory);
memory = format_size (install_media.resources.storage, FormatSizeFlags.IEC_UNITS);
summary.add_property (_("Disk"), _("%s maximum".printf (memory)));
+ nokvm_label.visible = (machine.domain_config.get_virt_type () != GVirConfig.DomainVirtType.KVM);
}
return true;
@@ -524,6 +527,11 @@ private class Boxes.Wizard: Boxes.UI {
summary = new WizardSummary ();
vbox.pack_start (summary.widget, true, true);
+ nokvm_label = new Gtk.Label (_("Virtualization extensions are unavailable on your system. Expect this box to be extremely slow. If your system is recent enough (made in or after 2008), these extensions are probably available on your system and you may need to enable them in your system's BIOS setup."));
+ nokvm_label.get_style_context ().add_class ("boxes-logo-notice-label");
+ nokvm_label.wrap = true;
+ nokvm_label.max_width_chars = 50;
+ vbox.pack_start (nokvm_label, false, false);
vbox.show_all ();
/* topbar */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]