Closed ghost closed 10 years ago
Could you try the current version on Github? We still had some issues in 0.1.7. We want to release 0.2.0 asap but there's still a few open issues.
Also, it helps to know what your Linux distro is.
I'll update the plugin version and try again. Thank you!
I'm using Ubuntu 14.04.
For Ubuntu, you may want to look at https://github.com/adrahon/vagrant-kvm/wiki/Install_on_Ubuntu
@miurahr maintains a PPA
I updated the vagrant-kvm plugin, but i can't connect in ppa:miurahr/vagrant. I used the command "vagrant plugin install vagrant-kvm" and I get a success installation. But the problem occurred yet.
I managed to connect the ppa and updated version, but still the problem persists.
Could you post the new error message? There should be at least some changes (vagrant-kvm version number, line number for the error...)
The vagrant-kvm version is the same of the last one. And the error message is:
Bringing machine 'default' up with 'kvm' provider...
/home/camila/.vagrant.d/gems/gems/vagrant-kvm-0.1.7/lib/vagrant-kvm/driver/driver.rb:267:in `create_storage_pool_xml': no implicit conversion from nil to integer (TypeError)
from /home/camila/.vagrant.d/gems/gems/vagrant-kvm-0.1.7/lib/vagrant-kvm/driver/driver.rb:267:in `rescue in init_storage_directory'
from /home/camila/.vagrant.d/gems/gems/vagrant-kvm-0.1.7/lib/vagrant-kvm/driver/driver.rb:228:in `init_storage_directory'
from /home/camila/.vagrant.d/gems/gems/vagrant-kvm-0.1.7/lib/vagrant-kvm/driver/driver.rb:220:in `init_storage'
from /home/camila/.vagrant.d/gems/gems/vagrant-kvm-0.1.7/lib/vagrant-kvm/action/init_storage_pool.rb:14:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/warden.rb:34:in `call'
from /home/camila/.vagrant.d/gems/gems/vagrant-kvm-0.1.7/lib/vagrant-kvm/action/set_name.rb:25:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/warden.rb:34:in `call'
from /home/camila/.vagrant.d/gems/gems/vagrant-kvm-0.1.7/lib/vagrant-kvm/action/check_kvm.rb:18:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/runner.rb:69:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/runner.rb:69:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/machine.rb:157:in `action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/batch_action.rb:72:in `block (2 levels) in run'
I'm not on Ubuntu, so I don't know how the PPA stuff works, but obviously the plugin wasn't updated. Could you try getting the github version?
I will try again. Just a moment.
I try install using this sequence commands:
git clone https://github.com/adrahon/vagrant-kvm.git
cd vagrant-kvm
gem build vagrant-kvm.gemspec
vagrant plugin install vagrant-kvm-0.1.4.gem
And when i execute the last line:
$ vagrant plugin install vagrant-kvm-0.2.0.gem
Installing the 'vagrant-kvm-0.2.0.gem' plugin. This can take a few minutes...
/opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/package.rb:488:in `rescue in verify': No such file or directory - vagrant-kvm-0.2.0.gem (Gem::Package::FormatError)
from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/package.rb:466:in `verify'
from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/package.rb:450:in `spec'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/bundler.rb:110:in `block in install_local'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/bundler.rb:254:in `block in with_isolated_gem'
from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/user_interaction.rb:40:in `use_ui'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/bundler.rb:253:in `with_isolated_gem'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/bundler.rb:107:in `install_local'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/plugin/manager.rb:47:in `install_plugin'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/action/install_gem.rb:28:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/runner.rb:69:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/runner.rb:69:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/base.rb:14:in `action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/install.rb:32:in `block in execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/install.rb:31:in `each'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/install.rb:31:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/root.rb:56:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/cli.rb:42:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/environment.rb:248:in `cli'
from /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.5.4/bin/vagrant:164:in `<main>'
Did this error come because of bad settings on my computer?
dev version have names like version.dev, in that case it should be vagrant plugin install vagrant-kvm-0.2.0.gem
There's also an install.rb
script that you can run to build the gem and install it.
I try use install.rb bud i have this erros:
$ sudo ./install.rb
[sudo] password for camila:
"0.2.0.dev"
WARNING: description and summary are identical
Successfully built RubyGem
Name: vagrant-kvm
Version: 0.2.0.dev
File: vagrant-kvm-0.2.0.dev.gem
Installing the 'vagrant-kvm-0.2.0.dev.gem' plugin. This can take a few minutes...
/opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_installer.rb:211:in `gather_dependencies': Unable to resolve dependencies: vagrant-kvm requires ruby-libvirt (>= 0.5.2, ~> 0.5) (Gem::DependencyError)
from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_installer.rb:333:in `install'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/bundler.rb:110:in `block in install_local'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/bundler.rb:254:in `block in with_isolated_gem'
from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/user_interaction.rb:40:in `use_ui'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/bundler.rb:253:in `with_isolated_gem'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/bundler.rb:107:in `install_local'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/plugin/manager.rb:47:in `install_plugin'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/action/install_gem.rb:28:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/runner.rb:69:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/runner.rb:69:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/base.rb:14:in `action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/install.rb:32:in `block in execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/install.rb:31:in `each'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/install.rb:31:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/root.rb:56:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/cli.rb:42:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/environment.rb:248:in `cli'
from /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.5.4/bin/vagrant:164:in `<main>'
You're not supposed to sudo ./install.rb
, just ./install.rb
it's going to install the plugin in your home directory under .vagant.d
But it did not work too.
$ ./install.rb
"0.2.0.dev"
WARNING: description and summary are identical
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - vagrant20140605-4900-h7gkrg
Installing the 'vagrant-kvm-0.2.0.dev.gem' plugin. This can take a few minutes...
/opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/package.rb:537:in `verify_files': package metadata is missing in vagrant-kvm-0.2.0.dev.gem (Gem::Package::FormatError)
from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/package.rb:473:in `block (2 levels) in verify'
from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/package/tar_reader.rb:28:in `new'
from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/package.rb:470:in `block in verify'
from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/package.rb:469:in `open'
from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/package.rb:469:in `verify'
from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/package.rb:450:in `spec'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/bundler.rb:110:in `block in install_local'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/bundler.rb:254:in `block in with_isolated_gem'
from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/user_interaction.rb:40:in `use_ui'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/bundler.rb:253:in `with_isolated_gem'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/bundler.rb:107:in `install_local'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/plugin/manager.rb:47:in `install_plugin'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/action/install_gem.rb:28:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/runner.rb:69:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/action/runner.rb:69:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/base.rb:14:in `action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/install.rb:32:in `block in execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/install.rb:31:in `each'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/install.rb:31:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/plugins/commands/plugin/command/root.rb:56:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/cli.rb:42:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.5.4/lib/vagrant/environment.rb:248:in `cli'
from /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.5.4/bin/vagrant:164:in `<main>'
I'm not a Rubygems expert, but your gem environment (or just gem building) may have a problem. Can you try downloading the gem I've built from https://dl.dropboxusercontent.com/u/9568979/vagrant-kvm-0.2.0.dev.gem
My gem environment is very bad. I can't install your gemfile. I'll try reinstall all Rubygems and install vagrant again. Thank you so much for your help!
The PPA is to provide back ported qemu and libvirt for precise and saucy. Ubuntu 14.04 is not necessary to use PPA.
@miurahr OK, sorry I didn't understand that, does the wiki page need updating?
@camilawhite please tell us how it went, it's important feedback
I'll try install it into a other machine. Maybe the problem is in my computer and not in the plugin. But when I install again I tell for you.
Thanks again.
I managed to install a vagrant-kvm plugin using a version on GIT. Now, it executed with success. This was a error on my rubygems. But i can't up the vm. I create a vm with the veewee, use the command veewee kvm export myMachine. When I try add the box for the kvm provider, it says that the vm is not a kvm, but a libvirt provider.
"The box you attempted to add doesn't match the provider you specified.
Provider expected: kvm Provider of box: libvirt"
Do not know if this is where this question shot, if not, sorry.
Your box metadata.json
file in /home/camila/.vagrant.d/boxes/.../ must contain `"provider":"kvm", and also the path should end in /0/kvm/
You can change it manually or you may use mutate, see https://github.com/adrahon/vagrant-kvm/wiki#mutate
It's a good idea to use one of the provided boxes to test your setup https://github.com/adrahon/vagrant-kvm/wiki/List-boxes
I used a ready box to test the plugin (the first on your list). But the command vagrant up is not work.
$ vagrant up --provider=kvm
Bringing machine 'default' up with 'kvm' provider...
==> default: Importing base box 'Ubuntu14'...
==> default: Matching MAC address for NAT networking...
==> default: Preparing network interfaces based on configuration...
==> default: Booting VM...
==> default: Destroying VM and associated drives...
/home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/driver/driver.rb:524:in `create': Call to virDomainCreateWithFlags failed: internal error: process exited while connecting to monitor: qemu-system-x86_64: -drive file=/home/helvio/.vagrant.d/tmp/storage-pool/box-disk1-1402548939.img,if=none,id=drive-sata0-0-0,format=qcow2: could not open disk image /home/helvio/.vagrant.d/tmp/storage-pool/box-disk1-1402548939.img: Could not open backing file: Could not open '/home/helvio/.vagrant.d/boxes/Ubuntu14/0/kvm/box-disk1.img': Permission denied (Libvirt::Error)
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/driver/driver.rb:524:in `start'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/boot.rb:14:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/forward_ports.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/customize.rb:39:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/set_hostname.rb:16:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/prepare_nfs_settings.rb:11:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-proxyconf-1.3.2/lib/vagrant-proxyconf/action/only_once.rb:21:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/synced_folders.rb:84:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/synced_folder_cleanup.rb:28:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/synced_folders/nfs/action_cleanup.rb:25:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/prepare_nfs_valid_ids.rb:12:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:160:in `handle'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:42:in `block in call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:434:in `lock'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:41:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-proxyconf-1.3.2/lib/vagrant-proxyconf/action/only_once.rb:21:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/provision.rb:80:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/prepare_kvmconfig.rb:18:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/check_kvm.rb:18:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/network.rb:22:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/match_mac_address.rb:16:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/import.rb:103:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/init_storage_pool.rb:17:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/customize.rb:39:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/set_name.rb:49:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/handle_box.rb:56:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/init_storage_pool.rb:17:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /home/helvio/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/action/check_kvm.rb:18:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:196:in `action_raw'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:173:in `block in action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:434:in `lock'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in `action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
I changed the directory permissions but it not work too.
$ ls -l /home/helvio/.vagrant.d/boxes/Ubuntu14/0/kvm
total 1803856
-rwxrwxrwx 1 libvirt-qemu kvm 1847132160 Jun 12 01:45 box-disk1.img
-rwxrwxrwx 1 helvio helvio 2124 Jun 12 01:44 box.xml
-rwxrwxrwx 1 helvio helvio 18 Jun 12 01:44 metadata.json
-rwxrwxrwx 1 helvio helvio 77 Jun 12 01:44 Vagrantfile
I'm not on Ubuntu, but it sounds similar to the issue described here https://github.com/adrahon/vagrant-kvm/wiki/Install_on_Ubuntu#vagrant-up-fails-with-a-permission-error
There is a problem in a fresh installation environment of Ubuntu 14.04 (Trusty). It is nessecery to update OS using trusty-update official repository. After apt-get upgrade, you may see updating kernel(linux-image), qemu and libvirt, vagrant-kvm will be worked. https://github.com/adrahon/vagrant-kvm/issues/248#issuecomment-45431443
I managed run the command vagrant up without errors now! For this I updated all system and installed the AppArmor to changed de permissions. Now it works perfectly.
Thank you so much @adrahon e @miurahr!
Great news, I'm closing the issue. Feel free to make suggestions to improve the documentation.
This helped me a lot. Thanks.
Hi guys!
I'm trying to create a vangrant box using a kvm provider.
I created a box using veewee.
My Vagrantfile is this:
Now, when i try execute "vagrant up" i get this error message:
Anyone have a suggestion? Thanks.