Displaying 18 results from an estimated 18 matches for "uuidstr".
Did you mean:
uuid_str
2016 Nov 16
0
[PATCH 2/2] libvirt: read secrets of disks (RHBZ#1392798)
...xpathCtx);
+ xpsecretusage = xmlXPathEvalExpression (BAD_CAST "./auth/secret/@usage",
+ xpathCtx);
+ if (!xPathObjectIsEmpty (xpsecretuuid)) {
+ CLEANUP_FREE char *uuidstr = NULL;
+ virSecretPtr sec;
+
+ uuidstr = xPathObjectGetString (doc, xpsecretuuid);
+ debug (g, "disk[%zu]: secret type: %s; UUID: %s",
+ i, typestr, uuidstr);
+ sec = virSecretLookupByUUIDString (conn, uuidstr);
+ i...
2016 Nov 16
3
[PATCH 1/2] libvirt: un-duplicate XPath code
Move the checks for empty xmlXPathObjectPtr, and for extracting the
result string out of it, to a new helper functions.
This is just code motion, there should be no behaviour changes.
---
src/libvirt-domain.c | 122 +++++++++++++++++++++------------------------------
1 file changed, 50 insertions(+), 72 deletions(-)
diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
index 4d4142d..baab307
2012 Aug 24
0
Bug#666135: [PATCH] xen-xs: fix uuid of renamed domain
...115,8 +1115,11 @@ int xenStoreDomainGetUUID(virConnectPtr conn,
snprintf(prop, 199, "/local/domain/%d/vm", id);
prop[199] = 0;
/* This will return something like
- * /vm/00000000-0000-0000-0000-000000000000 */
+ * /vm/00000000-0000-0000-0000-000000000000[-*] */
uuidstr = xs_read(priv->xshandle, 0, prop, &len);
+ /* Strip optional version suffix when VM was renamed */
+ if (len > 40) /* strlen('/vm/') + VIR_UUID_STRING_BUFLEN - sizeof('\0') */
+ uuidstr[40] = '\0';
/* remove "/vm/" */
ret = virUU...
2012 May 08
2
creation of storage volume fails
...agePoolLookupByName(conn,'poolname')
#now try to create the volume using the above storage pool object
libvirt.virStoragePool.CreateXML(storagepoolobject,xmldesc,0)
from python:
-bash-4.1$ python
>>> import libvirt
>>> dir(libvirt.virStoragePool)
['UUID', 'UUIDString', 'XMLDesc', '__del__', '__doc__', '__init__', '__module__', 'autostart', 'build', 'connect', 'create', 'createXML', 'createXMLFrom', 'delete', 'destroy', 'info', 'isActive'...
2012 Jun 20
1
update virDomainDef with xml config
...struct qemud_driver *driver = dom->conn->privateData;
virDomainObjPtr vm;
virDomainDefPtr persistentDef = NULL;
int ret = -1;
qemuDriverLock(driver);
vm = virDomainFindByUUID(&driver->domains, dom->uuid);
qemuDriverUnlock(driver);
if (!vm) {
char uuidstr[VIR_UUID_STRING_BUFLEN];
virUUIDFormat(dom->uuid, uuidstr);
qemuReportError(VIR_ERR_NO_DOMAIN,
_("no domain with matching uuid '%s'"), uuidstr);
goto cleanup;
}
if (qemuDomainObjBeginJob(driver, vm, QEMU_JOB_MODIFY) < 0)
goto cleanup;
if (!vm->pers...
2011 Apr 14
1
Where actually is the callback triggered?
Hi all,
Quick question:
When the hypervisor triggers a callback which is registered for generic
events, (assuming I'm connected through qemu+tcp) where exactly is the
callback triggered? On the hypervisor host or on my host?
Regards
Kadir
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Apr 21
7
[PATCHv11 0/6] libvirt/qemu - persistent modification of devices
Here is v11. Fixed comments/bugs and updated against the latest libvirt.git.
Changes v10->v11:
- fixed comments on each patches
- fixed cgroup handling in patch 3.
- fixed MODIFY_CURRENT handling in patch 4.
most of diff comes from refactoring qemu/qemu_driver.c
--
conf/domain_conf.c | 40 ++
conf/domain_conf.h | 5
libvirt_private.syms | 3
qemu/qemu_driver.c | 727
2011 Jan 03
1
availability of snapshots functionality via Python bindings
...ny1
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', 'blockStats', 'connect', 'coreDump', 'create', 'destroy...
2011 Feb 14
1
Use libvirt-python to attach cdrom
Hi all,
I want to attach cdrom by libvirt.py .But can't find a func in
libvirt.py can finish this work.
Who can help me ?
Regard
--
Seven Ling
E-mail: jiejie.ling at qq.com
2010 Jun 17
4
[PATCH] Improve support for exporting btrfs subvolumes.
...+ uuid = NULL;
break;
+ }
+ }
blkid_tag_iterate_end(iter);
- return val;
+ return uuid;
}
#else
#define get_uuid_blkdev(path) (NULL)
#endif
-int get_uuid(char *path, char *uuid, int uuidlen, char *u)
+int get_uuid(const char *val, int uuidlen, char *u)
{
/* extract hex digits from uuidstr and compose a uuid
* of the given length (max 16), xoring bytes to make
- * a smaller uuid. Then compare with uuid
+ * a smaller uuid.
*/
int i = 0;
- const char *val = NULL;
- char fsid_val[17];
-
- if (path) {
- val = get_uuid_blkdev(path);
- if (!val) {
- struct statfs64 st;
-
-...
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
2009 Jul 31
2
RFC: This patch is not being submitted for ACK...
...just looking for some feedback on the direction I'm going.
The code won't get all the way to the define stage since I'm in
the middle of retrofitting it to use virtinst instead of a home
spun node definition.
2017 Apr 04
1
[PATCH] Use Unicode single quotes ‘’ in place of short single quoted strings throughout.
...Error ();
- error (g, _("no libvirt domain called '%s': %s"),
+ error (g, _("no libvirt domain called ‘%s’: %s"),
domain_name, err->message);
goto cleanup;
}
@@ -614,7 +614,7 @@ for_each_disk (guestfs_h *g,
sec = virSecretLookupByUUIDString (conn, uuidstr);
if (sec == NULL) {
err = virGetLastError ();
- error (g, _("no secret with UUID '%s': %s"),
+ error (g, _("no secret with UUID ‘%s’: %s"),
uuidstr, err ? err->message : &qu...
2009 Aug 31
1
Fixed patch...
This version of the patch includes feedback from jboggs at redhat.com,
including fixes to the BuildRequires and Requires in the spec file.
2009 Sep 11
1
Text-based node administration tool
This patch obsoletes any previous ones. This is an upstream candidate,
so I'm looking for feedback so we can push this and start using it.
2009 Sep 14
1
Bugfixes...
This version fixes a few bugs found by jboggs. It also includes some
logging facilities that need to be fleshed out more.
2009 Sep 16
1
Final push candidate for nodeadmin tool...
This patch is ready for pushing upstream.
2009 Sep 16
1
Replacement that includes utils.py
The previous patch was missing this file. Resending.