xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Anthony PERARD <anthony.perard@citrix.com>
To: "Marcos E. Matsunaga" <Marcos.Matsunaga@oracle.com>
Cc: xen-devel@lists.xen.org
Subject: Re: DomU UEFI configuration
Date: Tue, 14 Mar 2017 17:35:52 +0000	[thread overview]
Message-ID: <20170314173552.GA1882@perard.uk.xensource.com> (raw)
In-Reply-To: <35b46493-08a5-9a36-8719-24f0cfec2fc3@oracle.com>

On Tue, Mar 14, 2017 at 02:06:09PM +0000, Marcos E. Matsunaga wrote:
> Hi Anthony,
> 
> 
> I am trying to run a DomU guest using OVMF. I have built xen staging with
> --with-ovmf option. I am able to install a new guest but I am unable to boot
> it (see the attached image).
> 
> The xl.cfg file I am using:
> 
> name='test_uefi'
> memory=16384
> disk=['file:/home/IMAGES/FEDORA/FC25/Fedora-Server-dvd-x86_64-25-1.3.iso,hdc:cdrom,r','/Repo/VM/test_uefi/System_UEFI.qcow2,raw,hda,w']
> #disk=['/Repo/VM/test_uefi/System_UEFI.qcow2,raw,hda,w']
> vif=['mac=00:16:3e:ff:ee:01,bridge=xenbr0',
> 'mac=00:16:3e:ff:00:01,bridge=xenbr2']
> guest_os_type='default'
> bios='ovmf'
> serial='pty'
> xen_platform_pci=0
> device_model_version='qemu-xen'
> builder='hvm'
> on_poweroff='destroy'
> boot='dc'
> vnc=1
> vnclisten='0.0.0.0:5'
> stdvga=1
> videoram=16
> on_crash='restart'
> on_reboot='restart'
> vcpus=8
> maxmem=16384
> 
> Konrad Wilk suggested me to use try adding:
> 
> device_model_args_hvm=["fw_cfg","file=./my_blob.bin"];

Those are not QEMU options, so that would not work. And I don't think
using -fw_cfg would work with xen (if the options exist) as we almost
don't use fw_cfg.

> But that didn't work. I also tried something similar to how KVM uses:
> 
> device_model_args_hvm=['-drive','file=/Repo/VM/perf1_uefi/OVMF_VARS.fd,if=pflash,format=raw,unit=1'];
> 
> It also didn't work.

:(. I never tried, I'm not sure if it can work. Compare to KVM, we put
OVMF.fd into RAM instead of a pflash device emulated by QEMU.

Maybe one would need to load OVMF_CODE.fd instead of OVMF.fd, and OVMF
could then use OVMF_VARS.fd, but I never tried.

> How do you specify the NVRAM image to store the boot order?

-- 
Anthony PERARD

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

      reply	other threads:[~2017-03-14 17:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-14 14:06 DomU UEFI configuration Marcos E. Matsunaga
2017-03-14 17:35 ` Anthony PERARD [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170314173552.GA1882@perard.uk.xensource.com \
    --to=anthony.perard@citrix.com \
    --cc=Marcos.Matsunaga@oracle.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).