Hello community, here is the log from the commit of package vm-install for openSUSE:Factory checked in at 2016-09-08 17:39:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/vm-install (Old) and /work/SRC/openSUSE:Factory/.vm-install.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "vm-install" Changes: -------- --- /work/SRC/openSUSE:Factory/vm-install/vm-install.changes 2016-08-25 09:58:18.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.vm-install.new/vm-install.changes 2016-09-08 17:39:25.000000000 +0200 @@ -1,0 +2,6 @@ +Tue Aug 30 13:04:49 MDT 2016 - carn...@suse.com + +- bsc#989468 - vm-install does not support aarch64 +- Version 0.8.57 + +------------------------------------------------------------------- Old: ---- vm-install-0.8.56.tar.bz2 New: ---- vm-install-0.8.57.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ vm-install.spec ++++++ --- /var/tmp/diff_new_pack.9JQz3h/_old 2016-09-08 17:39:26.000000000 +0200 +++ /var/tmp/diff_new_pack.9JQz3h/_new 2016-09-08 17:39:26.000000000 +0200 @@ -27,12 +27,12 @@ %endif # For directory ownership: BuildRequires: yast2 -Version: 0.8.56 +Version: 0.8.57 Release: 0 Summary: Tool to Define a Virtual Machine and Install Its Operating System License: GPL-2.0 Group: System/Emulators/PC -Source0: %{name}-0.8.56.tar.bz2 +Source0: %{name}-0.8.57.tar.bz2 Source1: vm-install.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: dbus-1-python ++++++ vm-install-0.8.56.tar.bz2 -> vm-install-0.8.57.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vm-install-0.8.56/Makefile new/vm-install-0.8.57/Makefile --- old/vm-install-0.8.56/Makefile 2016-08-17 00:37:07.000000000 +0200 +++ new/vm-install-0.8.57/Makefile 2016-08-30 21:05:38.000000000 +0200 @@ -1,5 +1,5 @@ PACKAGE = vm-install -VER = 0.8.56 +VER = 0.8.57 default: @echo "Run 'make install DESTDIR=$destdir' to install." diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vm-install-0.8.56/setup.py new/vm-install-0.8.57/setup.py --- old/vm-install-0.8.56/setup.py 2016-08-17 00:37:07.000000000 +0200 +++ new/vm-install-0.8.57/setup.py 2016-08-30 21:05:35.000000000 +0200 @@ -1,7 +1,7 @@ from distutils.core import setup setup(name='vminstall', - version='0.8.56', + version='0.8.57', description='Define a virtual machine and install its operating system', author='Charles Coffing', author_email='ccoff...@novell.com', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vm-install-0.8.56/src/vminstall/caps.py new/vm-install-0.8.57/src/vminstall/caps.py --- old/vm-install-0.8.56/src/vminstall/caps.py 2016-03-16 21:11:36.000000000 +0100 +++ new/vm-install-0.8.57/src/vminstall/caps.py 2016-08-31 00:10:33.000000000 +0200 @@ -130,8 +130,10 @@ arches = [['x86_64', 'default'], ['i686', 'default'], ['i586', 'default'], ['i386', 'default']] elif k_arch == 'i686': arches = [['i386', 'default'], ['i586', 'default'], ['i686', 'default']] - else: + elif k_arch == 's390x': arches = [['s390x', 'default']] + else: + arches = [['aarch64', 'default']] return arches if is_x86_64_capable(): if not supports_32nonpae: @@ -160,6 +162,8 @@ return 'x86_64' elif platform.machine() == 's390x': return 's390x' + elif platform.machine() == 'aarch64': + return 'aarch64' return 'i686' def xen_arch(): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vm-install-0.8.56/src/vminstall/full_virt_kvm_guest.py new/vm-install-0.8.57/src/vminstall/full_virt_kvm_guest.py --- old/vm-install-0.8.56/src/vminstall/full_virt_kvm_guest.py 2016-05-14 00:50:22.000000000 +0200 +++ new/vm-install-0.8.57/src/vminstall/full_virt_kvm_guest.py 2016-08-31 00:10:27.000000000 +0200 @@ -34,6 +34,8 @@ if caps.is_kvm(): if caps.kvm_arch() == 's390x': self._qemu = '/usr/bin/qemu-system-s390x' + if caps.kvm_arch() == 'aarch64': + self._qemu = '/usr/bin/qemu-system-aarch64' if os.path.exists("/usr/bin/qemu-system-x86_64"): self._qemu = '/usr/bin/qemu-system-x86_64' elif os.path.exists("/usr/bin/qemu-kvm"): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vm-install-0.8.56/src/vminstall/kvm_guest.py new/vm-install-0.8.57/src/vminstall/kvm_guest.py --- old/vm-install-0.8.56/src/vminstall/kvm_guest.py 2016-05-14 00:50:22.000000000 +0200 +++ new/vm-install-0.8.57/src/vminstall/kvm_guest.py 2016-08-31 17:53:02.000000000 +0200 @@ -55,6 +55,13 @@ def _get_vcpus_xml(self): return ['<vcpu>%d</vcpu>' % self.options.vcpus] + def _get_cpumodel_xml(self): + cpu = [] + if caps.kvm_arch() == 'aarch64': + cpu = ["<cpu mode='host-model'>"] + cpu.append("</cpu>") + return cpu + def _get_localtime_xml(self): clock = [] hpet = None @@ -75,6 +82,7 @@ s.extend(self._get_uuid_xml()) s.extend(self._get_memory_xml()) s.extend(self._get_vcpus_xml()) + s.extend(self._get_cpumodel_xml()) #BFR not needed? s.extend(self._get_keymap_xml()) return s @@ -94,7 +102,9 @@ else: bootdev = 'hd' - if caps.kvm_arch() == 's390x': + if caps.kvm_arch() == 'aarch64': + os.append("<type arch='%s' machine='virt'>hvm</type>" % caps.kvm_arch()) + elif caps.kvm_arch() == 's390x': os.append("<type arch='%s' machine='s390-ccw-virtio'>hvm</type>" % caps.kvm_arch()) else: os.append("<type arch='%s' machine='pc'>hvm</type>" % caps.kvm_arch()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vm-install-0.8.56/src/vminstall/options.py new/vm-install-0.8.57/src/vminstall/options.py --- old/vm-install-0.8.56/src/vminstall/options.py 2016-03-16 21:11:36.000000000 +0100 +++ new/vm-install-0.8.57/src/vminstall/options.py 2016-08-31 00:10:22.000000000 +0200 @@ -640,7 +640,7 @@ else: if defaults.os_type == 'oes2nw': defaults.graphics = 'vesa' - elif caps.kvm_arch() == 's390x': + elif caps.kvm_arch() == 's390x' or caps.kvm_arch() == 'aarch64': defaults.graphics = 'none' else: defaults.graphics = 'cirrus'