VM is crashing during iPXE with "emulation failed (mmio)"


#1

I’ve been trying to get a KVM VM running under a CentOS 6.5 hypervisor, but after the gPXE to iPXE, it crashes the VM and I have to completely delete it to turn it off.

[code]virt-install --name=abc-kvm-1 --ram=1024 --vcpus=2 --network=bridge:br2,mac=52:54:00:92:85:b3,model=virtio --disk path=/var/lib/libvirt/images/abc-kvm-1.qcow2,size=50 --boot=network --pxe -d -v

Wed, 10 Sep 2014 15:58:40 DEBUG Launched with command line:
/usr/sbin/virt-install --name=abc-kvm-1 --ram=1024 --vcpus=2 --network=bridge:br2,mac=52:54:00:92:85:b3,model=virtio --disk path=/var/lib/libvirt/images/abc-kvm-1.qcow2,size=50 --boot=network --pxe -d -v
Wed, 10 Sep 2014 15:58:40 DEBUG Requesting libvirt URI default
Wed, 10 Sep 2014 15:58:40 DEBUG Received libvirt URI qemu:///system
Wed, 10 Sep 2014 15:58:40 DEBUG Requesting virt method ‘hvm’, hv type ‘default’.
Wed, 10 Sep 2014 15:58:40 DEBUG Received virt method 'hvm’
Wed, 10 Sep 2014 15:58:40 DEBUG Hypervisor name is 'kvm’
Wed, 10 Sep 2014 15:58:40 DEBUG DISPLAY is not set: defaulting to nographics.
Wed, 10 Sep 2014 15:58:40 DEBUG --graphics compat generated: none
Wed, 10 Sep 2014 15:58:40 DEBUG Guest.has_install_phase: True

Starting install…
Wed, 10 Sep 2014 15:58:40 DEBUG Generated install XML:

abc-kvm-1
d7136ee3-ba36-6012-a7d1-1fd5c83db14b
1048576
1048576
2

hvm







<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>

/usr/libexec/qemu-kvm













Wed, 10 Sep 2014 15:58:40 DEBUG Generated boot XML:

abc-kvm-1
d7136ee3-ba36-6012-a7d1-1fd5c83db14b
1048576
1048576
2

hvm






<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>

/usr/libexec/qemu-kvm













Creating domain… | 0 B 00:00
Wed, 10 Sep 2014 15:58:40 DEBUG Started guest, connecting to console if requested
Wed, 10 Sep 2014 15:58:40 DEBUG Connecting to text console
Wed, 10 Sep 2014 15:58:40 DEBUG Running: /usr/bin/virsh --connect qemu:///system console 32
Wed, 10 Sep 2014 15:58:40 DEBUG XML fetched from libvirt object:

abc-kvm-1
d7136ee3-ba36-6012-a7d1-1fd5c83db14b
1048576
1048576
2

hvm









<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>

/usr/libexec/qemu-kvm







































system_u:system_r:svirt_t:s0:c325,c983
system_u:object_r:svirt_image_t:s0:c325,c983

Connected to domain abc-kvm-1
Escape character is ^]
[1;256r
Google, Inc.
Serial Graphics Adapter 12/07/11
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ ([email protected]) Wed Dec 7 17:04:47 UTC 2011
Term: 115x30
4 0

SeaBIOS (version seabios-0.6.1.2-28.el6)
Machine UUID d7136ee3-ba36-6012-a7d1-1fd5c83db14b

gPXE (http://etherboot.org) - 00:03.0 C100 PCI2.10 PnP BBS [email protected] C100

Booting from ROM…
gPXE (PCI 00:03.0) starting execution
gPXE initialising devices…

gPXE 0.9.7 – Open Source Boot Firmware – http://etherboot.org
Features: HTTP DNS TFTP AoE iSCSI bzImage COMBOOT ELF Multiboot PXE PXEXT

net0: 52:54:00:92:85:b3 on PCI00:03.0 (open)
[Link:up, TX:0 TXE:0 RX:0 RXE:0]
Waiting for link-up on net0… ok
DHCP (net0 52:54:00:92:85:b3)… ok
net0: 1.1.1.33/255.255.255.0 gw 1.1.1.1
Next server: 1.1.1.23
Filename: undionly.kpxe
tftp://1.1.1.23/undionly.kpxe… ok
PXE->EB: !PXE at 9C37:0710, entry point at 9C37:0379
UNDI code segment 9C37:07A6, data segment 9CB2:2CD8 (624-638kB)
UNDI device is PCI 00:03.0, type gPXE
624kB free base memory after PXE unload
iPXE initialising devices…ok

iPXE 1.0.0+ (895d7) – Open Sour[/code]

I’ve tried changing network model types, even rebuild iPXE to replace gPXE, and rebuilding undionly.kpxe a bunch of times.

The odd thing is that I can use virt-manager with a gnome desktop or use standard qemu-kvm (without virt-install) to get a VM running. It’s just that when I use virt-install, it just fails on me.