Lines Matching full:crosvm
1 # crosvm - The Chrome OS Virtual Machine Monitor
3 This component, known as crosvm, runs untrusted operating systems along with
5 makes crosvm unique is a focus on safety within the programming language and a
11 The channel #crosvm on [freenode](https://webchat.freenode.net/#crosvm) is used hashtag
12 for technical discussion related to crosvm development and integration.
18 crosvm on Chromium OS is built with Portage, so it follows the same general
20 `chromeos-base/crosvm`.
30 to build and test crosvm in enviroments outside of the Chrome OS chroot.
36 First, [set up depot_tools] and use `repo` to sync down the crosvm source
38 to build crosvm.
41 mkdir crosvm
42 cd crosvm
43 repo init -g crosvm -u https://chromium.googlesource.com/chromiumos/manifest.git --repo-url=https:/…
47 A basic crosvm build links against `libcap`. On a Debian-based system,
59 /usr/share/policy && sudo ln -s /path/to/crosvm/seccomp/x86_64
60 /usr/share/policy/crosvm`. We'll eventually build the precompiled
61 policies [into the crosvm binary](http://crbug.com/1052126).
64 * You need read/write permissions for `/dev/kvm` to run tests or other crosvm
76 To see the usage information for your version of crosvm, run `crosvm` or `crosvm
84 $ crosvm run "${KERNEL_PATH}"
98 $ crosvm run -r "${ROOT_IMAGE}" "${KERNEL_PATH}"
108 To run crosvm with a writable rootfs:
113 crosvm run --rwdisk "${ROOT_IMAGE}" -p "root=/dev/vda" vmlinux
124 crosvm run --shared-dir "/:mtdfake:type=fs:cache=always" \
131 while crosvm is running. To tell crosvm to stop and exit, for example:
134 that path will be generated based on crosvm's PID.
136 $ crosvm run -s /run/crosvm.sock ${USUAL_CROSVM_ARGS}
138 $ crosvm stop /run/crosvm.sock
142 This will cause the original crosvm process to exit in an orderly fashion,
143 allowing it to clean up any OS resources that might have stuck around if crosvm
148 By default crosvm runs in multiprocess mode. Each device that supports running
149 inside of a sandbox will run in a jailed child process of crosvm. The
151 `/usr/share/policy/crosvm` or in the path specified by the
167 crosvm supports [GDB Remote Serial Protocol] to allow developers to debug guest
174 $ crosvm run --gdb <port> ${USUAL_CROSVM_ARGS} vmlinux
195 The following are crosvm's default arguments and how to override them.
209 crosvm. In order to run certain devices, there are additional system
222 | `i8042` | Used by the guest kernel to exit crosvm. …
236 Crosvm provides docker containers to build and run tests for both x86_64 and
244 rustfmt to all Rust code in the crosvm repo: please run `bin/fmt` before
246 multiple crates but a single workspace only; crosvm consists of multiple
251 The `clippy` linter is used to check for common Rust problems. The crosvm
260 dependencies also must be reviewed to ensure their suitability to the crosvm
263 * `cc` - Build time dependency needed to build C source code used in crosvm.
268 The crosvm source code is written in Rust and C. To build, crosvm generally
274 * `crosvm` - The top-level binary front-end for using crosvm.