diff --git a/src/darwin.ts b/src/darwin.ts index 8f11b30..60e9b06 100644 --- a/src/darwin.ts +++ b/src/darwin.ts @@ -96,7 +96,6 @@ export class DarwinOVM extends RequestDarwin { const ovmBin = resource("ovm", this.options.resource); const ovmArgs = [ - "machine", "init", "--cpus", String(this.options.cpu), "--memory", String(this.options.memory), @@ -107,7 +106,7 @@ export class DarwinOVM extends RequestDarwin { "--workspace", this.options.workspace, "--ppid", String(this.options.bindPID), "--volume", "/Users:/Users", - "default", + "-name", "default", ]; for (const item of this.options.appendVolume || []) { @@ -158,12 +157,11 @@ export class DarwinOVM extends RequestDarwin { const ovmBin = resource("ovm", this.options.resource); const ovmArgs = [ - "machine", "start", "--report-url", `unix://${this.restfulWithRun}`, "--workspace", this.options.workspace, "--ppid", String(this.options.bindPID), - "default", + "-name", "default", ]; if (enableDebug()) { diff --git a/src/request.ts b/src/request.ts index 8416fff..ef2578e 100644 --- a/src/request.ts +++ b/src/request.ts @@ -125,7 +125,7 @@ type RequestDarwinRawInfoResp = { export class RequestDarwin extends Request { public constructor(workspace: string) { - super(path.join(workspace, "socks", "ovm_restapi.socks"), "http://ovm/default/"); + super(path.join(workspace, "socks", "ovm_restapi.socks"), "http://ovm/"); } public async info(): Promise {