virt-install: add --resource support

This patch will enable setting
resource partition configuration.

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
Chen Hanxiao
2014-06-04 10:08:05 +08:00
parent 809c5a81e5
commit d1b0fade1d
8 changed files with 65 additions and 3 deletions

View File

@@ -213,6 +213,9 @@ class XMLParseTest(unittest.TestCase):
check("gid_target", None, 1000)
check("gid_count", None, 10)
check = self._make_checker(guest.resource)
check("partition", None, "/virtualmachines/production")
check = self._make_checker(guest.get_devices("memballoon")[0])
check("model", "virtio", "none")