Re: another upgrade another vm issue

2021-10-29 Thread Daniel P. Berrange
On Fri, Oct 29, 2021 at 10:36:24AM +0200, Michal Prívozník wrote: > On 10/28/21 8:40 PM, daggs wrote: > > Greetings, > > > > so I've upgraded my server and yet again, one of my vm lost a functionally. > > there is no usable sound card. > > xml: https://dpaste.com/CVR5M75VH > > in vm:

Re: issues with vm after upgrade

2021-08-03 Thread Daniel P. Berrange
On Tue, Aug 03, 2021 at 05:34:53PM +0200, daggs wrote: > > Sent: Tuesday, August 03, 2021 at 6:29 PM > > From: "Daniel P. Berrange" > > To: "daggs" > > Cc: "Martin Kletzander" , libvirt-users@redhat.com > > Subject: Re: issues with

Re: issues with vm after upgrade

2021-08-03 Thread Daniel P. Berrange
On Tue, Aug 03, 2021 at 05:21:52PM +0200, daggs wrote: > Greetings Daniel, > > > Sent: Tuesday, August 03, 2021 at 4:12 PM > > From: "Daniel P. Berrange" > > To: "daggs" > > Cc: "Martin Kletzander" , libvirt-users@redhat.com > &

Re: issues with vm after upgrade

2021-08-03 Thread Daniel P. Berrange
On Tue, Aug 03, 2021 at 02:54:39PM +0200, daggs wrote: > Greetings Martin, > > > Sent: Tuesday, August 03, 2021 at 11:37 AM > > From: "Martin Kletzander" > > To: "daggs" > > Cc: libvirt-users@redhat.com > > Subject: Re: issues with vm after upgrade > > > > On Mon, Aug 02, 2021 at 04:33:20PM

Re: why cannot connect to libvirtd using virsh ???

2021-06-10 Thread Daniel P. Berrange
On Thu, Jun 10, 2021 at 05:37:43PM +0800, tommy wrote: > [root@test2 ~]# virsh -c quem+ssh://root@192.168.10.175/system > > root@192.168.10.175's password: > > error: failed to connect to the hypervisor > > error: no connection driver available for quem:///system

Re: libvirt-lxc: Permission issue of /proc/net

2020-12-24 Thread Daniel P. Berrange
On Tue, Dec 22, 2020 at 07:14:23PM +0200, John Hurnett wrote: > Hi, > I've encountered a problem that some of /proc/net/ files can't be accessed > in unprivileged containers, because it is owned by nobody:nogroup (-1:-1) > and have 440 permissions. > This exact issue was solved in LXC project by

Re: virsh rights voor normal users

2020-10-29 Thread Daniel P. Berrange
On Thu, Oct 29, 2020 at 04:13:45PM +0100, Natxo Asenjo wrote: > hi, > using the cockpit web ui and with these instructions: > > https://libvirt.org/dbus.html#usage > > we allow successfully that a group of users can access the console of the > system vms in different kvm hosts. > > Oddly

Re: Distinguishing between host and guest initiated VM shutdown

2020-08-27 Thread Daniel P. Berrange
On Wed, Aug 26, 2020 at 10:35:22PM +0200, Milan Zamazal wrote: > Hi, > > we have a problem in oVirt that highly available VMs don't restart after > host poweroff because Vdsm identifies the case as a user initiated > shutdown (https://bugzilla.redhat.com/1800966). > > When poweroff is run on the

Re: Libvirt qemu-system-x86_64 on ppc64le no multi threading

2020-08-03 Thread Daniel P. Berrange
On Mon, Aug 03, 2020 at 03:35:49PM +0100, Daniel P. Berrangé wrote: > On Mon, Aug 03, 2020 at 01:45:45PM +, Kim-Norman Sahm wrote: > > hi, > > > > i’m running Debian 10 on POWER9 and would like to spawn x86_64 emulated VMs. > > The virtual machine is configured to run with 8 vpus but it’s

Re: Routed network can't reach outside network

2020-07-20 Thread Daniel P. Berrange
On Sun, Jul 19, 2020 at 11:54:06AM +0100, Rui Correia wrote: > Greetings folks. > I've setup libvirtd on my manjaro linux laptop. > Got a couple of VM's running (Win10 and Debian10) through NAT without any > issues. > > This is what the current network diagram looks like and it works fine: > >

Re: get contents of a storage volume in bytes

2020-06-29 Thread Daniel P. Berrange
On Sun, Jun 28, 2020 at 07:51:01PM +0530, Shashwat shagun wrote: > Hi, i have two machines with libvirt installed. I want to move a storage > volume from the 1st machine to 2nd machine with code. > > I'm thinking of reading a storage volume into a byte array/stream then > uploading through my

Re: [libvirt-users] Issues Connecting to Remote Host Through SSH

2018-01-23 Thread Daniel P. Berrange
On Tue, Jan 23, 2018 at 03:53:37AM -0600, T A wrote: > Hello, > > I've been unable to connect to a remote host from within my network using > the following argument. > > virsh/virt-manager -c qemu+ssh://user@host:port/system > > I've tried libssh & libssh2 as well. Using ssh just prompts me for

Re: [libvirt-users] domain xml does not have

2018-01-15 Thread Daniel P. Berrange
On Mon, Jan 15, 2018 at 09:28:28PM +0530, Shashwat shagun wrote: > Hi I'm trying to monitor bandwidth usage of a KVM VM but couldn't find dev='vnet0'/> > on virsh edit domain_name > > all i get is this > > > > > >function='0x0'/> > > > how do i determine

