Hi guys!

I'm trying to create a vangrant box using a kvm provider. 

I created a box using veewee.

 bundle exec veewee kvm define 'win7' 'windows-7-enterprise-i386'
 bundle exec veewee kvm build 'win7'
 bundle exec veewee kvm export win7
 vagrant box add 'win7' '/home/camila/veewee/w7/win7.box'


My Vagrantfile is this:

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're 
doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  # All Vagrant configuration is done here. The most common configuration
  # options are documented and commented below. For a complete reference,
  # please see the online documentation at vagrantup.com.

  # Every Vagrant virtual environment requires a box to build off of.
  config.vm.box = "win7"
#  config.vm.box_url = "/home/camila/veewee/w7/win7.box"

  config.vm.network :private_network, ip: "192.168.1.15"

   config.vm.provider :libvirt do |libvirt|
    libvirt.driver = "qemu"
#    libvirt.host = "localhost"
#    libvirt.connect_via_ssh = false
#    libvirt.username = "root"
    libvirt.storage_pool_name = "default"
  end
end


 Now, when i try execute "vagrant up" i get this error message:

$ vagrant up --provider=kvm
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'



Anyone have a suggestion? Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to