[libvirt] Network not Persistent
by Shradha Shah
Hello All,
I am currently working on patches for PCI-passthrough of SRIOV VF's and I am facing an issue with the network definition not being persistent.
I am using a new forward mode = hostdev and the network xml is as follows:
<network>
<name>pci-passthrough-network</name>
<uuid>81ff0d90-c91e-6742-64da-4a736edb9a8f</uuid>
<forward mode="hostdev">
<pf dev="eth2"/>
</forward>
</network>
Command line used is:
# virsh net-define pci_passthrough_network.xml
The network is defined successfully and I can use it at this point.
But if I restart libvirt after defining the above network, I lose the network definition.
After restart libvirt does not possess any knowledge of the above network.
This does not happen when I use forward mode="bridge".
I have cross referenced the function call path of networkDefine for both the forwarding modes and I can't seem to find the problem.
Is there some function I am missing?
May I ask for your help to solve this issue?
Many Thanks,
Regards,
Shradha Shah
12 years, 10 months
[libvirt] [PATCH] lib: Fix function documentation for virConnectListDomains
by Peter Krempa
Clarify the documentation of virConnectListDomains.
---
src/libvirt.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libvirt.c b/src/libvirt.c
index a55d823..6294196 100644
--- a/src/libvirt.c
+++ b/src/libvirt.c
@@ -1818,23 +1818,23 @@ error:
virDispatchError(conn);
return -1;
}
/**
* virConnectListDomains:
* @conn: pointer to the hypervisor connection
* @ids: array to collect the list of IDs of active domains
* @maxids: size of @ids
*
- * Collect the list of active domains, and store their ID in @maxids
+ * Collect the list of active domains, and store their IDs in array @ids
*
- * Returns the number of domain found or -1 in case of error
+ * Returns the number of domains found or -1 in case of error
*/
int
virConnectListDomains(virConnectPtr conn, int *ids, int maxids)
{
VIR_DEBUG("conn=%p, ids=%p, maxids=%d", conn, ids, maxids);
virResetLastError();
if (!VIR_IS_CONNECT(conn)) {
virLibConnError(VIR_ERR_INVALID_CONN, __FUNCTION__);
--
1.7.3.4
12 years, 10 months
[libvirt] [PATCH] virsh: Fix docs for list command
by Peter Krempa
Commit fad5cd210899dfde4afe36712754dc921c3f3051 introduced option to
display domain's title in the list command output. There was a mistake
in the virsh man page example for this command stating --note instead of
--title.
---
Pushed under trivial rule.
tools/virsh.pod | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/virsh.pod b/tools/virsh.pod
index 6730b8b..0d5a41d 100644
--- a/tools/virsh.pod
+++ b/tools/virsh.pod
@@ -353,7 +353,7 @@ instead show as B<saved> in the listing.
If I<--title> is specified, then the domain note is printed. The output then
the output looks as follows.
-B<virsh> list --note
+B<virsh> list --title
Id Name State Title
-----------------------------------------------
0 Domain-0 running Mailserver 1
--
1.7.3.4
12 years, 10 months
[libvirt] [PATCH] daemon: Plug memory leak on remoteDispatchAuthList
by Alex Jia
Detected by valgrind. Leak is introuduced in commit fcdfa31.
* daemon/remote.c (remoteDispatchAuthList): fix memory leak on failure path.
* Actual result
==26844== 150,592 bytes in 9,602 blocks are definitely lost in loss record 735 of 738
==26844== at 0x4A05FDE: malloc (vg_replace_malloc.c:236)
==26844== by 0x36AEAFEDE7: __vasprintf_chk (in /lib64/libc-2.12.so)
==26844== by 0x36C3A59B03: virVasprintf (stdio2.h:199)
==26844== by 0x36C3A59BA7: virAsprintf (util.c:1827)
==26844== by 0x4335F5: remoteDispatchAuthListHelper (remote.c:2054)
==26844== by 0x36C3B10394: virNetServerProgramDispatch (virnetserverprogram.c:416)
==26844== by 0x36C3B11620: virNetServerHandleJob (virnetserver.c:164)
==26844== by 0x36C3A57AAB: virThreadPoolWorker (threadpool.c:144)
==26844== by 0x36C3A573C8: virThreadHelper (threads-pthread.c:161)
==26844== by 0x36AEE077F0: start_thread (in /lib64/libpthread-2.12.so)
==26844== by 0x36AEAE570C: clone (in /lib64/libc-2.12.so)
Notes, the test is in a loop, so you will see a quite big leaks.
Signed-off-by: Alex Jia <ajia(a)redhat.com>
---
daemon/remote.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/daemon/remote.c b/daemon/remote.c
index 74a5f16..9018c15 100644
--- a/daemon/remote.c
+++ b/daemon/remote.c
@@ -2054,6 +2054,7 @@ remoteDispatchAuthList(virNetServerPtr server ATTRIBUTE_UNUSED,
if (virAsprintf(&ident, "pid:%lld,uid:%d",
(long long) callerPid, callerUid) < 0) {
virReportOOMError();
+ VIR_FREE(ident);
goto cleanup;
}
VIR_INFO("Bypass polkit auth for privileged client %s", ident);
--
1.7.1
12 years, 10 months
[libvirt] Release of libvirt-0.9.10
by Daniel Veillard
As planned I made the release yesterday, it is tagged in git and
available at:
ftp://libvirt.org/libvirt/
both as tarball and signed rpms for Fedora 16.
This is again a relatively large release with close to 300 commits,
and we got a significant number of added feature in the last month,
along with the usual improvement and bug fixes:
Features:
- Add support for sVirt in the LXC driver (Daniel P. Berrange)
- block rebase: add new API virDomainBlockRebase (Eric Blake)
- API: Add api to set and get domain metadata (Peter Krempa)
- virDomainGetDiskErrors public API (Jiri Denemark)
- conf: add rawio attribute to disk element of domain XML (Taku Izumi)
- Add new public API virDomainGetCPUStats() (KAMEZAWA Hiroyuki)
- Introduce virDomainPMSuspendForDuration API (Michal Privoznik)
- resize: add virStorageVolResize() API (Zeeshan Ali (Khattak))
- Add a virt-host-validate command to sanity check HV config (Daniel P. Berrange)
- Add new virDomainShutdownFlags API (Daniel P. Berrange)
- QEMU guest agent support (Daniel P. Berrange)
Documentation:
- fix typo in python bindings (Eric Blake)
- conf: small changes to comments in virDomainDeviceInfo (Laine Stump)
- Clarify the purpose of domxml-from-native (Dave Allan)
- Enhance documentation of the old-style boot configuration (Jiri Denemark)
- virterror.c: Fix several spelling mistakes (Philipp Hahn)
- Add detail to documentation on storage pools and volumes. (Dave Allan)
- fill out rawio description (Laine Stump)
- XenXs: Update documentation (Philipp Hahn)
- reorder public header (Eric Blake)
- tweak recent suspend API additions (Eric Blake)
- Add missing docs for <viridian/> feature flag (Daniel P. Berrange)
- fix virsh man page (Eric Blake)
- fix a few small typos in formatdomain.html.in (Laine Stump)
- src/datatypes.h: fix typo (Alon Levy)
- Clarify semantics of virDomainMigrate{,ToURI}2 (Jiri Denemark)
- Add missed RNG schema for interface (Osier Yang)
- Add documentation new ways to access members of variables (Stefan Berger)
- virsh: improve doMigrate function docs (Alex Jia)
- standardize description of flags (Eric Blake)
- Document Android application using libvirt (Michal Privoznik)
Portability:
- virpidfile: replace fopen/fwrite/fscanf with more portable version (Marc-André Lureau)
- util: Do not use PRIx64 macro (Osier Yang)
- Replace truncate() with ftruncate() (Daniel P. Berrange)
- build: avoid gcc 4.7 warning about inlines (Eric Blake)
- lxc: Fix build with AppArmor (Jiri Denemark)
- Update gnulib to fix mingw64 compilation errors (Marc-André Lureau)
- tests: virnettlscontexttest needs gnutls-2.6.0 (Philipp Hahn)
- qemu: Silent bogus warning about unitialized variable (Jiri Denemark)
- build: fix text regression (Eric Blake)
- Add virt-host-validate.1 to Mingw32 RPM spec file list (Daniel P. Berrange)
- build: fix missing include (Eric Blake)
- qemu: support qmp on RHEL/CentOS qemu (Eric Blake)
- util: Include stdint.h because of uint32_t (Michal Privoznik)
- Cast pointer to int using intptr_t (Marc-André Lureau)
- build: fix header order on mingw (Eric Blake)
- errcode is typedef by mingw, rename an argument name (Marc-André Lureau)
- Add missing virGetGroupName() (Marc-André Lureau)
- build: skip lxc with too-old glibc (Eric Blake)
- Remove dmidecode dependancy outside PC arches (Daniel Veillard)
- build: fix bootstrap on fresh clone (Eric Blake)
- tests: Add qemuxml2argv tests for PPC64 pseries machine (Michael Ellerman)
- tests: Teach qemuxml2argvtest about spapr-vio addresses (Michael Ellerman)
- Disable netcf if building without libvirtd (Daniel P. Berrange)
- build: fix build on mingw with netcf available (Eric Blake)
- build: avoid spurious compiler warning (Eric Blake)
Bug Fixes:
- rpc: Plug memory leaks on doRemoteOpen() failure path (Alex Jia)
- GetCPUStats: fix overflow test (Lai Jiangshan)
- python: Correct arguments number for migrateSetMaxSpeed (Osier Yang)
- qemu: fix persistent setting of blkiodevice weights (Eric Blake)
- qemu: Fix memory leak when building -cpu argument (Jiri Denemark)
- security: Driver 'none' cannot create confined guests (Jiri Denemark)
- seclabel: Do not output relabel attribute for type 'none' (Jiri Denemark)
- virsh: Plug memory leak on cmdDesc (Alex Jia)
- virsh: Do not check the input XML at virsh layer for cmdDetachDevice (Osier Yang)
- On systems with dmidecode version 2.10 or older, (Prerna Saxena)
- storage: Don't unsparsify images when cloning (Cole Robinson)
- build: don't require avahi during install (Laine Stump)
- pyhton: Don't link against libvirt_util.la (Michal Privoznik)
- xen-xm: SIGSEGV in xenXMDomainDefineXML: filename (Philipp Hahn)
- xen-xm: fix data loss in domain edit (Philipp Hahn)
- virsh: Fix resource leak while listing inactive domains with titles (Peter Krempa)
- xen_xm: Fix SIGSEGV in xenXMDomainDefineXML (Philipp Hahn)
- qemu: Fix seamless spice migration (Jiri Denemark)
- apparmor: Add missing comma (Jiri Denemark)
- virsh: Avoid invalid read of size errors (Alex Jia)
- qemu: eliminate "Ignoring open failure" when using root-squash NFS (Laine Stump)
- conf: Plug memory on virDomainDiskDefParseXML (Alex Jia)
- virsh: Plug memory leak on cmdUndefine (Alex Jia)
- network: fix testsuite regression (Eric Blake)
- network: Avoid memory leaks on networkBuildDnsmasqArgv (Alex Jia)
- python: correct a copy-paste error (Alex Jia)
- qemu: Don't jump to endjob if no job was even started (Michal Privoznik)
- qemu: fix my typo at commit 74e034964c32edb1732d0ff7642f3977f3587d72 (Taku Izumi)
- qemu: Fix segfault in qemuMonitorTextGetBlockInfo (Hendrik Schwartke)
- tests: fix reversed comparisons (Eric Blake)
- qemu: avoid double free of qemu help output (Eric Blake)
- apparmor: Fix use of uninitialized random_data (Jiri Denemark)
- storage: Fix any VolLookupByPath if we have an empty logical pool (Cole Robinson)
- Don't bind mount onto a char device for /dev/ptmx in LXC (Daniel P. Berrange)
- xen: Don't crash when we fail to init caps (Guido Günther)
- xen: properly report out of memory when hvm_type is too small (Guido Günther)
- threads: check for failure to set thread-local value (Eric Blake)
- Fix rpc generator to anchor matches for method names (Daniel P. Berrange)
- Fix startup of LXC containers with filesystems containing symlinks (Daniel P. Berrange)
- qemu: Prohibit reattaching node device if it is in use (Osier Yang)
- qemu: Don't break domain with 0:0:2.0 assigned to anything but VGA (Jiri Denemark)
- Fixed dumpxml of <iotune> parameters (Martin Kletzander)
- nwfilter: fix typing error in filter (Stefan Berger)
- events: Return the correct number of registered events (Adam Litke)
- uuid: fix off-by-one (Eric Blake)
- build: fix virsh reformat fallout (Eric Blake)
- stream: Check for stream EOF (Michal Privoznik)
- Do not generate security_model when fs driver is anything but 'path' (Deepak C Shetty)
- qemu: check for kvm availability before starting kvm guests (Laine Stump)
- qemu: fix a typo on qemuDomainSetBlkioParameters (Alex Jia)
- config: report error when script given for inappropriate interface type (Laine Stump)
Improvements:
- python: make other APIs share common {get, set}PyVirTypedParameter (Guannan Ren)
- npiv: Auto-generate WWN if it's not specified (Osier Yang)
- Remove single quotes from audit records (Marcelo Cerri)
- domain: add implicit USB controller (Marc-André Lureau)
- python: refactoring virTypedParameter conversion for NUMA tuning APIs (Guannan Ren)
- qemu: make blkiodevice weights easier to read (Eric Blake)
- sysinfo: simplify function signature (Eric Blake)
- Populate /dev/std{in,out,err} symlinks in LXC containers (Daniel P. Berrange)
- Update symbols file for virFileDirectFd/virFileWrapperFd rename (Daniel P. Berrange)
- virsh: Fix flag semantics and docs for "desc" command (Peter Krempa)
- qemu: Always use iohelper for domain save (Jiri Denemark)
- qemu: Always use iohelper for dumping domain core (Jiri Denemark)
- util: Generalize virFileDirectFd (Jiri Denemark)
- Allow polkit auth for VNC and SSH users (Cole Robinson)
- seclabel: make code and RNG match (Eric Blake)
- maint: Add test output files to .gitignore (Peter Krempa)
- tests: Fix build with -Werror (Jiri Denemark)
- maint: consolidate several .gitignore files (Eric Blake)
- util: refactor virFileOpenAs (Laine Stump)
- util: rename netlink.[ch] to virnetlink.[ch] (D. Herrendoerfer)
- virsh: add --graceful switch to destroy command (Laine Stump)
- qemu: new GRACEFUL flag for virDomainDestroy w/ QEMU support (Laine Stump)
- Added missing memory reporting into python bindings (Martin Kletzander)
- python: use libvirt_util to avoid raw free (Eric Blake)
- build: expand rule to cover testsuite (Eric Blake)
- build: prohibit raw malloc and free (Eric Blake)
- build: clean up CPPFLAGS/INCLUDES usage (Eric Blake)
- command: allow merging stdout and stderr in string capture (Eric Blake)
- maint: prune duplicate listings in AUTHORS (Eric Blake)
- virsh: extension of virsh attach-disk for rawio (Taku Izumi)
- Fixed connection definition for non-SELinux builds (Martin Kletzander)
- Added RSS reporting (Martin Kletzander)
- Added RSS information gathering into qemudGetProcessInfo (Martin Kletzander)
- Set a security context on /dev and /dev/pts mounts (Daniel P. Berrange)
- Add two new security label types (Daniel P. Berrange)
- Re-add domain device seclabel parsing / formatting (Daniel P. Berrange)
- Revert changes to sec label parsing (Daniel P. Berrange)
- tests: dynamically replace dnsmasq path (Philipp Hahn)
- xen_xs: name xendConfigVersion magic numbers (Philipp Hahn)
- block rebase: initial qemu implementation (Eric Blake)
- block rebase: wire up remote protocol (Eric Blake)
- qemu: Add support for virDomainGetMetadata and virDomainSetMetadata (Peter Krempa)
- virsh: Add support for modifying domain description and titles (Peter Krempa)
- xml: Add element <title> to allow short description of domains (Peter Krempa)
- build: add missing virStorageFileResize to libvirt_private.syms (Laine Stump)
- build: add missing virCommandAddCap to libvirt_private.syms (Laine Stump)
- daemon: Allow overriding NOFILES ulimit for the daemon as well (Michal Privoznik)
- python: Add binding for virDomainGetDiskErrors (Jiri Denemark)
- virsh: Implement domblkerror command (Jiri Denemark)
- qemu: Implement virDomainGetDiskErrors (Jiri Denemark)
- Remote protocol for virDomainGetDiskErrors (Jiri Denemark)
- command: Fix ATTRIBUTE_UNUSED on virSetCapabilities (Michal Privoznik)
- simplify block of codes (Alex Jia)
- qemu: make qemu processes to retain rawio capability (Taku Izumi)
- util: extend virExecWithHook() (Taku Izumi)
- util: add functions to keep capabilities (Taku Izumi)
- Implement virStorageVolResize() for FS backend (Zeeshan Ali (Khattak))
- resize: slightly alter signature (Eric Blake)
- qemu: add "romfile" support to specify device boot ROM (Laine Stump)
- qemu: (and conf) support rombar for network devices (Laine Stump)
- conf: relocate rombar and boot order parse/format (Laine Stump)
- conf: put all guest-related HostdevDef data in one object (Laine Stump)
- xen: Don't add <console> to xml for dom0 (Cole Robinson)
- remote handler for virDomainGetCPUStats() (KAMEZAWA Hiroyuki)
- virsh: Expose new virDomainPMSuspendForDuration API (Michal Privoznik)
- resize: implement remote protocol for virStorageVolResize() (Zeeshan Ali (Khattak))
- Return more error output if policykit auth fails. (Cole Robinson)
- Add new error code VIR_ERROR_AUTH_CANCELLED (Cole Robinson)
- Move virEmitXMLWarning into xml.h (Daniel P. Berrange)
- Move virMacAddrXXX functions to src/util/virmacaddr.[ch] (Daniel P. Berrange)
- Rename virXXXXMacAddr to virMacAddrXXX (Daniel P. Berrange)
- qemu: parse and create -cpu ...,-kvmclock (Paolo Bonzini)
- conf: add kvmclock timer (Paolo Bonzini)
- qemu: do not create useless <cpu> element (Paolo Bonzini)
- qemu: get arch name from <cpu> element (Paolo Bonzini)
- qemu: detect arch correctly for KVM (Paolo Bonzini)
- x86: add kvm32 and kvm64, update qemu64 (Paolo Bonzini)
- qemu: parse -enable-kvm (Paolo Bonzini)
- qemu: require qmp on new enough qemu (Eric Blake)
- nwfilter: Rebuild filters only if new filter is different than current (Stefan Berger)
- nwfilter: Force instantiation of filters upon driver reload (Stefan Berger)
- qemu: Refactor qemuMonitorGetBlockInfo (Jiri Denemark)
- Update VIRT_CONTROL audit record with pid. (Marcelo Cerri)
- build: allow for 64-bit pid in daemon (Eric Blake)
- daemon: convert virRun to virCommand (Eric Blake)
- hash: minor touchups (Eric Blake)
- Replace hashing algorithm with murmurhash (Daniel P. Berrange)
- Rename hash.h and hash.c to virhash.h and virhash.c (Daniel P. Berrange)
- Convert various virHash functions to use size_t / uint32 (Daniel P. Berrange)
- Introduce new API for generating random numbers (Daniel P. Berrange)
- schema: Relax schema for domain name (Peter Krempa)
- storage: Support different wiping algorithms (Michal Privoznik)
- lxc: export container=lxc-libvirt for systemd (Eric Blake)
- Add virFileTouch for creating empty files (Daniel P. Berrange)
- virsh: Expose new VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE flag (Michal Privoznik)
- snapshots: Introduce VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE flag (Michal Privoznik)
- qemu_agent: Create file system freeze and thaw functions (Michal Privoznik)
- qemu: Emit bootindex even for direct boot (Jiri Denemark)
- metadata: group metadata next to description (Eric Blake)
- build: simplify xmlFreeNode usage (Eric Blake)
- Allow custom metadata in domain configuration XML (Zeeshan Ali (Khattak))
- virCommandProcessIO(): make poll() usage more robust (Laszlo Ersek)
- Allow choice of shutdown method via virsh (Daniel P. Berrange)
- Wire up QEMU agent to reboot/shutdown APIs (Daniel P. Berrange)
- hashtest: Initialize variable in virHashEqual test (Michal Privoznik)
- Add test case for virHashEqual function (Stefan Berger)
- Compare two hash tables for equality (Stefan Berger)
- virsh: let domif-{get,set}link take target name (Taku Izumi)
- maint: cleanup qemu capabilities (Eric Blake)
- maint: enforce use of _LAST marker (Eric Blake)
- API: make declaration of _LAST enum values conditional (Eric Blake)
- error: drop old-style error reporting (Eric Blake)
- util: use new virTypedParameter helpers (Eric Blake)
- util: add new file for virTypedParameter utils (Eric Blake)
- lxc: use live/config helper (Eric Blake)
- build: silence some compiler warnings from gnulib (Eric Blake)
- Rename APIs for fetching UNIX socket credentials (Daniel P. Berrange)
- Add virGetGroupName to convert from GID to group name (Daniel P. Berrange)
- Remove duplicate call to virNetSASLSessionGetIdentity (Daniel P. Berrange)
- Also retrieve GID from SO_PEERCRED (Daniel P. Berrange)
- Added capability checking for block <iotune> setting. (Martin Kletzander)
- qemu: Introduce inactive PCI device list (Osier Yang)
- Permission change for systemtap examples. (Martin Kletzander)
- Add new attribute wrpolicy to <driver> element (Deepak C Shetty)
- tests: avoid dirname in tests (Eric Blake)
- qemu: Add support for host CPU modes (Jiri Denemark)
- Taint domains configured with cpu mode=host-passthrough (Jiri Denemark)
- cpu: Update guest CPU in host-* mode (Jiri Denemark)
- Add support for cpu mode attribute (Jiri Denemark)
- cpu: Optionally forbid fallback CPU models (Jiri Denemark)
- tests: Print XML file name in verbose CPU test (Jiri Denemark)
- docs: Expose alias tag in domain RNG schema (Osier Yang)
- docs: Add readonly to filesystem RNG schema (Osier Yang)
- conf: Remove do-nothing validation functions (Michael Ellerman)
- Make drive unit attribute optional in the XML schema (Michael Ellerman)
- virsh domiflist: change output (Taku Izumi)
- export virNetDevGetVirtualFunctions as a private symbol (Paolo Bonzini)
- virsh: Two new fields for command domblklist (Osier Yang)
- qemu: Support copy on read for disk (Osier Yang)
- Added check for maximum number of vcpus exceeding topology limit (Martin Kletzander)
- build: update to latest gnulib (Eric Blake)
- Rsync keymaps.csv file with GTK-VNC (Daniel P. Berrange)
- Re-write LXC controller end-of-file I/O handling yet again (Daniel P. Berrange)
- Allow 10 chars for domain IDs & 30 chars for names in virsh list (Daniel P. Berrange)
- virsh: New command print summary of all virtual interfaces (Osier Yang)
- Added new option to virsh net-dumpxml called --inactive (Shradha Shah)
- Functionality to implicitly get interface pool from SR-IOV PF. (Shradha Shah)
- Adding the element pf to network xml. (Shradha Shah)
- Added Function virNetDevGetVirtualFunctions (Shradha Shah)
- Added function pciSysfsFile to enable access to the PCI SYSFS files. (Shradha Shah)
- Add test cases for new ways to access variables in filters (Stefan Berger)
- Address side effects of accessing vars via index (Stefan Berger)
- Add access to elements of variables via index (Stefan Berger)
- Introduce possibility to have an iterator per variable (Stefan Berger)
- Optimize the elements the iterator visits. (Stefan Berger)
- apparmor: Mark pid parameter as unused (Jiri Denemark)
- Change security driver APIs to use virDomainDefPtr instead of virDomainObjPtr (Daniel P. Berrange)
- snapshot: allow reuse of existing files in disk snapshot (Eric Blake)
- PolicyKit: Check auth before asking client to obtain it (Jim Fehlig)
- qemu: add new disk device='lun' for bus='virtio' & type='block' (Laine Stump)
- qemu: add capabilities flags related to SG_IO (Laine Stump)
- qemu: one more client to live/config helper (Eric Blake)
Cleanups:
- python: drop unused function (Eric Blake)
- python: drop redundant function (Eric Blake)
- Replace TAB with white spaces (Osier Yang)
- qemu: Clenup qemuDomainSetInterfaceParameters (Michal Privoznik)
- conf: remove duplicate call to VIR_FREE(info->alias) (Laine Stump)
- xml: fix struct typos (Eric Blake)
- Remove tabs from libvirt_public.syms & enforce it (Daniel P. Berrange)
So thanks everybody for your contributions for this release, be it
ideas, patches, or reports,
enjoy, and let's shoot for another release within one month,
keep the patches flowing !
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel(a)veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
12 years, 10 months
[libvirt] [Bug] [vbox-driver] attach-device
by Gravok
Hi,
using the version from git I can't attach devices
to my domain (using attach-device) neither using the virsh or a language binding.
In both cases it throws a OutOfMemory exception.
It gets thrown in vbox_tmpl.c:5340, although I got 7gb of RAM left.
Am I doing something wrong, or is this a bug ?
Thanks !
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
12 years, 10 months
Re: [libvirt] [virt-tools-list] virt-manager destroys symlinks to guest configs
by Cole Robinson
On 02/20/2012 11:21 AM, Jakub Mroziński wrote:
> Hi,
> virt-manager after saving guest config destroy symlink to this file and
> creates new file. How to reproduce:
>
> cd /etc/libvirt/qemu
> # mv openbsd.xml /mount/
> # ln -s /mount/openbsd.xml
> # ls -l openbsd.xml
> lrwxrwxrwx 1 root root 49 Feb 20 17:09 openbsd.xml -> /mount/openbsd.xml
> # virt-manager
>
> Now we need to edit host openbsd in virt-manager then "Apply" changes and we got:
> # ls -l openbsd.xml
> -rw------- 1 root root 2076 Feb 20 17:13 openbsd.xml
>
> I have network storage and move every configuration there. On host i want have
> only symlinks. I know that i can do workaround, but i dont want.
>
> This solution was working (i dont know on which version) fine but after
> upgrade it doesn't work.
>
> virt-manager - 0.9.1-1 (debian testing)
>
virt-manager defers to libvirt for all changes like this. Did you update
libvirt at the same time?
- Cole
12 years, 10 months
[libvirt] ANNOUNCE: libvirt-glib release 0.0.5
by Daniel P. Berrange
am pleased to announce that a new release of the libvirt-glib package,
version 0.0.4 is now available from
ftp://libvirt.org/libvirt/glib/
The packages are GPG signed with
Key fingerprint: DAF3 A6FD B26B 6291 2D0E 8E3F BE86 EBB4 1510 4FDF (4096R)
New in this release:
- Require libvirt >= 0.9.10
- Fix error after finishing a stream
- Use G_PARAM_STATIC_STRINGS
- Add config for readonly disks
- Add config for description/metadata
- Fix type when creating storage volumes
- Remove some bogus g_error usage
- Import GNULIB's compiler warning flags support & fix
problems
- Add API for resizing storage volumes
- Add API to check if a domain is saved
- Add config for disk cache method
- Add APIs to get node information
- Add flags for deleting domains
libvirt-glib comprises three distinct libraries:
- libvirt-glib - Integrate with the GLib event loop and error handling
- libvirt-gconfig - Representation of libvirt XML documents as GObjects
- libvirt-gobject - Mapping of libvirt APIs into the GObject type system
NB: While libvirt aims to be API/ABI stable, for the first few releases,
we are *NOT* guaranteeing that libvirt-glib libraries are API/ABI stable.
ABI stability will only be guaranteed once the bulk of the APIs have been
fleshed out and proved in non-trivial application usage. We anticipate
this will be within the next 6 months in order to line up with Fedora 17.
Follow up comments about libvirt-glib should be directed to the regular
libvir-list redhat com development list.
Thanks to all the people involved in contributing to this release.
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
12 years, 10 months
Re: [libvirt] fix ix86 macros
by Eric Blake
On 02/17/2012 08:27 AM, Peter Robinson wrote:
> commit 79ae809020d041ec2d10982a60a9eaf4782ca843
> Author: Peter Robinson <pbrobinson(a)gmail.com>
> Date: Fri Feb 17 15:27:03 2012 +0000
>
> fix ix86 macros
>
> libvirt.spec | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
> ---
> diff --git a/libvirt.spec b/libvirt.spec
> index 2c7f6c0..d0b82bd 100644
> --- a/libvirt.spec
> +++ b/libvirt.spec
> @@ -22,7 +22,7 @@
>
> # RHEL-5 builds are client-only for s390, ppc
> %if 0%{?rhel} == 5
> -%ifnarch i386 i586 i686 x86_64 ia64
> +%ifnarch %{ix86} x86_64 ia64
...
Thanks for this fix. We'd also like to apply it to upstream
libvirt.git, in the file libvirt.spec.in, so we don't have to repeat
this type of fix in the future. Is it all right if I attribute such a
patch in your name?
--
Eric Blake eblake(a)redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
12 years, 10 months
[libvirt] [libvirt-glib] Fixes to gvir_domain_*save*() docs
by Zeeshan Ali (Khattak)
From: "Zeeshan Ali (Khattak)" <zeeshanak(a)gnome.org>
The saved state of a domain is restored using gvir_domain_start() rather
than gvir_domain_resume().
---
libvirt-gobject/libvirt-gobject-domain.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libvirt-gobject/libvirt-gobject-domain.c b/libvirt-gobject/libvirt-gobject-domain.c
index 0cbb0fe..23ad882 100644
--- a/libvirt-gobject/libvirt-gobject-domain.c
+++ b/libvirt-gobject/libvirt-gobject-domain.c
@@ -735,7 +735,7 @@ cleanup:
* @flags: extra flags, currently unused
* @err: Place-holder for possible errors
*
- * Saves the state of the domain on disk and stops it. Use #gvir_domain_resume
+ * Saves the state of the domain on disk and stops it. Use #gvir_domain_start
* to restore the saved state of the domain. A saved domain can be restored
* even after shutdown/reboot of host machine.
*
@@ -860,7 +860,7 @@ gboolean gvir_domain_get_persistent(GVirDomain *dom)
* @dom: the domain
*
* Returns: TRUE if a stopped domain has a saved state to which it can be
- * restored to using #gvir_domain_resume, FALSE otherwise.
+ * restored to using #gvir_domain_start, FALSE otherwise.
*/
gboolean gvir_domain_get_saved(GVirDomain *dom)
{
--
1.7.7.6
12 years, 10 months