Created
September 14, 2017 15:35
-
-
Save naa0yama/408a3af7027735cdfbdb9148038810ae to your computer and use it in GitHub Desktop.
RancherOS で インストール後パスワードでログインする方法 ref: http://qiita.com/FoxBoxsnet/items/127354c03b55a161a35b
This file contains 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
[rancher@host-192-168-0-44 ~]$ cat <<EOF > cloud-config.yml | |
hostname: ros003 | |
EOF | |
[rancher@host-192-168-0-44 ~]$ cat cloud-config.yml | |
hostname: ros003 | |
This file contains 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
[rancher@host-192-168-0-44 ~]$ sudo ros install -c cloud-config.yml -d /dev/sda --append "rancher.password=password" | |
> INFO[0000] No install type specified...defaulting to generic | |
Installing from rancher/os:v1.0.3 | |
Continue [y/N]: ^C^ | |
[rancher@host-192-168-0-44 ~]$ sudo ros install -c cloud-config.yml -d /dev/vda --append> | |
> INFO[0000] No install type specified...defaulting to generic | |
Installing from rancher/os:v1.0.3 | |
Continue [y/N]: y | |
> INFO[0001] start !isoinstallerloaded | |
> INFO[0002] trying to load /bootiso/rancheros/installer.tar.gz | |
404361ced64e: Loading layer [==================================================>] 4.221 MB/4.221 MB | |
4361304d3da7: Loading layer [==================================================>] 14.97 MB/14.97 MB | |
09ba8a5cee0e: Loading layer [==================================================>] 4.608 kB/4.608 kB | |
e5afbc3cfca1: Loading layer [==================================================>] 18.08 MB/18.08 MB | |
a18e5c9a9926: Loading layer [==================================================>] 1.636 MB/1.636 MB | |
ee1a08a7474f: Loading layer [==================================================>] 1.536 kB/1.536 kB | |
c692731ace1c: Loading layer [==================================================>] 2.56 kB/2.56 kB | |
2102ea1d03a0: Loading layer [==================================================>] 3.072 kB/3.072 kB | |
> INFO[0004] Loaded images from /bootiso/rancheros/installer.tar.gz | |
> INFO[0004] starting installer container for rancher/os-installer:latest (new) | |
Installing from rancher/os-installer:latest | |
mount: /dev/sr0 is write-protected, mounting read-only | |
mke2fs 1.43.4 (31-Jan-2017) | |
Creating filesystem with 13106688 4k blocks and 13107200 inodes | |
Filesystem UUID: 393a82ea-a595-4efb-a984-7676cd0ed742 | |
Superblock backups stored on blocks: | |
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, | |
4096000, 7962624, 11239424 | |
Allocating group tables: done | |
Writing inode tables: done | |
Creating journal (65536 blocks): done | |
Writing superblocks and filesystem accounting information: done | |
Continue with reboot [y/N]: y | |
> INFO[0008] Rebooting | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment