From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by mx.groups.io with SMTP id smtpd.web11.593.1585602679360156104 for ; Mon, 30 Mar 2020 14:11:19 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RoL1Aq3a; spf=pass (domain: redhat.com, ip: 216.205.24.74, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585602678; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IxnPmgiCISHMRqBQrk3lFnjZYAv3BZsTsgu944SGLhQ=; b=RoL1Aq3a1kMUPqfzsMmSnRKuQoQn+B38sVuhXP2qzuNG/H0UUZHscUO2iZfJCPMWPGrpn/ fuLNd3GEh/VPFz7TYhLT3fic6G5NrQoyh8kyGElFtho3THxhNv/zO1nQO5jhgp9OScWEHO mlKJ83/YMOXRrQ3nltq4a5f3A5BH7Vo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-175-LZ2Rhd-gPMyGKYjVxkN2xg-1; Mon, 30 Mar 2020 17:11:16 -0400 X-MC-Unique: LZ2Rhd-gPMyGKYjVxkN2xg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 65DF38017CE; Mon, 30 Mar 2020 21:11:15 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-112-191.ams2.redhat.com [10.36.112.191]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9711ECDBD0; Mon, 30 Mar 2020 21:11:14 +0000 (UTC) Subject: Re: [edk2-devel] [PATCH] .azurepipelines: Enable CI for OvmfPkg and EmulatorPkg To: devel@edk2.groups.io, ard.biesheuvel@linaro.org, Sean Brogan References: <27599.1585523801390660294@groups.io> From: "Laszlo Ersek" Message-ID: <39cb76cf-4c89-24dd-b03c-b2dcdf1d7af4@redhat.com> Date: Mon, 30 Mar 2020 23:11:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 03/30/20 08:07, Ard Biesheuvel wrote: > On Mon, 30 Mar 2020 at 01:16, Sean via Groups.Io > wrote: >> >> Ard/Laszlo or anyone familiar with QEMU. >> >> I read up on the ovmf readme and the qemu wiki but still have a few issues i am hoping for quick/easy answers. >> >> 1. How do i programmatically exit the emulator. Seems like uefi shell > reset just reboots. Other ideas? > > 'reset' is supposed to do that. Use 'reset -s' to kill the VM > >> 2. Is there an easy way to map a local file system so that i can setup a startup.nsh? >> > > As Andrew points out, use '-hda fat:' and it will be exposed to > the VM as a FAT formatted block device. Note that it will not offer (functional, or any) write support. I prefer "mtools" or "guestfish" for formatting and populating a virtual disk image. None of those are easy ways, admittedly -- I'm not offering some examples right now exactly because I have to sit down and think about them every time I need them. :) If there's interest in such commands, I could hack up something, but then please give me some specs, and I'll have to work on these things in the morning (while my brain is still not mush). Thanks Laszlo