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