support cpu/memory configuration

implement #51, #54

Signed-off-by: Hiroshi Miura <miurahr@linux.com>