Booting Xen on an EFI system
by Mark Bradley
Hello.
I installed FC16 on a system that has an Asus P8B WS board and a Xeon E3 CPU. This system boots via (U)EFI.
Everything works well but I want to use Xen so I installed the binaries using yum. It put down files but did not setup anything in GRUB. Following some advice, I added the information but it does not boot via /boot/xen.gz because, I assume, it's not an EFI binary. The installation did not include an EFI-compatible binary.
Pulling down the Xen source and compiling it gave me an EFI executable.
Unfortunately, I don't know how to use this with GRUB. I tried using efibootmgr which created another EFI boot entry but it doesn't have any of the configuration details that you'd normally see in a grub.conf file.
http://wiki.xensource.com/xenwiki/XenParavirtOps has info about Xen/EFI but I don't have (I think) an EFI shell so I cannot test it as described.
Any thoughts? :-)
Thanks and cheers,
Mark
12 years, 5 months
Re: [Fedora-xen] [Xen-devel] [PATCH] Xen 4.1.2 HVM guest realtek nic problems (eth0 8139cp transmit queue timed out)
by Pasi Kärkkäinen
On Wed, Nov 16, 2011 at 04:34:56PM +0000, Keir Fraser wrote:
> On 16/11/2011 15:53, "Pasi Kärkkäinen" <pasik(a)iki.fi> wrote:
>
> > On Wed, Nov 16, 2011 at 03:00:25PM +0000, Keir Fraser wrote:
> >> On 16/11/2011 13:33, "Pasi Kärkkäinen" <pasik(a)iki.fi> wrote:
> >>
> >>> On Mon, Nov 14, 2011 at 05:47:11PM +0000, Ian Jackson wrote:
> >>>> Pasi Kärkkäinen writes ("Re: [Xen-devel] [PATCH] Xen 4.1.2 HVM guest
> >>>> realtek
> >>>> nic problems (eth0 8139cp transmit queue timed out)"):
> >>>>> So please go ahead and commit the fix to xen-4.1-testing.hg.
> >>>>
> >>>> Keir, will you do this ? If you prefer I can do it, but I need the
> >>>> blessing of a hypervisor maintainer.
> >>>>
> >>>
> >>> Ping?
> >>
> >> I responded on 3rd November:
> >>
> >> "This looks like a backport of Stefano's xen-unstable c/s 24007. I would
> >> like him to submit/ack the backport, as it is not a trivial backport of the
> >> xen-unstable patch."
> >>
> >
> > Stefano already submitted a new patch for this..
>
> So he did. I've now applied it to xen-4.1-testing.
>
Great, thanks!
-- Pasi
12 years, 5 months
Re: [Fedora-xen] [Xen-devel] [PATCH] Xen 4.1.2 HVM guest realtek nic problems (eth0 8139cp transmit queue timed out)
by Pasi Kärkkäinen
On Wed, Nov 16, 2011 at 03:00:25PM +0000, Keir Fraser wrote:
> On 16/11/2011 13:33, "Pasi Kärkkäinen" <pasik(a)iki.fi> wrote:
>
> > On Mon, Nov 14, 2011 at 05:47:11PM +0000, Ian Jackson wrote:
> >> Pasi Kärkkäinen writes ("Re: [Xen-devel] [PATCH] Xen 4.1.2 HVM guest realtek
> >> nic problems (eth0 8139cp transmit queue timed out)"):
> >>> So please go ahead and commit the fix to xen-4.1-testing.hg.
> >>
> >> Keir, will you do this ? If you prefer I can do it, but I need the
> >> blessing of a hypervisor maintainer.
> >>
> >
> > Ping?
>
> I responded on 3rd November:
>
> "This looks like a backport of Stefano's xen-unstable c/s 24007. I would
> like him to submit/ack the backport, as it is not a trivial backport of the
> xen-unstable patch."
>
Stefano already submitted a new patch for this..
-- Pasi
12 years, 5 months
xend: No IP forwarding on Fedora 16
by W. Michael Petullo
I am having a strange problem on Fedora 16. I am trying to figure out
what is going on, but have not yet been successful.
I am using Xen with routed interfaces instead of bridged (i.e., vif-script
vif-route). In this case, the "network-route" script should enable kernel
port forwarding. However, this is not the case---at least the first time
xend runs. Xend runs, but /proc/sys/net/ipv4/ip_forward still contains
"0".
But, if I restart xend by hand using "service xend restart", then kernel
IP forwarding gets turned on.
At first I thought this may be due to SELinux (perhaps systemd starts xend
in a different context than a root shell does). But this is not the case;
I get the same behavior when I boot with SELinux in permissive mode.
Does anyone else know what might be causing this?
--
Mike
:wq
12 years, 5 months
Re: [Fedora-xen] [Xen-devel] [PATCH] Xen 4.1.2 HVM guest realtek nic problems (eth0 8139cp transmit queue timed out)
by Stefano Stabellini
On Thu, 3 Nov 2011, Keir Fraser wrote:
> On 03/11/2011 18:07, "Pasi Kärkkäinen" <pasik(a)iki.fi> wrote:
>
> > On Tue, Nov 01, 2011 at 10:56:06PM +0200, Pasi Kärkkäinen wrote:
> >> On Mon, Oct 31, 2011 at 09:29:24PM +0200, Pasi Kärkkäinen wrote:
> >>> On Mon, Oct 31, 2011 at 12:24:14PM -0700, Boris Derzhavets wrote:
> >>>> Seems to related
> >>>>
> >>>> https://bugs.launchpad.net/ubuntu/+source/xen/+bug/854829
> >>>>
> >>>
> >>> Thanks, that seems to be the same bug.
> >>>
> >>> Is the bugfix patch from xen-unstable going to backported to
> >>> xen-4.1-testing.hg ?
> >>> (4.1 backported patch available on ubuntu's launchpad above..)
> >>>
> >>
> >> So the Ubuntu backport from xen-unstable to Xen 4.1.1 is here:
> >> https://launchpadlibrarian.net/81948978/xen-pirq-resubmit-irq.patch
> >>
> >> It seems to be shipping in Ubuntu 11.10 xen 4.1.1-2ubuntu4.1 packages.
> >>
> >> Does that patch look suitable to be applied to xen-4.1-testing.hg ?
> >> This bug should be fixed for Xen 4.1.3.
> >
> > Any comments?
>
> This looks like a backport of Stefano's xen-unstable c/s 24007. I would like
> him to submit/ack the backport, as it is not a trivial backport of the
> xen-unstable patch.
I would rather use the following backport. Compared to the other one it
returns EINVAL in PHYSDEVOP_irq_status_query when the arguments are not
correct.
---
diff -r 8c2d76193eaf xen/arch/x86/physdev.c
--- a/xen/arch/x86/physdev.c Wed Nov 02 15:02:18 2011 +0000
+++ b/xen/arch/x86/physdev.c Mon Nov 07 11:58:28 2011 +0000
@@ -261,6 +261,7 @@ ret_t do_physdev_op(int cmd, XEN_GUEST_H
ret = -EINVAL;
if ( eoi.irq >= v->domain->nr_pirqs )
break;
+ spin_lock(&v->domain->event_lock);
if ( v->domain->arch.pirq_eoi_map )
evtchn_unmask(v->domain->pirq_to_evtchn[eoi.irq]);
if ( !is_hvm_domain(v->domain) ||
@@ -268,6 +269,19 @@ ret_t do_physdev_op(int cmd, XEN_GUEST_H
ret = pirq_guest_eoi(v->domain, eoi.irq);
else
ret = 0;
+ if ( is_hvm_domain(v->domain) &&
+ domain_pirq_to_emuirq(v->domain, eoi.irq) > 0 )
+ {
+ struct hvm_irq *hvm_irq = &v->domain->arch.hvm_domain.irq;
+ int gsi = domain_pirq_to_emuirq(v->domain, eoi.irq);
+
+ /* if this is a level irq and count > 0, send another
+ * notification */
+ if ( gsi >= NR_ISAIRQS /* ISA irqs are edge triggered */
+ && hvm_irq->gsi_assert_count[gsi] )
+ send_guest_pirq(v->domain, eoi.irq);
+ }
+ spin_unlock(&v->domain->event_lock);
break;
}
@@ -323,9 +337,10 @@ ret_t do_physdev_op(int cmd, XEN_GUEST_H
break;
irq_status_query.flags = 0;
if ( is_hvm_domain(v->domain) &&
- domain_pirq_to_irq(v->domain, irq) <= 0 )
+ domain_pirq_to_irq(v->domain, irq) <= 0 &&
+ domain_pirq_to_emuirq(v->domain, irq) == IRQ_UNBOUND )
{
- ret = copy_to_guest(arg, &irq_status_query, 1) ? -EFAULT : 0;
+ ret = -EINVAL;
break;
}
12 years, 5 months
Can I Run Windows 7 Under Xen With Fedora 16?
by Bob Cochran
I want to use Fedora 16 as a host OS (a "Dom0" OS) so that I can install
several different operating systems as virtualized guests. One of these
will be Windows 7. Are there enough Xen and Fedora bits in place for
Fedora 16 virtualization so that my friend can access Windows 7 as a
virtual machine and not know the difference -- she can access the USB
ports, printer and fax devices, run PhotoShop and and various other
photo editing applications?
I have no recent experience with Fedora virtualization, but I expect to
be able to work with it quite soon. I have installed virtual machines
with older Fedora releases but can't remember exactly what I did. I
apologize if the question is simplistic.
Thanks
Bob Cochran
12 years, 5 months
Current dom0 kernel for F15/16
by Robert Brown
Hi everyone, thanks for the list - quite helpful in running Fedora with Xen.
I have been using the myoung kernels for dom0,
specifically kernel-2.6.32.39-175.xendom0.fc13.x86_64 at the moment. I was
previously on Fedora 12 and rolled a successful upgrade to Fedora 14. I am
using xen 4.1.1 (created from later SRPMs provided with newer Fedora
releases.) It's all working as it should.
To move beyond Fedora 14 and update to 15/16, I need a more recent kernel
as F15 won't install otherwise. I have read through the list and can't seem
to locate a Fedora 15-supported prerolled kernel or SRPM. Does this exist,
and if so can someone kindly point me to the proper location? Or is the
current preferred approach to compile your own kernel? If this is the
suggested approach, are there any special requirements for this or kernel
options to be enabled/disabled?
I found an older dom0 tutorial but it seems geared to building the myoung
kernel. http://wiki.xen.org/xenwiki/Fedora13Xen4Tutorial
Thanks in advance,
-Robert
12 years, 5 months