LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-18-2016, 01:29 PM   #1
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Rep: Reputation: 37
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
 
Old 04-18-2016, 06:19 PM   #2
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
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}
 
Old 04-18-2016, 11:03 PM   #3
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
That seems to work or at least it worked when I tried it just now

I just wish it would not get messed up at all

Hopefully this will all be better with 14.2

That is how it gets started when the system comes up anyway.
 
Old 04-18-2016, 11:11 PM   #4
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Quote:
Originally Posted by TarFile View Post
That seems to work or at least it worked when I tried it just now

I just wish it would not get messed up at all

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.

Last edited by mralk3; 04-18-2016 at 11:13 PM.
 
Old 04-18-2016, 11:47 PM   #5
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
I always read the README files.
 
Old 04-19-2016, 12:45 PM   #6
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
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

I took that out and all is well
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Running the very first mp3 encoder under 64bit Slackware 14.1 multilib? andrew.46 Slackware 8 02-07-2020 04:40 PM
[SOLVED] Installed multilib Slackware 14.2 rc1 64bit but does not seem to work TarFile Slackware 3 04-06-2016 03:46 PM
[SOLVED] Cannot build autogen on Slackware 14.1 64bit / multilib andrew.46 Slackware 2 07-18-2014 02:15 AM
Slackware 13.37 64bit multilib questions: update to /patch Eeel Slackware 1 04-01-2012 02:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration