Skip to content

Commit 6c48195

Browse files
authored
remove vnc (ultravioletrs#259)
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
1 parent aa01ef7 commit 6c48195

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

manager/qemu/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ type SevConfig struct {
6161
type VSockConfig struct {
6262
ID string `env:"VSOCK_ID" envDefault:"vhost-vsock-pci0"`
6363
GuestCID int `env:"VSOCK_GUEST_CID" envDefault:"3"`
64-
Vnc int `env:"VSOCK_VNC" envDefault:"0"`
6564
}
6665

6766
type Config struct {
@@ -165,7 +164,6 @@ func (config Config) ConstructQemuArgs() []string {
165164
config.VirtioNetPciConfig.ROMFile))
166165

167166
args = append(args, "-device", fmt.Sprintf("vhost-vsock-pci,id=%s,guest-cid=%d", config.VSockConfig.ID, config.VSockConfig.GuestCID))
168-
args = append(args, "-vnc", fmt.Sprintf(":%d", config.Vnc))
169167

170168
if config.EnableSEVSNP {
171169
args = append(args, "-object",

manager/service.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ func (ms *managerService) Run(ctx context.Context, c *manager.ComputationRunReq)
185185
return "", err
186186
}
187187

188-
ms.qemuCfg.VSockConfig.Vnc++
189-
190188
ms.publishEvent(manager.VmProvision.String(), c.Id, agent.Completed.String(), json.RawMessage{})
191189
return fmt.Sprint(ms.qemuCfg.HostFwdAgent), nil
192190
}

manager/service_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ func TestRun(t *testing.T) {
8888
qemuCfg := qemu.Config{
8989
VSockConfig: qemu.VSockConfig{
9090
GuestCID: 3,
91-
Vnc: 5900,
9291
},
9392
}
9493
logger := slog.Default()

0 commit comments

Comments
 (0)