xapi-project / vagrant-xenserver

A Vagrant provider for XenServer
MIT License
120 stars 31 forks source link

Error when bring up machine #22

Closed fanwb1985 closed 9 years ago

fanwb1985 commented 9 years ago

OS: Centos 6.2 vagrant version: 1.7.4 xen center: 6.5

Can anyone help?

error message:

vagrant up --provider=xenserver Bringing machine 'default' up with 'xenserver' provider... 1+0 records in 1+0 records out 1048576 bytes (1.0 MB) copied, 0.00309725 s, 339 MB/s /opt/vagrant/embedded/lib/ruby/2.0.0/xmlrpc/create.rb:202:in conv2value': Wrong type NilClass. Not allowed! (RuntimeError) from /opt/vagrant/embedded/lib/ruby/2.0.0/xmlrpc/create.rb:118:inblock in methodCall' from /opt/vagrant/embedded/lib/ruby/2.0.0/xmlrpc/create.rb:117:in collect' from /opt/vagrant/embedded/lib/ruby/2.0.0/xmlrpc/create.rb:117:inmethodCall' from /opt/vagrant/embedded/lib/ruby/2.0.0/xmlrpc/client.rb:278:in call2' from /opt/vagrant/embedded/lib/ruby/2.0.0/xmlrpc/client.rb:260:incall' from /root/.vagrant.d/gems/gems/vagrant-xenserver-0.0.11/lib/vagrant-xenserver/action/upload_vhd.rb:72:in block in call' from /root/.vagrant.d/gems/gems/vagrant-xenserver-0.0.11/lib/vagrant-xenserver/action/upload_vhd.rb:42:insynchronize' from /root/.vagrant.d/gems/gems/vagrant-xenserver-0.0.11/lib/vagrant-xenserver/action/upload_vhd.rb:42:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:95:in block in finalize_action' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builder.rb:116:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/runner.rb:66:in block in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/util/busy.rb:19:inbusy' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/runner.rb:66:in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builtin/call.rb:53:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in call' from /root/.vagrant.d/gems/gems/vagrant-xenserver-0.0.11/lib/vagrant-xenserver/action/connect_xs.rb:28:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builtin/config_validate.rb:25:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builtin/handle_box.rb:56:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builder.rb:116:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/runner.rb:66:in block in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/util/busy.rb:19:inbusy' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/runner.rb:66:in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/machine.rb:214:inaction_raw' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/machine.rb:191:in block in action' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/environment.rb:516:inlock' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/machine.rb:178:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/machine.rb:178:inaction' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'

jonludlam commented 9 years ago

From the backtrace, it looks like it failed to make the VDI on the xenserver. If you rerun with '--debug' you should see a log line that looks like:

 created VDI: <some error maybe?>

The error reporting in this is poor at the moment - there's an issue to fix this up (#20)

fanwb1985 commented 9 years ago

Thanks jonludlam. When I use debug option, I do find the error.

INFO upload_vhd: created VDI: ERROR warden: Error occurred: Wrong type NilClass. Not allowed!

Below is the detail debug message:

