search for: vmdef

Displaying 9 results from an estimated 9 matches for "vmdef".

Did you mean: vdef
2011 Feb 23
0
[PATCH 1/2] libvirt/qemu : allow persistent modification of disks via A(De)ttachDeviceFlags
...anged, 163 insertions(+), 7 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 0f25a2a..703f86a 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -4082,16 +4082,174 @@ cleanup: return ret; } +static int qemuDomainFindDiskByName(virDomainDefPtr vmdef, const char *name) +{ + virDomainDiskDefPtr vdisk; + int i; + + for (i = 0; i < vmdef->ndisks; i++) { + vdisk = vmdef->disks[i]; + if (!strcmp(vdisk->dst, name)) + return i; + } + return -1; +} +/* + * Attach a device given by XML, the change will...
2009 May 15
0
[PATCH server] Starting of new ovirt QMF API.
...to '5' and works locally but would likely not work elsewhere. What does work well is listing/querying of existing VMs. There is still lots of work to do here, this is just so that we have a common place to work on going forward. One of the first things to do is to split out the Ovirt and VmDef classes into seperate files and implement VM pools. Signed-off-by: Ian Main <imain at redhat.com> --- src/ovirt-agent/ovirt-agent.rb | 314 ++++++++++++++++++++++++++++++++++++++++ src/ovirt-agent/ovirt-test.rb | 40 +++++ 2 files changed, 354 insertions(+), 0 deletions(-) create mode...
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
2013 Jul 09
2
[PATCH 2/2] LXC: hostdev: parent directroy for hostdev atomically
...++++++ 2 files changed, 42 insertions(+), 14 deletions(-) diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index b954107..a204789 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -1569,14 +1569,15 @@ static int lxcContainerSetupHostdevCapsStorage(virDomainDefPtr vmDef ATTRIBUTE_U int ret = -1; struct stat sb; mode_t mode; + char *dev = def->source.caps.u.storage.block; - if (def->source.caps.u.storage.block == NULL) { + if (dev == NULL) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", _...
2014 Sep 16
2
1.2.7 and 1.2.8 fail to start container: libvirt_lxc[4904]: segfault at 0 ip ...error 4 in libc-2.17.so[
HI all Centos 7, 3.10.0-123.6.3.el7.x86_64 libvirt 1.27, libvirt 1.2.8 builded from source with ./configure --prefix=/usr make && make install LXC with direct network failed to start: Sep 16 19:19:38 node01 kernel: device br502 entered promiscuous mode Sep 16 19:19:39 node01 kernel: device br502 left promiscuous mode Sep 16 19:19:39 node01 avahi-daemon[1532]: Withdrawing workstation
2013 Jul 08
4
Re: Permission problem with /dev/net/tun
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Daniel, On 07/08/2013 11:41 AM, Daniel P. Berrange wrote: >> the symptom my libvirt LXC container suffers from is: >> root@depot:/dev/net# ls -la total 0 drwxr-xr-x 2 root root 40 >> Jun 29 16:26 . drwxr-xr-x 5 root root 480 Jun 29 16:26 .. >> root@depot:/dev/net# mknod tun c 10 200 mknod: `tun': Operation >>
2013 Jul 09
0
[PATCH 1/2] LXC: hostdev: introduce lxcContainerSetupHostdevCapsMakePath
...+ if ((dir = strrchr(dev, '/'))) { + *dir = '\0'; + if ((virFileMakePath(dev) < 0) && (errno != EEXIST)) + ret = -1; + + *dir = '/'; + } + + return ret; +} + + static int lxcContainerSetupHostdevCapsStorage(virDomainDefPtr vmDef ATTRIBUTE_UNUSED, virDomainHostdevDefPtr def ATTRIBUTE_UNUSED, virSecurityManagerPtr securityDriver ATTRIBUTE_UNUSED) diff --git a/src/lxc/lxc_container.h b/src/lxc/lxc_container.h index ada72f7..f168703...
2014 Jul 26
0
Migration b/w nodes with identical cpu featureset failing
Hello, on libvirt 1.2.4 and two nodes with E5-2620 and E5-2650, I am not able to migrate vm with cpu=host-passthrough with error: internal error: can't get vmdef the only difference between sender and receiver` cpus is the frequency and identification string. Is this behaviour expected?
2009 Jul 23
0
[PATCH server] Add network QMF apis.
...ib/ovirt/controllers/network_controller.rb | 30 +++++++++++++++ .../lib/ovirt/controllers/ovirt_controller.rb | 25 ++++++++++++ .../physical_network_impl_controller.rb | 13 ++++++ .../lib/ovirt/controllers/vlan_impl_controller.rb | 13 ++++++ .../lib/ovirt/controllers/vmdef_controller.rb | 5 ++ src/ovirt-agent/ovirt-agent.rb | 4 +- src/ovirt-agent/ovirt-test.rb | 40 +++++++++++++++++--- src/ovirt-agent/ovirt_api.xml | 27 +++++++++++++ 10 files changed, 153 insertions(+), 9 deletions(-) c...