47ffb48dd8
virt-manager-1.1.0.tar.bz2 * Switch to libosinfo as OS metadata database (Giuseppe Scrivano) * Use libosinfo for OS detection from CDROM media labels (Giuseppe Scrivano) * Use libosinfo for improved OS defaults, like recommended disk size (Giuseppe Scrivano) * virt-image tool has been removed, as previously announced * Enable Hyper-V enlightenments for Windows VMs * Revert virtio-console default, back to plain serial console * Experimental q35 option in new VM ‘customize’ dialog * UI for virtual network QoS settings (Giuseppe Scrivano) * virt-install: –disk discard= support (Jim Minter) * addhardware: Add spiceport UI (Marc-André Lureau) * virt-install: –events on_poweroff etc. support (Chen Hanxiao) * cli –network portgroup= support and UI support * cli –boot initargs= and UI support * addhardware: allow setting controller model (Chen Hanxiao) * virt-install: support setting hugepage options (Chen Hanxiao) - Drop upstream patches and old tarball virt-manager-1.0.1.tar.bz2 5332ee4d-enable-media-detection-for-ISO-images.patch 53341e7e-hide-hardware-removal-for-non-devices.patch 53342f31-set-right-ip-address-for-ipv6.patch 53375bad-raise-value-error-when-no-ipaddr-set.patch 53388de2-show-port-number-for-active-autoport-VM.patch 53397ae0-check-ip-address-format.patch 53399b45-hook-into-domain-balloon-event.patch 533d708d-fix-showing-vcpus-values.patch 533d7602-fix-changing-graphics-type.patch 533d7be7-clarify-iscsi-IQN-fields.patch 5345682c-addstorage-remove-whitespace-for-storage-path.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=207
68 lines
2.8 KiB
Diff
68 lines
2.8 KiB
Diff
Index: virt-manager-1.1.0/virtManager/create.py
|
|
===================================================================
|
|
--- virt-manager-1.1.0.orig/virtManager/create.py
|
|
+++ virt-manager-1.1.0/virtManager/create.py
|
|
@@ -342,7 +342,18 @@ 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)
|
|
+ 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)
|
|
|
|
try:
|
|
self.set_conn(activeconn, force_validate=True)
|
|
Index: virt-manager-1.1.0/virtManager/netlist.py
|
|
===================================================================
|
|
--- virt-manager-1.1.0.orig/virtManager/netlist.py
|
|
+++ virt-manager-1.1.0/virtManager/netlist.py
|
|
@@ -167,9 +167,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 = []
|
|
@@ -228,10 +238,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_list(self):
|