virsh memtune fails with LXC guests (lxcDomainGetMemoryParameters)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
[ubuntu 14.04 amd64 on Mac Mini, fully up to date]
The "virsh memtune" function (see ftp://libvirt.
-------
$ virsh -c lxc:
...
virsh # memtune gold-lxc-20140717
error: Unable to get number of memory parameters
error: unsupported flags (0x4) in function lxcDomainGetMem
-------
Here is the XML for this guest:
virsh # dumpxml gold-lxc-20140717
<domain type='lxc' id='6265'>
<name>
<uuid>
<memory unit='KiB'
<currentMemory unit='KiB'
<vcpu placement=
<resource>
<partition>
</resource>
<os>
<type arch='x86_
<init>
</os>
<clock offset='utc'/>
<on_poweroff>
<on_reboot>
<on_crash>
<devices>
<emulator>
<filesystem type='mount' accessmode=
<source dir='/data1/
<target dir='/'/>
</filesystem>
<interface type='bridge'>
<mac address=
<source bridge='br-lan'/>
<target dev='vnet0'/>
</interface>
<console type='pty' tty='/dev/pts/1'>
<source path='/dev/pts/1'/>
<target type='lxc' port='0'/>
<alias name='console0'/>
</console>
</devices>
<seclabel type='none'/>
</domain>
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libvirt-bin 1.2.2-0ubuntu13.1.1
ProcVersionSign
Uname: Linux 3.13.0-32-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
Date: Fri Jul 25 14:25:11 2014
InstallationDate: Installed on 2014-07-16 (8 days ago)
InstallationMedia: Ubuntu-Server 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
SourcePackage: libvirt
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
Thanks for submitting this bug. Note that until we get proper apparmor support (which may be coming with the next upstream release) lxc containers under libvirt are not deemed safe.
Given the error message, I don't believe this is fixed upstream:
/* We don't return strings, and thus trivially support this flag. */; PARAM_STRING_ OKAY;
flags &= ~VIR_TYPED_
(VIR_TYPED_ PARAM_STRING_ OKAY is 4)