clonebox 1.1.12__py3-none-any.whl → 1.1.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of clonebox might be problematic. Click here for more details.
- clonebox/cloner.py +18 -10
- {clonebox-1.1.12.dist-info → clonebox-1.1.13.dist-info}/METADATA +1 -1
- {clonebox-1.1.12.dist-info → clonebox-1.1.13.dist-info}/RECORD +7 -7
- {clonebox-1.1.12.dist-info → clonebox-1.1.13.dist-info}/WHEEL +0 -0
- {clonebox-1.1.12.dist-info → clonebox-1.1.13.dist-info}/entry_points.txt +0 -0
- {clonebox-1.1.12.dist-info → clonebox-1.1.13.dist-info}/licenses/LICENSE +0 -0
- {clonebox-1.1.12.dist-info → clonebox-1.1.13.dist-info}/top_level.txt +0 -0
clonebox/cloner.py
CHANGED
|
@@ -263,13 +263,21 @@ class SelectiveVMCloner:
|
|
|
263
263
|
|
|
264
264
|
return cached_path
|
|
265
265
|
|
|
266
|
-
def
|
|
267
|
-
"""Check if libvirt default network is active."""
|
|
266
|
+
def _default_network_state(self) -> str:
|
|
268
267
|
try:
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
active = self.conn.listNetworks() or []
|
|
269
|
+
if "default" in active:
|
|
270
|
+
return "active"
|
|
271
|
+
defined = self.conn.listDefinedNetworks() or []
|
|
272
|
+
if "default" in defined:
|
|
273
|
+
return "inactive"
|
|
274
|
+
return "missing"
|
|
271
275
|
except Exception:
|
|
272
|
-
return
|
|
276
|
+
return "unknown"
|
|
277
|
+
|
|
278
|
+
def _default_network_active(self) -> bool:
|
|
279
|
+
"""Check if libvirt default network is active."""
|
|
280
|
+
return self._default_network_state() == "active"
|
|
273
281
|
|
|
274
282
|
def resolve_network_mode(self, config: VMConfig) -> str:
|
|
275
283
|
"""Resolve network mode based on config and session type."""
|
|
@@ -310,10 +318,9 @@ class SelectiveVMCloner:
|
|
|
310
318
|
)
|
|
311
319
|
|
|
312
320
|
# Check default network
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
except libvirt.libvirtError:
|
|
321
|
+
default_net_state = self._default_network_state()
|
|
322
|
+
checks["default_network"] = default_net_state == "active"
|
|
323
|
+
if default_net_state in {"inactive", "missing", "unknown"}:
|
|
317
324
|
checks["network_error"] = (
|
|
318
325
|
"Default network not found or inactive.\n"
|
|
319
326
|
" For user session, CloneBox can use user-mode networking (slirp) automatically.\n"
|
|
@@ -1404,7 +1411,8 @@ fi
|
|
|
1404
1411
|
" - chown -R 1000:1000 /home/ubuntu/.config /home/ubuntu/.cache /home/ubuntu/.local",
|
|
1405
1412
|
" - chmod 700 /home/ubuntu/.config /home/ubuntu/.cache",
|
|
1406
1413
|
" - systemctl set-default graphical.target",
|
|
1407
|
-
" - systemctl enable gdm3 || systemctl enable gdm || true",
|
|
1414
|
+
" - systemctl enable --now gdm3 || systemctl enable --now gdm || true",
|
|
1415
|
+
" - systemctl start display-manager || true",
|
|
1408
1416
|
]
|
|
1409
1417
|
)
|
|
1410
1418
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
clonebox/__init__.py,sha256=CyfHVVq6KqBr4CNERBpXk_O6Q5B35q03YpdQbokVvvI,408
|
|
2
2
|
clonebox/__main__.py,sha256=Fcoyzwwyz5-eC_sBlQk5a5RbKx8uodQz5sKJ190U0NU,135
|
|
3
3
|
clonebox/cli.py,sha256=CcqJgVH-hSGm4FXTuJCWniocKnAeQayhPPO17nxK578,139009
|
|
4
|
-
clonebox/cloner.py,sha256=
|
|
4
|
+
clonebox/cloner.py,sha256=3ZL_F-GTMT38cJ0-mgz-ESG7Ioa-1tEYPjdoSBS4lP0,96633
|
|
5
5
|
clonebox/container.py,sha256=tiYK1ZB-DhdD6A2FuMA0h_sRNkUI7KfYcJ0tFOcdyeM,6105
|
|
6
6
|
clonebox/dashboard.py,sha256=dMY6odvPq3j6FronhRRsX7aY3qdCwznB-aCWKEmHDNw,5768
|
|
7
7
|
clonebox/detector.py,sha256=vS65cvFNPmUBCX1Y_TMTnSRljw6r1Ae9dlVtACs5XFc,23075
|
|
@@ -34,9 +34,9 @@ clonebox/snapshots/manager.py,sha256=hGzM8V6ZJPXjTqj47c4Kr8idlE-c1Q3gPUvuw1HvS1A
|
|
|
34
34
|
clonebox/snapshots/models.py,sha256=sRnn3OZE8JG9FZJlRuA3ihO-JXoPCQ3nD3SQytflAao,6206
|
|
35
35
|
clonebox/templates/profiles/ml-dev.yaml,sha256=w07MToGh31xtxpjbeXTBk9BkpAN8A3gv8HeA3ESKG9M,461
|
|
36
36
|
clonebox/templates/profiles/web-stack.yaml,sha256=EBnnGMzML5vAjXmIUbCpbTCwmRaNJiuWd3EcL43DOK8,485
|
|
37
|
-
clonebox-1.1.
|
|
38
|
-
clonebox-1.1.
|
|
39
|
-
clonebox-1.1.
|
|
40
|
-
clonebox-1.1.
|
|
41
|
-
clonebox-1.1.
|
|
42
|
-
clonebox-1.1.
|
|
37
|
+
clonebox-1.1.13.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
38
|
+
clonebox-1.1.13.dist-info/METADATA,sha256=-lAcuKp05h-8MuuwAq5aj0FPwGwOJfntQfQ_NZrcSts,48916
|
|
39
|
+
clonebox-1.1.13.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
40
|
+
clonebox-1.1.13.dist-info/entry_points.txt,sha256=FES95Vi3btfViLEEoHdb8nikNxTqzaooi9ehZw9ZfWI,47
|
|
41
|
+
clonebox-1.1.13.dist-info/top_level.txt,sha256=LdMo2cvCrEcRGH2M8JgQNVsCoszLV0xug6kx1JnaRjo,9
|
|
42
|
+
clonebox-1.1.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|