[libvirt-users] How to tell libvirt not to use qemu "accel=kvm" for a FreeBSD guest

Christian Gagneraud chgans at gna.org
Thu Nov 14 23:52:31 UTC 2013


On 15/11/13 03:11, Eric Blake wrote:
> On 11/13/2013 02:53 PM, Christian Gagneraud wrote:
>> Hi there,
>>
>> I have used qemu to install FreeBSD 9.2 release, and i can boot it fine
>> with:
>> $ qemu-system-x86_64 -hda images/FreeBSD-9.2-RELEASE-amd64.img
>>
>> I then made virsh aware of my brand new VM (see attached XML), but when
>> i run it via virsh, It hangs after the bootloader whith this message:
>> Booting...
>> CPU doesn't support long mode
>>
>>
>> After many attempts, I pinned down the problem. To be able to boot the
>> machine with the above command, I had to remove:
>> * the accel=kvm in -machine
>> * the -S (to "autostart" the VM)
>> And change the -net tap,fd=24 to -net user,id=...
>
> I'm glad that you were able to figure out how to work around it in the
> meantime, and how to let libvirt force slower TCG emulation.  Meanwhile,
> you should still report this bug to the qemu folks; it is a qemu bug
> that KVM mode isn't able to run a guest when TCG mode manages just fine.

OK, will do, with ref to this thread.

Thanks,
Chris




More information about the libvirt-users mailing list