Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.2.0.dev] Using chef-solo provisioner on a box without 9p support causes kernel panic on the guest #222

Open
tatsuya6502 opened this issue Apr 15, 2014 · 6 comments

Comments

@tatsuya6502
Copy link

Using chef-solo provisioner on a CentOS 6.5 box without 9p support causes the VM to get kernel panic.

centos65-chef_2014-04-15_15 10 09

How to reproduce:

Install vagrant-kvm 0.2.0.dev with PR #219. Then run the following commands.

mkdir centos65-chef
cd centos65-chef
wget https://gist.githubusercontent.com/tatsuya6502/10709935/raw/9a3650976f9f0f07a8b30c3262a3d141de1168d6/Vagrantfile
mkdir cookbooks
cd cookbooks
git clone [email protected]:opscode-cookbooks/yum.git
cd ..
vagrant up
@tatsuya6502 tatsuya6502 changed the title [2.0.0.dev] Using chef-solo provisioner on a box without 9p support causes kernel panic on the guest [0.2.0.dev] Using chef-solo provisioner on a box without 9p support causes kernel panic on the guest Apr 15, 2014
@tatsuya6502
Copy link
Author

I created and uploaded a "9p ready" CentOS 6.5 box. (you will find it on the List of Boxes Wiki page.) That box just works fine with chef-solo provisioner and the 9p synced folders.

@miurahr
Copy link
Collaborator

miurahr commented Apr 16, 2014

Oh, excellent! 👍

@miurahr
Copy link
Collaborator

miurahr commented Apr 28, 2014

We need to check guest's capability.
Also to provide configuration option for users.

@miurahr
Copy link
Collaborator

miurahr commented May 18, 2014

In my short research, I cannot detect guest's capability by checking guest kernel configuration.
Only the way I can do is that p9 capability claim when guest is either debian, gentoo, fedora or arch. (white list) It is impossible to black list for capability.

Does it acceptable?

The direction of white listing p9 cap make RHEL/CentOS not to support p9 even when guest image is modified to support p9.

@miurahr
Copy link
Collaborator

miurahr commented May 18, 2014

I've made question on hashicorp/vagrant#3829

@miurahr
Copy link
Collaborator

miurahr commented May 21, 2014

Answer is

  • You can configure provider-specific overrides directly in your box via a Vagrantfile, just like you would in a normal Vagrantfile. Vagrant will merge this.

so we can update document for box creator to advice to add kvm specific configuration in Vagrantfile in box file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants