Thanks das_j
Hi finnland,
I didn't have any issues installing or running win10 or freebsd11 amd64 iso zroot with ovmf.
This patch for xen-4.9.0 built-in ovmf:
https://github.com/tianocore/edk2/commit/fe4a28ccbfd33cae9e1f56b174d46b4eb2329efd.patch
Or the full ovmf BIOS built with a modified Arch ovmf PKGBUILD.
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index f9297d0..098ab18 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -1,6 +1,7 @@
# $Id$
# Maintainer: Thomas Bächler <thomas@archlinux.org>
-pkgname=ovmf
+pkgbase=ovmf
+pkgname=('ovmf' 'ovmf-unsplit')
pkgver=r22345.bec7a86c70
epoch=1
pkgrel=1
@@ -51,10 +52,15 @@ build() {
./BaseTools/BinWrappers/PosixLike/build
}
-package() {
+package_ovmf() {
#install -D -m644 "${srcdir}"/edk2/Build/OvmfIa32/RELEASE_${_toolchain_opt}/FV/OVMF_CODE.fd "${pkgdir}"/usr/share/ovmf/ia32/OVMF_CODE.fd
#install -D -m644 "${srcdir}"/edk2/Build/OvmfIa32/RELEASE_${_toolchain_opt}/FV/OVMF_VARS.fd "${pkgdir}"/usr/share/ovmf/ia32/OVMF_VARS.fd
install -D -m644 "${srcdir}"/edk2/Build/OvmfX64/RELEASE_${_toolchain_opt}/FV/OVMF_CODE.fd "${pkgdir}"/usr/share/ovmf/x64/OVMF_CODE.fd
install -D -m644 "${srcdir}"/edk2/Build/OvmfX64/RELEASE_${_toolchain_opt}/FV/OVMF_VARS.fd "${pkgdir}"/usr/share/ovmf/x64/OVMF_VARS.fd
install -D -m644 "${srcdir}"/edk2/OvmfPkg/License.txt "${pkgdir}"/usr/share/licenses/ovmf/License.txt
}
+
+package_ovmf-unsplit() {
+ install -D -m644 "${srcdir}"/edk2/Build/OvmfX64/RELEASE_${_toolchain_opt}/FV/OVMF.fd "${pkgdir}"/usr/share/ovmf/ovmf_x64.bin
+ install -D -m644 "${srcdir}"/edk2/OvmfPkg/License.txt "${pkgdir}"/usr/share/licenses/"${pkgname[2]}"/License.txt
+}
VM config
### Xen VM options
## http://xenbits.xen.org/docs/unstable/man/xl.cfg.5.html
name="win10.cfg"
builder="hvm"
memory=2048
bios="ovmf"
bios_path_override="/usr/share/ovmf/ovmf_x64.bin"
#device_model_args=[ "-debugcon", "file:ovmf_debug.log", "-global", "isa-debugcon.iobase=0x402"]
hdtype="ahci"
disk=[
"/mnt/server/software/os/Microsoft_Windows/to_check/Win10_1703_EnglishInternational_x64.iso, raw, xvdc, cdrom",
# "/mnt/server/software/os/FreeBSD-11.1-RELEASE-amd64-disc1.iso, raw, xvdc, cdrom",
"/dev/mapper/sda1_vg-win10, raw, xvda, rw"
]
vif=[ "" ]
vnc=1
vnclisten="0.0.0.0"
vncunused=1
vncpasswd="pass"
usb=1
usbdevice=[ "tablet" ]
Search Criteria
Package Details: xen-stubdom 4.20.0-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/xen.git (read-only, click to copy) |
---|---|
Package Base: | xen |
Description: | Xen hypervisor stubdom files |
Upstream URL: | https://xenproject.org/ |
Keywords: | hypervisor virtualization xen |
Licenses: | GPL2 |
Submitter: | sergej |
Maintainer: | Refutationalist |
Last Packager: | Refutationalist |
Votes: | 184 |
Popularity: | 0.071098 |
First Submitted: | 2009-11-09 11:22 (UTC) |
Last Updated: | 2025-03-13 08:19 (UTC) |
Dependencies (42)
- xenAUR
- acpica (make)
- bison (byacc-bisonAUR, bison-gitAUR) (make)
- bridge-utils (make)
- fig2dev (fig2dev-gitAUR) (make)
- flex (flex-gitAUR) (make)
- gettext (gettext-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- glib2 (glib2-gitAUR, glib2-selinuxAUR, glib2-patched-thumbnailerAUR) (make)
- gnutls (gnutls-gitAUR) (make)
- inetutils (inetutils-gitAUR, busybox-coreutilsAUR) (make)
- iproute2 (iproute2-gitAUR, busybox-coreutilsAUR, iproute2-selinuxAUR) (make)
- lib32-glibc (lib32-glibc-gitAUR, lib32-glibc-linux4AUR, lib32-glibc-eacAUR, lib32-glibc-eac-binAUR) (make)
- libaio (libaio-gitAUR) (make)
- libuuid.so (util-linux-libs-aesAUR, util-linux-libs-selinuxAUR, lib32-util-linux, util-linux-libs) (make)
- libx11 (libx11-gitAUR) (make)
- lzo (make)
- ncurses (ncurses-gitAUR) (make)
- openssl (openssl-gitAUR, openssl-staticAUR) (make)
- pandoc (pandoc-sile-gitAUR, pandoc-static-gitAUR, pandoc-binAUR, pandoc-cli) (make)
- pciutils (pciutils-gitAUR) (make)
- pixman (pixman-gitAUR) (make)
- pkgconf (pkgconf-gitAUR) (make)
- python (python37AUR, python311AUR, python310AUR) (make)
- python-setuptools (make)
- sdl2AUR (sdl2-gitAUR, sdl2-compat-gitAUR, sdl2-compat) (make)
- systemd (systemd-chromiumosAUR, systemd-fmlAUR, systemd-gitAUR, systemd-selinuxAUR) (make)
- systemd-libs (systemd-chromiumos-libsAUR, systemd-libs-fmlAUR, systemd-libs-gitAUR, systemd-libs-selinuxAUR) (make)
- valgrind (valgrind-gitAUR) (make)
- vde2 (vdeplug4-gitAUR) (make)
- wget (wget-gitAUR, wurlAUR) (make)
- yajl (yajl-gitAUR) (make)
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat) (make)
- linux-headers (optional) – extract bootable kernel for PV grub using "extract_vmlinux"
- seabios (optional) – SeaBIOS payload support
- xen-docsAUR (optional) – HTML documentation and man pages
- xen-edk2AUR (optional) – UEFI support
- xen-grub-pv32AUR (optional) – 32bit PV booting support
- xen-grub-pv64AUR (optional) – 64bit PV booting support
- xen-grub-pvhAUR (optional) – PVH booting support
- xen-qemuAUR (xen-qemuAUR) (optional) – HVM and PV support, nearly required for Xen
- xen-stubdomAUR (optional) – Xen stubdom support
Required by (3)
- xen (optional)
- xen-docs (optional)
- xen-stubdom (optional)
Sources (13)
- efi-xen.cfg
- git+https://xenbits.xen.org/git-http/xen.git#branch=stable-4.20
- http://xenbits.xen.org/xen-extfiles/grub-0.97.tar.gz
- http://xenbits.xen.org/xen-extfiles/lwip-1.3.0.tar.gz
- http://xenbits.xen.org/xen-extfiles/newlib-1.16.0.tar.gz
- http://xenbits.xen.org/xen-extfiles/pciutils-2.2.9.tar.bz2
- http://xenbits.xen.org/xen-extfiles/polarssl-1.1.4-gpl.tgz
- http://xenbits.xen.org/xen-extfiles/zlib-1.2.3.tar.gz
- tmpfiles.conf
- xen-amd-ucode.hook
- xen-intel-ucode.hook
- xen-ucode-extract.sh
- xen.conf
Latest Comments
« First ‹ Previous 1 .. 18 19 20 21 22 23 24 25 26 27 28 .. 101 Next › Last »
JohnTh commented on 2017-10-01 01:19 (UTC)
<deleted-account> commented on 2017-09-30 21:14 (UTC)
@tony_42 Thank you, applied :)
@maldo Building from AUR requires base-devel
@maldo @asura Added SPICE dependency
@JohnTh Applied all XSA patches
finnland commented on 2017-09-25 12:52 (UTC)
Hi JohnTh,
after quite a bit of tinkering I got Xen built with the in tree ovmf. It does not build out of the box so i had to select a newer version, the one it selects from git by default has a bug in it. Anyhow I got it so far that I can start a machine using ovmf but it seems quite flaky, win 10 just reboots immediately , Freebsd 11 crashes. Arch works tho. I gave up for now and sticking with seabios, which seems to work.
JohnTh commented on 2017-09-24 00:57 (UTC)
Hi finnland,
There was some discussion about this on the Xen lists.
It is not clear if Xen currently will work with ovmf split code and vars.
http://markmail.org/message/vh5kk53z3v4fxhpa
If you do want to use system ovmf:
Test if the Arch PKGBUILD ovmf combined image works with xen.
I think it did when I tested some time ago.
Easiest to makepkg ovmf and copy the combined image somewhere.
Then use the xl vm guest options
bios="ovmf"
bios_path_override="path to ovmf"
If this works, we could ask the Arch ovmf package maintainer to change the PKGBUILD to produce split packages of ovmf (as is) and ovmf-combined (only package the merged ovmf). Should be minimal changes to the PKGBUILD.
https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/ovmf
There are also a number of XSA patches for xen-4.9.0
finnland commented on 2017-09-23 21:54 (UTC)
The build flag --with-system-ovmf works the same as --with-system-seabios in that it should contain a path such as --with-system-ovmf=/usr/share/ovmf/ovmf_code_x64.bin. Cannot make it boot properly with it tho, unsure how to tell it about split ovmf images.
lazycat commented on 2017-09-03 04:10 (UTC)
@JohnTh
Thanks a lot, rebuilding kernel helped me
JohnTh commented on 2017-08-31 06:13 (UTC)
Hey Lazycat,
This is an Arch linux 4.12 kernel bug due to CONFIG_INTEL_ATOMISP
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1711298
Arch bug here https://bugs.archlinux.org/task/55447
The 201707 install disk uses 4.11 and boots
Arch used 4.12 from 2017-07-05
https://git.archlinux.org/svntogit/packages.git/commit/?h=packages/linux&id=6e70fcab0f7e068216f579f72385175113587083
You can build a 4.12 kernel with CONFIG_INTEL_ATOMISP=n
or use the Arch Linux archive:
https://wiki.archlinux.org/index.php/Arch_Linux_Archive#How_to_restore_all_packages_to_a_specific_date
For the spice error, makedepend libcacard
The spice Arch package removed it as a depend in 0.12.8+8+ga957a90b
lazycat commented on 2017-08-30 17:28 (UTC)
Hello all!
Today i made full system upgrade and upgrade xen from 4.8 to 4.9 from aur too.
Now i can't create new PV domU (but old runs fine)
error:
Parsing config from test.cfg
[ 0.107779] xen:manage: Unable to read sysrq code in control/sysrq
[ 0.110203] dmi: Firmware registration failed.
[ 0.131027] intel_mid_msgbus_init: Error: msgbus PCI handle NULL
[ 3.997728] BUG: unable to handle kernel paging request at ffffc90040199060
[ 3.997742] IP: vlv2_plat_configure_clock+0x3b/0xa0
[ 3.997746] PGD 3fe10067
[ 3.997746] P4D 3fe10067
[ 3.997748] PUD 3e202067
[ 3.997750] PMD 3e203067
[ 3.997752] PTE 0
[ 3.997753]
[ 3.997757] Oops: 0000 [#1] PREEMPT SMP
[ 3.997760] Modules linked in:
[ 3.997765] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.12.3-1-ARCH #1
[ 3.997768] task: ffff88003e2c4240 task.stack: ffffc9004018c000
[ 3.997773] RIP: e030:vlv2_plat_configure_clock+0x3b/0xa0
[ 3.997776] RSP: e02b:ffffc9004018fbe0 EFLAGS: 00010246
[ 3.997779] RAX: 0000000000000000 RBX: ffffc90040199060 RCX: 0000000001d5dfff
[ 3.997783] RDX: ffff88003e2c4240 RSI: 0000000000000002 RDI: ffffffff81ac9980
[ 3.997786] RBP: ffffc9004018fbf0 R08: 0000000000001000 R09: ffffffff811d6101
[ 3.997790] R10: 0000000000007ff0 R11: ffffe8ffffffffff R12: 0000000000000002
[ 3.997793] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 3.997803] FS: 0000000000000000(0000) GS:ffff88003f800000(0000) knlGS:0000000000000000
[ 3.997807] CS: e033 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 3.997812] CR2: ffffc90040199060 CR3: 0000000001a09000 CR4: 0000000000042660
[ 3.997817] Call Trace:
[ 3.997825] vlv2_plat_clk_probe+0x3f/0x70
[ 3.997832] platform_drv_probe+0x3b/0xa0
[ 3.997837] driver_probe_device+0x2ff/0x450
[ 3.997842] __device_attach_driver+0x83/0x100
[ 3.997848] ? __driver_attach+0xe0/0xe0
[ 3.997853] bus_for_each_drv+0x69/0xb0
[ 3.997858] __device_attach+0xdd/0x160
[ 3.997863] device_initial_probe+0x13/0x20
[ 3.997867] bus_probe_device+0x92/0xa0
[ 3.997872] device_add+0x451/0x690
[ 3.997877] platform_device_add+0x10d/0x270
[ 3.997884] ? set_debug_rodata+0x17/0x17
[ 3.997888] platform_device_register_full+0xfe/0x110
[ 3.997895] ? vlv2_plat_clk_init+0x19/0x19
[ 3.997901] vlv2_plat_clk_init+0x48/0x82
[ 3.997906] do_one_initcall+0x50/0x190
[ 3.997912] kernel_init_freeable+0x186/0x214
[ 3.997918] ? rest_init+0x90/0x90
[ 3.997923] kernel_init+0xe/0x100
[ 3.997929] ret_from_fork+0x25/0x30
[ 3.997933] Code: 47 83 fe 02 41 89 f4 77 67 48 8b 05 60 49 84 00 48 85 c0 74 48 c1 e7 02 48 63 ff 48 8d 1c 38 48 c7 c7 80 99 ac 81 e8 95 0f 15 00 <8b> 03 83 e0 fc 44 09 e0 89 03 48 c7 c7 80 99 ac 81 e8 6f 09 15
[ 3.997966] RIP: vlv2_plat_configure_clock+0x3b/0xa0 RSP: ffffc9004018fbe0
[ 3.997970] CR2: ffffc90040199060
[ 3.997976] ---[ end trace 43ffeef3f6ee6085 ]---
[ 3.997991] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
[ 3.997991]
[ 3.998001] Kernel Offset: disabled
.cfg file
name = "test"
memory = "1024"
#root = "/dev/xvdc1"
#bootloader = "pygrub"
kernel = "/mnt/arch/boot/x86_64/vmlinuz"
ramdisk = "/mnt/arch/boot/x86_64/archiso.img"
extra = "archisobasedir=arch archisolabel=ARCH_201708"
disk = ["archlinux-2017.08.01-x86_64.iso,,xvdc,cdrom,r","/dev/VG/test,,xvda,rw"]
vif = [ 'mac=00:22:26:11:21:10,bridge=brint0' ]
#boot = "d"
Whats wrong? Any ideas?
maldo commented on 2017-08-16 19:33 (UTC)
I can confirm the observation of asura for a fresh arch install.
installing spice-glib did work for me as well
asura commented on 2017-08-16 16:17 (UTC)
For anyone having trouble to build this package and getting spice dependency errors
ERROR: User requested feature spice
configure was not able to find it.
Install spice-server(>=0.12.0) and spice-protocol(>=0.12.3) devel
Installing community/spice-glib and community/spice-gtk3 solved the issue for me.
Pinned Comments
Refutationalist commented on 2025-03-12 12:06 (UTC) (edited on 2025-03-13 08:23 (UTC) by Refutationalist)
We've moved to the newly-stable 4.20.0 branch. There are also other changes:
If you're still using pygrub note that it is deprecated. The solution is to build PV grub instead, which used to be in AUR but is now missing. I am asking a couple questions on the mailing list, and I intend to put my current build of xen-grub (which supersedes xen-pvhgrub) on AUR as soon as possible. If you need to build it before that occurs, you can find it in my PKGBUILD repo.
EDIT: 4.20.0-2 adds support for the xen-edk2 package, which has a fixed UEFI for xen