INFO global: Vagrant version: 1.7.4 INFO global: Ruby version: 2.0.0 INFO global: RubyGems version: 2.0.14 INFO global: VAGRANT_OLD_ENVsystem_version="6" INFO global: VAGRANT_INSTALLER_ENV="1" INFO global: VAGRANT_OLD_ENV_rvm_bin_path="/usr/local/rvm/bin" INFO global: VAGRANT_OLD_ENV_HISTSIZE="1000" INFO global: VAGRANT_OLD_ENV_IRBRC="/usr/local/rvm/rubies/ruby-1.9.3-p551/.irbrc" INFO global: VAGRANT_OLD_ENV_MY_RUBY_HOME="/usr/local/rvm/rubies/ruby-1.9.3-p551" INFO global: VAGRANT_OLD_ENV_LESSOPEN="||/usr/bin/lesspipe.sh %s" INFO global: VAGRANT_OLD_ENV_HOSTNAME="buildmachine" INFO global: VAGRANT_OLD_ENV_SSH_TTY="/dev/pts/0" INFO global: VAGRANT_OLD_ENV_USER="root" INFO global: VAGRANT_OLD_ENV="/opt/vagrant/bin/vagrant" INFO global: VAGRANT_OLD_ENV_SELINUX_LEVEL_REQUESTED="" INFO global: VAGRANT_OLD_ENV_SHLVL="2" INFO global: VAGRANT_OLD_ENV_rvm_path="/usr/local/rvm" INFO global: VAGRANT_OLD_ENV_LANG="en_US.UTF-8" INFO global: VAGRANT_OLD_ENV_HISTCONTROL="ignoredups" INFO global: VAGRANT_OLD_ENV_RUBY_VERSION="ruby-1.9.3-p551" INFO global: VAGRANT_OLD_ENV_SELINUX_ROLE_REQUESTED="" INFO global: VAGRANT_OLD_ENV_SHELL="/bin/bash" INFO global: VAGRANT_OLD_ENV_TERM="vt100" INFO global: VAGRANT_OLD_ENV_HOME="/root" INFO global: VAGRANT_OLD_ENVsystem_name="CentOS" INFO global: VAGRANT_OLD_ENV_rvm_prefix="/usr/local" INFO global: VAGRANT_INSTALLER_VERSION="2" INFO global: VAGRANT_OLD_ENV_SSH_CLIENT="10.128.1.35 50396 22" INFO global: VAGRANT_OLD_ENV_SELINUX_USE_CURRENT_RANGE="" INFO global: VAGRANT_OLD_ENV_LSCOLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arj=01;31:.taz=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.zip=01;31:.z=01;31:.Z=01;31:.dz=01;31:.gz=01;31:.lz=01;31:.xz=01;31:.bz2=01;31:.tbz=01;31:.tbz2=01;31:.bz=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.rar=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.jpg=01;35:.jpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.axv=01;35:.anx=01;35:.ogv=01;35:.ogx=01;35:.aac=01;36:.au=01;36:.flac=01;36:.mid=01;36:.midi=01;36:.mka=01;36:.mp3=01;36:.mpc=01;36:.ogg=01;36:.ra=01;36:.wav=01;36:.axa=01;36:.oga=01;36:.spx=01;36:_.xspf=01;36:" INFO global: VAGRANT_OLD_ENV__system_type="Linux" INFO global: VAGRANT_OLD_ENV_SSH_CONNECTION="10.128.1.35 50396 10.128.1.55 22" INFO global: VAGRANT_OLD_ENV_G_BROKEN_FILENAMES="1" INFO global: VAGRANT_OLD_ENV_GEM_HOME="/usr/local/rvm/gems/ruby-1.9.3-p551" INFO global: VAGRANT_OLD_ENV_PWD="/root/vagrant_xen" INFO global: VAGRANT_OLD_ENV_rvm_version="1.26.11 (latest)" INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-1.7.4/bin/vagrant" INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded" INFO global: VAGRANT_OLD_ENV_MAIL="/var/spool/mail/root" INFO global: VAGRANT_OLD_ENV_LOGNAME="root" INFO global: VAGRANT_OLD_ENV_PATH="/usr/local/rvm/gems/ruby-1.9.3-p551/bin:/usr/local/rvm/gems/ruby-1.9.3-p551@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p551/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/rvm/bin:/root/bin" INFO global: VAGRANT_OLD_ENVsystem_arch="x86_64" INFO global: VAGRANT_OLD_ENV_GEM_PATH="/usr/local/rvm/gems/ruby-1.9.3-p551:/usr/local/rvm/gems/ruby-1.9.3-p551@global" INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1" INFO global: VAGRANT_LOG="debug" INFO global: Plugins: INFO global: - builder = 3.2.2 INFO global: - bundler = 1.10.5 INFO global: - i18n = 0.6.11 INFO global: - json = 1.8.3 INFO global: - mime-types = 1.25.1 INFO global: - mini_portile = 0.6.0 INFO global: - nokogiri = 1.6.3.1 INFO global: - trollop = 2.1.2 INFO global: - rbvmomi = 1.8.2 INFO global: - rest-client = 1.6.9 INFO global: - vagrant-share = 1.1.4 INFO global: - vagrant-vsphere = 1.5.0 INFO global: - vagrant-xenserver = 0.0.11 DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/hosts/windows/plugin.rb INFO manager: Registered plugin: Windows host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/hosts/gentoo/plugin.rb INFO manager: Registered plugin: Gentoo host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/hosts/suse/plugin.rb INFO manager: Registered plugin: SUSE host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/hosts/freebsd/plugin.rb INFO manager: Registered plugin: FreeBSD host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/hosts/redhat/plugin.rb INFO manager: Registered plugin: Red Hat Enterprise Linux host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/hosts/arch/plugin.rb INFO manager: Registered plugin: Arch host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/hosts/linux/plugin.rb INFO manager: Registered plugin: Linux host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/hosts/bsd/plugin.rb INFO manager: Registered plugin: BSD host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/hosts/null/plugin.rb INFO manager: Registered plugin: null host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/hosts/darwin/plugin.rb INFO manager: Registered plugin: Mac OS X host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/hosts/slackware/plugin.rb INFO manager: Registered plugin: Slackware host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/omnios/plugin.rb INFO manager: Registered plugin: OmniOS guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/windows/plugin.rb INFO manager: Registered plugin: Windows guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/gentoo/plugin.rb INFO manager: Registered plugin: Gentoo guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/solaris/plugin.rb INFO manager: Registered plugin: Solaris guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/suse/plugin.rb INFO manager: Registered plugin: SUSE guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/freebsd/plugin.rb INFO manager: Registered plugin: FreeBSD guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/funtoo/plugin.rb INFO manager: Registered plugin: Funtoo guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/esxi/plugin.rb INFO manager: Registered plugin: ESXi guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/solaris11/plugin.rb INFO manager: Registered plugin: Solaris 11 guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/redhat/plugin.rb INFO manager: Registered plugin: Red Hat Enterprise Linux guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/arch/plugin.rb INFO manager: Registered plugin: Arch guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/debian8/plugin.rb INFO manager: Registered plugin: Debian Jessie guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/tinycore/plugin.rb INFO manager: Registered plugin: TinyCore Linux guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/mint/plugin.rb INFO manager: Registered plugin: Mint guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/netbsd/plugin.rb INFO manager: Registered plugin: NetBSD guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/debian/plugin.rb INFO manager: Registered plugin: Debian guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/smartos/plugin.rb INFO manager: Registered plugin: SmartOS guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/linux/plugin.rb INFO manager: Registered plugin: Linux guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/nixos/plugin.rb INFO manager: Registered plugin: NixOS guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/ubuntu/plugin.rb INFO manager: Registered plugin: Ubuntu guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/photon/plugin.rb INFO manager: Registered plugin: VMware Photon guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/darwin/plugin.rb INFO manager: Registered plugin: Darwin guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/coreos/plugin.rb INFO manager: Registered plugin: CoreOS guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/pld/plugin.rb INFO manager: Registered plugin: PLD Linux guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/fedora/plugin.rb INFO manager: Registered plugin: Fedora guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/atomic/plugin.rb INFO manager: Registered plugin: Atomic Host guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/openbsd/plugin.rb INFO manager: Registered plugin: OpenBSD guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/kernel_v1/plugin.rb INFO manager: Registered plugin: kernel DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/communicators/ssh/plugin.rb INFO manager: Registered plugin: ssh communicator DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/communicators/winrm/plugin.rb INFO manager: Registered plugin: winrm communicator DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/providers/docker/plugin.rb INFO manager: Registered plugin: docker-provider DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/providers/hyperv/plugin.rb INFO manager: Registered plugin: Hyper-V provider DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/providers/virtualbox/plugin.rb INFO manager: Registered plugin: VirtualBox provider DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/pushes/noop/plugin.rb INFO manager: Registered plugin: noop DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/pushes/ftp/plugin.rb INFO manager: Registered plugin: ftp DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/pushes/heroku/plugin.rb INFO manager: Registered plugin: heroku DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/pushes/local-exec/plugin.rb INFO manager: Registered plugin: local-exec DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/pushes/atlas/plugin.rb INFO manager: Registered plugin: atlas DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/kernel_v2/plugin.rb INFO manager: Registered plugin: kernel DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/synced_folders/nfs/plugin.rb INFO manager: Registered plugin: NFS synced folders DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/synced_folders/rsync/plugin.rb INFO manager: Registered plugin: RSync synced folders DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/synced_folders/smb/plugin.rb INFO manager: Registered plugin: SMB synced folders DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/provisioners/cfengine/plugin.rb INFO manager: Registered plugin: CFEngine Provisioner DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/provisioners/docker/plugin.rb INFO manager: Registered plugin: docker DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/provisioners/salt/plugin.rb INFO manager: Registered plugin: salt DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/provisioners/chef/plugin.rb INFO manager: Registered plugin: chef DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/provisioners/shell/plugin.rb INFO manager: Registered plugin: shell DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/provisioners/ansible/plugin.rb INFO manager: Registered plugin: ansible DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/provisioners/file/plugin.rb INFO manager: Registered plugin: file DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/provisioners/puppet/plugin.rb INFO manager: Registered plugin: puppet DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/halt/plugin.rb INFO manager: Registered plugin: halt command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/suspend/plugin.rb INFO manager: Registered plugin: suspend command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/status/plugin.rb INFO manager: Registered plugin: status command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/box/plugin.rb INFO manager: Registered plugin: box command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/destroy/plugin.rb INFO manager: Registered plugin: destroy command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/list-commands/plugin.rb INFO manager: Registered plugin: list-commands command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/resume/plugin.rb INFO manager: Registered plugin: resume command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/help/plugin.rb INFO manager: Registered plugin: help command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/push/plugin.rb INFO manager: Registered plugin: push command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/ssh/plugin.rb INFO manager: Registered plugin: ssh command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/package/plugin.rb INFO manager: Registered plugin: package command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/plugin/plugin.rb INFO manager: Registered plugin: plugin command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/init/plugin.rb INFO manager: Registered plugin: init command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/rdp/plugin.rb INFO manager: Registered plugin: rdp command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/version/plugin.rb INFO manager: Registered plugin: version command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/provision/plugin.rb INFO manager: Registered plugin: provision command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/ssh_config/plugin.rb INFO manager: Registered plugin: ssh-config command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/reload/plugin.rb INFO manager: Registered plugin: reload command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/up/plugin.rb INFO manager: Registered plugin: up command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/global-status/plugin.rb INFO manager: Registered plugin: global-status command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/login/plugin.rb INFO manager: Registered plugin: vagrant-login INFO global: Loading plugins! INFO manager: Registered plugin: vagrant-share INFO manager: Registered plugin: vsphere INFO manager: Registered plugin: XenServer provider INFO vagrant: vagrant invoked: ["up", "--provider=xenserver", "--debug"] DEBUG vagrant: Creating Vagrant environment INFO environment: Environment initialized (#Vagrant::Environment:0x00000002402d68) INFO environment: - cwd: /root/vagrant_xen INFO environment: Home path: /root/.vagrant.d INFO environment: Local data path: /root/vagrant_xen/.vagrant DEBUG environment: Creating: /root/vagrant_xen/.vagrant INFO environment: Running hook: environment_plugins_loaded INFO runner: Preparing hooks for middleware sequence... INFO runner: 1 hooks defined. INFO runner: Running action: environment_plugins_loaded #Vagrant::Action::Builder:0x00000002ddd270 INFO environment: Running hook: environment_load INFO runner: Preparing hooks for middleware sequence... INFO runner: 1 hooks defined. INFO runner: Running action: environment_load #Vagrant::Action::Builder:0x0000000318eec8 INFO cli: CLI: [] "up" ["--provider=xenserver"] DEBUG cli: Invoking command class: VagrantPlugins::CommandUp::Command ["--provider=xenserver"] DEBUG command: 'Up' each target VM... INFO loader: Set :root = #Pathname:/root/vagrant_xen/Vagrantfile DEBUG loader: Populating proc cache for #Pathname:/root/vagrant_xen/Vagrantfile DEBUG loader: Load procs for pathname: /root/vagrant_xen/Vagrantfile INFO loader: Loading configuration in order: [:home, :root] DEBUG loader: Loading from: root (evaluating) DEBUG loader: Configuration loaded successfully, finalizing and returning DEBUG push: finalizing DEBUG command: Getting target VMs for command. Arguments: DEBUG command: -- names: ["default"] DEBUG command: -- options: {:provider=>"xenserver"} DEBUG command: Finding machine that match name: default INFO environment: Getting machine: default (xenserver) INFO environment: Uncached load of machine. INFO loader: Set "26549500_machine_default" = [] INFO loader: Loading configuration in order: [:home, :root, "26549500_machine_default"] DEBUG loader: Loading from: root (cache) DEBUG loader: Configuration loaded successfully, finalizing and returning DEBUG push: finalizing INFO box_collection: Box found: centos65 (xenserver) INFO machine: Initializing machine: default INFO machine: - Provider: VagrantPlugins::XenServer::Provider INFO machine: - Box: #Vagrant::Box:0x000000032efb78 INFO machine: - Data dir: /root/vagrant_xen/.vagrant/machines/default/xenserver INFO machine: Calling action: read_state on provider XenServer (new) DEBUG environment: Attempting to acquire process-lock: machine-action-9a044fa05599da7322b628969a1a4d35 DEBUG environment: Attempting to acquire process-lock: dotlock INFO environment: Acquired process lock: dotlock INFO environment: Released process lock: dotlock INFO environment: Acquired process lock: machine-action-9a044fa05599da7322b628969a1a4d35 INFO host: Autodetecting host type for [#<Vagrant::Environment: /root/vagrant_xen>] DEBUG host: Trying: gentoo DEBUG host: Trying: suse DEBUG host: Trying: freebsd DEBUG host: Trying: redhat INFO host: Detected: redhat! INFO runner: Preparing hooks for middleware sequence... INFO runner: 1 hooks defined. INFO runner: Running action: machine_action_read_state #Vagrant::Action::Builder:0x0000000260c488 INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x000000032649d8 INFO warden: Calling IN action: #VagrantPlugins::XenServer::Action::ConnectXS:0x000000032649b0 INFO warden: Calling IN action: #VagrantPlugins::XenServer::Action::ReadState:0x00000003287b68 DEBUG read_state: XXXXX In ReadState DEBUG read_state: state=not_created INFO warden: Calling OUT action: #VagrantPlugins::XenServer::Action::ReadState:0x00000003287b68 INFO warden: Calling OUT action: #VagrantPlugins::XenServer::Action::ConnectXS:0x000000032649b0 INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x000000032649d8 INFO environment: Released process lock: machine-action-9a044fa05599da7322b628969a1a4d35 DEBUG environment: Attempting to acquire process-lock: dotlock INFO environment: Acquired process lock: dotlock INFO environment: Released process lock: dotlock INFO machine: New machine ID: nil INFO command: With machine: default (#<VagrantPlugins::XenServer::Provider:0x000000027e0070 @machine=#<Vagrant::Machine: default (VagrantPlugins::XenServer::Provider)>, @cap_logger=#<Log4r::Logger:0x000000027ebe98 @fullname="vagrant::capability_host::vagrantplugins::xenserver::provider", @outputters=[], @additive=true, @name="provider", @path="vagrant::capability_host::vagrantplugins::xenserver", @parent=#<Log4r::Logger:0x0000000317df60 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x00000003190f98 @mon_owner=nil, @mon_count=0, @mon_mutex=#, @name="stderr", @level=0, @formatter=#<Log4r::DefaultFormatter:0x00000003196060 @depth=7>, @out=#IO:>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x0000000317de48 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @cap_host_chain=[[:xenserver, #<#Class:0x000000027e0160:0x00000002b48488>]], @cap_args=[#<Vagrant::Machine: default (VagrantPlugins::XenServer::Provider)>], @cap_caps={:docker=>#<Vagrant::Registry:0x000000027e2dc0 @items={:public_address=>#Proc:0x000000031afba0@/opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/providers/docker/plugin.rb:54, :proxy_machine=>#Proc:0x000000031afa88@/opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/providers/docker/plugin.rb:59}, @results_cache={}>, :hyperv=>#<Vagrant::Registry:0x000000027e1fd8 @items={:public_address=>#Proc:0x000000031b3070@/opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/providers/hyperv/plugin.rb:25}, @results_cache={}>, :virtualbox=>#<Vagrant::Registry:0x000000027e1808 @items={:forwarded_ports=>#Proc:0x000000031bb5e0@/opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/providers/virtualbox/plugin.rb:27, :nic_mac_addresses=>#Proc:0x000000031bb540@/opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/providers/virtualbox/plugin.rb:32, :public_address=>#Proc:0x0000000326d240@/opt/vagrant/embedded/gems/gems/vagrant-share-1.1.4/lib/vagrant-share.rb:39}, @results_cache={}>, :vsphere=>#<Vagrant::Registry:0x000000027e0db8 @items={:public_address=>#Proc:0x000000032760c0@/opt/vagrant/embedded/gems/gems/vagrant-vsphere-1.5.0/lib/vSphere/plugin.rb:33}, @results_cache={}>}>) INFO interface: info: Bringing machine 'default' up with 'xenserver' provider... Bringing machine 'default' up with 'xenserver' provider... INFO machine: Calling action: read_state on provider XenServer (new) DEBUG environment: Attempting to acquire process-lock: machine-action-9a044fa05599da7322b628969a1a4d35 DEBUG environment: Attempting to acquire process-lock: dotlock INFO environment: Acquired process lock: dotlock INFO environment: Released process lock: dotlock INFO environment: Acquired process lock: machine-action-9a044fa05599da7322b628969a1a4d35 INFO runner: Preparing hooks for middleware sequence... INFO runner: 1 hooks defined. INFO runner: Running action: machine_action_read_state #Vagrant::Action::Builder:0x00000003189888 INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x0000000318e108 INFO warden: Calling IN action: #VagrantPlugins::XenServer::Action::ConnectXS:0x0000000318e0b8 INFO warden: Calling IN action: #VagrantPlugins::XenServer::Action::ReadState:0x000000031c73e0 DEBUG read_state: XXXXX In ReadState DEBUG read_state: state=not_created INFO warden: Calling OUT action: #VagrantPlugins::XenServer::Action::ReadState:0x000000031c73e0 INFO warden: Calling OUT action: #VagrantPlugins::XenServer::Action::ConnectXS:0x0000000318e0b8 INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x0000000318e108 INFO environment: Released process lock: machine-action-9a044fa05599da7322b628969a1a4d35 DEBUG environment: Attempting to acquire process-lock: dotlock INFO environment: Acquired process lock: dotlock INFO environment: Released process lock: dotlock INFO batch_action: Enabling parallelization by default. INFO batch_action: Disabling parallelization because only executing one action INFO batch_action: Batch action will parallelize: false INFO batch_action: Starting action: #Vagrant::Machine:0x00000003bfcd10 up {:destroy_on_error=>true, :parallel=>true, :provision_ignore_sentinel=>false, :provision_types=>nil, :provider=>"xenserver"} INFO machine: Calling action: up on provider XenServer (new) DEBUG environment: Attempting to acquire process-lock: machine-action-9a044fa05599da7322b628969a1a4d35 DEBUG environment: Attempting to acquire process-lock: dotlock INFO environment: Acquired process lock: dotlock INFO environment: Released process lock: dotlock INFO environment: Acquired process lock: machine-action-9a044fa05599da7322b628969a1a4d35 INFO runner: Preparing hooks for middleware sequence... INFO runner: 1 hooks defined. INFO runner: Running action: machine_action_up #Vagrant::Action::Builder:0x00000003246870 INFO warden: Calling IN action: #Vagrant::Action::Builtin::HandleBox:0x00000003261dc8 INFO handle_box: Machine already has box. HandleBox will not run. INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x00000003285a20 INFO warden: Calling IN action: #VagrantPlugins::XenServer::Action::ConnectXS:0x000000032859d0 INFO warden: Calling IN action: #Vagrant::Action::Builtin::Call:0x000000032bd3d0 INFO runner: Preparing hooks for middleware sequence... INFO runner: 1 hooks defined. INFO runner: Running action: machine_action_up #Vagrant::Action::Builder:0x00000003b6c990 INFO warden: Calling IN action: #VagrantPlugins::XenServer::Action::IsCreated:0x00000003b71ee0 INFO machine: Calling action: read_state on provider XenServer (new) INFO runner: Preparing hooks for middleware sequence... INFO runner: 1 hooks defined. INFO runner: Running action: machine_action_read_state #Vagrant::Action::Builder:0x00000003dd7108 INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x00000003de5208 INFO warden: Calling IN action: #VagrantPlugins::XenServer::Action::ConnectXS:0x00000003de5168 INFO warden: Calling IN action: #VagrantPlugins::XenServer::Action::ReadState:0x007f293c17a5b8 DEBUG read_state: XXXXX In ReadState DEBUG read_state: state=not_created INFO warden: Calling OUT action: #VagrantPlugins::XenServer::Action::ReadState:0x007f293c17a5b8 INFO warden: Calling OUT action: #VagrantPlugins::XenServer::Action::ConnectXS:0x00000003de5168 INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x00000003de5208 INFO machine: Calling action: read_state on provider XenServer (new) INFO runner: Preparing hooks for middleware sequence... INFO runner: 1 hooks defined. INFO runner: Running action: machine_action_read_state #Vagrant::Action::Builder:0x007f293c220af8 INFO warden: Calling IN action: #Vagrant::Action::Builtin::ConfigValidate:0x007f293c22a288 INFO warden: Calling IN action: #VagrantPlugins::XenServer::Action::ConnectXS:0x007f293c22a260 INFO warden: Calling IN action: #VagrantPlugins::XenServer::Action::ReadState:0x0000000258e380 DEBUG read_state: XXXXX In ReadState DEBUG read_state: state=not_created INFO warden: Calling OUT action: #VagrantPlugins::XenServer::Action::ReadState:0x0000000258e380 INFO warden: Calling OUT action: #VagrantPlugins::XenServer::Action::ConnectXS:0x007f293c22a260 INFO warden: Calling OUT action: #Vagrant::Action::Builtin::ConfigValidate:0x007f293c22a288 INFO warden: Calling OUT action: #VagrantPlugins::XenServer::Action::IsCreated:0x00000003b71ee0 INFO runner: Preparing hooks for middleware sequence... INFO runner: 1 hooks defined. INFO runner: Running action: machine_action_up #Vagrant::Action::Warden:0x0000000318a8a0 INFO warden: Calling IN action: #<Proc:0x007f293c17b030@/opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:94 (lambda)> INFO warden: Calling IN action: #VagrantPlugins::XenServer::Action::UploadVHD:0x0000000318a760 INFO upload_vhd: box name=centos65 INFO upload_vhd: box version=0 1+0 records in 1+0 records out 1048576 bytes (1.0 MB) copied, 0.00267847 s, 391 MB/s INFO upload_vhd: md5=e82a8917e6b385eb708dafc5830448a0 INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: [] INFO upload_vhd: virtual_size=21475270656 INFO upload_vhd: default_SR=OpaqueRef:NULL INFO upload_vhd: created VDI: ERROR warden: Error occurred: Wrong type NilClass. Not allowed! INFO warden: Beginning recovery process... INFO warden: Recovery complete. ERROR warden: Error occurred: Wrong type NilClass. Not allowed! INFO warden: Beginning recovery process... INFO warden: Recovery complete. ERROR warden: Error occurred: Wrong type NilClass. Not allowed! INFO warden: Beginning recovery process... INFO warden: Calling recover: #Vagrant::Action::Builtin::Call:0x000000032bd3d0 INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO environment: Released process lock: machine-action-9a044fa05599da7322b628969a1a4d35 INFO environment: Running hook: environment_unload INFO runner: Preparing hooks for middleware sequence... INFO runner: 1 hooks defined. INFO runner: Running action: environment_unload #Vagrant::Action::Builder:0x007f293c22ab20 /opt/vagrant/embedded/lib/ruby/2.0.0/xmlrpc/create.rb:202:in conv2value': Wrong type NilClass. Not allowed! (RuntimeError) from /opt/vagrant/embedded/lib/ruby/2.0.0/xmlrpc/create.rb:118:inblock in methodCall' from /opt/vagrant/embedded/lib/ruby/2.0.0/xmlrpc/create.rb:117:in collect' from /opt/vagrant/embedded/lib/ruby/2.0.0/xmlrpc/create.rb:117:inmethodCall' from /opt/vagrant/embedded/lib/ruby/2.0.0/xmlrpc/client.rb:278:in call2' from /opt/vagrant/embedded/lib/ruby/2.0.0/xmlrpc/client.rb:260:incall' from /root/.vagrant.d/gems/gems/vagrant-xenserver-0.0.11/lib/vagrant-xenserver/action/upload_vhd.rb:72:in block in call' from /root/.vagrant.d/gems/gems/vagrant-xenserver-0.0.11/lib/vagrant-xenserver/action/upload_vhd.rb:42:insynchronize' from /root/.vagrant.d/gems/gems/vagrant-xenserver-0.0.11/lib/vagrant-xenserver/action/upload_vhd.rb:42:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:95:in block in finalize_action' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builder.rb:116:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/runner.rb:66:in block in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/util/busy.rb:19:inbusy' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/runner.rb:66:in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builtin/call.rb:53:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in call' from /root/.vagrant.d/gems/gems/vagrant-xenserver-0.0.11/lib/vagrant-xenserver/action/connect_xs.rb:28:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builtin/config_validate.rb:25:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builtin/handle_box.rb:56:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builder.rb:116:incall' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/runner.rb:66:in block in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/util/busy.rb:19:inbusy' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/runner.rb:66:in run' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/machine.rb:214:inaction_raw' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/machine.rb:191:in block in action' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/environment.rb:516:inlock' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/machine.rb:178:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/machine.rb:178:inaction' from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'

jonludlam commented 9 years ago

I think the issue is that your default SR isn't set - you should configure this on your Xenserver. I recommend using an NFS SR.

fanwb1985 commented 9 years ago

Thanks. It works after I set a default SR.

jonludlam commented 9 years ago

OK, I'll close this issue then.

jonludlam commented 9 years ago

I've added a line to README.md to say that the default_SR needs to be set. Thanks for the report!