Skip to content

Commit

Permalink
create_params_lxc: storage parameter doesn't support size
Browse files Browse the repository at this point in the history
The storage parameter is for the storage only, nothing more.
Use the rootfs parameter to correctly give the PVE API the disk size and the storage.

Addresses:
telcat#26 (comment)
  • Loading branch information
ThomasLamprecht committed Apr 12, 2016
1 parent 59dd4b5 commit 1aca711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-proxmox/action/create_vm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def create_params_lxc(config, env, vm_id)
ostemplate: config.openvz_os_template,
hostname: env[:machine].config.vm.hostname || env[:machine].name.to_s,
password: 'vagrant',
storage: "#{config.vm_storage}:#{config.vm_disk_size}",
rootfs: "#{config.vm_storage}:#{config.vm_disk_size}",
memory: config.vm_memory,
description: "#{config.vm_name_prefix}#{env[:machine].name}"}
.tap do |params|
Expand Down

0 comments on commit 1aca711

Please sign in to comment.