similar to: virsh attach device equivalent in libvirt API

Displaying 20 results from an estimated 1000 matches similar to: "virsh attach device equivalent in libvirt API"

2015 Aug 13
1
Host and Guest UUID ?
Hi, Are there some kind of UUIDs for Host and Guest ? If yes , how may I retrieve them programmatically ? My goal is to trace GUEST migrations. Thx for help. Regards, J.P. Ribeauville P: +33.(0).1.47.17.27.87 Puteaux 3 Etage 5 Bureau 4 jpribeauville@axway.com<mailto:jpribeauville@axway.com> http://www.axway.com<http://www.axway.com/> P Pensez à l'environnement avant
2015 Dec 07
2
libvirt logging of virDomainAttachDeviceFlags()
Hi, When using « virsh attach-device ....." to add a channel device to a Guest , I see following entry in libvirt log : 2015-12-07 11:14:47.307+0000: 14551: debug : virDomainAttachDeviceFlags:10433 : dom=0x7f2a58252fc0, ........ Great !! But , when calling virDomainAttachDeviceFlags( ) from a C program , I got return code -1 but nothing appears related to virDomainAttachDeviceFlags(
2018 Oct 09
3
Serial ports: vm vs bare metal
I'm running libvirt under Fedora 28. I would like to attach a USB device to a VM, but when I select "Redirect USB Device" from the "Virtual Machine" menu in virt-manager and then select the device, I get the error: USB redirection error spice-client-error-quark: Could not redirect [device name] at 1-11: Error setting USB device node ACL: 'Not authorized' (0)
2016 Mar 04
2
Re: Why are virsh vol-upload/vol-download so slow?
On Fri, Mar 04, 2016 at 04:57:30PM +0000, Daniel P. Berrange wrote: > What version of libvirt ? We had an unfortunate implementation mistake > which caused us to waste tonnes of time in memmove(). versions since > 1.2.19 have a fix that addresses it Ah, this is on F23, which has: libvirt-1.2.18.2-2.fc23.x86_64 There's nothing more recent right now in either updates or
2016 Mar 06
2
Convincing libvirt to create a bridge device?
I was hoping that I could delegate creation of bridge devices to libvirt for address-less bridges, in order to not have to deal with the various ways distributions handle persistent network configuration, but while this creates a libvirt network... <network> <name>provision</name> <forward mode='bridge'/> <bridge name='brprov'/>
2016 Mar 04
2
Why are virsh vol-upload/vol-download so slow?
I was interested in using 'virsh vol-upload' and 'virsh vol-download', rather than mucking about directly with the filesystem. But while simply copying the image is relatively quick: # ls -l /var/lib/libvirt/images/centos-7-cloud.qcow2 -rw-r--r--. 1 qemu qemu 1004994560 Apr 15 2015 centos-7-cloud.qcow2 # time cp /var/lib/libvirt/images/centos-7-cloud.qcow2
2016 May 02
3
Making remote access to qemu://session easier?
This is frustrating: $ export LIBVIRT_DEFAULT_URI=qemu+ssh://remotehost/session $ virsh list error: failed to connect to the hypervisor error: no valid connection error: Operation not supported: Connecting to session instance without socket path is not supported by the ssh connection driver Has there been any thought given to making this easier? It seems that having a simple helper
2023 Jun 12
2
virsh not connecting to libvertd ?
Just found my issue. After I removed the cephfs mounts it worked! I will debug ceph. I assumed because I could touch files on mounted cephfs it was working. Now virsh list works! thanks jerry Lars Kellogg-Stedman > On Tue, Jun 06, 2023 at 04:56:38PM -0400, Jerry Buburuz wrote: >> Recently both virsh stopped talking to the libvirtd. Both stopped within >> a >> few days of
2018 Oct 10
1
Re: [Spice-devel] usbredir error: Error setting USB device node ACL: 'Not authorized'
Hey, On Wed, Oct 10, 2018 at 09:57:39AM -0400, Cole Robinson wrote: > On 10/09/2018 04:42 PM, Lars Kellogg-Stedman wrote: > > I'm running libvirt under Fedora 28. I would like to attach a USB > > device to a VM, but when I select "Redirect USB Device" from the > > "Virtual Machine" menu in virt-manager and then select the device, I > > get the
2015 May 01
1
Re: Limitations of macvtap devices?
On 04/30/2015 11:18 AM, Laine Stump wrote: > On 04/30/2015 10:26 AM, Lars Kellogg-Stedman wrote: >> I am running OpenStack inside a libvirt guest that is connected to the >> local network via a macvtap interface. My experience so far suggests >> that a macvtap interface will not pass traffic with a source MAC >> address other than the MAC address of the interface
2016 Jan 08
2
Re: operation forbidden Read Only Access
Hi, I found an answer : Use virConnectOpenAuth() instead of virConnectOpenReadOnly(). As my piece of code is running silently (without user connected) , by using virConnectOpenAuth() , is it possible to avoid to prompt user to get user /password ? Thx. J.P. -----Message d'origine----- De : libvirt-users-bounces@redhat.com [mailto:libvirt-users-bounces@redhat.com] De la part de
2016 Jan 12
2
vdsm hook issues
Hi, 1) is it enough to add a hook.py in /usr/libexec/vdsm/hooks/before_vm_start directory , and then shut down and reboot a guest to see this hook.py invoked ? 2) when running manually my hook.py, I got following error : ImportError: No module named hooking Do I have to install anything to solve this issue ? Thanks for help. Regards, J.P. Ribeauville P:
2015 Nov 09
2
availability of target type state within a dumpxml result
Hi, I'm trying to find out what is the minimum release I need to use to have this field 'state' available ? <channel type='unix'> <source mode='bind' path='//var/lib/libvirt/qemu/dummy_agent'/> <target type='virtio' name=dummy' state='connected'/> <alias name='channel0'/> <address
2016 Jan 07
3
Unable to retrieve Guest IP Addresses via libvirt API
Hi , Despite the fact that my Guest has an IP address , by running this piece of code on a KVM host : ifaces_count = F_virDomainInterfaceAddresses(domain, &ifaces,VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_LEASE, NULL); ifaces_count = F_virDomainInterfaceAddresses(domain, &ifaces,VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_AGENT, NULL); I'm not able to get a ifaces_count different from
2015 Oct 29
2
How to retrieve legacy cgroups location ?
Hi, As told in "Control Groups Resource Management" libvirt page : Legacy cgroups layout Prior to libvirt 1.0.5, the cgroups layout created by libvirt was different from that described above, and did not allow for administrator customization. Libvirt used a fixed, 3-level hierarchy libvirt/{qemu,lxc}/$VMNAME which was rooted at the point in the hierarchy where libvirtd itself was
2015 Dec 18
1
Getting IP address of a lxc container via libvirt
Hello I wanted to understand if there is a way to get LXC container's ip address. - virDomainInterfaceAddresses API only works for qemu/kvm and not with the lxc driver. What other options do I have? Using enter-lxc-namespace is throwing this error: virsh -c lxc:/// lxc-enter-namespace <domain> --noseclabel /sbin/ifconfig libvirt: error : Expected at least one file descriptor
2015 Nov 04
2
Retrieving datas sent by host within the Guest
Hi, I' trying to read datas sent by my KVM host within the Guest. Host send these datas trough a channel UNIX type , by using AF_UNIX socket stuff. If i try to retrive the datas by using such type of thing in the Guest : #define NAME "/dev/virtio-ports/agent" sock = socket(AF_UNIX, SOCK_STREAM, 0); 12 if (sock < 0) { 13 perror("opening stream socket");
2016 Jan 12
2
Re: libvirt-users Digest, Vol 73, Issue 12 ] Failure when attaching a device
Hi, I think that issue is due to the fact that my Guest is a transient domain. When shutting down it or migrating to another host , then virsh list --all doesn't show this Guest anymore. How may I make this Guest a persistent one ? ( i.e. this Guest has been created via RHEV-M GUI) Thx for hlep. Regards, J.P. -----Message d'origine----- De : libvirt-users-bounces@redhat.com
2015 Sep 24
1
Guest cpuacct counters and others location
Hi, My piece of code ( C langage) uses cgroups to retrieve counters related to cpu and memory usage related to KVM guests hosted by the host where this code runs. I noticed that depending on the O.S. running on the host , these counters are not found at the same location : CentOS 7 : ls /sys/fs/cgroup/cpuacct/machine.slice/machine-qemu\\x2drhel6.0.scope/vcpu0 cgroup.clone_children
2015 Jul 08
2
cpuacct and emulator/cpuacct
Hello, Does it exist some documentation concerning following topic ? What's difference between following perf counters : /cgroup/cpuacct/libvirt/qemu/test/cpuacct.usage and /cgroup/cpuacct/libvirt/qemu/test/emulator/cpuacct.usage Thx . Regards, J.P. Ribeauville P: +33.(0).1.47.17.27.78 Puteaux 3 Etage 5 Bureau 4 jpribeauville@axway.com<mailto:jpribeauville@axway.com>