@vm0/runner 3.15.0 → 3.16.1
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.
- package/index.js +9 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1400,7 +1400,7 @@ var FirecrackerClient = class {
|
|
|
1400
1400
|
// src/lib/firecracker/config.ts
|
|
1401
1401
|
function buildBootArgs() {
|
|
1402
1402
|
const networkBootArgs = generateSnapshotNetworkBootArgs();
|
|
1403
|
-
return `console=ttyS0 reboot=k panic=1 pci=off nomodules random.trust_cpu=on quiet loglevel=0 nokaslr audit=0 numa=off mitigations=off noresume init=/sbin/
|
|
1403
|
+
return `console=ttyS0 reboot=k panic=1 pci=off nomodules random.trust_cpu=on quiet loglevel=0 nokaslr audit=0 numa=off mitigations=off noresume init=/sbin/guest-init ${networkBootArgs}`;
|
|
1404
1404
|
}
|
|
1405
1405
|
function buildFirecrackerConfig(params) {
|
|
1406
1406
|
const bootArgs = buildBootArgs();
|
|
@@ -1420,7 +1420,7 @@ function buildFirecrackerConfig(params) {
|
|
|
1420
1420
|
},
|
|
1421
1421
|
// Overlay drive (ext4, read-write, per-VM)
|
|
1422
1422
|
// Mounted as /dev/vdb inside the VM
|
|
1423
|
-
// The
|
|
1423
|
+
// The guest-init binary combines these using overlayfs
|
|
1424
1424
|
{
|
|
1425
1425
|
drive_id: "overlay",
|
|
1426
1426
|
path_on_host: params.overlayPath,
|
|
@@ -2195,7 +2195,7 @@ var VsockClient = class {
|
|
|
2195
2195
|
*
|
|
2196
2196
|
* Flow:
|
|
2197
2197
|
* 1. Host creates UDS server at "{vsockPath}_{port}"
|
|
2198
|
-
* 2. Guest boots and vsock-
|
|
2198
|
+
* 2. Guest boots and vsock-guest connects to CID=2, port
|
|
2199
2199
|
* 3. Firecracker forwards connection to Host's UDS
|
|
2200
2200
|
* 4. Host accepts, receives "ready", sends ping/pong
|
|
2201
2201
|
*/
|
|
@@ -2442,11 +2442,11 @@ var VsockClient = class {
|
|
|
2442
2442
|
};
|
|
2443
2443
|
|
|
2444
2444
|
// src/lib/scripts/index.ts
|
|
2445
|
-
var
|
|
2446
|
-
/** PID 1 init process - sets up overlayfs and spawns vsock-
|
|
2447
|
-
|
|
2445
|
+
var GUEST_BINARY_PATHS = {
|
|
2446
|
+
/** PID 1 init process - sets up overlayfs and spawns vsock-guest */
|
|
2447
|
+
guestInit: "/sbin/guest-init",
|
|
2448
2448
|
/** Storage download - parallel downloads with streaming extraction */
|
|
2449
|
-
|
|
2449
|
+
guestDownload: "/usr/local/bin/guest-download"
|
|
2450
2450
|
};
|
|
2451
2451
|
var ENV_LOADER_PATH = "/usr/local/bin/vm0-agent/env-loader.mjs";
|
|
2452
2452
|
|
|
@@ -2869,7 +2869,7 @@ async function downloadStorages(guest, manifest) {
|
|
|
2869
2869
|
const manifestJson = JSON.stringify(manifest);
|
|
2870
2870
|
await guest.writeFile("/tmp/storage-manifest.json", manifestJson);
|
|
2871
2871
|
const result = await guest.exec(
|
|
2872
|
-
`${
|
|
2872
|
+
`${GUEST_BINARY_PATHS.guestDownload} /tmp/storage-manifest.json`
|
|
2873
2873
|
);
|
|
2874
2874
|
if (result.exitCode !== 0) {
|
|
2875
2875
|
throw new Error(`Storage download failed: ${result.stderr}`);
|
|
@@ -4646,7 +4646,7 @@ var snapshotCommand = new Command5("snapshot").description("Generate a Firecrack
|
|
|
4646
4646
|
);
|
|
4647
4647
|
|
|
4648
4648
|
// src/index.ts
|
|
4649
|
-
var version = true ? "3.
|
|
4649
|
+
var version = true ? "3.16.1" : "0.1.0";
|
|
4650
4650
|
program.name("vm0-runner").version(version).description("Self-hosted runner for VM0 agents");
|
|
4651
4651
|
program.addCommand(startCommand);
|
|
4652
4652
|
program.addCommand(doctorCommand);
|