LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Problem with Virtual Network SlackWare 14.1 64bit multilib (https://www.linuxquestions.org/questions/slackware-14/problem-with-virtual-network-slackware-14-1-64bit-multilib-4175577745/)

TarFile 04-18-2016 01:29 PM

Problem with Virtual Network SlackWare 14.1 64bit multilib
 
I have been experiencing a minor annoyance with the Virtual Network.

It is supposed to be active on boot but it shows inactive although vibr0 exists.

bash-4.2# virsh net-list --all
Name State Autostart Persistent
----------------------------------------------------------
default inactive yes yes

ifconfig virbr0 down
brctl delbr virbr0

bash-4.2# virsh net-start default
error: Failed to start network default
error: internal error: Network is already in use by interface virbr0

Then I have to reboot and that only works half the time requiring the

ifconfig virbr0 down
brctl delbr virbr0
reboot

to fix it which usually works.

Any thoughts on how to correct this :scratch:

mralk3 04-18-2016 06:19 PM

I don't know about anyone else, but I restart my virtual network with libvirt. I avoid stopping any virtual nics by network manager too.

Code:

/etc/rc.d/rc.libvirt {start,stop,restart}

TarFile 04-18-2016 11:03 PM

That seems to work or at least it worked when I tried it just now :scratch:

I just wish it would not get messed up at all :confused:

Hopefully this will all be better with 14.2 ;)

That is how it gets started when the system comes up anyway.

mralk3 04-18-2016 11:11 PM

Quote:

Originally Posted by TarFile (Post 5533120)
That seems to work or at least it worked when I tried it just now :scratch:

I just wish it would not get messed up at all :confused:

Hopefully this will all be better with 14.2 ;)

That is how it gets started when the system comes up anyway.

I'm not entirely sure you did this or not. It seems like you skipped doing so.

See the README for libvirt on http://slackbuilds.org/cgit master branch, here: https://slackbuilds.org/cgit/slackbu...a4cfc321cfbea0

The read me on every slackbuild will explain how to use it. In your case you need to add to /etc/rc.d/rc.local and /etc/rc.d/rc.local_shutdown an if statement that starts and stops libvirt on boot/shutdown.

Of course, if you choose not to start it or stop it at boot/shutdown, then you can just run /etc/rc.d/rc.libvirt {start,stop} as root when you decide you need to use your virtual machines.

TarFile 04-18-2016 11:47 PM

I always read the README files.

TarFile 04-19-2016 12:45 PM

Opps I did do the stuff from the README but I had put in stuff to start libvirtd and assign a PID that was not necessary :redface:

I took that out and all is well :study:


All times are GMT -5. The time now is 03:15 PM.