2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AtomicをWindowsのVagrantで使おうとしたけど(僕が)ダメで諦めましたorz

Posted at

AtomicをWindowsのVagrantで使おうとしたけど(僕が)ダメで諦めました orz

無意味な記事になってしまった。。。
WindowsのVagrantでAtomic使ってみたかった、ただそれだけのこと。

とりあえず、Vagrantで動かしてみる流れ

VagrantのAtomicイメージをダウンロード

ダウンロードはここから
Fedora版とCentOS版を選べる。
今回選択したのは、FedoraのAtomicのVagrantイメージ。

PowerShell
PS C:\atomic> ls
    ディレクトリ: C:\atomic
Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---        2015/09/16     18:41  441221120 Fedora-Cloud-Atomic-Vagrant-22-20150521.x86_64.vagrant-virtualbox.box

VagrantにダウンロードしたBoxを追加

PowerShell
PS C:\atomic> vagrant box add .\Fedora-Cloud-Atomic-Vagrant-22-20150521.x86_64.vag
rant-virtualbox.box --name atomic-fedora-22
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'atomic-fedora-22' (v0) for provider:
    box: Unpacking necessary files from: file://C:/atomic/Fedora-Cloud-Atomic-Vagrant-22-20150521.x86_64.vagrant-virtualbox.box
    box: Progress: 100% (Rate: 674M/s, Estimated time remaining: --:--:--)
==> box: Successfully added box 'atomic-fedora-22' (v0) for 'virtualbox'!

確認・・・

PowerShell
PS C:\atomic> vagrant box list
atomic-fedora-22 (virtualbox, 0)
chef/centos-7.0  (virtualbox, 1.0.0)

追加されました!!!

initして、Vagrantfileを設定して、up

PowerShell
PS C:\atomic> vagrant init atomic-fedora-22
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

とりあえずIP。(SSHコマンド入れてないので)

PowerShell
- # config.vm.network "private_network", ip: "192.168.33.10"
+ config.vm.network "private_network", ip: "192.168.33.22"

UP!

PowerShell
PS C:\atomic> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'atomic-fedora-22'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: atomic_default_1442397632719_88270
"rsync" could not be found on your PATH. Make sure that rsync
is properly installed on your system and available on the PATH.

ダメでした。

https://bugzilla.redhat.com/show_bug.cgi?id=1225198
One option how to bypass this is to actually delete the Vagrantfile coming with the .box file and repackage the box without it. To do so you can just untar the .box file (tar -xf...), delete Vagrantfile and recreate the archive again (tar -cf...). In that case the default sharing method on Windows should be VirtualBox shared folders. We don't include vboxsf since it's not packaged in base Fedora.

・FedoraのAtomicパッケージには、vboxsfを入れていない(Fedoraにもともと入っていないから)
・Box内のVagrantfileでフォルダ同期方法がrsyncになっている

ちなみに、CentOS版も同様にダメでした。

Box内のVagrantfileを書き換えるとできると書いてあるので、
とりあえず、Box内のVagrantfile書き換えてやってみたところ、

ちゃんと動きます。

が、ログインできず、そこで諦めました。

心が折れました。

rsync入れるとか、SSHKeyまわりを調べるとか、
頑張れば出来るんでしょうけど、別にそこまでしてやんなくても、ねぇ?

Dockerなら他の方法でやればいいよねっ!!(ダメだおれ)

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?