크롬북에서 Arch Linux 사용

다음과 같이 설치했습니다.
1) 개발자 모드로 전환
2) 리눅스 활성화
3) Arch Linux 컨테이너 만들기
Crostini 를 참고했습니다.
vsh termina
lxc launch images:archlinux/current/amd64 arch



실행 결과
(termina) chronos@localhost ~ $ lxc launch images:archlinux/current/amd64 arch
Creating arch
Starting arch

루트 암호를 설정합니다.
(termina) chronos@localhost ~ $ lxc exec arch bash
[root@arch ~]# passwd root       
New password: 
Retype new password: 
passwd: password updated successfully
[root@arch ~]# exit
exit

4) 설치 후 사용법
Chrome에서 새 터미널 열기(Alt+Shift+T)
vsh termina
lxc console arch


crosh> vsh termina
(termina) chronos@localhost ~ $ lxc console arch
To detach from the console, press: <ctrl>+a q

arch login: uchida
Password: 
Last login: Mon Sep 16 02:29:22 on console
[uchida@arch ~]$ cat /etc/os-release 
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux

종료 할 때,
Ctrl+aq

즉시 설치하는 것이 좋은 패키지
openssh
bind-tools
sudo
rsync
git

docker 이미지를 여러 번 움직일 수도 있습니다.
(termina) chronos@localhost ~ $ lxc list
+---------+---------+-----------------------+------+------------+-----------+
|  NAME   |  STATE  |         IPV4          | IPV6 |    TYPE    | SNAPSHOTS |
+---------+---------+-----------------------+------+------------+-----------+
| arch    | RUNNING | 100.115.92.197 (eth0) |      | PERSISTENT | 0         |
+---------+---------+-----------------------+------+------------+-----------+
| debian  | RUNNING | 100.115.92.199 (eth0) |      | PERSISTENT | 0         |
+---------+---------+-----------------------+------+------------+-----------+
| penguin | RUNNING | 100.115.92.201 (eth0) |      | PERSISTENT | 0         |
+---------+---------+-----------------------+------+------------+-----------+

"DNS로 해결할 수 없다"면,
/etc/resolv.conf의 nameserver 설정을 호스트 (Chrome OS)의/etc/resolv.conf와 동일하게 설정하면 해결됩니다.

호스트 (Chrome OS)/etc/resolv.conf를 확인하는 방법
crosh> shell
chronos@localhost / $ cat /etc/resolv.conf 
nameserver 192.168.8.1
options single-request timeout:1 attempts:5

vsh termina에서 다음과 유사한 오류가 발생하면,
[ERROR:object_proxy.cc(581)] Failed to call method: org.chromium.VmConcierge.GetVmInfo: object_path= /org/chromium/VmConcierge: org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.VmConcierge was not provided by any .service files
[ERROR:vsh.cc(89)] Failed to send dbus message to concierge service

다음 명령으로 해결합니다.
vmc start termina
crosh> vmc start termina
(termina) chronos@localhost ~ $

2020-1-1에서 네트워크 주소를 얻을 수 없다는 문제가 발생했지만 2020-1-20에서는 검색 할 수있었습니다.
[uchida@arch ~]$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
11: eth0@if12: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:16:3e:5d:78:52 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 100.115.92.197/28 brd 100.115.92.207 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::216:3eff:fe5d:7852/64 scope link 
       valid_lft forever preferred_lft forever

좋은 웹페이지 즐겨찾기