Kaitlin Rupert wrote:
> + # 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.
I'll add this in the next
revision.
> + 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 tried with 'None' and empty values to the network and
processor
mof-string. Pywbem had a problem parsing them. How do we skip the two
devices?
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
--
- Zhengang