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

Vagrant up failed if sudo is not installed #275

Open
gled-rs opened this issue Jan 12, 2015 · 0 comments
Open

Vagrant up failed if sudo is not installed #275

gled-rs opened this issue Jan 12, 2015 · 0 comments

Comments

@gled-rs
Copy link

gled-rs commented Jan 12, 2015

Hi guys,

Configuring Vagrantfile as follow:

Vagrant.configure(2) do |config|
config.vm.box = "debian7"
config.ssh.username = "root"
config.ssh.password = "toor"
config.vm.network :private_network, ip: "192.168.123.20"
config.vm.provider :kvm do |kvm, override|
kvm.memory_size = '512m'
kvm.sudo = false
kvm.gui = 1
kvm.cpu_model="x86_64"
kvm.memory_size = "2G"
kvm.core_number = 2
end
end

Base image does not contain sudo, everything works till it tries to mount p9share, which fails as it tries to mount with sudo, without checking if it exists first.

Monkeypatching cap/mount_p9.rb by replacing machine.communicate.sudo by machine.communicate.execute works without any issue.

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

1 participant