Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Issue 116493002: build/android/install_emulator_deps.py: run kvm-ok as root when needed. (Closed)

Created:
7 years ago by digit1
Modified:
7 years ago
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

build/android/install_emulator_deps.py: run kvm-ok as root when needed. This change runs kvm-ok as root after installing the kvm and qemu-kvm packages to ensure that KVM can work. This gives better diagnostics in case of failure, which can happen for one of the following reasons: - The CPU doesn't support virtualization extensions. - The extensions have been disabled by the BIOS. BUG=NONE R=yfriedman@chromium.org,navabi@chromium.org,tfarina@chromium.org,raphael.kubo.da.costa@intel.com Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241708

Patch Set 1 #

Total comments: 3

Patch Set 2 : Always run kvm-ok with sudo. #

Patch Set 3 : Only run kvm-ok (as root) after installing packages, probe for /dev/kvm directly before that. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -6 lines) Patch
M build/android/install_emulator_deps.py View 1 2 2 chunks +18 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
digit1
7 years ago (2013-12-16 17:25:55 UTC) #1
navabi
Some places we do kvm-ok without sudo and some places with sudo. Is that intentional? ...
7 years ago (2013-12-16 19:43:08 UTC) #2
digit1
https://codereview.chromium.org/116493002/diff/1/build/android/install_emulator_deps.py File build/android/install_emulator_deps.py (right): https://codereview.chromium.org/116493002/diff/1/build/android/install_emulator_deps.py#newcode161 build/android/install_emulator_deps.py:161: rc = cmd_helper.RunCmd(['sudo', 'kvm-ok']) Actually, it looks like all ...
7 years ago (2013-12-17 08:41:43 UTC) #3
navabi
https://codereview.chromium.org/116493002/diff/1/build/android/install_emulator_deps.py File build/android/install_emulator_deps.py (right): https://codereview.chromium.org/116493002/diff/1/build/android/install_emulator_deps.py#newcode161 build/android/install_emulator_deps.py:161: rc = cmd_helper.RunCmd(['sudo', 'kvm-ok']) > if we want to ...
7 years ago (2013-12-17 21:31:04 UTC) #4
digit1
On 2013/12/17 21:31:04, navabi wrote: > I like that idea. Done, see patch set 3 ...
7 years ago (2013-12-18 10:11:10 UTC) #5
navabi1
lgtm
7 years ago (2013-12-18 21:14:22 UTC) #6
navabi1
On 2013/12/18 21:14:22, navabi1 wrote: > lgtm Thanks digit!
7 years ago (2013-12-18 21:14:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/digit@chromium.org/116493002/40001
7 years ago (2013-12-18 21:29:41 UTC) #8
commit-bot: I haz the power
7 years ago (2013-12-18 23:56:09 UTC) #9
Message was sent while issue was closed.
Change committed as 241708

Powered by Google App Engine
This is Rietveld 408576698