Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
upgrade firecracker version to v0.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
luxas committed Jul 1, 2019
1 parent 8a9c93a commit 41e3595
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/docker/distribution v2.7.1+incompatible // indirect
github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0
github.com/docker/go-connections v0.4.0 // indirect
github.com/firecracker-microvm/firecracker-go-sdk v0.15.1
github.com/firecracker-microvm/firecracker-go-sdk v0.15.2-0.20190627223500-b2e8284e890c
github.com/freddierice/go-losetup v0.0.0-20170407175016-fc9adea44124
github.com/goombaio/namegenerator v0.0.0-20181006234301-989e774b106e
github.com/gorilla/mux v1.7.2 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDD
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=
github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
github.com/firecracker-microvm/firecracker-go-sdk v0.15.1 h1:xtNAtwXMKXctB/CMn8tdTfpEzfqPUfqm7+Y3pYUSYZc=
github.com/firecracker-microvm/firecracker-go-sdk v0.15.1/go.mod h1:QcNsz2gYkcTI/zAQl3dYeLwf7KxtjKnt7aGklhn9yYk=
github.com/firecracker-microvm/firecracker-go-sdk v0.15.2-0.20190627223500-b2e8284e890c h1:jAAxKV5SD/y2nNKNLHgAUmfgbrvfN4xBiKR+b2qK2pM=
github.com/firecracker-microvm/firecracker-go-sdk v0.15.2-0.20190627223500-b2e8284e890c/go.mod h1:QcNsz2gYkcTI/zAQl3dYeLwf7KxtjKnt7aGklhn9yYk=
github.com/freddierice/go-losetup v0.0.0-20170407175016-fc9adea44124 h1:TVfi5xMshZAXzVXozESk8bi0JSTPwHkx7qtLOkkcu/c=
github.com/freddierice/go-losetup v0.0.0-20170407175016-fc9adea44124/go.mod h1:zAk7fcFx45euzK9Az14j6Hd9n8Cwhnjp/NBfhSIAmFg=
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
Expand Down
2 changes: 1 addition & 1 deletion hack/FIRECRACKER_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.16.0
v0.17.0
9 changes: 7 additions & 2 deletions pkg/container/firecracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ func ExecuteFirecracker(md *vmmd.VMMetadata, dhcpIfaces []DHCPInterface) error {
}},
NetworkInterfaces: networkInterfaces,
MachineCfg: models.MachineConfiguration{
VcpuCount: od.VCPUs,
MemSizeMib: od.Memory,
VcpuCount: &od.VCPUs,
MemSizeMib: &od.Memory,
HtEnabled: boolPtr(true),
},
//JailerCfg: firecracker.JailerConfig{
// GID: firecracker.Int(0),
Expand Down Expand Up @@ -131,3 +132,7 @@ func installSignalHandlers(ctx context.Context, m *firecracker.Machine) {
}
}()
}

func boolPtr(val bool) *bool {
return &val
}

0 comments on commit 41e3595

Please sign in to comment.