56082a3f99
virt-manager-1.4.1.tar.bz2 virtinst-check-date-format.patch virtinst-no-usb-tablet-for-xenpv.patch * New VM wixard virt-bootstrap integration (Radostin Stoyanov) * New VM wizard support for virtuozzo containers (Mikhail Feoktistov) * network UI: add support to create SR-IOV VF pool (Lin Ma) * Nicer OS list in New VM wizard (Pino Toscano) * Better defaults for UEFI secureboot builds (Pavel Hrdina) * Fix defaults for aarch64 VMs if graphics are requested * virt-install: new –memdev option (Pavel Hrdina) * virt-install: add –disk logical/physical_block_size (Yuri Arabadji) * virt-install: add –features hyperv_reset=, hyperv_synic= (Venkat Datta N H) - Dropped the following patches contained in new tarball f5d709d9-lang-it-1.patch c66098f3-lang-it-2.patch 452a693e-lang-update.patch 6b5106ea-lang-it-ko-fix.patch 9c8ffe51-fix-multiple-warnings-1.patch cb182f7e-skip-authentication-only-for-VNC-with-listen-type-none.patch 0610cd6a-ensure-bool-value-used-for-set_sensitive-call.patch f341352c-remove-redundant-error-string.patch ff3b4dc5-dont-overwrite-install-bootorder.patch 2099a194-reset-guest-domain-to-none-on-domain-creation-error.patch 93085d2b-reset-guest-domain-to-none-on-domain-creation-error.patch 7aee124d-fix-multiple-warnings-2.patch f38c56c9-add-support-for-SMM-feature.patch 24f9d053-add-support-for-loader-secure-attribute.patch 4f8e795c-if-required-by-UEFI-enable-SMM-feature-and-set-q35-machine-type.patch b690908a-enable-secure-feature-together-with-smm-for-UEFI.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=356
75 lines
3.2 KiB
Diff
75 lines
3.2 KiB
Diff
Enhancement for the following GUI wizard installation options.
|
|
1) If Xen, leave 'Architecture options' expanded so users know PV
|
|
is the default
|
|
2) Under 'Network selection' default to a bridge that has an actual
|
|
IP address if available (not just the first one found).
|
|
Index: virt-manager-1.4.2/virtManager/create.py
|
|
===================================================================
|
|
--- virt-manager-1.4.2.orig/virtManager/create.py
|
|
+++ virt-manager-1.4.2/virtManager/create.py
|
|
@@ -397,8 +397,20 @@ class vmmCreate(vmmGObjectUI):
|
|
self.widget("method-local").set_active(True)
|
|
self.widget("create-conn").set_active(-1)
|
|
activeconn = self._populate_conn_list(urihint)
|
|
- self.widget("arch-expander").set_expanded(False)
|
|
self.widget("vz-virt-type-hvm").set_active(True)
|
|
+ # For Xen have the expander open so users can see PV is the default
|
|
+ if activeconn and activeconn.is_xen():
|
|
+ self.widget("arch-expander").set_expanded(True)
|
|
+ else:
|
|
+ self.widget("arch-expander").set_expanded(False)
|
|
+
|
|
+ # Default to Network install if host was installed that way
|
|
+ host_instsrc = util.getHostInstallSource()
|
|
+ if host_instsrc is not None and \
|
|
+ (host_instsrc.startswith('ftp:') or host_instsrc.startswith('http:') or \
|
|
+ host_instsrc.startswith('smb:') or host_instsrc.startswith('nfs:')):
|
|
+ self.widget("method-local").set_active(False)
|
|
+ self.widget("method-tree").set_active(True)
|
|
|
|
if self._set_conn(activeconn) is False:
|
|
return False
|
|
Index: virt-manager-1.4.2/virtManager/netlist.py
|
|
===================================================================
|
|
--- virt-manager-1.4.2.orig/virtManager/netlist.py
|
|
+++ virt-manager-1.4.2/virtManager/netlist.py
|
|
@@ -170,9 +170,19 @@ class vmmNetworkList(vmmGObjectUI):
|
|
return rows, vnet_bridges, default_label
|
|
|
|
def _find_physical_devices(self, vnet_bridges):
|
|
+ def check_for_inet(bname):
|
|
+ if bname is not None:
|
|
+ from subprocess import Popen, PIPE
|
|
+ p = Popen(['/sbin/ip', 'addr', 'show', bname], stdout=PIPE, stderr=PIPE)
|
|
+ stdout, stderr = p.communicate()
|
|
+ if stdout and 'inet' in stdout:
|
|
+ return True
|
|
+ return False
|
|
+
|
|
rows = []
|
|
can_default = False
|
|
default_label = None
|
|
+ default_label_with_inet = None
|
|
skip_ifaces = ["lo"]
|
|
|
|
vnet_taps = []
|
|
@@ -232,10 +242,18 @@ class vmmNetworkList(vmmGObjectUI):
|
|
if can_default and not default_label:
|
|
default_label = label
|
|
|
|
+ # Default to a bridge that has an actual inet addr
|
|
+ if default_label_with_inet is None:
|
|
+ if check_for_inet(source_name):
|
|
+ default_label_with_inet = label
|
|
+
|
|
rows.append(self._build_source_row(
|
|
nettype, source_name, label, sensitive, True,
|
|
key=name))
|
|
|
|
+ if default_label and default_label_with_inet is not None:
|
|
+ default_label = default_label_with_inet
|
|
+
|
|
return rows, default_label
|
|
|
|
def _populate_network_model(self, model):
|