File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -118,10 +118,6 @@ func createVM(driver *driver.BaseDriver, networkConn *os.File) (*vz.VirtualMachi
118
118
return nil , err
119
119
}
120
120
121
- if err = attachConsole (driver , vmConfig ); err != nil {
122
- return nil , err
123
- }
124
-
125
121
if err = attachFolderMounts (driver , vmConfig ); err != nil {
126
122
return nil , err
127
123
}
@@ -328,34 +324,6 @@ func attachDisplay(driver *driver.BaseDriver, vmConfig *vz.VirtualMachineConfigu
328
324
return nil
329
325
}
330
326
331
- func attachConsole (_ * driver.BaseDriver , vmConfig * vz.VirtualMachineConfiguration ) error {
332
- consoleDevice , err := vz .NewVirtioConsoleDeviceConfiguration ()
333
- if err != nil {
334
- return err
335
- }
336
- spiceAgentAttachment , err := vz .NewSpiceAgentPortAttachment ()
337
- if err != nil {
338
- return err
339
- }
340
- spiceAgentName , err := vz .SpiceAgentPortAttachmentName ()
341
- if err != nil {
342
- return err
343
- }
344
- spiceAgentPort , err := vz .NewVirtioConsolePortConfiguration (
345
- vz .WithVirtioConsolePortConfigurationAttachment (spiceAgentAttachment ),
346
- vz .WithVirtioConsolePortConfigurationName (spiceAgentName ),
347
- )
348
- if err != nil {
349
- return err
350
- }
351
-
352
- consoleDevice .SetVirtioConsolePortConfiguration (0 , spiceAgentPort )
353
- vmConfig .SetConsoleDevicesVirtualMachineConfiguration ([]vz.ConsoleDeviceConfiguration {
354
- consoleDevice ,
355
- })
356
- return nil
357
- }
358
-
359
327
func attachFolderMounts (driver * driver.BaseDriver , vmConfig * vz.VirtualMachineConfiguration ) error {
360
328
var mounts []vz.DirectorySharingDeviceConfiguration
361
329
if * driver .Yaml .MountType == limayaml .VIRTIOFS {
You can’t perform that action at this time.
0 commit comments