Page 1 of 1

KVM Problems (Network and Video)

PostPosted: Feb 26th, '13, 10:01
by linuxero
Hi;

I am trying virt-manager. So I decided to install Mageia. First of all the Network configuration does not work! When I try to check out the connections, virt-manager only shows a message saying that libvirt has no support for the interface connection. I went on trying to figure out why so in MCC->System->Services I noticed that my network service shows Stopped. Even though I am using Internet. I try to start the service in MCC anyways, but it fails: In a terminal, trying to get some clues, I got this:

Code: Select all
# systemctl status network.service
network.service - LSB: Bring up/down networking
          Loaded: loaded (/etc/rc.d/init.d/network)
          Active: failed (Result: exit-code) since Tue, 26 Feb 2013 08:46:44 +0100; 3min 55s ago
          CGroup: name=systemd:/system/network.service
                  └ 1221 /sbin/ifplugd -I -b -i eth0

Feb 26 08:46:44 linuxeros.sy network[30618]: RTNETLINK answers: File exists
Feb 26 08:46:44 linuxeros.sy network[30618]: RTNETLINK answers: File exists
Feb 26 08:46:44 linuxeros.sy network[30618]: RTNETLINK answers: File exists
Feb 26 08:46:44 linuxeros.sy network[30618]: RTNETLINK answers: File exists
Feb 26 08:46:44 linuxeros.sy network[30618]: RTNETLINK answers: File exists
Feb 26 08:46:44 linuxeros.sy network[30618]: RTNETLINK answers: File exists
Feb 26 08:46:44 linuxeros.sy network[30618]: RTNETLINK answers: File exists
Feb 26 08:46:44 linuxeros.sy network[30618]: RTNETLINK answers: File exists
Feb 26 08:46:48 linuxeros.sy ifplugd(wlan1)[1553]: Link beat detected.
Feb 26 08:47:02 linuxeros.sy ifplugd(wlan1)[1553]: Executing '/etc/ifplugd/ifplugd.action wlan1 down'.


I am actually connected through wlan1..

Am I in the right path to solving my problem? What could be the reason?

The second problem is that Mageia, in KVM, has a sluggish graphics! I tried vga, vmvga and then back to cirrus in virt-manager configuring Mageia, but still..no hope.

I have 2GB of RAM and 2 CPU's configured for Mageia machine in virt-manager..! Why does this happen? Isn't it supposed to be better than Virtualbox? Actually i never had these problems with VirtualBox..

Thanks in advance.

Re: KVM Problems (Network and Video)

PostPosted: Mar 8th, '13, 01:52
by linuxero
I was still checking so I found this on redhat:

http://www.redhat.com/archives/virt-tools-list/2010-March/msg00016.html

A bit old, but does anyone know whether Mageia's libvirtd has been compiled with interface support or not?

Code: Select all
# libvirtd --version
libvirtd (libvirt) 0.9.10


Thanks

Re: KVM Problems (Network and Video)

PostPosted: Jun 14th, '23, 23:34
by zekemx
Hello

I see this thread is very old and still I have the same problem and I do not have internet on my VM.

Linuxero, where you able to solve it?

Regards

Re: KVM Problems (Network and Video)

PostPosted: Jun 14th, '23, 23:42
by morgano

Re: KVM Problems (Network and Video)

PostPosted: Jun 15th, '23, 00:45
by doktor5000
zekemx wrote:still I have the same problem and I do not have internet on my VM.

You may want to create a separate thread, and provide some actual details. Because to be honest, the initial description here is slightly confusing.
It's not clear which part of the description is about the host system and which about the guest system. There's also no mention about what network setup has been chosen for the guest system, and insufficient details about the network setup on the host system.

Also, from the host at least the output as root of the following commands should be added
Code: Select all
systemctl status libvirtd.service -al -n50
virsh net-list --all
brctl show
iptables -S | grep LIBVIRT
iptables -S | grep virbr

This sounds like a similar issue as described in https://bugs.mageia.org/show_bug.cgi?id=21927 - if the bridge interfaces on the host are not included in the firewall configuration then they obviously won't route any traffic outside.
But without any details impossible to tell.

Re: KVM Problems (Network and Video)

PostPosted: Jun 15th, '23, 01:16
by zekemx
Wow!!

Thanks for you quick response, your link solved my problem,

The only thing that did not work correctly is where it says:
Code: Select all
As a normal user you don't have the right permissions to do anything, and it's difficult to get them. First add yourself to the kvm group:

/bin/su -c "usermod -aG kvm $USER"

and create a file /etc/polkit-1/rules.d/50-libvirt.rules with the following content:


The problem is that qemu appears as connecting and never conects, once I removed /etc/polkit-1/rules.d/50-libvirt.rules starts working but I need to enter the root password.

Thanks