commit | 51f630e22cb06519a2e700cdbb80039a2e8d2150 | [log] [tgz] |
---|---|---|
author | Alex Legg <alexlegg@google.com> | Wed Mar 27 11:49:20 2019 +1100 |
committer | Alex Legg <alexlegg@google.com> | Wed Mar 27 11:49:20 2019 +1100 |
tree | a7d4dd373a9dbd6055f2fe69bc4603921d56d966 | |
parent | cac91f4029b04594e0e163a9f1b29747e85118e2 [diff] |
Modify virtio-net test util for debian_guest Use IPv4 instead of IPv6 and remove code for bringing up the ethernet device. Change-Id: I92d5d8dbd495959ab38764a7de914e30141e6637
This repository contains utilities for running integration tests for Linux guests under Machina.
First install rust (follow the instructions of the rustup tool):
$ curl https://sh.rustup.rs -sSf | sh $ source ~/.cargo/env
Next we add some new targets for cross-compiling and static linking. Rust supports statically linking libc by replacing the usual gnu libc with musl (see The Rust Book: Advanced Linking).
$ rustup target add x86_64-unknown-linux-musl $ rustup target add aarch64-unknown-linux-musl
Lastly, run the build script for your desired architecture. This will invoke cargo for you as well as create an ext2 image in out/.
$ ./build.sh {arm64|x64}