[libvirt-users] no drm render nodes available

2018-12-05 Thread Michael Taboada

Hi,
I get this error when trying to start a vm using spice as the graphics: "error: 
internal error: No DRM render nodes available" I can't seem to figure out what could 
be going on, since it worked just a little while ago.
Using arch linux, and libvirt from git (4.10.0.22.g6a6925b9b7-1).
-Michael.



signature.asc
Description: PGP signature
___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

Re: [libvirt-users] Libvirt api for esx

2018-12-05 Thread ROHIT SINGH
Hi Martin,

Could you please help me with below issue, I am not sure what’s wrong here.
Please find below code and error snippet.

Thanks for help.

Code Snippet: -

from __future__ import print_function
import sys
import libvirt
SASL_USER = 
SASL_PASS = 
def request_cred(credentials, user_data):
for credential in credentials:
if credential[0] == libvirt.VIR_CRED_AUTHNAME:
credential[4] = SASL_USER
elif credential[0] == libvirt.VIR_CRED_PASSPHRASE:
credential[4] = SASL_PASS
return 0
auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE],
request_cred, None]
conn = libvirt.openAuth("esx://?no_verify=1", auth, 0)
if conn == None:
print('Failed to open connection to qemu+tcp://localhost/system',
file=sys.stderr)
exit(1)
conn.close()


Error Snippet: -
File
"/usr/software/pkgs/Python-3.4.3/lib/python3.4/site-packages/libvirt.py",
line 105, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: internal error: HTTP response code 404 for call to
'RetrieveServiceContent'


Regards
Rohit Singh

On Thu, 29 Nov 2018 at 11:13 PM, ROHIT SINGH 
wrote:

> Thanks a lot Martin for help.
> Really appreciate it. You’re life saver.
>
> I will go through these links and will get back to you in case I need
> anymore information.
>
> Once again, thanks for help.
>
> Regards
> Rohit Singh
>
> On Thu, 29 Nov 2018 at 2:34 PM, Martin Kletzander 
> wrote:
>
>> On Wed, Nov 28, 2018 at 10:24:55PM +0530, ROHIT SINGH wrote:
>> >Hi Martin,
>> >
>> >Could you please point me to any example codes in python present for esx?
>> >Suppose, I have to power off and power on esx virtual machine, can i get
>> >this code somewhere on python to develop some understanding.
>> >
>>
>> https://www.mail-archive.com/libvir-list@redhat.com/msg17903.html
>>
>> >Actually, I am not able to find sample code related to esx in python,
>> >please point me if any such link available.
>> >
>>
>> https://github.com/libvirt/libvirt-python/blob/master/examples/esxlist.py
>>
>> and all other examples:
>>
>> https://github.com/libvirt/libvirt-python/tree/master/examples
>>
>> The point of libvirt is that the code doesn't have to be (way) different
>> depending on the hypervisor.
>>
>> >Appreciate your help !!
>> >
>> >Thanks.
>> >
>> >Regards
>> >Rohit Singh
>> >
>> >On Wed, 28 Nov 2018 at 9:54 PM, ROHIT SINGH 
>> >wrote:
>> >
>> >> Thanks, I'll check it out.
>> >>
>> >> On Wed, 28 Nov 2018 at 9:31 PM, Martin Kletzander > >
>> >> wrote:
>> >>
>> >>> On Mon, Nov 26, 2018 at 04:11:20PM +0530, ROHIT SINGH wrote:
>> >>> >Hi,
>> >>> >
>> >>> >I am doing poc for using libvirt api for implementation of esx in
>> python.
>> >>> >
>> >>> >I tried researching through module but did not find a way how it
>> works
>> >>> for
>> >>> >esx.
>> >>> >Any help on how to proceed specifically for esx would be of great
>> help.
>> >>> >
>> >>>
>> >>> See https://libvirt.org/drvesx.html for ESX-related stuff.  But
>> mainly
>> >>> it is the
>> >>> URI you need to use.  Then look at https://libvirt.org/hvsupport.html
>> >>> where you
>> >>> can see what APIs are available for that HV driver.
>> >>>
>> >>> >Please let me know as soon as possible, lagging on deliverables.
>> >>> >
>> >>> >Thanks for help!!
>> >>> >
>> >>> >Regards
>> >>> >Rohit Singh
>> >>>
>> >>> >___
>> >>> >libvirt-users mailing list
>> >>> >libvirt-users@redhat.com
>> >>> >https://www.redhat.com/mailman/listinfo/libvirt-users
>> >>>
>> >>>
>>
>
___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

