Changes

From Amahi Wiki
Jump to: navigation, search
3,014 bytes added ,  00:10, 9 September 2015
Created page with "<!-- This page is crated automaticaly by a script. This part is commented and shall not show --> <!--At the top of the page can be vissible one of the following tags..--> ..."
<!--
This page is crated automaticaly by a script.
This part is commented and shall not show
-->
<!--At the top of the page can be vissible one of the following tags..-->
{{WorkInProgress}}
<!--{{NeedsUpdate}}-->
<!--{{NeedsMerge | [[Main Page]]}}-->
<!--{{NeedsExpantion}}-->
<!--{{NeedsDelete |[[Main Page]]}}-->
<!--Please remove or place comment accordingly-->
<!--Your text bellow this line-->


After performing the upgrade, the dhcp and dns server are not functional.

To verify if the service is functional do the following from a command line:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left">
sudo systemctl status dnsmasq.service
</div>

If its not working you will get a message similer to below with a '''failed''' status:
<div style="border: 1px solid #A3B1BF; padding: .8em 1em; background-color: #E6F2FF; margin: 0px 1em;">
:<i>dnsmasq.service - DNS caching server.
: Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled)
: Active: '''failed''' (Result: exit-code) since Tue 2015-09-08 10:38:40 MST; 6s ago
: Process: 7798 ExecStart=/usr/sbin/dnsmasq -k (code=exited, status=2)
: Main PID: 7798 (code=exited, status=2)
</i></div><br />

During the upgrade libvirtd was installed. libvirtd uses dnsmasq for virtual machines. This caused a conflict. To verify this is the issue do the following commands:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left">
sudo lsof -i :53

:COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
:dnsmasq '''1308''' nobody 6u IPv4 20640 0t0 UDP localhost.localdomain:domain
:dnsmasq '''1308''' nobody 7u IPv4 20641 0t0 TCP localhost.localdomain:domain (LISTEN)

ps -ef| grep <number in bold above>
:nobody 1308 1 0 10:04 ? 00:00:00 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --dhcp-script=/usr/libexec/libvirt_leaseshelper
:root 1309 1308 0 10:04 ? 00:00:00 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --dhcp-script=/usr/libexec/libvirt_leaseshelper
</div>

if you see something like --conf-file=/var/lib/libvirt/dnsmasq/default.conf then you can fix the dnsmasq problem by issuing the following command and then rebooting.
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left">
sudo systemctl disable libvirtd
</div>
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left">
sudo reboot
</div>
<!--Your text above this line-->
<!--This page must bellong to one of the following categories please remove comment-->
<!--[[category:Apps]]-->
<!--[[Category:Fedora]]-->
<!--[[Category:Platform]]-->
<!--[[Category:Pro Version]]-->
<!--[[Category:Services]]-->
<!--[[Category:VPN]]-->