Displaying 20 results from an estimated 500 matches similar to: "storage-pools and volumes"
2014 Mar 12
2
libvirtError: this function is not supported by the connection driver: virInterfaceDefineXML
Hi,
Could anyone help I'm getting the following error when I tried to add a new
network interface.
DETAILS
Connection
---------------------------
import libvirt
conn = libvirt.open('qemu:///system')
Interface XML
----------------------
<interface type="bridge" name="br0">
<start mode="onboot"/>
<mtu size="1500"/>
2014 Mar 12
0
Re: [libvirt] libvirtError: this function is not supported by the connection driver: virInterfaceDefineXML
On 12.03.2014 14:41, Sijo Jose wrote:
>
>
>
> Hi,
> Could anyone help I'm getting the following error when I tried to add a
> new network interface.
>
> DETAILS
>
>
> Connection
> ---------------------------
> import libvirt
> conn = libvirt.open('qemu:///system')
>
> Interface XML
> ----------------------
>
> <interface
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
2012 May 08
2
creation of storage volume fails
hi,
i am getting this error below when i try to create a storage volume:
? ? libvirt.virStoragePool.CreateXML(storagepoolobject,xmldesc,0)
AttributeError: class virStoragePool has no attribute 'CreateXML'
my code is:
xmldesc="xml description of storage volume which i got from sudo virsh vol-dumpxml"
#get a storage pool object to use in creating a volume
2015 Dec 01
1
Why does libvirt insert USB controller automagically?
Hello all,
I find this curious behavior that libvirt will automatically insert a USB controller and a memballoon virtio driver into the domain's XML, when defineXML is called. IOW, the original XML did not have these 2 devices but they are present right after defineXML is called. Why should libvirt add a USB controller?
DETAILS:
Here is a little Python snippet to show that behavior:
2015 Dec 01
0
Re: Why does libvirt insert USB controller automagically?
On 11/30/2015 07:30 PM, Sundar Nadathur wrote:
> Hello all,
>
> I find this curious behavior that libvirt will automatically insert a USB
> controller and a memballoon virtio driver into the domain?s XML, when
> defineXML is called. IOW, the original XML did not have these 2 devices but
> they are present right after defineXML is called. Why should libvirt add a USB
>
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
2016 Dec 05
0
Re: virDomainBlockInfo for local volume
Ping
On Wed, Nov 30, 2016 at 3:13 PM, 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
2014 Aug 15
1
virt-manager and libvirt-python
Hello! I'm trying to work with virt-manager but getting SIGTRAP signal.
It is done with gdb under MinGW32 on Windows 7 64-bit. I have Python 2.7.8. 32-bit.
As I can see from backtrace ( http://pastebin.com/JhN6XgYb ), there is something wrong with libvirtmod.pyd.
Also I couldn't find how to solve " typelib for AppIndicator3" error.
So I try to debug libvirt-python. For doing
2012 Jul 10
1
Issue with getCPUStats and getMemoryStats
Hi,
I am facing issue with the calls getCPUStats and getMemoryStats. Please
find the error below.
AttributeError: 'module' object has no attribute
'VIR_NODE_CPU_STATS_ALL_CPUS'
>>> print con.getCPUStats(2, None, 0, 0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
2016 Dec 20
1
Re: virDomainBlockInfo for local volume
On 12/05/2016 05:27 AM, Shahar Havivi wrote:
> Ping
>
Sorry for the delay... Lots of investigation, patches, and other work.
> On Wed, Nov 30, 2016 at 3:13 PM, Shahar Havivi <shavivi@redhat.com
> <mailto:shavivi@redhat.com>> wrote:
>
> Hi,
>
> I am using virStorageVolGetInfo to get the volume size
> virStorageVol.download to download a
>
2013 Sep 09
0
Re: How to insert vcpupin in guest xml file
On 07/19/2013 04:51 PM, Peeyush Gupta wrote:
> 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
2013 Sep 27
0
libvirt+python on windows support
Hi Guys!
Recently , I am searching way to run libvirt-python on windows , and
using the python api just like in linux .
But I found that ,libvirt-python can only run in cygwin environment .
In windows environment , when I input "import libvirt"
It indicates *ImportError: DLL load failed:*
*
*
* it seemed something wrong when importing libvirtmod*
*
*
* *the
2015 Oct 30
2
Creating network interfaces with specific name in LXC
Hello
I am trying to create interfaces within an LXC container with specific
name. I am using the following XML:
<interface type='network' name='blah'>
<source network='dpbr_n_0'/>
</interface>
This doesn't seem to work; it always ends up creating interface with name
as "eth0".
I found some examples here:
2012 Nov 12
1
where is libvirt-python document??
Hi libvirt users:
Who can tell me where is the fucking doc?
I want to use libvirt-python in my project.But I can't found the doc.
I only found "TBD" in
http://libvirt.org/guide/html/Application_Development_Guide-Language_Bindings.html
Did I miss something?
Thanks.
--
???: http://www.xuanmingyi.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2015 Apr 21
1
Libvirt disk API
Hi all:
I am studying Libvirt API , I am wondering the API about the disk
manage is TBD(to be difine). The edition is
libvirt 0.7.5 ,but the edition is too old ,The website is
http://libvirt.org/guide/html/Application_Development_Guide-Introduction.html
So, if I want to manage the VM disk , for example read the disk, what
should I do ?
2014 May 06
2
libvirt 1.2.4 and virt-manager 0.9.0 are not incompatible
Hello everyone
I encountered a problem when I completed the update of libvirt from 0.10 to 1.2.4 .
The problem was that virt-manager(version 0.9.0) could not start and reported error : "ImportError: /usr/lib64/libvirt.so.0: version 'LIBVIRT_PRIVIATE_0.10.2' not found (required by /usr/lib64/python2.6/site-packages/libvirtmod.so)".
I found the libvirt.so.0 link
2007 Dec 21
0
[kvm-devel] [Virtio-for-kvm] [PATCH 1/13] [Mostly resend] virtio additions
From 5d85cee1fb14608b79b5b6103d8be2d90bb76ca4 Mon Sep 17 00:00:00 2001
From: Anthony Liguori <aliguori@us.ibm.com>
Date: Mon, 12 Nov 2007 21:30:26 -0600
Subject: [PATCH] virtio: simplify config mechanism.
Previously we used a type/len pair within the config space, but this
seems overkill. We now simply define a structure which represents the
layout in the config space: the config space can
2007 Dec 21
0
[kvm-devel] [Virtio-for-kvm] [PATCH 1/13] [Mostly resend] virtio additions
From 5d85cee1fb14608b79b5b6103d8be2d90bb76ca4 Mon Sep 17 00:00:00 2001
From: Anthony Liguori <aliguori@us.ibm.com>
Date: Mon, 12 Nov 2007 21:30:26 -0600
Subject: [PATCH] virtio: simplify config mechanism.
Previously we used a type/len pair within the config space, but this
seems overkill. We now simply define a structure which represents the
layout in the config space: the config space can
2016 Jan 08
2
remove cdrom after installing os on a guest
Hi all,
I have the following issue, and I hope someone know a way to handle it.
I need to grammatically need to create/install a guest OS using the
libvirt API.
Currently what I do:
1. create a xml with the vm configuration (this will include a path to the
iso image)
2. connection.defineXML(<my_config>)
3. vm = connection.lookupByName(<domain_name>)
4. vm.create()
This will