On Fri, Jun 10, 2016 at 09:38:59PM +, Marcin Cieslak wrote:
> On Thu, 9 Jun 2016, Roger Pau Monné wrote:
>
> > On Thu, Jun 09, 2016 at 12:16:59AM +, Marcin Cieslak wrote:
> > > On Fri, 3 Jun 2016, Roger Pau Monné wrote:
> > >
> > > > One of the more relevant changes in 4.7 regarding FreeBSD is the
> > > > support for
> > > > block hotplug scripts. This means that we now have the option to use
> > > > backends different than simple block or regular files, provided that
> > > > someone
> > > > writes the proper hotplug scripts to attach them (I've heard there are
> > > > some
> > > > iSCSI hotplug scripts around). This however requires changes in
> > > > blkback, so
> > > > if you plan to use the Xen 4.7 port, please make sure that you are
> > > > running a
> > > > kernel that contains revision r301269 (or any later version). The same
> > > > also
> > >
> > > I am running it with r301685 and the HVM guests have some trouble with
> > > block devices.
> > >
> > > SeaBIOS does not find /dev/zvol/zroot/freebsd1,raw,xvda,w to boot FreeBSD
> > > from, after chaging to "hda" I get up to the kernel mountroot prompt
> > > (Xen block devices seem to be detected in dmesg).
> >
> > Yes, this is intentional, see:
> >
> > https://marc.info/?l=xen-devel=144482080812353
>
> those guests worked fine with 4.5, that's why I am surprised.
>
> xbd0 and xbd1 show up in dmesg, mouting root from xbd0p2 fails, but
> ada0p2 seems to work.
>
> I remember that during my previous attempts ZFS ate most of
> my machine's memory (dom0 was too small I think) and the
> symptom was very similar if not identical.
>
> One thing which struck me is that I was able to fully but
> one Linux HVM domU. I am also toying with OpenFirmware
> which boots from floppy as a HVM guest.
>
> > Have you checked if you need to change your /etc/fstab to correctly point
> > to the new device? Does FreeBSD correctly list the disk(s) at the mountroot
> > prompt when issuing a "?" command?
>
> "?" does not work - it mostly causes a panic, the console is slow, but I
> managed
> to switch it to /dev/ada0p2, dmesg below:
This has now been reverted, so when I import the new RC this should be fixed
and you won't need to change anything.
> Copyright (c) 1992-2016 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
> The Regents of the University of California. All rights reserved.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 11.0-CURRENT #1 r298620: Tue Apr 26 13:21:50 UTC 2016
> r...@o.saper.info:/usr/obj/usr/src/sys/GENERIC amd64
> FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM
> 3.8.0)
> WARNING: WITNESS option enabled, expect reduced performance.
> VT(vga): text 80x25
> XEN: Hypervisor version 4.7 detected.
> CPU: Intel(R) Xeon(R) CPU E31245 @ 3.30GHz (3300.08-MHz K8-class CPU)
> Origin="GenuineIntel" Id=0x206a7 Family=0x6 Model=0x2a Stepping=7
>
> Features=0x17c3fbff
>
> Features2=0x9fba2203
> AMD Features=0x28100800
> AMD Features2=0x1
> XSAVE Features=0x1
> Hypervisor: Origin = "XenVMMXenVMM"
> real memory = 2130706432 (2032 MB)
> avail memory = 2018213888 (1924 MB)
> Event timer "LAPIC" quality 400
> ACPI APIC Table:
> WARNING: L1 data cache covers less APIC IDs than a core
> 0 < 1
> WARNING: L2 data cache covers less APIC IDs than a core
> 0 < 1
> WARNING: L3 data cache covers less APIC IDs than a core
> 0 < 1
> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
> FreeBSD/SMP: 1 package(s) x 2 core(s)
> random: unblocking device.
> ioapic0: Changing APIC ID to 1
> MADT: Forcing active-low polarity and level trigger for SCI
> ioapic0 irqs 0-47 on motherboard
> random: entropy device external interface
> kbd1 at kbdmux0
> netmap: loaded module
> module_register_init: MOD_LOAD (vesa, 0x80f0ffb0, 0) error 19
> vtvga0: on motherboard
> cryptosoft0: on motherboard
> acpi0: on motherboard
> acpi0: Power Button (fixed)
> acpi0: Sleep Button (fixed)
> cpu0: on acpi0
> cpu1: on acpi0
> hpet0: iomem 0xfed0-0xfed003ff on acpi0
> Timecounter "HPET" frequency 6250 Hz quality 950
> attimer0: port 0x40-0x43 irq 0 on acpi0
> Timecounter "i8254" frequency 1193182 Hz quality 0
> Event timer "i8254" frequency 1193182 Hz quality 100
> atrtc0: port 0x70-0x71 irq 8 on acpi0
> Event timer "RTC" frequency 32768 Hz quality 0
> Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
> acpi_timer0: <32-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0
> pcib0: port 0xcf8-0xcff on acpi0
> pci0: on pcib0
> isab0: at device 1.0 on pci0
> isa0: on isab0
> atapci0: port
> 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc200-0xc20f at device 1.1 on pci0
> ata0: at channel 0 on atapci0
>