Comment 10 for bug 2051965

Revision history for this message
Matthieu Baerts (matttbe) wrote (last edit ): Re: QEmu with TCG acceleration (without KVM) causes kernel panics with kernels >=6.3

Hi Sergio,

I guess simply extracting what you need from the docker container would be enough:

Dependencies: (probably more than what is strickly needed)

  sudo apt-get update && \
 DEBIAN_FRONTEND=noninteractive \
 sudo apt-get install -y --no-install-recommends \
  build-essential libncurses5-dev gcc libssl-dev bc bison \
  libelf-dev flex git curl tar hashalot qemu-kvm sudo expect \
  python3 python3-pkg-resources busybox \
  iputils-ping ethtool klibc-utils kbd rsync ccache netcat-openbsd \
  ca-certificates gnupg2 net-tools kmod \
  libdbus-1-dev libnl-genl-3-dev libibverbs-dev \
  tcpdump \
  pkg-config libmnl-dev \
  clang lld llvm llvm-dev libcap-dev \
  gdb crash dwarves strace \
  iptables ebtables nftables vim psmisc bash-completion less jq \
  gettext-base libevent-dev libtraceevent-dev libnewt0.52 libslang2 libutempter0 python3-newt tmux \
  libdwarf-dev libbfd-dev libnuma-dev libzstd-dev libunwind-dev libdw-dev libslang2-dev python3-dev python3-setuptools binutils-dev libiberty-dev libbabeltrace-dev systemtap-sdt-dev libperl-dev python3-docutils \
  libtap-formatter-junit-perl \
  zstd \
  wget xz-utils lftp cpio u-boot-tools \
  cscope \
  bpftrace

Virtme is needed in "/opt":

  cd /opt && sudo git clone https://github.com/matttbe/virtme.git

Modify it not to use KVM:

  sudo sed -i 's/accel=kvm:tcg/accel=tcg/' /opt/virtme/virtme/commands/run.py

Download the script from https://github.com/multipath-tcp/mptcp-upstream-virtme-docker/blob/latest/entrypoint.sh

Remove one line not to write stuff in /etc/hosts:

  sed -i '/prepare_hosts_file$/d' /PATH/TO/entrypoint.sh

Finally, run it with 'sudo' and with 'INPUT_BUILD_SKIP_PACKETDRILL=1' + 'INPUT_BUILD_SKIP_PERF=1':

  sudo INPUT_BUILD_SKIP_PACKETDRILL=1 INPUT_BUILD_SKIP_PERF=1 /PATH/TO/entrypoint.sh auto-normal

Is it OK like that or do we need to extract code frmo this script as well?