diff options
| author | Liz Prucka <lizprucka@google.com> | 2022-08-26 14:10:58 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2022-09-05 11:58:21 +0200 |
| commit | c7716a99945c513357f90592f4dcf96a5cabf7b9 (patch) | |
| tree | 6f13b63ee8552f04b8d0a38f87df3d69d14e240e /vm/cuttlefish | |
| parent | 922294abb4c0bc72b24d8526d625110d73fa1b5a (diff) | |
vm/cuttlefish: disable cuttlefish sandbox
The Cuttlefish sandbox uses SecComp to filter crosvm signals,
resulting in crosvm being killed during running.
Disabling this option allows Cuttlefish to run successfully.
Additionally, the report_anonymous_usage_stats flag is disabled to
prevent hanging when Cuttlefish is run from the daemon
Diffstat (limited to 'vm/cuttlefish')
| -rw-r--r-- | vm/cuttlefish/cuttlefish.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/cuttlefish/cuttlefish.go b/vm/cuttlefish/cuttlefish.go index dd2a0e898..ccea7c7e7 100644 --- a/vm/cuttlefish/cuttlefish.go +++ b/vm/cuttlefish/cuttlefish.go @@ -69,7 +69,8 @@ func (pool *Pool) Create(workdir string, index int) (vmimpl.Instance, error) { // Start a Cuttlefish device on the GCE instance. if err := inst.runOnHost(10*time.Minute, - "./bin/launch_cvd -daemon -kernel_path=./bzImage -initramfs_path=./initramfs.img"); err != nil { + fmt.Sprintf("./bin/launch_cvd -daemon -kernel_path=./bzImage -initramfs_path=./initramfs.img"+ + " --noenable_sandbox -report_anonymous_usage_stats=n")); err != nil { return nil, fmt.Errorf("failed to start cuttlefish: %s", err) } |
