[Libvirt-cim] [PATCH] [TEST] #2 LXC support using DefineSystem & VSMS.01
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Fri May 30 21:43:54 UTC 2008
> + # LXC only takes disk and memory device for now.
> + # Only disk __init__ takes different params.
> + if virt == 'LXC':
> + d = LXC_DiskResourceAllocationSettingData(
> + mountpoint=const.LXC_default_mp,
> + source=const.LXC_default_mp, name=dom_name)
Instead of using the same directory for the mountpoint and the source.
You could create a directory such as /tmp/lxc_files to mount on /tmp.
That way we can distinguish between the two.
> + else:
> + class_dasd = get_dasd_class(virt)
> + if virt == 'KVM':
> + disk_dev = 'hda'
> + disk_source = const.KVM_disk_path
> + elif virt == 'XenFV':
> + disk_dev = 'hda'
> + disk_source = const.XenFV_disk_path
> + d = class_dasd(
> + dev=disk_dev,
> + source=disk_source,
> + name=dom_name)
> +
> class_nasd = get_nasd_class(virt)
We'll need to skip over network and processor for now, since they aren't
supported.
I see the following error:
ERROR - Unexpected rc code 1 and description:
CIM_ERR_FAILED: ResourceSettings Error: Resource type not supported on
this platform
InvokeMethod(DefineSystem): CIM_ERR_FAILED: ResourceSettings Error:
Resource type not supported on this platform
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list