github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/pkg/compilers/osv/osv_vmware.go (about) 1 package osv 2 3 import ( 4 "github.com/solo-io/unik/pkg/types" 5 ) 6 7 const OSV_VMWARE_MEMORY = 512 8 9 type VmwareImageFinisher struct { 10 ImageFinisher 11 } 12 13 func (b *VmwareImageFinisher) FinishImage(params FinishParams) (*types.RawImage, error) { 14 return &types.RawImage{ 15 LocalImagePath: params.CapstanImagePath, 16 StageSpec: types.StageSpec{ 17 ImageFormat: types.ImageFormat_QCOW2, 18 }, 19 RunSpec: types.RunSpec{ 20 DeviceMappings: []types.DeviceMapping{ 21 {MountPoint: "/", DeviceName: "/dev/sda1"}, 22 }, 23 StorageDriver: types.StorageDriver_IDE, 24 VsphereNetworkType: types.VsphereNetworkType_VMXNET3, 25 DefaultInstanceMemory: OSV_VMWARE_MEMORY, 26 }, 27 }, nil 28 }