BHyVe: vm_setup_memory(highmem): Cannot allocate memory

Roman Bogorodskiy novel at FreeBSD.org
Thu Sep 13 16:13:04 UTC 2012


  Peter Grehan wrote:

> Hi Roman,
> 
> > I start a VM like that:
> >
> > sudo /usr/sbin/bhyveload -m 256 -M 0 -h /var/run/bhyve/test1/vm1 test1
> > sudo /usr/bin/cpuset -l 0-3 /usr/sbin/bhyve -m 256 -M 0 -s 1,virtio-net,tap0 test1
> >
> > The last commands give me:
> >
> > Failed to emulate instruction at 0xffffffff80594f3a
> >
> > What could be wrong with that?
> 
>   Was this during boot or later ? Do you have a console log up to where 
> it occurred ?

Hm, I see strange things happening.

When I was seing this 'Failed to emulate instruction at
0xffffffff80594f3a', it happened right after boot loader menu (the one
with the ascii-art). At that time I had 'hw.physmem="0x180000000"' in my
host's loader.conf. Also the problem wasn't 100% reproducible, it
started to show up after creating/destroying several VMs.

I replaced the physmem value with hw.physmem="0x100000000". Now I have
100% reproducibility and it fails here:

GDB: debug ports: bvm
GDB: current port: bvm
KDB: debugger backends: ddb gdb
KDB: current backend: ddb
(20:06) novel at kloomba:~/bhyve/vm1 %>

I can still see this VM in /dev/vmm though.

Roman Bogorodskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-virtualization/attachments/20120913/2ce4e7fa/attachment.pgp


More information about the freebsd-virtualization mailing list