Include crosvm and secure_env in the debian package - #3008
Draft
Databean wants to merge 1 commit into
Draft
Conversation
crosvm is always built in `opt` to disable debug assertions, which crash over an IO safety issue in sandbox mode. As a side effect, this noticeably improves VM runtime performance. This additionally introduces secure_env into the debian package, which makes the debian package built from the git repository complete enough to launch a device without downloading `cvd-host_package.tar.gz`, with some caveats. To reproduce: ``` $ bazel run //cuttlefish/package:cvd -- fetch \ --default_build=git_main/aosp_cf_x86_64_only_phone-trunk_staging-userdebug \ --target_directory=$HOME/dl \ --host_substitutions=only \ --bootloader_build=aosp_u-boot-mainline/u-boot_crosvm_x86_64 $ bazel run //cuttlefish/package:cvd -- create \ --product_path=$HOME/dl \ --host_path=$HOME/dl \ --reuse \ --enable_wifi=false \ --gpu_mode=guest_swiftshader \ --enable_sandbox=true $ bazel run //cuttlefish/package:cvd -- clear $ bazel run //cuttlefish/package:cvd -- create \ --product_path=$HOME/dl \ --host_path=$HOME/dl \ --reuse \ --enable_wifi=false \ ``` Caveats: - There are no wifi images downloaded, so wifi is disabled. - There is no bootloader prebuilt, so that is added to the fetch command. Bug: b/402274999
Databean
force-pushed
the
package_crosvm
branch
from
August 12, 2026 23:08
46a55b9 to
e932ec3
Compare
Member
Author
|
It looks like specifically snapshots are broken. Local repro steps: The second command hangs. |
Databean
marked this pull request as draft
August 14, 2026 01:09
Member
Author
|
I couldn't reproduce the hang with a regular crosvm cargo build, but I did see that b/345541669 is still an issue, which will also block this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
crosvm is always built in
optto disable debug assertions, which crash over an IO safety issue in sandbox mode. As a side effect, this noticeably improves VM runtime performance.This additionally introduces secure_env into the debian package, which makes the debian package built from the git repository complete enough to launch a device without downloading
cvd-host_package.tar.gz, with some caveats. To reproduce:Caveats:
Bug: b/402274999