<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 16, 2015 at 1:58 PM, Cole Robinson <span dir="ltr"><<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 09/16/2015 04:27 PM, Jason Helfman wrote:<br>
> Hi,<br>
><br>
> I received this report today in using virt-manager on GhostBSD<br>
> (<a href="http://ghostbsd.org/about" rel="noreferrer" target="_blank">http://ghostbsd.org/about</a>)<br>
><br>
> Hello,<br>
><br>
> I was getting the following error on startup in GhostBSD 10.1 inside a virtual<br>
> machine:<br>
><br>
> [Errno 2] No such file or directory: '/usr/share/libvirt/cpu_map.xml'<br>
><br>
> After some searching it looks like this is a hard coded path in<br>
><br>
> <a href="https://github.com/virt-manager/virt-manager/blob/master/virtinst/capabilities.py#L55" rel="noreferrer" target="_blank">https://github.com/virt-manager/virt-manager/blob/master/virtinst/capabilities.py#L55</a><br>
><br>
> It will start up correctly If I manually change it to:<br>
> /usr/local/share/libvirt/cpu_map.xml<br>
><br>
> Not sure if this requires a port patch or change upstream.<br>
<br>
</span>Thanks for the report. For starters if we can't find that path it should be<br>
non-fatal, so I fixed that now:<br>
<br>
commit b15c44923c9af9d42d04a508de0d9cc8744dc73e<br>
Author: Cole Robinson <<a href="mailto:crobinso@redhat.com">crobinso@redhat.com</a>><br>
Date:   Wed Sep 16 16:55:37 2015 -0400<br>
<br>
    capabilities: Handle missing cpu_map.xml<br>
<br>
    It shouldn't be a fatal issue. Hit on freebsd where they install<br>
    libvirt bits into /usr/local<br>
<br>
    <a href="https://www.redhat.com/archives/virt-tools-list/2015-September/msg00056.html" rel="noreferrer" target="_blank">https://www.redhat.com/archives/virt-tools-list/2015-September/msg00056.html</a><br>
<br>
<br>
Modern libvirt should have the getCPUModelNames API which we should be using<br>
instead, the cpu_map.xml is the old fallback. It's only used for showing a<br>
listed of supported CPU models in the UI. So you could patch the freebsd<br>
version to point to /usr/local but it's not critically important.<br>
<span class=""><font color="#888888"><br>
- Cole<br>
<br>
</font></span></blockquote></div><br><br><div class="gmail_extra">Thanks, Cole! This has been addressed.<br><a href="http://lists.freebsd.org/pipermail/svn-ports-all/2015-September/104933.html">http://lists.freebsd.org/pipermail/svn-ports-all/2015-September/104933.html</a><br><br></div><div class="gmail_extra">-Jason<br clear="all"></div><br>-- <br><div class="gmail_signature"><div dir="ltr">Jason Helfman          | FreeBSD Committer<br>jgh@FreeBSD.org     | <a href="http://people.freebsd.org/%7Ejgh" target="_blank">http://people.freebsd.org/~jgh</a>  | The Power to Serve<br></div></div>
</div></div>