2 Replies Latest reply: Jan 24, 2012 7:41 AM by Carlo de Wolf RSS

Permission denied - /var/lib/libvirt/images

Carlo de Wolf Master

On Fedora 16 with SELinux set to enforce :

$ sudo -E boxgrinder-build rawhide-jeos.appl -d libvirt
WARNING: couldn't connect to: /tmp/keyring-IPcYsM/pkcs11: No such file or directory
I, [2012-01-24T13:23:07.162840 #20963]  INFO -- : Validating appliance definition from rawhide-jeos.appl file...
I, [2012-01-24T13:23:07.164470 #20963]  INFO -- : Appliance definition is valid.
I, [2012-01-24T13:23:07.170293 #20963]  INFO -- : Building 'rawhide-jeos' appliance for x86_64 architecture.
I, [2012-01-24T13:23:07.170504 #20963]  INFO -- : Deliverables for fedora os plugin exists, skipping.
I, [2012-01-24T13:23:07.172075 #20963]  INFO -- : Copying disk build/appliances/x86_64/fedora/rawhide/rawhide-jeos/1.0/fedora-plugin/rawhide-jeos-sda.raw to: /var/lib/libvirt/images...
F, [2012-01-24T13:23:07.172437 #20963] FATAL -- : Errno::EACCES: Permission denied - /var/lib/libvirt/images
/usr/lib/ruby/1.8/fileutils.rb:1269:in `initialize'
/usr/lib/ruby/1.8/fileutils.rb:1269:in `open'
/usr/lib/ruby/1.8/fileutils.rb:1269:in `copy_file'
/usr/lib/ruby/1.8/fileutils.rb:1268:in `open'
/usr/lib/ruby/1.8/fileutils.rb:1268:in `copy_file'
/usr/lib/ruby/1.8/fileutils.rb:464:in `copy_file'
/usr/lib/ruby/1.8/fileutils.rb:383:in `cp'
/usr/lib/ruby/1.8/fileutils.rb:1402:in `fu_each_src_dest'
/usr/lib/ruby/1.8/fileutils.rb:1418:in `fu_each_src_dest0'
/usr/lib/ruby/1.8/fileutils.rb:1400:in `fu_each_src_dest'
/usr/lib/ruby/1.8/fileutils.rb:382:in `cp'
/usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.0/lib/boxgrinder-build/plugins/delivery/libvirt/libvirt-plugin.rb:145:in `execute'
/usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.0/lib/boxgrinder-build/plugins/base-plugin.rb:172:in `run'
/usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.0/lib/boxgrinder-build/appliance.rb:174:in `execute_plugin'
/usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.0/lib/boxgrinder-build/appliance.rb:121:in `execute_plugin_chain'
/usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.0/lib/boxgrinder-build/appliance.rb:121:in `each'
/usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.0/lib/boxgrinder-build/appliance.rb:121:in `execute_plugin_chain'
/usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.0/lib/boxgrinder-build/appliance.rb:154:in `create'
/usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.0/bin/boxgrinder-build:189
/usr/bin/boxgrinder-build:19:in `load'
/usr/bin/boxgrinder-build:19