[Bug 214242] FreeBSD Kernel does not boot on Opteron_G4 CPU (KVM Guest)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Nov 5 14:10:27 UTC 2016


            Bug ID: 214242
           Summary: FreeBSD Kernel does not boot on Opteron_G4 CPU (KVM
           Product: Base System
           Version: 11.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: sam at sambyte.co.uk
                CC: freebsd-amd64 at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org

Created attachment 176657
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=176657&action=edit
Archive containing screenshots described in report

I have reproduced this across a couple of guests now. One was an upgrade from
10.3-RELEASE (Which works fine) the other is the bootonly installer image

All hang immediately after the boot menu (Shown in bootloader.png)

Attempts to enable verbose debugging do not produce any further output.

Removal of:

<cpu mode='host-model'>
    <model fallback='allow'/>

>From the libvirt XML allows the guest to boot with limited available
instruction sets (Shown in kvmlimited.png) this would lead me to believe that a
change in the 11 kernel has made it incompatible with a particular instruction
set that is present on an Opteron 6234 CPU

Guest boots fine using host-model CPU of an Intel E5 2620 (SandyBridge) host
(Shown in intelhost.png)

FreeBSD 10.3-RELEASE loads fine using the host-model parameters of KVM on the
Opteron_G4 host (Shown in Opteron_G4 Features.png)

KVM / Qemu version of both hypervisors is 'QEMU emulator version 2.0.0 (Debian
2.0.0+dfsg-2ubuntu1.28)' and both hypervisors are running Ubuntu 14.04.5 LTS
with libvirt 1.2.2

Libvirt XML of non-working:

<domain type='kvm' id='42'>
  <memory unit='KiB'>524288</memory>
  <currentMemory unit='KiB'>524288</currentMemory>
  <vcpu placement='static'>2</vcpu>
    <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
    <boot dev='hd'/>
    <boot dev='cdrom'/>
    <bootmenu enable='yes'/>
  <cpu mode='host-model'>
    <model fallback='allow'/>
  <clock offset='utc'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/var/lib/libvirt/images/www.img'/>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/iso/FreeBSD-11.0-RELEASE-amd64-bootonly.iso'/>
      <target dev='hda' bus='ide'/>
      <alias name='ide0-1-1'/>
      <address type='drive' controller='0' bus='1' target='0' unit='1'/>
    <controller type='usb' index='0'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    <controller type='ide' index='0'>
      <alias name='ide0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
    <interface type='bridge'>
      <mac address='52:54:00:21:33:01'/>
      <source bridge='br0'/>
      <target dev='vnet4'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
    <serial type='pty'>
      <source path='/dev/pts/9'/>
      <target port='0'/>
      <alias name='serial0'/>
    <console type='pty' tty='/dev/pts/9'>
      <source path='/dev/pts/9'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='5904' autoport='yes' listen=''>
      <listen type='address' address=''/>
      <model type='cirrus' vram='9216' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
  <seclabel type='dynamic' model='apparmor' relabel='yes'>

You are receiving this mail because:
You are on the CC list for the bug.

More information about the freebsd-amd64 mailing list