From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWSaW-00027n-34 for qemu-devel@nongnu.org; Mon, 31 Aug 2015 13:09:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWSaR-0004Mm-Ty for qemu-devel@nongnu.org; Mon, 31 Aug 2015 13:09:43 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:34233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWSaR-0004Lu-OV for qemu-devel@nongnu.org; Mon, 31 Aug 2015 13:09:39 -0400 Received: by wicjd9 with SMTP id jd9so6715988wic.1 for ; Mon, 31 Aug 2015 10:09:38 -0700 (PDT) References: <20150830201133.GC22921@redhat.com> <66805A56-B304-4C4D-87F5-4F93186CD4CD@suse.de> <20150830212734.GT29283@redhat.com> From: Thomas Huth Message-ID: <55E48A4E.5090309@tuxfamily.org> Date: Mon, 31 Aug 2015 19:09:34 +0200 MIME-Version: 1.0 In-Reply-To: <20150830212734.GT29283@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qemu-system-s390x command line List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" , Alexander Graf Cc: "qemu-devel@nongnu.org" On 30/08/15 23:27, Richard W.M. Jones wrote: > On Sun, Aug 30, 2015 at 11:02:17PM +0200, Alexander Graf wrote: >> >> >>> Am 30.08.2015 um 22:11 schrieb Richard W.M. Jones : >>> >>> Hi Alex, >>> >>> Do you or anyone have a working qemu-system-s390x command line I can >>> use as a starting point to boot a [TCG] guest? >>> >>> So far I have tried variations of: >>> >>> ~/d/qemu/s390x-softmmu/qemu-system-s390x -M s390-ccw-virtio -m 1024 -smp 1 -drive file=s390x.img,if=none,id=disk0 -device virtio-blk-ccw,drive=disk0,id=hd0,bootindex=1 -drive file=Fedora-Server-DVD-s390x-22.iso >> >> Ok, 2 problems here. I'm not sure the iso is bootable - you are >> definitely best off to just use -kernel until you have sonething >> working and then move on to booting without. CD boot is something >> real mainframes don't do very often, so it's a pretty unmaintained >> code path in installation media. >> >> The other one is that we emulate most fancy new user level >> instructions of an ec12, but we only advertise ourselves as a z9 to >> the kernel. So you need to make sure that your kernel is compiled >> with support for old CPUs (RHEL7 for example is not). > > Thanks Alex. Stripping this back to the basics: > > ~/d/qemu/s390x-softmmu/qemu-system-s390x -M s390-ccw-virtio -m 1024 -smp 1 -kernel kernel.img > > with the kernel.img downloaded from > > http://mirrors.nic.cz/fedora-secondary/releases/22/Server/s390x/os/images/ > > just opens a window for a fraction of a second and then qemu exits. > > I'm not married to that particular kernel, nor even to Fedora. I just > want to get something that works as a starting point. Is there a SUSE > or Debian kernel which boots? Either try http://www.qemu-advent-calendar.org/#day-22 or the following: wget http://ftp.nl.debian.org/debian/dists/Debian8.1/main/installer-s390x/current/images/generic/initrd.debian wget http://ftp.nl.debian.org/debian/dists/Debian8.1/main/installer-s390x/current/images/generic/kernel.debian Then: qemu-system-s390x -M s390-ccw-virtio -kernel kernel.debian -initrd initrd.debian -m 512 -nographic Hope that helps, Thomas