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
118118 return nil , err
119119 }
120120
121- if err = attachConsole (driver , vmConfig ); err != nil {
122- return nil , err
123- }
124-
125121 if err = attachFolderMounts (driver , vmConfig ); err != nil {
126122 return nil , err
127123 }
@@ -328,34 +324,6 @@ func attachDisplay(driver *driver.BaseDriver, vmConfig *vz.VirtualMachineConfigu
328324 return nil
329325}
330326
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-
359327func attachFolderMounts (driver * driver.BaseDriver , vmConfig * vz.VirtualMachineConfiguration ) error {
360328 var mounts []vz.DirectorySharingDeviceConfiguration
361329 if * driver .Yaml .MountType == limayaml .VIRTIOFS {
You can’t perform that action at this time.
0 commit comments