Skip to content

Commit 5678a19

Browse files
upgrade cloud-hypervisor to v39.0 (#2334)
* upgrade cloud-hypervisor to v39.0 - upgrade the bin version - comment the kernel decompression code * remove deprecated code/deps for kernel decompression
1 parent 323e7ee commit 5678a19

File tree

5 files changed

+4
-248
lines changed

5 files changed

+4
-248
lines changed

bins/packages/cloudhypervisor/cloudhypervisor.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
CLOUDHYPERVISOR_VERSION="27.0"
2-
CLOUDHYPERVISOR_CHECKSUM="82024378691018fec4fcfa6263949fb5"
1+
CLOUDHYPERVISOR_VERSION="39.0"
2+
CLOUDHYPERVISOR_CHECKSUM="c6f0f32b8ed6e68e0f9ddff805d912c7"
33
CLOUDHYPERVISOR_LINK="https://github.com/cloud-hypervisor/cloud-hypervisor/releases/download/v${CLOUDHYPERVISOR_VERSION}/cloud-hypervisor-static"
44

55

go.mod

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,14 @@ require (
3232
github.com/google/uuid v1.6.0
3333
github.com/gorilla/mux v1.8.0
3434
github.com/gtank/merlin v0.1.1
35-
github.com/hashicorp/go-multierror v1.0.0
3635
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d
3736
github.com/hasura/go-graphql-client v0.10.0
3837
github.com/jbenet/go-base58 v0.0.0-20150317085156-6237cf65f3a6
3938
github.com/joncrlsn/dque v0.0.0-20200702023911-3e80e3146ce5
40-
github.com/klauspost/compress v1.16.7
4139
github.com/lestrrat-go/jwx v1.1.7
4240
github.com/machinebox/graphql v0.2.2
4341
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417
4442
github.com/patrickmn/go-cache v2.1.0+incompatible
45-
github.com/pierrec/lz4/v4 v4.1.21
4643
github.com/pkg/errors v0.9.1
4744
github.com/rs/zerolog v1.31.0
4845
github.com/shirou/gopsutil v3.21.11+incompatible
@@ -52,12 +49,10 @@ require (
5249
github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go v0.11.4
5350
github.com/threefoldtech/zbus v1.0.1
5451
github.com/tyler-smith/go-bip39 v1.1.0
55-
github.com/ulikunitz/xz v0.5.8
5652
github.com/urfave/cli/v2 v2.17.2-0.20221006022127-8f469abc00aa
5753
github.com/vishvananda/netlink v1.1.1-0.20201029203352-d40f9887b852
5854
github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f
5955
github.com/whs/nacl-sealed-box v0.0.0-20180930164530-92b9ba845d8d
60-
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8
6156
github.com/yggdrasil-network/yggdrasil-go v0.4.0
6257
golang.org/x/crypto v0.14.0
6358
golang.org/x/sys v0.19.0
@@ -94,10 +89,10 @@ require (
9489
github.com/gorilla/websocket v1.5.0 // indirect
9590
github.com/gtank/ristretto255 v0.1.2 // indirect
9691
github.com/hanwen/go-fuse/v2 v2.3.0 // indirect
97-
github.com/hashicorp/errwrap v1.0.0 // indirect
9892
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
9993
github.com/holiman/uint256 v1.2.2-0.20230321075855-87b91420868c // indirect
10094
github.com/josharian/native v0.0.0-20200817173448-b6b71def0850 // indirect
95+
github.com/klauspost/compress v1.16.7 // indirect
10196
github.com/lestrrat-go/backoff/v2 v2.0.7 // indirect
10297
github.com/lestrrat-go/blackmagic v1.0.0 // indirect
10398
github.com/lestrrat-go/httpcc v1.0.0 // indirect
@@ -137,6 +132,7 @@ require (
137132
github.com/tinylib/msgp v1.1.5 // indirect
138133
github.com/tklauser/go-sysconf v0.3.9 // indirect
139134
github.com/tklauser/numcpus v0.6.0 // indirect
135+
github.com/ulikunitz/xz v0.5.8 // indirect
140136
github.com/vedhavyas/go-subkey v1.0.3 // indirect
141137
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
142138
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect

go.sum

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,6 @@ github.com/gtank/ristretto255 v0.1.2 h1:JEqUCPA1NvLq5DwYtuzigd7ss8fwbYay9fi4/5uM
278278
github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o=
279279
github.com/hanwen/go-fuse/v2 v2.3.0 h1:t5ivNIH2PK+zw4OBul/iJjsoG9K6kXo4nMDoBpciC8A=
280280
github.com/hanwen/go-fuse/v2 v2.3.0/go.mod h1:xKwi1cF7nXAOBCXujD5ie0ZKsxc8GGSA1rlMJc+8IJs=
281-
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
282-
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
283-
github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o=
284-
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
285281
github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4=
286282
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d h1:dg1dEPuWpEqDnvIw251EVy4zlP8gWbsGj4BsUKCRpYs=
287283
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
@@ -457,8 +453,6 @@ github.com/philhofer/fwd v1.1.1 h1:GdGcTjf5RNAxwS4QLsiMzJYj5KEvPJD3Abr261yRQXQ=
457453
github.com/philhofer/fwd v1.1.1/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU=
458454
github.com/pierrec/lz4 v2.3.0+incompatible h1:CZzRn4Ut9GbUkHlQ7jqBXeZQV41ZSKWFc302ZU6lUTk=
459455
github.com/pierrec/lz4 v2.3.0+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
460-
github.com/pierrec/lz4/v4 v4.1.21 h1:yOVMLb6qSIDP67pl/5F7RepeKYu/VmTyEXvuMI5d9mQ=
461-
github.com/pierrec/lz4/v4 v4.1.21/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4=
462456
github.com/pierrec/xxHash v0.1.5 h1:n/jBpwTHiER4xYvK3/CdPVnLDPchj8eTJFFLUb4QHBo=
463457
github.com/pierrec/xxHash v0.1.5/go.mod h1:w2waW5Zoa/Wc4Yqe0wgrIYAGKqRMf7czn2HNKXmuL+I=
464458
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
@@ -591,8 +585,6 @@ github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaU
591585
github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
592586
github.com/whs/nacl-sealed-box v0.0.0-20180930164530-92b9ba845d8d h1:7UnhkLc0c3CSUXmDlQumHjDte0S2vW7TL+4mubdkiY4=
593587
github.com/whs/nacl-sealed-box v0.0.0-20180930164530-92b9ba845d8d/go.mod h1:ltQsZR7FRY+aC2OSr4UmsNI91hR831dJo2gZd50TSa4=
594-
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 h1:nIPpBwaJSVYIxUFsDv3M8ofmx9yWTog9BfvIu0q41lo=
595-
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos=
596588
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
597589
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
598590
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU=

pkg/primitives/vm/decompress_kernel.go

Lines changed: 0 additions & 227 deletions
This file was deleted.

pkg/primitives/vm/utils.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,6 @@ func (p *Manager) prepContainer(
148148

149149
// can be overridden from the flist itself if exists
150150
if len(imageInfo.KernelPath) != 0 {
151-
// try to decompress kernel
152-
if err := tryDecompressKernel(imageInfo.KernelPath); err != nil {
153-
return errors.Wrapf(err, "failed to decompress kernel: %s", imageInfo.KernelPath)
154-
}
155-
156151
machine.KernelImage = imageInfo.KernelPath
157152
machine.InitrdImage = imageInfo.InitrdPath
158153
// we are using kernel from flist, we need to respect

0 commit comments

Comments
 (0)