Ubuntu 18.04 (or 16.04) x86_64 with 4 virtual (2 physical) cores and 4 GB RAM.
echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu xenial edge" >/etc/apt/sources.list.d/docker.list
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -qq - >/dev/null
apt-get update
apt-get install -y qemu-kvm docker-ce make git
As root
:
git clone https://github.com/open-horizon/qemu-cross-testdev
cd qemu-cross-testdev
(Optional) For testing with Ubuntu 16.04 images:
git checkout u16
32-bit ARM:
time make testdev ARCH=arm
64-bit ARM:
time make testdev ARCH=aarch64
PPC64:
time make testdev ARCH=ppc64le
x86_64:
time make testdev ARCH=x86_64
The first run will take sometime (~22 min) to download and build the QEMU images. Any time after that it should be pretty quick.
docker logs testdev
, look for testdev ready to go!!!
message. (~3 min boot time)
NOTE: if you copy
id_rsa
to your local workstation, this command will work from your local workstation, or CI system, etc...
docker cp testdev:/root/.ssh/id_rsa id_rsa
ssh -i id_rsa -o StrictHostKeyChecking=no -p 2222 root@your_machine_ip_address # not localhost
docker cp testdev:/root/.ssh/id_rsa id_rsa
ssh -i id_rsa -o StrictHostKeyChecking=no -p 2222 root@your_machine_ip_address reboot
Check with docker ps -a
that the container has stopped, then cleanup with the hard shutdown below.
make stopdev