chromium os 빌드 및 qemu-kvm으로 실행하기


0. 참고사이트

1. 빌드 환경
Ubuntu 12.04 64bit (x86_64) 필요

2. 소스 다운로드
- $ cd /opt/webos/chromium
- $ repo init -u https://git.chromium.org/chromiumos/manifest.git
- $ repo sync

3. 빌드
# To enter the chroot
$./chromite/bin/cros_sdk 
[sudo] password for xxx: 
(chroot)$ 
- # Setup the build environment for the target board.  
(chroot)$ ./setup_board --board=x86-generic

# Build all the source packages, including those required for running autotests
(chroot)$ ./build_packages --board=x86-generic

- # Build a bootable image
- # Optional: Include "--noenable_rootfs_verification" if you think you might need to modify your rootfs.
(chroot)$ ./build_image --board=x86-generic test

- # Clone this image, modify it for test, and make image for use in qemu-kvm Virtual Machine
- # Note: because we use "--test_image", an explicit "modify_image_for_test" is not required.
(chroot)$ ./image_to_vm.sh --board=x86-generic --test_image

4. 실행
- $ /mnt/host/sosudo kvm -m 1024 -vga cirrus -pidfile /tmp/kvm.pid -net nic,model=virtio -net user,hostfwd=tcp::9222-:22 -hda urce/src/build/images/x86-generic/R29-4180.0.2013_05_28_0651-a1/chromiumos_test_image.bin
VNC server running on `127.0.0.1:5900'



5. 접속
- VNC 접속
- $ vncviewer 127.0.0.1:5900
- ssh 접속 (test_image인 경우 root password는 "test0000")
- $ ssh root@localhost -p 9222 -o StrictHostKeyChecking=no


댓글

이 블로그의 인기 게시물

SSH 연결 Delay 해결

[ELK] search guard를 이용한 보안 설정 (사용자 권한)

공공데이터(openapi) 사용법 (특정 정류소, 버스의 남은 좌석 확인 하기)