search for: virdomain

Displaying 20 results from an estimated 43 matches for "virdomain".

2012 May 09
3
creating a domain
hi, i am a bit confused on how to start an inactive domain using the python bindings, any help would be appreciated. (inactive as in the domain was created with?virConnect.defineXML sometime in the past) looks like i have to use virDomain.create, however virDomain.create needs a defined domain xmldesc as a parameter and i am not sure on how to get that i guess if?virConnect.create was happening right after?virConnect.defineXML i could get the return value of?virConnect.defineXML and pass that onto virDomain.create. however, since t...
2012 May 05
1
printing domain information
how do i print the features of a domain from functions that return a domain object? for instance mydomain =?virdomain=libvirt.virConnect.lookupByID(conn,domainid) so mydomain is?virDomainPtr, which is?typedef virDomain * virDomainPtr i am not sure on how to print the domain object features in python, such as name, disk size, etc
2016 Nov 30
2
virDomainBlockInfo for local volume
Hi, I am using virStorageVolGetInfo to get the volume size virStorageVol.download to download a normal file for VDSM project. I want to add support for block devices as well, I was able to see the size via virDomainBlockInfo and download via virDomain.blockPeek which is works fine for both file and block device. 1. Can I depend on virDomainBlockInfo for non block devices? 2. Does the virDomainBlockInfo return the correct physical size for normal file? 3. Performance wise do we have a difference between virSto...
2016 Dec 20
1
Re: virDomainBlockInfo for local volume
...irStorageVol.download to download a > normal file for VDSM project. Normal as in a 'raw' fully allocated file? As opposed to a sparse and/or container (e.g. qcow2) file? > > I want to add support for block devices as well, I was able to see > the size > via virDomainBlockInfo and download via virDomain.blockPeek which is > works > fine for both file and block device. As described in the bz, but for others benefit... While looking into this I found a commit Eric Blake made: http://libvirt.org/git/?p=libvirt.git;a=commit;h=0282ca45a0a4c384226d526d...
2015 Nov 18
2
enabling virtio-scsi-data-plane in libvirt
Can somebody knows how to enable virtio-scsi-data-plane in libvirt for specific domain? I know that i need to replace "-device virtio-scsi-pci" with "-object iothread,id=io1 -device virtio-scsi-pci,iothread=io1" in qemu, but how can i do this in libvirt? -- Vasiliy Tolstov, e-mail: v.tolstov@selfip.ru
2015 Nov 30
2
Re: enabling virtio-scsi-data-plane in libvirt
2015-11-19 16:09 GMT+03:00 John Ferlan <jferlan@redhat.com>: > Check out virsh iothread{info|pin|add|del} and of course the > corresponding virDomain{Add|Pin|Del}IOThread and virDomainGetIOThreadInfo. Yes, thanks! Does in near feature libvirt devs integrate this ability to domain format? As i understand all qemu stable features supported by libvirt. And data plane for virtio-blk is stable for some time.... -- Vasiliy Tolstov, e-mail: v.tolst...
2016 Dec 05
0
Re: virDomainBlockInfo for local volume
..., Shahar Havivi <shavivi at redhat.com> wrote: > Hi, > > I am using virStorageVolGetInfo to get the volume size > virStorageVol.download to download a > normal file for VDSM project. > > I want to add support for block devices as well, I was able to see the size > via virDomainBlockInfo and download via virDomain.blockPeek which is works > fine for both file and block device. > > 1. Can I depend on virDomainBlockInfo for non block devices? > 2. Does the virDomainBlockInfo return the correct physical size for normal > file? > 3. Performance wise do we hav...
2019 Aug 14
2
Libvirt API for attaching volume to domain
Hi, I wanted to know if there is any Python API exposed for libvirt using which I can attach a libvirt volume to a libvirt domain/VM. I intend to do something similar to the `attach-disk` command of virsh using python. -- *Regards,* *Varsha Verma* *Final Year Undergraduate* *Department of Electrical Engineering* *IIT-BHU, Varanasi*
2013 Aug 22
1
Re: QemuAgentCommand API documents
...redhat.com> > To: "Praveen Kumar" <prkumar@redhat.com> > Cc: libvirt-users@redhat.com > Sent: Thursday, August 22, 2013 1:15:54 PM > Subject: Re: [libvirt-users] QemuAgentCommand API documents > > The API you're looking for is the one you've found: > virDomainQemuAgentCommand. As the second argument it accepts qemu guest > agent commands described in [3]. I'd also recommend reading [4]. Thanks for command reference, I am able to figure out that along with libvirt, libvirt_qemu also need to import because it will contain QmenuAgentCommand() funct...
2019 Sep 06
1
could not create snapshotxml on encryption image
...crypted disk, The console gave me the following error: Traceback(most recent call last): File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py",line 4613, in snapshot self._dom,snapshotCreateXML(snapxml, snapFlags) File "/usr/lib/python2.7/site-packages/vdsm/virt/virdomain.py", in line 98, in f ret = attr(*args, **kwargs) File "/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py", line 130, in wrapper ret = f(*args, **kwargs) File "/usr/lib/python2.7/site-packages/vdsm/common/function.py", line 92, in wrapp...
2013 Jul 19
2
How to insert vcpupin in guest xml file
Hi all, I am trying to add vcpupin in the guest xml file. I am working with openstack and the code I have is python bound. I investigated through the code and found that the elemets in xml file are set in get_guest_config function. Now the thing is I am not able to set vcpupin element. I mean I tried guest.cputune_vcpupin but it's not working. Help me out, please! Thanks.   ~Peeyush Gupta
2013 Feb 12
1
Out of Memory Error
...to the hypervisor' sys.exit(1) print 'connected to vbox hypervisor driver' domainInstance = conn.lookupByName('SampleNode') filed = open('/root/testFolder/usbSharedFolder.xml', 'r') config_str = filed.read() libvirt.virDomain.attachDevice(domainInstance, config_str)* When it is executed I am getting an error message saying: *libvir: VirtualBox Driver error : out of memory * * * Even with virsh it is giving the same error. I am using the below command: *attach-device SampleNode /root/testFolder/usbSharedFolder.xml* Can...
2019 Mar 11
2
Re: Obtaining the PID of a domain's QEMU process from C
On Mon, Mar 11, 2019 at 09:33:30AM +0100, Michal Privoznik wrote: > On 3/11/19 9:02 AM, Erik Skultety wrote: > > On Sat, Mar 09, 2019 at 04:32:00PM +0100, Michal Prívozník wrote: > > > On 3/1/19 2:31 AM, Shawn Anastasio wrote: > > > > Hello all, > > > > > > > > I'm currently writing a C program that uses the libvirt API and I need a >
2014 Jul 25
3
[PATCH] launch: Close file descriptors after fork (RHBZ#1123007).
...* Copyright (C) 2013 Red Hat Inc. + * Copyright (C) 2013-2014 Red Hat Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -161,4 +161,18 @@ extern GUESTFS_DLL_PUBLIC int guestfs___add_libvirt_dom (guestfs_h *g, virDomain # define program_name "libguestfs" #endif +/* Close all file descriptors matching the condition. */ +#define close_file_descriptors(cond) do { \ + int max_fd = sysconf (_SC_OPEN_MAX); \ + int fd;...
2015 Nov 19
0
Re: enabling virtio-scsi-data-plane in libvirt
...c domain? > > I know that i need to replace "-device virtio-scsi-pci" with "-object > iothread,id=io1 -device virtio-scsi-pci,iothread=io1" in qemu, but how > can i do this in libvirt? > Check out virsh iothread{info|pin|add|del} and of course the corresponding virDomain{Add|Pin|Del}IOThread and virDomainGetIOThreadInfo. John
2015 Nov 30
0
Re: enabling virtio-scsi-data-plane in libvirt
On 11/30/2015 02:58 AM, Vasiliy Tolstov wrote: > 2015-11-19 16:09 GMT+03:00 John Ferlan <jferlan@redhat.com>: >> Check out virsh iothread{info|pin|add|del} and of course the >> corresponding virDomain{Add|Pin|Del}IOThread and virDomainGetIOThreadInfo. > > > Yes, thanks! Does in near feature libvirt devs integrate this ability > to domain format? As i understand all qemu stable features supported > by libvirt. And data plane for virtio-blk is stable for some time.... > Such...
2019 Jul 03
0
libvirt-python blockPull
Hi Libvirt, Does libvirt-python currently support adding a base path to virDomain.blockPull()? In particular, I would like to have the behavior of the following virsh command (from https://kashyapc.wordpress.com/2013/01/22/live-backup-with-external-disk-snapshots-and-libvirts-blockpull/) in libvirt-python: [image: image.png] Thanks! Sincerely, Roger Jin -------------- next p...
2019 Aug 14
0
Re: Libvirt API for attaching volume to domain
...+0530, Varsha Verma wrote: > Hi, > > I wanted to know if there is any Python API exposed for libvirt using which > I can attach a libvirt volume to a libvirt domain/VM. > > I intend to do something similar to the `attach-disk` command of virsh > using python. virsh uses the virDomainAttachDeviceFlags API in the 'attach-disk' command wrapper. the python bindings expose it as 'attachDeviceFlags' method of the virDomain class.
2019 Aug 14
2
Re: Libvirt API for attaching volume to domain
...> > > I wanted to know if there is any Python API exposed for libvirt using > which > > I can attach a libvirt volume to a libvirt domain/VM. > > > > I intend to do something similar to the `attach-disk` command of virsh > > using python. > > virsh uses the virDomainAttachDeviceFlags API in the 'attach-disk' > command wrapper. the python bindings expose it as 'attachDeviceFlags' > method of the virDomain class. > -- *Regards,* *Varsha Verma* *Third Year Undergraduate* *Department of Electrical Engineering* *IIT-BHU, Varanasi*
2011 Jan 03
1
availability of snapshots functionality via Python bindings
...he programs for the libvirt library ii libvirt0 0.4.6-10+lenny1 library for interfacing with different virtualization systems ii python-libvirt 0.4.6-10+lenny1 libvirt Python bindings I don't see anything like snapshots available via libvirt.virDomain: >>> dir(dom0) ['ID', 'OSType', 'UUID', 'UUIDString', 'XMLDesc', '__del__', '__doc__', '__init__', '__module__', '_conn', '_o', 'attachDevice', 'autostart', 'blockPeek', 'bl...