On 11/13/2013 08:44 AM, Greg Ward wrote:
On Mon, Nov 11, 2013, at 07:17 PM, Eric Blake wrote:
> On 11/11/2013 05:04 PM, Greg Ward wrote:
>> 2) In the FAQ, under "networking is unavailable in virt-manager / virsh
>> - libvirt's default network fails to start", it says "Here is a
list of
>> the networking-related packages that need to be installed for libvirt
>> networking to work properly:". But it does not say if those packages are
>> supposed to be installed on the host or the guest! It might be obvious
>> to you, but it isn't to me.
>
> URL of the FAQ page with the missing information?
Oops! It's question 1.3.11, at
http://wiki.libvirt.org/page/FAQ#networking_is_unavailable_in_virt-manage...
Edited now to add "on the host" in the appropriate location.
>
> A snippet to add to the existing <domain> XML that you would see using
> 'virsh edit' (or with the virDomainDefineXML() API).
OK. What's <domain>? "virsh list" doesn't list anything, despite
the
fact that I still have one VM visible in the virt-manager GUI.
Ah. First step then is to make sure you are connecting to the same
libvirtd instance as virt-manager is (by default, virsh run as yourself
tries to connect to qemu:///session, while virt-manager tries to connect
to qemu:///system). Double-check what 'virsh uri' outputs to see if you
are connecting to the session instance (which would explain not seeing
anything); and if so, use 'virsh -c qemu:///system list --all' to see
the difference (the virsh man page also documents some environment
variables you can set to avoid having to type -c ... all the time). The
<domain> I'm referring to is the top-level element in the XML that you
would get by 'virsh -c qemu:///system dumpxml $dom', or which pulls up
in the editor for 'virsh -c qemu:///system edit $dom'.
(FWIW, consider me a libvirt novice, despite trying out virt-manager
every year or so for the last 3 years or so. I've just never had much
luck with it. I finally got annoyed enough to dig into the docs a little
bit, which just got me more annoyed, so here I am.)
Please keep at it, and please keep giving us feedback - it's insights
like these that will make it easier to improve the docs for other
first-time users.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org