そろそろCentOS7試したいなー、ということで。
ネットワーク設定のエラーは未解決。
Parallels10にアップグレードしたところ、Virtualboxが同時起動できるようになったので、もうparallels用BOX作らなくてもいいんじゃない、という気もしつつ。
環境
- OSX 10.9.4 (Mavericks)
- Parallels Desktop 10
- Vagrant 1.6.5
- Packer v0.7.0
BOX生成手順
0.Parallelsの追加ソフト
Parallels Virtualization SDK 10 for Mac をインストール
Download Parallels Desktop 10 for Mac
1.Packerのインストール
brew update
brew install homebrew/binary/packer
2.ParallelsのBOX生成に必要なツール導入
vagrant plugin install vagrant-parallels
brew tap rickard-von-essen/formulae
brew install --HEAD prl-utils
3.BOX生成
git clone git@github.com:hayori/packer-vanilla-box.git
cd packer-vanilla-box/centos/7
packer build -only=parallels-iso centos7.json
vagrant box add centos7-parallels artifacts/centos7-parallels.box
4.VagrantにBOX追加
vagrant box add centos7-parallels artifacts/centos7-parallels.box
とりあえず、使うだけなら
BOX公開したので、以下で使えると思います。おそらく。
vagrant init hayori/centos-7.0
vagrant up --provider=parallels
補足
メモリ、CPU
Vagrantfile
config.vm.provider "parallels" do |v|
v.memory = 2048
v.cpus = 4
end
【未解決】ネットワーク設定を変更する
Vagrantfile
config.vm.network "private_network", ip: "192.168.33.100"
エラー。 Virtualbox版だと上手く動くので、vagrant-parallels に問題あるのかな???
/vagrant ディレクトリでのファイル共有、インターネットアクセスは問題なさそう。
ERROR
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
/sbin/ifup eth1
Stdout from the command:
ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Device eth1 does not seem to be present, delaying initialization.
Stderr from the command: