6
6

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.

PackerでCentOS7のBOXを作成 (Parallels用)

Posted at

そろそろ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:

参考

6
6
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
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?