[libvirt-users] XML-RPC

2018-12-05 Thread Xxxx Zzz
Hi all,

I have 2 Centos servers running libvirtd. They are running using peacemaker
cluster. After I had to reboot server 1, I can't no longer start VMs on
server 2. I'm getting the following error message:

error: Failed to start domain testvm
error: internal error: Process exited prior to exec: libvirt: XML-RPC error
: Failed to connect socket to '/var/run/libvirt/virtlockd-sock': Connection
refused

I can see that the deamon is listening on the port. I also couldn't find
any further information in any logfile.

Any idea?

Thanks,
Markus
___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

Re: [libvirt-users] libvirt 4.1 and later - howto configure LXC with interface macvlan type='direct' ?

2018-12-05 Thread Daniel P . Berrangé
On Wed, Dec 05, 2018 at 02:43:45PM +0300, mxs kolo wrote:
>  Hi all
> 
> After upgrade from Centos 7.5 to Centos 7.6, our test environment
> geted  new version of libvirt 4.5.0
> In which our old containers have broken config and can't start:
> 2018-12-05 10:38:32.634+: 18010: debug :
> virLXCControllerGetNICIndexes:368 : Getting nic indexes
> 2018-12-05 10:38:32.634+: 18010: error :
> virLXCControllerGetNICIndexes:400 : unsupported configuration:
> Unsupported net type direct
> Failure in libvirt_lxc startup: unsupported configuration: Unsupported
> net type direct
> 
> We use next section for network interface:
>  
>   
>   
> 
> 
> It's linux macvlan solutions and it's worked at least since libvirt
> 1.2.7 for us.
> As I can see, in version 4.1.0 and later, some changes about DIRECT
> connect was implemented.
> VIR_DOMAIN_NET_TYPE_DIRECT is  still fully supported in src/lxc/lxc_driver.c
> But in src/lxc/lxc_controller.c
> --- libvirt-3.9.0/src/lxc/lxc_controller.c  2017-09-28
> 13:15:43.322712913 +0300
> +++ libvirt-4.1.0/src/lxc/lxc_controller.c  2018-02-28
> 16:21:05.158799006 +0300
> @@ -395,8 +395,14 @@
>  case VIR_DOMAIN_NET_TYPE_INTERNAL:
>  case VIR_DOMAIN_NET_TYPE_DIRECT:
>  case VIR_DOMAIN_NET_TYPE_HOSTDEV:
> +virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
> +   _("Unsupported net type %s"),
> +   
> virDomainNetTypeToString(ctrl->def->nets[i]->type));
> +goto cleanup;
> +case VIR_DOMAIN_NET_TYPE_LAST:
>  default:
> -break;
> +virReportEnumRangeError(virDomainNetType,
> ctrl->def->nets[i]->type);
> +goto cleanup;
>  }
>  }
> 
> Since version 4.1.0 which config need be used to configure macvlan for
> lxc cointainers ?

Sorry, this looks like my screw up in the code. I mis-interpreted what
this function was doing when adding error checking and mistakenly
rejected the TYPE_DIRECT nics.

Please file a bug against libvirt for this, or send a patch if you wish
to.

Regards,
Daniel
-- 
|: https://berrange.com  -o-https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o-https://fstop138.berrange.com :|
|: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users