So you just got Webpack all set up, and you're using Vagrant or Docker. Then you run webpack --watch. But when you make changes in your favorite text editor, Webpack doesn't even notice! It does nothing! Why? First let's discuss how this normally works on Linux: You run webpack --watch, which subscribes to file changes using inotify. You make changes in your text editor. inotify picks up the chang
前回の記事の続き.trustyと同レベルには解決した. 環境(再掲) Host: Ubuntu 14.04 amd64 VirtualBox 5.0.20 Guest: ubuntu/xenial32, ubuntu/xenial64 症状(再掲) Vagrantのubuntu/xenial64(あるいはubuntu/xenial32)を起動すると 起動後まもなく,root filesystemがread-onlyになる 動いている間も動作が遅い ログファイルを見ると,次のようなメッセージが得られた. sd 2:0:0:0: [sda] tag#7 Medium access timeout failure. Offlining disk! sd 2:0:0:0: rejecting I/O to offline device Buffer I/O error on device Buff
【追記 2016/06/21】 Docker for Macがリリースされました。これでVirtualBoxを使う必要はなくなったので、この記事にあるdinghyを導入する必要はありません。 OSXでDockerを使うときには、VirtualBox + Docker Machineを使う事が多いと思います。しかし、VirtualBoxの共有フォルダ機能は凄く遅いため、その上で動くDockerも共有Volumesを使うと遅くなるという問題があります。 Vagrantの場合には、NFSマウントを使う事で早くすることができますが、Docker Machineにはその機能がありません。 そこで、OSXのDocker MachineのVolumes機能をNFSに入れ替えてくれるdinghyを試してみました。 codekitchen/dinghy: faster, friendlier Docker
もう、あって当たり前というところまで浸透してきた仮想環境、みなさまは何をお使いでしょうか? 私の周辺ではVirtualBoxがよく使われています。 典型的な使い方としては、 以下のような感じです。 ホストOSには、mac/windowsをつかう ゲストOSには、Linuxを使う 共有フォルダを使って、ホストとゲストでファイルを共有する その中でも地味に重要なのが共有フォルダ。 共有フォルダとは、ホストOSのファイルシステムをゲストOSからマウントするための、VirtualBoxが提供している仕組みです。 しかし便利な反面、ファイルアクセスが非常に遅いという声をよく聞きます。 findが終わらないとか、git statusが遅すぎるとか... この問題への対策を探してみると、下記のような物がみつかります。 vboxsfでなくNFSなど別のファイルシステムを使う VirtulaboxではなくV
Home > Vagrant | 開発環境 > Vagrant + VirtualBox で nfs を使って、synced_folder を速くする Vagrant + VirtualBox で便利な synced_folder を nfs を使ってパフォーマンスを向上する方法です。 開発環境として Vagrant + VirtualBox を使う上で欠かせないのが synced_folder です。ホストとゲスト間でディレクトリを共有できるので、ホストで書いたコードをゲストですぐに実行することができます。 synced_folder はVirtualBox が持つ shared folders という機能をつかているのですが、代わりに nfs を使うことで、パフォーマンスを向上させることができます。 nfsd をホスト側で起動 synced_folder に nfs を利用するには、ホ
Vagrant というか VirtualBox の話でゲストOS が Linux の話です。 sendfile(2) のバグ Nginx や Apache で sendfile(2) サポートを有効にしていると VirtualBox の shared folder ( /vagrant ) のファイルを ホストOS側からで更新しても反映されないバグが知られています。Vagrant のドキュメント にも以下のワークアラウンドで回避しろとあります There is a VirtualBox bug related to sendfile which can result in corrupted or non-updating files. You should deactivate sendfile in any web servers you may be running. In Ngin
If you are using the Vagrant VirtualBox provider, then VirtualBox shared folders are the default synced folder type. These synced folders use the VirtualBox shared folder system to sync file changes from the guest to the host and vice versa. Optionsautomount (boolean) - If true, the --automount flag will be used when using the VirtualBox tools to share the folder with the guest VM. Defaults to fal
× Sign in with twitter. You can follow the user and hashtags. Share your tips on social media. Post relative tips. If you have relative tips, click [Add relative tips] to post. ■環境 Virtualbox7.0.1、CentOS6、Apache2 ■現象 Virtualboxの共有フォルダ機能でホストのMacのworkspaceを ゲストのCentOSにマウントしてDocumentRootに設定し、開発していたところCSSを変更しても反映されない。 応急的にはサーバーを再起動すると反映される。 また、該当のファイルを削除して、作りなおすことでも反映される。 ■原因 Apacheの静的ファイルをメモリ上にキャッシュす
Vagrant - naoyaのはてなダイアリー 最近naoyaさんに影響されまくっているkazuphです。 naoyaさんは今まで使い方がわからなくて二の足を踏んでいる人でも、使いたくなるようなわかりやすい記事を書いてくれて本当に助かります。 ということで例に習ってvagrantを使ってみます。 今回は手元にWin7が転がっていたのでそちらにインストールしてみました。 手順は正直これとnaoyaさんの記事だけ読んでれば大丈夫です。 http://docs.vagrantup.com/v1/docs/getting-started/index.html ちなみにぐぐってよく出てくるRubyとRubyGemを入れる方法は今回は必要ありませんでした。 1. VirtualBoxのインストール https://www.virtualbox.org/wiki/Downloads ↑の「Virtua
開発環境に便利と話題のVirtualBoxとVagrantを、ようやくインストールしてみたメモです。 こちらの記事を参考にしました。 WindowsでVagrantする - みんなのちからになりたい Window 7 でVagrantでCent OS 6.3入れてみた - 僕の車輪の再発明 VirtualBoxを入れる Downloads ? Oracle VM VirtualBox から VirtualBox 4.2.16 for Windows hosts x86/amd64 をダウンロードして実行。 Setup Wizardが起動するので Next Next。なんかOracle製のドライバ類が色々インストールされるけど気にしない。 Vagrantを入れる Vagrant - Downloads から 最新版 v1.2.7 のページに飛び Vagrant_1.2.7.msi をダウンロ
Images as codePacker standardizes and automates the process of building system and container images. Multi-cloud image workflowCreate one workflow for images across multiple clouds and private infrastructure. Extend Packer with pluginsPlugins extend Packer’s functionality without modifying Packer's core by adding new builders, provisioners, post-processors, and data sources.
Vagrant 便利ですね。Web システム構築ではサーバ構築、設定を何度となく繰り返すので、こういった「作って、壊して、元に戻せる」環境が自分の PC にあるというのはとても重宝します。 ここでは Vagrant1.0 を使って、Mac OS X 上に CentOS サーバを構築します。また触ってみて便利だった機能もいくつかご紹介します。 1. VirtualBox のインストール 2. Vagrant1.0 のインストール 3. box ファイルのインストール 4. Vagrantfile の作成 5. 仮想サーバを起動 6. 仮想サーバを停止 7. 仮想サーバを削除 8. 仮想サーバでhttpdサーバを構築 9. sahara プラグインで、作って、壊して、元に戻せる環境を構築 10. 複数の仮想サーバを起動 11. 仮想サーバのエクスポート Q. OS X, ruby, gem の
先日 Vagrant を触ってみたら便利すぎて鼻血が出ました。しばらく見ないうちに色々進んでるもんですねえ、いやはや参っちゃいました。 Vagrant は仮想マシンの VirtualBox のフロントエンドに相当する、ruby で書かれたツールです。vagrant コマンドなどを使ってコマンドラインから簡単に新しい VM を作れる。 % gem install vagrant % vagrant box add centos http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.3-x86_64-v20130101.box % vagrant init centos % vagrant upこれだけで CentOS の Linux box をローカルマシン内に立ち上げることができる。*1 *2 なにこれすごい。 % vagra
Pre-Built Developer VMs (for Oracle VM VirtualBox) Learning your way around a new software stack is challenging enough without having to spend multiple cycles on the install process. Instead, we have packaged such stacks into pre-built Oracle VM VirtualBox appliances that you can download, install, and experience as a single unit. Just downloaded/assemble the files, import into VirtualBox (availab
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く