mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
virt-install: add support for user namespace
This patch will enable configuring idmap. It could be used as enable user namespace for LXC containers. Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
committed by
Cole Robinson
parent
e067051287
commit
fcac052cdc
@@ -197,6 +197,14 @@ class XMLParseTest(unittest.TestCase):
|
||||
check("device_weight", None, 300)
|
||||
check("device_path", None, "/home/1.img")
|
||||
|
||||
check = self._make_checker(guest.idmap)
|
||||
check("uid_start", None, 0)
|
||||
check("uid_target", None, 1000)
|
||||
check("uid_count", None, 10)
|
||||
check("gid_start", None, 0)
|
||||
check("gid_target", None, 1000)
|
||||
check("gid_count", None, 10)
|
||||
|
||||
check = self._make_checker(guest.get_devices("memballoon")[0])
|
||||
check("model", "virtio", "none")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user