Re: [libvirt-users] [BUG] Not exiting media forced a promptly close of libvirt 3.10

2017-12-22 Thread Daniel P. Berrange
On Fri, Dec 22, 2017 at 09:52:33AM +0100, Holger Schranz wrote: > etcsvms1:/kvm/CS8200/M5 # coredumpctl gdb libvirtd >PID: 10728 (libvirtd) >UID: 0 (root) >GID: 0 (root) > Signal: 11 (SEGV) > Timestamp: Fri 2017-12-22 09:28:39 CET (18min ago) >

Re: [libvirt-users] problem when use tls to connect libvirt

2017-12-06 Thread Daniel P. Berrange
On Wed, Dec 06, 2017 at 09:44:47PM +0800, Yalan Zhang wrote: > Hi guys, > > I met a problem when I use tls to connect libvirt. > When I set the CN in client.info, server.info as hostname(FDQN), the tls > check will fail with ip; and vice versa, when set CN as ip address, the tls > check will fail

Re: [libvirt-users] virtlock - a VM goes read-only

2017-11-16 Thread Daniel P. Berrange
On Wed, Nov 15, 2017 at 02:24:48PM +, Branimir Pejakovic wrote: > Dear colleagues, > > I am facing a problem that has been troubling me for last week and a half. > Please if you are able to help or offer some guidance. > > I have a non-prod POC environment with 2 CentOS7 fully updated

Re: [libvirt-users] Urgent: virsh - change-media run into a promptly close of libvirt

2017-11-15 Thread Daniel P. Berrange
On Tue, Nov 14, 2017 at 07:19:01PM +0100, Holger Schranz wrote: > Ups ... my fault ... > > libvirtd instead libvirt > > > etcsvms5:/var/lib/systemd/coredump # coredumpctl info libvirtd >    PID: 10177 (libvirtd) >    UID: 0 (root) >    GID: 0 (root) >    

Re: [libvirt-users] dramatic performance slowdown due to THP allocation failure with full pagecache

2017-11-15 Thread Daniel P. Berrange
On Tue, Nov 14, 2017 at 11:03:30AM -0700, Blair Bethwaite wrote: > On 14 November 2017 at 10:56, Daniel P. Berrange <berra...@redhat.com> wrote: > > Oh well THP usage inside the guest is then not really anything todo with > > virt, just a regular Linux questions, so not sur

Re: [libvirt-users] dramatic performance slowdown due to THP allocation failure with full pagecache

2017-11-14 Thread Daniel P. Berrange
On Tue, Nov 14, 2017 at 10:52:03AM -0700, Blair Bethwaite wrote: > Thanks for the reply Daniel, > > However I think you slightly misunderstood the scenario... > > On 14 November 2017 at 10:32, Daniel P. Berrange <berra...@redhat.com> wrote: > > IOW, if your applicatio

Re: [libvirt-users] Urgent: virsh - change-media run into a promptly close of libvirt

2017-11-14 Thread Daniel P. Berrange
On Tue, Nov 14, 2017 at 06:47:04PM +0100, Holger Schranz wrote: > Hello, > > I use the virsh change-media command and since the combination of: > > etcsvms5:/kvm/CS8400/M1 # virsh version > Compiled against library: libvirt 3.9.0 > Using library: libvirt 3.9.0 > Using API: QEMU 3.9.0 > Running

Re: [libvirt-users] dramatic performance slowdown due to THP allocation failure with full pagecache

2017-11-14 Thread Daniel P. Berrange
On Tue, Nov 14, 2017 at 10:23:56AM -0700, Blair Bethwaite wrote: > Hi all, > > This is not really a libvirt issue but I'm hoping some of the smart folks > here will know more about this problem... > > We have noticed when running some HPC applications on our OpenStack > (libvirt+KVM) cloud that

Re: [libvirt-users] Does libvirt-sanlock support network disk?

2017-11-08 Thread Daniel P. Berrange
On Wed, Nov 08, 2017 at 02:42:35PM +0800, Han Han wrote: > Hello, > As we know, libvirt sanlock support file type storage. I wonder *if it > supports network storage.* > I tried *iSCSI*, but found it didn't generate any resource file: Correct, the code currently ignores locking for any non-local

Re: [libvirt-users] net interface direct - no IP communication between guest & host

2017-10-25 Thread Daniel P. Berrange
On Tue, Oct 24, 2017 at 03:52:52PM +0100, lejeczek wrote: > hi everyone > > I wonder why, when I attach an interface like this: > > virsh # attach-interface --domain win10Ent --type direct --source nm-team > --config --persistent --model virtio > > host cannot ip ping the guest and vice versa,

Re: [libvirt-users] Can we disable write to /sys/fs/cgroup tree inside container ?

2017-10-18 Thread Daniel P. Berrange
On Wed, Oct 18, 2017 at 09:00:17PM +0300, mxs kolo wrote: > Hi all > > Each lxc container on node have mounted tmpfs for cgroups tree: > [root-inside-lxc@tst1 ~]# mount | grep cgroups > cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup > (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu) > cgroup on

Re: [libvirt-users] How automatically set group.devices.allow for libvirt-lxc container after start ?

2017-09-21 Thread Daniel P. Berrange
On Thu, Sep 21, 2017 at 05:14:38PM +0300, mxs kolo wrote: > p.s. > It would be nice specify any device in the xml domain config, for example: > > > > At start libvirt executes mknod and then writes the necessary rights > to cgroups device.allow. You can do exactly that

Re: [libvirt-users] Re : Libvirt Java Bindings

