Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 9a64fcc

Browse files
committed
qemu: Move to qemu 2.11
This commit modifies version.yaml to now point to the qemu 2.11 stable version. It modifies the default QEMU_CMD to be qemu-system-x86_64 instead of qemu-lite-system-x86_64. And modifies virtcontainers unit tests to now point to the correct QEMU_CMD. Fixes: #118. Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
1 parent 4d6e9c9 commit 9a64fcc

File tree

6 files changed

+10
-17
lines changed

6 files changed

+10
-17
lines changed

arch/amd64-options.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,4 @@ MACHINETYPE := pc
1818
KERNELPARAMS :=
1919
MACHINEACCELERATORS :=
2020

21-
# The CentOS/RHEL hypervisor binary is not called qemu-lite
22-
ifeq (,$(filter-out centos rhel,$(distro)))
23-
QEMUCMD := qemu-system-x86_64
24-
else
25-
QEMUCMD := qemu-lite-system-x86_64
26-
endif
27-
21+
QEMUCMD := qemu-system-x86_64

versions.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ assets:
6161
qemu:
6262
description: "VMM that uses KVM"
6363
url: "https://github.com/kata-containers/qemu"
64-
version: "741f430a960b5b67745670e8270db91aeb083c5f-29"
65-
release: "19360"
64+
version: "stable-2.11"
6665

6766
image:
6867
description: |

virtcontainers/api_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,9 +1990,9 @@ func TestProcessListContainer(t *testing.T) {
19901990

19911991
func createNewPodConfig(hType HypervisorType, aType AgentType, aConfig interface{}, netModel NetworkModel) PodConfig {
19921992
hypervisorConfig := HypervisorConfig{
1993-
KernelPath: "/usr/share/clear-containers/vmlinux.container",
1994-
ImagePath: "/usr/share/clear-containers/clear-containers.img",
1995-
HypervisorPath: "/usr/bin/qemu-lite-system-x86_64",
1993+
KernelPath: "/usr/share/kata-containers/vmlinux.container",
1994+
ImagePath: "/usr/share/kata-containers/kata-containers.img",
1995+
HypervisorPath: "/usr/bin/qemu-system-x86_64",
19961996
}
19971997

19981998
netConfig := NetworkConfig{

virtcontainers/documentation/api/1.0/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ func Example_createAndStartPod() {
894894
hypervisorConfig := vc.HypervisorConfig{
895895
KernelPath: "/usr/share/clear-containers/vmlinux.container",
896896
ImagePath: "/usr/share/clear-containers/clear-containers.img",
897-
HypervisorPath: "/usr/bin/qemu-lite-system-x86_64",
897+
HypervisorPath: "/usr/bin/qemu-system-x86_64",
898898
}
899899

900900
// Use hyperstart default values for the agent.

virtcontainers/example_pod_run_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ func Example_createAndStartPod() {
5050

5151
// Sets the hypervisor configuration.
5252
hypervisorConfig := vc.HypervisorConfig{
53-
KernelPath: "/usr/share/clear-containers/vmlinux.container",
54-
ImagePath: "/usr/share/clear-containers/clear-containers.img",
55-
HypervisorPath: "/usr/bin/qemu-lite-system-x86_64",
53+
KernelPath: "/usr/share/kata-containers/vmlinux.container",
54+
ImagePath: "/usr/share/kata-containers/kata-containers.img",
55+
HypervisorPath: "/usr/bin/qemu-system-x86_64",
5656
}
5757

5858
// Use hyperstart default values for the agent.

virtcontainers/qemu_arch_base_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828

2929
const (
3030
qemuArchBaseMachineType = "pc"
31-
qemuArchBaseQemuPath = "/usr/bin/qemu-lite-system-x86_64"
31+
qemuArchBaseQemuPath = "/usr/bin/qemu-system-x86_64"
3232
)
3333

3434
var qemuArchBaseQemuPaths = map[string]string{

0 commit comments

Comments
 (0)