clonebox 1.1.8__py3-none-any.whl → 1.1.9__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.
- clonebox/cli.py +9 -1
- clonebox/cloner.py +9 -2
- {clonebox-1.1.8.dist-info → clonebox-1.1.9.dist-info}/METADATA +1 -1
- {clonebox-1.1.8.dist-info → clonebox-1.1.9.dist-info}/RECORD +8 -8
- {clonebox-1.1.8.dist-info → clonebox-1.1.9.dist-info}/WHEEL +0 -0
- {clonebox-1.1.8.dist-info → clonebox-1.1.9.dist-info}/entry_points.txt +0 -0
- {clonebox-1.1.8.dist-info → clonebox-1.1.9.dist-info}/licenses/LICENSE +0 -0
- {clonebox-1.1.8.dist-info → clonebox-1.1.9.dist-info}/top_level.txt +0 -0
clonebox/cli.py
CHANGED
|
@@ -2733,7 +2733,15 @@ def cmd_exec(args) -> None:
|
|
|
2733
2733
|
return
|
|
2734
2734
|
timeout = getattr(args, "timeout", 30)
|
|
2735
2735
|
|
|
2736
|
-
|
|
2736
|
+
qga_ready = _qga_ping(vm_name, conn_uri)
|
|
2737
|
+
if not qga_ready:
|
|
2738
|
+
for _ in range(12): # ~60s
|
|
2739
|
+
time.sleep(5)
|
|
2740
|
+
qga_ready = _qga_ping(vm_name, conn_uri)
|
|
2741
|
+
if qga_ready:
|
|
2742
|
+
break
|
|
2743
|
+
|
|
2744
|
+
if not qga_ready:
|
|
2737
2745
|
console.print(f"[red]❌ Cannot connect to VM '{vm_name}' via QEMU Guest Agent[/]")
|
|
2738
2746
|
console.print("[dim]Make sure the VM is running and qemu-guest-agent is installed.[/]")
|
|
2739
2747
|
return
|
clonebox/cloner.py
CHANGED
|
@@ -433,7 +433,13 @@ class SelectiveVMCloner:
|
|
|
433
433
|
|
|
434
434
|
# Create cloud-init ISO if packages/services specified
|
|
435
435
|
cloudinit_iso = None
|
|
436
|
-
if
|
|
436
|
+
if (
|
|
437
|
+
config.packages
|
|
438
|
+
or config.services
|
|
439
|
+
or config.snap_packages
|
|
440
|
+
or config.post_commands
|
|
441
|
+
or config.gui
|
|
442
|
+
):
|
|
437
443
|
cloudinit_iso = ctx.add_file(self._create_cloudinit_iso(vm_dir, config))
|
|
438
444
|
log.info(f"Created cloud-init ISO with {len(config.packages)} packages")
|
|
439
445
|
|
|
@@ -1250,7 +1256,8 @@ fi
|
|
|
1250
1256
|
cloudinit_dir.mkdir(exist_ok=True)
|
|
1251
1257
|
|
|
1252
1258
|
# Meta-data
|
|
1253
|
-
|
|
1259
|
+
instance_id = f"{config.name}-{uuid.uuid4().hex}"
|
|
1260
|
+
meta_data = f"instance-id: {instance_id}\nlocal-hostname: {config.name}\n"
|
|
1254
1261
|
(cloudinit_dir / "meta-data").write_text(meta_data)
|
|
1255
1262
|
|
|
1256
1263
|
# Generate mount commands and fstab entries for 9p filesystems
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
clonebox/__init__.py,sha256=CyfHVVq6KqBr4CNERBpXk_O6Q5B35q03YpdQbokVvvI,408
|
|
2
2
|
clonebox/__main__.py,sha256=Fcoyzwwyz5-eC_sBlQk5a5RbKx8uodQz5sKJ190U0NU,135
|
|
3
|
-
clonebox/cli.py,sha256=
|
|
4
|
-
clonebox/cloner.py,sha256=
|
|
3
|
+
clonebox/cli.py,sha256=VZ1K0z0jLbqrEakXR4pC9d4FVTvzLiyzuOff3S0s2gg,136214
|
|
4
|
+
clonebox/cloner.py,sha256=7JzouMKoqNQ2AYKA2HL4hk0jIDeaWh2b0mV1UW6nwD0,91267
|
|
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.9.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
38
|
+
clonebox-1.1.9.dist-info/METADATA,sha256=UjgHC8vzL5OL-yr1WP4XB0KAAacblP6YNiKsD9zWpa8,48915
|
|
39
|
+
clonebox-1.1.9.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
40
|
+
clonebox-1.1.9.dist-info/entry_points.txt,sha256=FES95Vi3btfViLEEoHdb8nikNxTqzaooi9ehZw9ZfWI,47
|
|
41
|
+
clonebox-1.1.9.dist-info/top_level.txt,sha256=LdMo2cvCrEcRGH2M8JgQNVsCoszLV0xug6kx1JnaRjo,9
|
|
42
|
+
clonebox-1.1.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|