2017-09-20 Thread Daniel P. Berrange
On Wed, Sep 20, 2017 at 02:37:51PM +0530, Kartik Vaishnav wrote: > I am developing a Java Application using Libvirt. I found that the Java > Bindings are not in active development. > I need to obtain the IP Address of the Domain. In C, it may relate to > virDomainInterfaceAddresses. Is there any

Re: [libvirt-users] DHCP logging settings

2017-09-13 Thread Daniel P. Berrange
On Wed, Sep 13, 2017 at 12:59:57PM -0400, Laine Stump wrote: > On 09/04/2017 09:17 PM, Shannon wrote: > > I find that libvirt clogs up syslog with trivial DHCP notifications. I > > know how to configure alternate logging with dnsmasq directly via > > 'log-facility' and/or 'quiet-dhcp' options > >

Re: [libvirt-users] Failed building wheel for libvirt-python

2017-09-07 Thread Daniel P. Berrange
On Thu, Sep 07, 2017 at 05:25:46PM +0200, Silvia Fichera wrote: > Hi all, > I'm installing Openstack using devstack netwon branch in my PC with Ubuntu > 16.04 and I have this error. > Could someone of you help me please? The version of libvirt-python must be the same as, or newer than, the

Re: [libvirt-users] libvirt: XML-RPC error : Cannot write data: Broken pipe

2017-08-10 Thread Daniel P. Berrange
On Thu, Aug 10, 2017 at 10:45:49AM +0200, Dominik Psenner wrote: > 2017-08-10 8:21 GMT+02:00 Michal Privoznik : > > > On 08/09/2017 03:59 PM, Dominik Psenner wrote: > > > The error message could however give a hint what is going on. It should > > sax > > > that it is

Re: [libvirt-users] libvirt: XML-RPC error : Cannot write data: Broken pipe

2017-08-09 Thread Daniel P. Berrange
On Wed, Aug 09, 2017 at 11:53:54AM +0800, netsurfed wrote: > Hi all, > I think it's a bug, when call virDomainGetState after "service libvirtd stop" > , I receive signal SIGPIPE. For the QEMU driver, the libvirt library just talks to libvirtd over an RPC layer. You killed libvirtd, so the

Re: [libvirt-users] Avoiding console prints by Libvirt Qemu python APIs

2017-08-07 Thread Daniel P. Berrange
On Mon, Aug 07, 2017 at 01:15:45PM +0530, swaroop sp wrote: > Hi, > > I am trying to check if a domain exists by using the libvirt python API > *"lookupbyname()*". If the domain does not exist, it prints an error > message on the console saying "*Domain not found*". > > I need the errors or logs

Re: [libvirt-users] libvirt virDomainDestroy

2017-07-31 Thread Daniel P. Berrange
On Mon, Jul 31, 2017 at 04:23:51PM +0800, llilulu wrote: >When stop a qemu vm via libvirt api, I call virDomainShutdown, I can seen > the vm shutdown process, But I call virDomainDestroyFlags with > VIR_DOMAIN_DESTROY_GRACEFULL ,I can't seen the vm shutdown process, > virDomainDestroyFlags

Re: [libvirt-users] SSH from host to domain using hostname

2017-07-19 Thread Daniel P. Berrange
On Wed, Jul 19, 2017 at 08:23:58AM +, c.mo...@web.de wrote: > 18. Juli 2017 16:45, "Michal Privoznik" schrieb: > > > On 07/18/2017 04:31 PM, c.mo...@web.de wrote: > > > >> Hello! > >> > >> I have upgraded all libvirt packages to version 3.5.0-655.1 and restarted > >>

Re: [libvirt-users] Isolate VMs' network

2017-06-07 Thread Daniel P. Berrange
On Tue, Jun 06, 2017 at 11:37:27PM -0300, Thiago Oliveira wrote: > Daniel, > > Are you talking about XML? If yes, could please show us an example? ... ... There is quite alot more info here: http://libvirt.org/formatnwfilter.html

Re: [libvirt-users] Isolate VMs' network

2017-06-06 Thread Daniel P. Berrange
On Tue, Jun 06, 2017 at 08:50:45PM +0200, Chris wrote: > Chris wrote: > > I'm trying to setup a network with some virtual machines, that can connect > > to each other and to the internet, but neither to the host nor to other > > VMs. > > Thank you for your replies. Unfortunately, I didn't

Re: [libvirt-users] Isolate VMs' network

2017-06-06 Thread Daniel P. Berrange
On Mon, Jun 05, 2017 at 01:58:26PM +0200, Chris wrote: > All, > > I'm trying to setup a network with some virtual machines, that can connect > to each other and to the internet, but neither to the host nor to other > VMs. > > Is there any preconfigured network filter or best-practice for this

Re: [libvirt-users] why increasing vCPUs increasing the CPU sockets for QEMU+KVM

2017-06-06 Thread Daniel P. Berrange
tion. The '-cpu host' setup is not related to sockets/cores/threads topology. That exclusively controls CPU feature flags. This is accessible in libvirt using > > On 5 June 2017 at 21:10, Daniel P. Berrange <berra...@redhat.com> wrote: > > > On Mon, Jun 05, 2017

Re: [libvirt-users] why increasing vCPUs increasing the CPU sockets for QEMU+KVM

2017-06-05 Thread Daniel P. Berrange
On Mon, Jun 05, 2017 at 08:40:19PM +0530, girish kumar wrote: > Hi All, > > I am new here, please warn me If I am not following proper etiquette of > this mailing list. > > I am breaking my head, regarding why libvirt is defining multiple CPU > sockets when I increase the vCPU count. As and when

Re: [libvirt-users] Hopefully simple question

2017-05-31 Thread Daniel P. Berrange
On Sat, May 27, 2017 at 09:27:15PM -0500, Leroy Tennison wrote: > Is there a way to determine what the hypervisor default NIC is? I'm using > kvm/libvirt/qemu. If this is the wrong forum please please reply with that. This is not really a question you want an answer to, because no matter what

Re: [libvirt-users] can't establish more than 1000 connections with virsh

2017-05-25 Thread Daniel P. Berrange
On Thu, May 25, 2017 at 06:20:51PM +0800, dw wrote: > Hi: > > I'm trying to connect with libvirtd with virsh from a remote PC,but only > can establish 1000 connections. > > If try more connections,prompt: > > "error: failed to connect to the hypervisor > error: Failed to open

Re: [libvirt-users] How to set guest console size in libvirt configuration options?

2017-05-24 Thread Daniel P. Berrange
On Wed, May 24, 2017 at 04:40:33PM +0300, Roman Storozhenko wrote: > Hello, everybody > > I use virsh to run my VM and QEMU as a hypervisor. > When I connect to it, it shows me a console with a some predefined size. > I know that I am able to update grub configuration to pass the correct > size

Re: [libvirt-users] Access to the wiki

2017-05-22 Thread Daniel P. Berrange
On Fri, May 19, 2017 at 12:23:48AM -0400, Jlozada2426 wrote: > Hello, > > I was wondering if I could get access to the wiki. I want to > contribute and help out. Absolutely. I'll reply offlist with login details Regards, Daniel -- |: https://berrange.com -o-

Re: [libvirt-users] Callback re-registration after libvirtd restart

