You are not logged in.

#1 2014-12-29 18:55:21

sup3rman
Member
Registered: 2014-12-06
Posts: 6

[SOLVED] Cannot start Virtual Network: "out of memory"

I am attempting to use KVM, Qemu and libvirt to run Windows VM's to test websites in IE. I have gotten everything to work fine except guest to host communication, which obviously is crucial for testing the websites.

Currently i am using macvtap to setup networking, which works beautifully for everything except host to guest networking. The easiest way seems to be to use isolated virtual networks. However, i cannot start any virtual networks. I have tried from inside virtual manager and inside virsh command prompt. I always get "out of memory". I have googled the error and nobody seems to have this problem.

One note, I do NOT have a swap drive. Is this needed for virtual networks?

EDIT:

I have now tried exactly the same on another, identical computer but with swap drive (16gb) and it did not work there either. Both computers have 8gb ram. Seems to be loads free in tops.

Last edited by sup3rman (2015-01-23 12:29:50)

Offline

#2 2015-01-03 22:30:59

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: [SOLVED] Cannot start Virtual Network: "out of memory"

sup3rman wrote:

I am attempting to use KVM, Qemu and libvirt to run Windows VM's to test websites in IE. I have gotten everything to work fine except guest to host communication, which obviously is crucial for testing the websites.

Currently i am using macvtap to setup networking, which works beautifully for everything except host to guest networking. The easiest way seems to be to use isolated virtual networks. However, i cannot start any virtual networks. I have tried from inside virtual manager and inside virsh command prompt. I always get "out of memory". I have googled the error and nobody seems to have this problem.

One note, I do NOT have a swap drive. Is this needed for virtual networks?

EDIT:

I have now tried exactly the same on another, identical computer but with swap drive (16gb) and it did not work there either. Both computers have 8gb ram. Seems to be loads free in tops.

I have the same issue on my install. I got so desperate that I actually wiped my laptop and reinstalled everything, same problem. Out of memory error when trying to create the default network. 16GB of RAM, with 96% of it free when I attempted.

Offline

#3 2015-01-18 10:34:02

en0
Member
Registered: 2011-11-27
Posts: 6

Re: [SOLVED] Cannot start Virtual Network: "out of memory"

I was also having this issue. I checked journalctl and noticed this

Jan 18 02:07:48 obrien systemd[1]: Started Virtualization daemon.
Jan 18 02:07:49 obrien libvirtd[389]: libvirt version: 1.2.11
Jan 18 02:07:49 obrien libvirtd[389]: direct firewall backend requested, but /sbin/ebtables is not available: No such file or directory
Jan 18 02:07:49 obrien libvirtd[389]: out of memory
Jan 18 02:07:49 obrien libvirtd[389]: internal error: Failed to find path for dmidecode binary
Jan 18 02:07:50 obrien libvirtd[389]: internal error: Failed to find path for dmidecode binary
Jan 18 02:07:52 obrien libvirtd[389]: out of memory

I don't ever recall needing to install etables before but i decided to give it a try and the issue was gone.

My symptoms where a bit diffrent then described above. I got the out of memory error when i tried to start the default virtual network so check your logs.

Here was my solution.
$ sudo packman -S etables
$ sudo systemctl restart libvirtd

Offline

#4 2015-01-19 13:52:33

whitekoffee
Member
Registered: 2014-04-14
Posts: 2

Re: [SOLVED] Cannot start Virtual Network: "out of memory"

I too having this issue for the past two days. I can confirm that installing ebtables will indeed solve the unhelpful "Out of memory" problem.

I decided to check the dependency list for libvirt after so many failing attempts, apparently libvirt did not pull in ebtables because it is marked as optional.

Fyi, the description for the ebtables:  ebtables (optional) - required for default NAT networking




source https://www.archlinux.org/packages/comm … 4/libvirt/

Offline

#5 2015-01-19 15:43:22

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: [SOLVED] Cannot start Virtual Network: "out of memory"

Installing ebtables solved this issue for me as well.

Thanks to both of you smile

Offline

#6 2015-01-23 12:29:34

sup3rman
Member
Registered: 2014-12-06
Posts: 6

Re: [SOLVED] Cannot start Virtual Network: "out of memory"

Above replies worked for me to, thanks a lot en0. Henceforth I shall check my journalctl logs.

However, it turned out that after ebtables i was also missing dnsmasq, so my solutions was:

$ pacman -S ebtables dnsmasq
$ systemctl restart libvirtd

Last edited by sup3rman (2015-01-23 12:36:21)

Offline

#7 2015-01-30 17:34:02

b1tninja
Member
Registered: 2015-01-30
Posts: 2

Re: [SOLVED] Cannot start Virtual Network: "out of memory"

So my vms had been working, not sure why these packages are now required. The initial error I was seeing was:

((null):1423): Spice-Warning **: reds.c:2330:reds_init_socket: getaddrinfo(127.0.0.1,5900): Address family for hostname not supported
2015-01-30T17:08:40.726155Z qemu-system-x86_64: failed to initialize spice server

Then noticed the aforementioned "out of memory" error when trying to start the virtual networks. I was not able to get my VMs to start up again until I installed ebtables, dnsmasq, bridge-utils... and i'm not even using the default virtual network! Wouldn't have figured this out if it wasn't for this post, thank you.

Last edited by b1tninja (2015-01-30 17:34:37)

Offline

#8 2015-03-30 07:50:27

mrgrumpyarse
Member
From: East Yorkshire - UK
Registered: 2014-02-26
Posts: 6

Re: [SOLVED] Cannot start Virtual Network: "out of memory"

I too had similar issues, now solved due to this post..... Thank you all

Offline

Board footer

Powered by FluxBB