在一台机器上安装CoreOS

我将如何在单台机器上安装CoreOS作为主机操作系统?

我已经读过“安装CoreOS到磁盘”,并从Debian和CentOS live CD运行coreos-install脚本,但都似乎错过了脚本需要加载configuration文件的lsblk命令的-p参数。 即使在更新util-linux ,它仍然不能正常工作。

正在使用现场CD的正确方法? 在我的情况下,PXE不是一个选项。

解决方法:最后我用最新的Arch linux live cd,工作正常。

 $ wget https://raw.githubusercontent.com/coreos/init/master/bin/coreos-install $ sudo bash coreos-install -d /dev/sda $ mkdir rootfs $ mount -t btrfs -o subvol=root /dev/sda9 rootfs #sda9 is the default root partition $ mkdir -p rootfs/var/lib/coreos-install $ wget http://bit.ly/abcd #the location of your cloud config file $ mv abcd rootfs/var/lib/coreos-install/user_data 

看起来-p (或者--paths )是在util-linux 2.24中添加的。 你有没有尝试过这个版本的现场系统?

使用Ubuntu Trusty livecd为我工作

 ~$ sudo wget https://raw.githubusercontent.com/coreos/init/master/bin/coreos-install ~$ sudo chmod +x coreos-install ~$ sudo ./coreos-install -d /dev/sda -C alpha -c ~/cloud-config.yaml 

虽然你可以挂载/ dev / sda手动调整(而不是使用/创build一个cloud-config.yaml)通过…

 ~$ mount -o subvol=root /dev/sda9 /mnt 

如删除根和核心密码,为docker,etcd和舰队创buildsystemd单元文件。