2017-05-17 Thread Daniel P. Berrange
On Wed, May 17, 2017 at 03:49:45PM +0200, Daniel Kučera wrote: > No, I'm not, I'm calling it sooner: > > func libvirt_start() { > libvirt.EventRegisterDefaultImpl() > event_listen() > } Well the following example works as expected for me package main import (

Re: [libvirt-users] Callback re-registration after libvirtd restart

2017-05-17 Thread Daniel P. Berrange
On Wed, May 17, 2017 at 03:41:09PM +0200, Daniel Kučera wrote: > Hi Daniel, > > I tried that but it doesn't work: > > func libvirt_close_callback(conn *libvirt.Connect, reason > libvirt.ConnectCloseReason){ > log.Printf("close callback: %+v", reason) > } > > func event_listen() { >

Re: [libvirt-users] Callback re-registration after libvirtd restart

2017-05-17 Thread Daniel P. Berrange
On Wed, May 17, 2017 at 03:08:23PM +0200, Daniel Kučera wrote: > Hi all, > > I'm using libvirt-go and I following code to listen for lifecycle events: > > func event_listen() { > log.Printf("event_listen %s", conf.Libvirt.LocalUrl) > hv, err := libvirt.NewConnect(conf.Libvirt.LocalUrl) >

Re: [libvirt-users] nwfilter and address of network ip address

2017-05-08 Thread Daniel P. Berrange
On Mon, May 08, 2017 at 11:30:46AM -0400, Nicolas Bock wrote: > On Mon, May 08, 2017 at 03:35:19PM +0100, Daniel P. Berrange wrote: > > On Sat, May 06, 2017 at 08:09:49PM -0400, Dan wrote: > > > On Fri, May 5, 2017 at 4:29 PM, Nicolas Bock <nicolasb...@gmail.com> > &

Re: [libvirt-users] nwfilter and address of network ip address

2017-05-08 Thread Daniel P. Berrange
On Sat, May 06, 2017 at 08:09:49PM -0400, Dan wrote: > On Fri, May 5, 2017 at 4:29 PM, Nicolas Bock wrote: > > > Hi, > > > > I am running a webserver on the libvirt host and would like to add a > > nwfilter such that a VM can access that server. The corresponding iptables

Re: [libvirt-users] Performance monotoring: Perf Event support

2017-04-26 Thread Daniel P. Berrange
On Mon, Apr 24, 2017 at 06:54:32PM +0200, Hui Jing wrote: > Hi everyone, > > I am using libvirt 2.5.0. I'd like to enable the "perf events" to > monitoring my vm performance such as l3 cache. But it failed with "error: > argument unsupported: unable to enable host cpu perf event for cmt". > 1.

Re: [libvirt-users] Tunnelled migrate Windows7 VMs halted

2017-04-26 Thread Daniel P. Berrange
On Wed, Apr 26, 2017 at 08:51:39AM -0500, Eric Blake wrote: > > > > I migrated a Windows 7 VM with libvirtd tunnelled, the VM halted > > on the target although the status is running. What do you mean by halted ? The guest OS has shutdown, or QEMU has crashed, or something else ? > > > > > >

Re: [libvirt-users] libvirt remote connection

2017-04-21 Thread Daniel P. Berrange
m I right? Libvirt provides a wireshark plugin - you need to make sure you've actually intsalled that bit though, as its a separate rpm. > > 2017-04-21 11:23 GMT+03:00 Daniel P. Berrange <berra...@redhat.com>: > > > On Fri, Apr 21, 2017 at 10:16:47AM +0300, Anastasiya

Re: [libvirt-users] understanding --idmap for containers (v2.5.0)

2017-04-20 Thread Daniel P. Berrange
On Thu, Apr 20, 2017 at 08:26:11AM +, mailing lists wrote: > Hello, > I'm testing containers on a host machine without selinux so I'm trying use > the idmap feature, but I must be missing something because all that I get is > a readonly container for the root user. > > # virsh version

Re: [libvirt-users] creating a lxc image to be used with libvirt-lxc

2017-04-05 Thread Daniel P. Berrange
On Tue, Apr 04, 2017 at 05:20:19PM +, Spike wrote: > ok, thank you Daniel, that helps, I'll see if I can adapt it to other OS > and figure out the docker style stuff, it would be useful to run a few > things I have in mind. > > Btw, Daniel, have you ever tried to run libvirt inside a

Re: [libvirt-users] creating a lxc image to be used with libvirt-lxc

2017-04-04 Thread Daniel P. Berrange
On Mon, Apr 03, 2017 at 05:52:33PM +, Spike wrote: > Dear all, > > I'm moving my first baby steps with libvirt-lxc trying to convert over from > an LXD installation and one of the hurdles is putting together an image. > > All the examples I found about libvirt-lxc refer to running /bin/sh in

Re: [libvirt-users] VIR_ERR_OPERATION_INVALID from virDomainDestroyFlags call

2017-03-17 Thread Daniel P. Berrange
On Fri, Mar 17, 2017 at 02:07:11PM +0100, Milan Zamazal wrote: > "Daniel P. Berrange" <berra...@redhat.com> writes: > > > On Fri, Mar 17, 2017 at 11:55:13AM +0100, Milan Zamazal wrote: > >> Hi, we experienced a strange, non-reproducible error after a succ

Re: [libvirt-users] VIR_ERR_OPERATION_INVALID from virDomainDestroyFlags call

2017-03-17 Thread Daniel P. Berrange
On Fri, Mar 17, 2017 at 11:55:13AM +0100, Milan Zamazal wrote: > Hi, we experienced a strange, non-reproducible error after a successful > migration to another host. When we called virDomainDestroyFlags with > VIR_DOMAIN_DESTROY_GRACEFUL flag after the migration on the source host, > we got

Re: [libvirt-users] [RFC] per-device metadata

2017-03-16 Thread Daniel P. Berrange
On Thu, Mar 16, 2017 at 04:17:51PM +0100, Peter Krempa wrote: > On Thu, Mar 16, 2017 at 14:52:47 +, Daniel Berrange wrote: > > On Thu, Mar 16, 2017 at 03:50:51PM +0100, Peter Krempa wrote: > > > On Thu, Mar 16, 2017 at 14:42:30 +, Daniel Berrange wrote: > > > > On Thu, Mar 16, 2017 at

Re: [libvirt-users] [RFC] per-device metadata

2017-03-16 Thread Daniel P. Berrange
On Thu, Mar 16, 2017 at 03:50:51PM +0100, Peter Krempa wrote: > On Thu, Mar 16, 2017 at 14:42:30 +, Daniel Berrange wrote: > > On Thu, Mar 16, 2017 at 01:46:38PM +0100, Peter Krempa wrote: > > > On Mon, Feb 27, 2017 at 16:41:28 +0100, Francesco Romani wrote: > > [...] > > > > In general I

Re: [libvirt-users] [RFC] per-device metadata

2017-03-16 Thread Daniel P. Berrange
On Thu, Mar 16, 2017 at 01:46:38PM +0100, Peter Krempa wrote: > > For techincal discussions on design it's better to post to the > development list. > > On Mon, Feb 27, 2017 at 16:41:28 +0100, Francesco Romani wrote: > > Hi, > > Hi, > > > > > > > Currently libvirt supports metadata in the

Re: [libvirt-users] migrating from XenServer / XCP to libvirt/KVM

2017-03-15 Thread Daniel P. Berrange
On Wed, Mar 15, 2017 at 10:10:36AM +, Daniel Pocock wrote: > > I've been using XenServer / XCP (with the "xe" toolset) for a number of > years for hosting servers used for development and free software > projects and I'm now looking at migrating all those environments to > libvirt / KVM. > >

Re: [libvirt-users] MIPS emulation broken - No PCI buses available

2017-03-14 Thread Daniel P. Berrange
On Mon, Mar 13, 2017 at 04:23:38PM -0500, Ian Pilcher wrote: > I am trying to create a QEMU MIPS guest, so that I can test some code > for big-endian safety. You are probably better off using PPC64 which is big-endian and much more widely tested in libvirt than MIPS, so actually likely to work

Re: [libvirt-users] events dispatching in synchronous mode

2017-03-08 Thread Daniel P. Berrange
On Wed, Mar 08, 2017 at 11:27:17AM +, Matczak, KrzysztofX wrote: > Hi > Is there any way to get events dispatching in synchronous mode ? > I mean I'm running my own events polling loop which calls > virEventRunDefaultImpl each turn . I'd expect to get my callback > function called

Re: [libvirt-users] Insert/eject USB

2017-03-08 Thread Daniel P. Berrange
On Sat, Mar 04, 2017 at 01:14:39AM -0600, Leroy Tennison wrote: > Is it possible to insert and eject a USB image in kvm/qemu/libvirt or are > the only dynamically changeable devices cdroms and floppies? I've searched > the web and I'm either not looking for the right terms or it's obscure. I >

Re: [libvirt-users] Bluetooth Device Support

2017-03-01 Thread Daniel P. Berrange
On Tue, Feb 28, 2017 at 09:33:16PM +, Max Ehrlich wrote: > Hi, > > I want to create a virtual hci device on my virtual machine. I have seen > that qemu has options supporting this > > https://qemu.weilnetz.de/doc/qemu-doc.html#Bluetooth_0028R_0029-options > > and > >

Re: [libvirt-users] "virsh list" hangs

2017-02-24 Thread Daniel P. Berrange
On Fri, Feb 24, 2017 at 11:52:43PM +0800, Yunchih Chen wrote: > > > On 02/24/2017 11:30 PM, Daniel P. Berrange wrote: > > On Tue, Feb 21, 2017 at 12:07:41PM +0800, Yunchih Chen wrote: > > > On 02/20/2017 09:10 PM, Michal Privoznik wrote: > > > > On

Re: [libvirt-users] "virsh list" hangs

2017-02-24 Thread Daniel P. Berrange
On Fri, Feb 24, 2017 at 11:24:16PM +0800, Yunchih Chen wrote: > On 02/21/2017 12:07 PM, Yunchih Chen wrote: > > On 02/20/2017 09:10 PM, Michal Privoznik wrote: > > > On 17.02.2017 17:18, Yunchih Chen wrote: > > > > `virsh list` hangs on my server that hosts a bunch of VMs. > > > > This might be

Re: [libvirt-users] "virsh list" hangs

2017-02-24 Thread Daniel P. Berrange
On Tue, Feb 21, 2017 at 12:07:41PM +0800, Yunchih Chen wrote: > On 02/20/2017 09:10 PM, Michal Privoznik wrote: > > On 17.02.2017 17:18, Yunchih Chen wrote: > > > `virsh list` hangs on my server that hosts a bunch of VMs. > > > This might be due to the Debian upgrade I did on Feb 15, which

Re: [libvirt-users] high memory guest issues - virsh start and QEMU_JOB_WAIT_TIME

2017-02-15 Thread Daniel P. Berrange
On Thu, Feb 16, 2017 at 12:03:28AM +1100, Blair Bethwaite wrote: > On 15 February 2017 at 20:40, Daniel P. Berrange <berra...@redhat.com> wrote: > > On Wed, Feb 15, 2017 at 10:27:46AM +0100, Michal Privoznik wrote: > >> On 02/15/2017 03:43 AM, Blair Bethwaite wrote: &g

Re: [libvirt-users] high memory guest issues - virsh start and QEMU_JOB_WAIT_TIME

2017-02-15 Thread Daniel P. Berrange
On Wed, Feb 15, 2017 at 10:27:46AM +0100, Michal Privoznik wrote: > On 02/15/2017 03:43 AM, Blair Bethwaite wrote: > > On 15 February 2017 at 00:57, Daniel P. Berrange <berra...@redhat.com> > > wrote: > >> What is the actual error you're getting during startup. >

Re: [libvirt-users] high memory guest issues - virsh start and QEMU_JOB_WAIT_TIME

2017-02-14 Thread Daniel P. Berrange
On Tue, Feb 14, 2017 at 06:13:20PM +1100, Blair Bethwaite wrote: > Hi all, > > In IRC last night Dan helpfully confirmed my analysis of an issue we are > seeing attempting to launch high memory KVM guests backed by hugepages... > > In this case the guests have 240GB of memory allocated from two

Re: [libvirt-users] Real time threads don't work in libvirt containers under CentOS 7.3

2017-02-06 Thread Daniel P. Berrange
On Mon, Feb 06, 2017 at 09:32:29AM -0800, Peter Steele wrote: > We've been using libvirt based containers under CentOS 7 and everything has > been working fine. One application we run in our containers is ctdb, which > uses SCHED_FIFO (real time) threads. This has been working without problems >

Re: [libvirt-users] Libvirt and Virt-manager compatibility

2017-02-01 Thread Daniel P. Berrange
On Wed, Feb 01, 2017 at 04:54:01AM +, abhishek jain wrote: > Hi, > I am using Libvirt (1.2.2) on RHEL6. I want to use the compatible > virt-manager for it. > When I tried 1.4.0 and 1.3.0 there is an insatllation issue on RHLE6 > for gtk3.  Is there any virt-manager version which works with

Re: [libvirt-users] changing to cache='none' on the fly?

2017-01-10 Thread Daniel P. Berrange
On Mon, Jan 09, 2017 at 10:29:01AM -0800, W Kern wrote: > As is already well documented, we find that we need cache='none' to support > migration, otherwise there is the chance of a hang and/or failure to pivot. > > However we prefer the default of cache=writethrough when operating in >

Re: [libvirt-users] [libvirt] xml config nested

2017-01-05 Thread Daniel P. Berrange
NB, in future please don't CC all possible mailing lists at once. Just pick the most appropriate mailing list for your question. I've dropped libvirt-list & libvirt-announce from the CC, since this is a question most suited for libvirt-users. On Thu, Jan 05, 2017 at 11:44:29AM +0800, 放牛班的春天

Re: [libvirt-users] Virsh Fail to Connect to Hypervisor

2017-01-04 Thread Daniel P. Berrange
On Wed, Jan 04, 2017 at 06:15:52AM +, Xu, Rongjie (Nokia - CN/Hangzhou) wrote: > Hi, > > I am upgrading libvirt from 1.2.9 to 2.0.0 and I have successfully make the > libvirtd running. However, virsh cannot connect to hypervisor with following > errors: > > virsh # connect > error: failed

Re: [libvirt-users] How can openstack retrieve the CPU usage of a lxc via libvirt?

2016-12-06 Thread Daniel P. Berrange
On Tue, Dec 06, 2016 at 08:34:22AM +, WANG Cheng D wrote: > Dear all, > > I want to have a view of lxc CPU usage in openstack Dashboard. According the > Openstack official site , Openstack Ceilometer can poll libvirt daemon to > obtain CPU usage of a virtual machine. I tried the command

Re: [libvirt-users] Sharing network namespace between containers

2016-11-08 Thread Daniel P. Berrange
On Tue, Nov 08, 2016 at 09:01:34AM +0530, Harish Vishwanath wrote: > Hello > > Based on the lxc driver documentation, I am trying to create an xml to > share an existing network namespace with another container. I am running > libvirt 1.2.15. > > Here is the xml: > > > > nt >

Re: [libvirt-users] [Qemu-devel] pci-assign fails with read error on config-space file

2016-11-02 Thread Daniel P. Berrange
On Fri, Oct 28, 2016 at 01:28:19PM +0200, Henning Schild wrote: > Hey, > > i am running an unusual setup where i assign pci devices behind the > back of libvirt. I have two options to do that: > 1. a wrapper script for qemu that takes care of suid-root and appends > arguments for pci-assign > 2.

Re: [libvirt-users] libvirt-lxc capabilities mknod

2016-08-18 Thread Daniel P. Berrange
On Wed, Aug 17, 2016 at 12:38:10PM -0500, jsl6uy js16uy wrote: > Hello all, hope all is well > > Issue: Any way to give granular mknod capabilities to a container? Only > allow creation of specific device? > > bit of background > > Have a laptop running arch and libvirt > loading an arch lxc

Re: [libvirt-users] Facing problems while connecting virsh to XenServer 6.5 to import VMs to RHEV / oVirt

2016-08-17 Thread Daniel P. Berrange
On Thu, Aug 11, 2016 at 09:50:58PM +0530, Anantha Raghava wrote: > Hi, > > I am trying to import couple of important Virtual Machines from XenServer > 6.5 (from downloaded from xenserver.org) into RHEV / oVirt environment. When > I used the RHEV / oVirt Import Wizard, I was facing the issues. In

Re: [libvirt-users] Python API does not return all information available

2016-08-15 Thread Daniel P. Berrange
On Mon, Aug 15, 2016 at 11:09:12AM -0500, David Ashley wrote: > All - > > The Python virDomain method info() does not return all the entries > contained in the C struct virNodeInfo. While this is somewhat documented > the entries that are returned are unlabeled and the documentation does > not

Re: [libvirt-users] Definition /dev/shm prevent LXC container from start: "Failed to access '(null)': Bad address"

2016-08-15 Thread Daniel P. Berrange
On Thu, Aug 11, 2016 at 08:24:53PM +0300, mxs kolo wrote: > > it is a bug introduced in 2.1.0 - i've just copied you on a patch > > that should fix it. If possible, it'd be good if you can build with > > that patch and report whether it works for you > > > After patch, container pass mount phase.

Re: [libvirt-users] Definition /dev/shm prevent LXC container from start: "Failed to access '(null)': Bad address"

2016-08-11 Thread Daniel P. Berrange
On Thu, Aug 11, 2016 at 03:38:06PM +0300, mxs kolo wrote: > Hi all > > We use libvirt 1.2.x and 1.3.x with next filesystem definition in config: > > > > > > But libvirt 2.1.0 with same config report error: > Failed to access '(null)': Bad address > > Debug level 1 show: > 2016-08-11

Re: [libvirt-users] Go bindings to LibVirt

2016-08-11 Thread Daniel P. Berrange
On Thu, Aug 11, 2016 at 11:09:33AM +0300, Sergey Bronnikov wrote: > Hi, everyone > > for a small project I need a Go bindings to LibVirt library. There is a page > on > the official site with a list of bindings to different languages [1], but it > is > lack of Go bindings. Does it mean there

Re: [libvirt-users] Mounting VM filesystem on host while VM running

2016-08-08 Thread Daniel P. Berrange
On Mon, Aug 08, 2016 at 10:19:29AM +0200, Michal Privoznik wrote: > On 08.08.2016 09:33, Patrick PICHON wrote: > > Hello, > > > > > > All my VMs are using LVs created on the host side. > > > > I'm using collectd to monitor some of the ressources of my host as well > > as the libvirt pluging to

Re: [libvirt-users] How can I run command in containers on the host?

2016-07-26 Thread Daniel P. Berrange
On Tue, Jul 26, 2016 at 05:19:22PM +0800, John Y. wrote: > Hi Daniel, > > I forgot to tell you that I using mips64 fedora. Has any effect on this > case? > 2016-07-26 09:05:59.634+: 16406: debug : virDomainLxcEnterNamespace:131 > : dom=0xaaad4067c0, (VM: name=fedora2, >

Re: [libvirt-users] libvirtd terminates running instances after monitor's socket inode id is changed

2016-07-25 Thread Daniel P. Berrange
On Fri, Jul 22, 2016 at 10:57:04AM -0700, Gavin Nicholson wrote: > We accidentally moved /var/lib/libvirt/qemu to another directory which is > on a different disk partition, then we moved it back; however, that caused > changing the inode ids of the files inside /var/lib/libvirt/qemu including >

Re: [libvirt-users] virt-login-shell: Security model none cannot be entered

2016-07-13 Thread Daniel P. Berrange
On Tue, Jul 12, 2016 at 11:25:11AM -0400, ja...@lottspot.com wrote: > Hello! > > I am currently experimenting a bit with some of the LXC support under > libvirt, and in trying to utilize the tool virt-login-shell, I encounter the > following error: > > [james@lxchost ~]$ virt-login-shell >

Re: [libvirt-users] Virtual machine in state "in shutdown"

2016-07-05 Thread Daniel P. Berrange
On Tue, Jul 05, 2016 at 04:20:58PM +0200, Roland Everaert wrote: > Restarting libvirtd doesn't change the situation. > > But looking into the logs I see the following: > > - Last lines in /var/log/libvirt/libvirtd.log: > > 2016-07-05 13:26:42.792+: 24552: warning : qemuProcessKill:4419 :

Re: [libvirt-users] Virtual machine in state "in shutdown"

2016-07-05 Thread Daniel P. Berrange
On Tue, Jul 05, 2016 at 02:50:25PM +0200, Roland Everaert wrote: > Hello, > > We are currently facing a strange situation. One of our VM is shown by > 'virsh list' as in state "in shutdown" but there is no more a qemu-kvm > process linked to it. > > So we have a few questions: > > 1. What does

Re: [libvirt-users] Migration command regression as of 1.3.4

2016-06-09 Thread Daniel P. Berrange
On Wed, Jun 08, 2016 at 03:14:04PM -0400, Brian Rak wrote: > Per the documentation, > https://libvirt.org/migration.html#scenarionativedirect , 'virsh migrate > domain dest interface' was a support command. As of 1.3.4 (when compression > support was added), it's not. For example: > > # virsh

Re: [libvirt-users] Migration problem - takes 5 minutes to start moving the memory

2016-06-02 Thread Daniel P. Berrange
On Thu, Jun 02, 2016 at 02:32:47PM +0200, Marc-Aurèle Brothier - Exoscale wrote: > > > On 01 Jun 2016, at 15:59, Daniel P. Berrange <berra...@redhat.com> wrote: > > > > On Wed, Jun 01, 2016 at 03:55:37PM +0200, Peter Krempa wrote: > >> On Wed, Jun 01, 2016 at

Re: [libvirt-users] virsh for VMWare

2016-06-01 Thread Daniel P. Berrange
On Wed, Jun 01, 2016 at 04:27:02PM +0100, Richard W.M. Jones wrote: > [libvirt-users should be able to help out] > > On Wed, Jun 01, 2016 at 01:58:09PM +, John L. Magee wrote: > > Rich- do you know a way we could use virsh in scripts without > > manually entering the username/password creds

Re: [libvirt-users] Migration problem - takes 5 minutes to start moving the memory

2016-06-01 Thread Daniel P. Berrange
On Wed, Jun 01, 2016 at 03:55:37PM +0200, Peter Krempa wrote: > On Wed, Jun 01, 2016 at 11:59:29 +0200, Marc-Aurèle Brothier - Exoscale wrote: > > Hi, > > > > I'm facing a strange issue while doing a migration from an hypervisor to > > another one. The migration takes for ever to start moving

Re: [libvirt-users] libvirt on Raspberry Pi, block by parameter "-S"

2016-05-19 Thread Daniel P. Berrange
On Thu, May 19, 2016 at 10:05:57AM +, Xu Ding wrote: > Hi > > I have used libvirt on Raspberry Pi Debian. > I can start the vm, but it just starts and doesn't continue. > I find the qemu-system-arm command generated by virsh has a parameter > "-S", when I copy the command, remove the

Re: [libvirt-users] Dump network traffic from each VM.

2016-05-12 Thread Daniel P. Berrange
On Thu, May 12, 2016 at 11:32:00AM -0300, Julio Faracco wrote: > Hi Daniel, > > I changed the libvirt code to support "-net dump" because it is > more comfortable to me and to users here. > > I don't know if it is interesting to the community, but... most of the > code is ready if someone needs.

Re: [libvirt-users] Dump network traffic from each VM.

2016-05-05 Thread Daniel P. Berrange
On Wed, May 04, 2016 at 12:37:14PM -0300, Julio Faracco wrote: > Hi guys, > > Does anybody know how to dump the network trafic from each virtual > machine using libvirt? > > Here, we usually use VPN softwares and other network tools inside > Virtual Machines (Windows and Linux). Sometimes, this

Re: [libvirt-users] Use virt-* tools from within container?

2016-04-28 Thread Daniel P. Berrange
On Wed, Apr 27, 2016 at 07:09:11PM -0400, Ken D'Ambrosio wrote: > Hi, all. I've set up an LXC container for various Openstack admin chores, > and now I'm being asked to have it used for importing qcow2 images -- on > which we want to run utilities like virt-sparsify and virt-sysprep, first. >

Re: [libvirt-users] stream finish throws exception via python API

2016-04-27 Thread Daniel P. Berrange
On Tue, Apr 26, 2016 at 03:17:19PM -0400, Cole Robinson wrote: > On 04/26/2016 02:56 PM, Nir Soffer wrote: > > On Tue, Apr 26, 2016 at 4:37 PM, Cole Robinson wrote: > >> On 04/26/2016 09:35 AM, Shahar Havivi wrote: > >>> On 26.04.16 15:30, Shahar Havivi wrote: > On

Re: [libvirt-users] /proc/meminfo

2016-04-26 Thread Daniel P. Berrange
On Tue, Apr 26, 2016 at 02:44:19PM +0300, mxs kolo wrote: > Now reporduced with 100% > 1) create contrainer with memory limit 1Gb > 2) run inside simple memory test allocator: [snip example] I've seen this behaviour with LXC when running systemd inside the container. /proc/meminfo is generated

Re: [libvirt-users] this function is not supported by the connection driver: virDomainCoreDump

2016-04-18 Thread Daniel P. Berrange
On Mon, Apr 18, 2016 at 11:55:22AM +0200, Alex Font wrote: > Hi, > > I'm facing problems trying to get a full dump of a VM machine on ESXi 6.0, > using libvirt 1.3.3. > > When I try to do: > > virsh$: dump vm_machine dump.dmp > > I get the following error: > > this function is not supported

  1   2   3   4   5   >