Re: Determining when a guest booted / how long it's been running

2020-10-01 Thread wferi
Digimer writes: > I did find a way to do it working around virsh, but of course I'd > prefer to directly query the source instead of infering it if possible. Speaking about other possible workarounds, what about watching the /var/log/libvirt/qemu/*.log files (assuming you use the QEMU driver)? T

Re: Determining when a guest booted / how long it's been running

2020-09-30 Thread wferi
daggs writes: > I'd assume that saying vm running you mean that the os is up and > running too. I have similar need, I was able to get something as such > to work using virsh console when the guest was a linux with serial > console support enabled. I wasn't able to get this to work in a > scrip

Repetitive RBD disk definitions

2020-01-24 Thread wferi
Hi, I'm using libvirt 5.0.0 on a Ceph cluster. The VM disks are all from the same Ceph pool, so all my elements are basically the same: ... apart from the VOLNAME and vdX words. Is there a way to factor ou

Re: [libvirt-users] How to insert a dummy NIC

2019-03-11 Thread wferi
Laine Stump writes: > On 3/11/19 5:05 AM, wf...@niif.hu wrote: > >> Is there a way to "reserve" a bus address for such manually added >> devices without assigning explicit addresses to all other devices in >> the configuration? > > no, there's no way to do that; if a PCI address isn't used by a d

[libvirt-users] How to insert a dummy NIC

2019-03-11 Thread wferi
Hi, I have to host (with KVM) an appliance which does not use its second and third NIC. They have to be present in the guest, but they'd better stay totally disconnected from anything in the host. "Second" and "third" apparently means bus order. Let's consider virtio devices only. I think the