[ovirt-devel] ovirt-vdsmfake changes

Martin Sivak msivak at redhat.com
Mon Feb 22 11:31:06 UTC 2016


Here is a solution that should play nice with Network Manager:

/etc/NetworkManager/dnsmasq.d/10-vdsmfake.conf

address=/vdsm.simulator/127.0.0.1


/etc/NetworkManager/conf.d/20-dnsmasq.conf

[main]
dns=dnsmasq


$ yum install dnsmasq
$ systemctl disable dnsmasq
$ systemctl restart NetworkManager

Regards

Martin

On Thu, Feb 18, 2016 at 12:52 PM, Martin Sivak <msivak at redhat.com> wrote:
> Just make sure you add it properly, because resolv.conf can be
> overwritten by network manager.
>
> Something like:
>
> nmcli con mod <net interface> +ipv4.dns "127.0.0.1"
>
> Martin
>
>
> On Thu, Feb 18, 2016 at 12:35 PM, Michal Skrivanek
> <michal.skrivanek at redhat.com> wrote:
>>
>> On 18 Feb 2016, at 10:44, Roy Golan <rgolan at redhat.com> wrote:
>>
>>
>>
>> On Tue, Feb 16, 2016 at 2:45 PM, Roman Mohr <rmohr at redhat.com> wrote:
>>>
>>> Hi,
>>>
>>> A small heads up regarding to ovirt-vdsmfake. We merged some changes today
>>> which add support for oVirt 4.0 and make it much easier to get started with
>>> vdsmfake.
>>>
>>> With the changes, now it is enough to just run `mvn jetty:run` to have a
>>> working vdsmfake.
>>> Have a look at the new quickstart guide in the README.md [1] to see how to
>>> get started..
>>>
>>> Best regards,
>>> Roman
>>>
>>> [1] https://github.com/oVirt/ovirt-vdsmfake
>>
>>
>>
>> Thanks, nice for a real quick start.
>>
>> I can add that I also use dnsmasq to resolve any address to an IP
>>
>>  dnsmasq --address=/vdsm.simulator/127.0.0.1
>>
>> and that will resolve XXX.vdsm.simulator to 127.0.0.1. Just need to add
>> nameserver to /etc/resolv.conf
>>
>> I'll add that to the README as well
>>
>>
>> please make it the favorite solution. It’s way more clean than messing with
>> /etc/hosts
>>
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/devel
>>
>>
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/devel



More information about the Devel mailing list