From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: solarflare.com, ip: 148.163.129.52, mailfrom: tpilar@solarflare.com) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by groups.io with SMTP; Wed, 22 May 2019 09:57:29 -0700 X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (webmail.solarflare.com [12.187.104.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 78288B40068; Wed, 22 May 2019 16:57:28 +0000 (UTC) Received: from tp-desktop.uk.solarflarecom.com (10.17.20.51) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 22 May 2019 09:57:24 -0700 Subject: Re: [edk2-devel] Help needed in building UEFI qcow2 images To: , References: <32BDEDBA-2972-4D56-ABA8-E4570A56E85C@apple.com> From: "Tomas Pilar (tpilar)" Message-ID: <7768574a-2c2e-33c7-4c0e-85b48d3bac87@solarflare.com> Date: Wed, 22 May 2019 17:57:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <32BDEDBA-2972-4D56-ABA8-E4570A56E85C@apple.com> X-Originating-IP: [10.17.20.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24630.004 X-TM-AS-Result: No-7.989900-4.000000-10 X-TMASE-MatchedRID: Q2+zkeG6t3oxPNmD6wdjrkNkUF3WMuv+bb8TKn75HqB8yGO3dvk8/Vcb fIj2Ta9sP84r9LuHKWEnrNA0LNTT6F4oa9JzOqAUA2PlWWvubxmOjIrMSa2sR8VRnurwepAUmJB e2bRXwlPD99t/LA9KujZ2dXJskHOJ4K9CwJ5B7eZhtXrMw2PG7YIK2tjTqNotD+jls0cSwJNO+e lk6C5rQJjpNpIJqhhcXdGiFm2QUKHm1EVPDd7vsjjRcAvE+/kr8pRHzcG+oi1/9Mg6o+wMi/Wor fObDYJAlcHMCyWAI7PkPwD+MFBmbuCZp1KEyCKbdLzqQcWLMXAU5rAJx2JTQ4HLFWR93TgkaHvr 9sOkYSvX6TGug1j07iAE2AWtq88SR+Zh+IpV2eba3rx+hZIOqHYZxYoZm58F2ikNBi4UTw+sxvT CCnhvxq7E8e5xaoA/QAay5GkNjKvtJIfPs+qF45dlNMSG3ZdMxkTMMBamhtS5I3Jkp5qIPpm3Tx N83Lo45TCKXJqm4S8CoqhCvQeoe5WVCQxWVIeUrzzorQhBYYcxNOsBwNfn/o7P8sslRxoeR2YNI Fh+clFAmFjJq50cgxFW9aWD9dpYRNfShcTk4IMcfKa5b/X7yIeMWfCwoMwMWAyJlKudLNNQmhcK 24nKvtk2l7i3oc4z+EJye0v2sP5fsF9Eqkj/t9glsIbYnVZIboe6sMfg+k9kAa0IkTbdiFnFZNf j6Xm2CAhppJ6vo8Iu06he/gL0yhnX5PKXbdHRPIeX4ggjD6TnBcjWg41W4OJc6hKWj0C1B0L0/U t7x1BMbDDFQw0BlALoLagDdXL3gAYZl0Ibohi/WXZS/HqJ2rhRbCW0NeMw3KlreiiUQaDV73DhP N/YICZ/IxnPmy+pJtbjR1WPnAQqMle9hznWgL36u3nxkIe339Pj2R0rKz4= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--7.989900-4.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24630.004 X-MDID: 1558544249-KDLvpWr6oXu5 Content-Type: text/html; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: quoted-printable Thanks Andrew,

I thought that groups.io is supposed to allow attachments?

Anyway snippet below:

----

<domain type=3D'kvm' id=3D'5'>
=C2=A0 <name>Qemu Test</name>
=C2=A0 <uuid>6a92c8c3-c6b4-4b57-a164-0a9917eeaf19</uuid>=
=C2=A0 <memory unit=3D'KiB'>2097152</memory>
=C2=A0 <currentMemory unit=3D'KiB'>2097152</currentMemory&g= t;
=C2=A0 <vcpu placement=3D'static'>2</vcpu>
=C2=A0 <resource>
=C2=A0=C2=A0=C2=A0 <partition>/machine</partition>
=C2=A0 </resource>
=C2=A0 <os>
=C2=A0=C2=A0=C2=A0 <type arch=3D'x86_64'>hvm</type>
=C2=A0=C2=A0=C2=A0 <bootmenu enable=3D'yes' timeout=3D'3000'/>=
=C2=A0=C2=A0=C2=A0 <loader readonly=3D'yes' secure=3D'no' type=3D'pflash'>/tmp/ovmf-test/OVMF_CODE.fd</loader>
=C2=A0=C2=A0=C2=A0 <nvram template=3D'/tmp/ovmf-test/OVMF_VARS.fd'>/tmp/ovmf-test/OVMF_VARS2.fd&l= t;/nvram>
=C2=A0 </os>
=C2=A0 <features>
=C2=A0=C2=A0=C2=A0 <acpi/>
=C2=A0=C2=A0=C2=A0 <apic/>
=C2=A0 </features>
=C2=A0 <clock offset=3D'utc'>
=C2=A0=C2=A0=C2=A0 <timer name=3D'rtc' tickpolicy=3D'catchup'/>= ;
=C2=A0=C2=A0=C2=A0 <timer name=3D'pit' tickpolicy=3D'delay'/><= br> =C2=A0=C2=A0=C2=A0 <timer name=3D'hpet' present=3D'no'/>
=C2=A0 </clock>
=C2=A0 <on_poweroff>preserve</on_poweroff>
=C2=A0 <on_reboot>restart</on_reboot>
=C2=A0 <on_crash>preserve</on_crash>
=C2=A0 <pm>
=C2=A0=C2=A0=C2=A0 <suspend-to-mem enabled=3D'no'/>
=C2=A0=C2=A0=C2=A0 <suspend-to-disk enabled=3D'no'/>
=C2=A0 </pm>
=C2=A0 <devices>
=C2=A0=C2=A0=C2=A0 <emulator>/usr/libexec/qemu-kvm</emulato= r>
=C2=A0=C2=A0=C2=A0 <controller type=3D'pci' index=3D'0' model=3D'= pci-root'>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <alias name=3D'pci.0'/>
=C2=A0=C2=A0=C2=A0 </controller>
=C2=A0=C2=A0=C2=A0 <hostdev mode=3D'subsystem' type=3D'pci' manag= ed=3D'yes'>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <source>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [ADDRESS]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </source>
=C2=A0=C2=A0=C2=A0 </hostdev>
=C2=A0=C2=A0=C2=A0 <serial type=3D'file'>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <source path=3D'/tmp/ovmf-test/ser= ial0.log'/>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <target port=3D'0' />
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <alias name=3D'serial0'/>
=C2=A0=C2=A0=C2=A0 </serial>
=C2=A0=C2=A0=C2=A0 <serial type=3D'file'>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <source path=3D'/tmp/ovmf-test/ser= ial1.log'/>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <target port=3D'1' />
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <alias name=3D'serial1'/>
=C2=A0=C2=A0=C2=A0 </serial>
=C2=A0=C2=A0=C2=A0 <input type=3D'mouse' bus=3D'ps2'>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <alias name=3D'input1'/>
=C2=A0=C2=A0=C2=A0 </input>
=C2=A0=C2=A0=C2=A0 <input type=3D'keyboard' bus=3D'ps2'>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <alias name=3D'input2'/>
=C2=A0=C2=A0=C2=A0 </input>
=C2=A0=C2=A0=C2=A0 <graphics type=3D'spice' port=3D'5900' autopor= t=3D'yes' listen=3D'127.0.0.1'>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <listen type=3D'address' address= =3D'127.0.0.1'/>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <image compression=3D'off'/> =C2=A0=C2=A0=C2=A0 </graphics>
=C2=A0=C2=A0=C2=A0 <video>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <model type=3D'qxl' ram=3D'65536' = vram=3D'65536' vgamem=3D'16384' heads=3D'1' primary=3D'yes'/>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <alias name=3D'video0'/>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <address type=3D'pci' domain=3D'0x= 0000' bus=3D'0x00' slot=3D'0x02' function=3D'0x0'/>
=C2=A0=C2=A0=C2=A0 </video>
=C2=A0=C2=A0=C2=A0 <rng model=3D'virtio'>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <backend model=3D'random'>/dev/= urandom</backend>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <alias name=3D'rng0'/>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <address type=3D'pci' domain=3D'0x= 0000' bus=3D'0x00' slot=3D'0x09' function=3D'0x0'/>
=C2=A0=C2=A0=C2=A0 </rng>
=C2=A0 </devices>
</domain>

--

On 22/05/2019 16:58, Andrew Fish via Groups.Io wrote:
Tom,

Looks like the mailing list stripped your attachment.=C2=A0

Thanks,

Andrew Fish

On May 22, 2019, at 4:19 AM, Tomas Pilar (tpilar) <tpilar@solarflare.com<= /a>> wrote:

Hi Pavan,
=C2=A0
I am currently playing around with setting up a OVMF based test framework myself. You likely need to tell qemu to use OVMF as it=E2=80=99s firmware= . I attach my current working libvirt XML file for creating UEFI VMs (diskless) =E2=80=93 note the <loader> and the <nvram> elements within the <os> element.
=C2=A0
You want to add a disk sourced from the qcow image and that should work.=
=C2=A0
Cheers,
Tom
=C2=A0
= From:=C2=A0= devel@edk2.groups.io=C2=A0<= ;= devel@edk2.groups.io>=C2=A0On Behalf Of=C2=A0<= /b>Pavan Kumar Aravapalli
Sent:=C2=A022 = May 2019 12:02
To:=C2=A0Dev= el EDK2 <= devel@edk2.groups.io>
Subject:=C2=A0[ed= k2-devel] Help needed in building UEFI qcow2 images
=C2=A0

Hi,=C2=A0

=C2=A0

[re-posting the question]

=C2=A0

I am looking for information/documentation which helps me=C2=A0in=C2=A0enabling UEFI boot=C2=A0to=C2= =A0the existing (KVM)VM template. I am trying=C2=A0for=C2=A0CentOS 6.5(64-bit) no GUI 64-bit (KVM) template.=C2=A0

=C2=A0

=C2=A0

I found some images available over=C2=A0https://www.kraxel.org/re= pos/images/=C2=A0with fedora os, but I am looking for uefi enabled Cent OS template. It would be helpfull if any documentation or steps provided for the same.

=C2=A0

=C2=A0

Regards,=C2=A0

Pavan.

DISCLAIMER=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This e-mail may contain privileged and confidential information which is the property of Accelerite, a Persistent Systems business. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Accelerite, a Persistent Systems business does not accept any liability for virus infected mails.
<kvm.xml>