telcat / vagrant-proxmox

Use Vagrant to manage Proxmox virtual machines
MIT License
379 stars 112 forks source link

Clone worked, but have some issues #36

Open kevinlong206 opened 8 years ago

kevinlong206 commented 8 years ago

Hello and thanks for making this plugin. It could work really well for me if I can work out some kinks.

I just did a "vagrant up" with the below Vagrant file. I received some warnings, but the box did indeed clone and I could start it OK.

Most values in the Vagrantfile were ignored and the resulting VM had the same memory, HD size, and processesor as the qemu_template, which are much different than what I specified in the Vagrantfile (512 ram in Vagrantfile vs 4gb in the template, for example).

Also, I wonder if I can specify the proxmox VLAN using this plugin? I have lots of VLANs on my Proxmox cluster/LAN.

$ vagrant up Bringing machine 'box' up with 'proxmox' provider... ==> box: translation missing: en.vagrant_proxmox.cloning_vm ==> box: Done! ==> box: translation missing: en.vagrant_proxmox.adjust_forwarded_port_params ==> box: translation missing: en.vagrant_proxmox.configuring_vm Unable to communicate with proxmox server:

translation missing: en.vagrant_proxmox.errors.vm_configure_error

Vagrant.configure('2') do |config|

config.vm.provider :proxmox do |proxmox|
    proxmox.endpoint = 'https://pxmx01.xxxxxxxx.com:8006/api2/json'
    proxmox.user_name = 'root@pam'
    proxmox.password = '************'
    proxmox.vm_id_range = 900..910
    proxmox.vm_type = :qemu
    proxmox.vm_name_prefix = 'vagrant_'
    proxmox.qemu_os = :l26
    proxmox.qemu_disk_size = '30G'
    proxmox.qemu_storage = 'local'
    proxmox.qemu_template = 'centos7-template'
    proxmox.vm_name_prefix = 'vagrant_test_'
    proxmox.qemu_cores = 1
    proxmox.qemu_sockets = 1
    proxmox.qemu_nic_model = 'virtio'
    proxmox.qemu_bridge = 'vmbr0'
    proxmox.vm_memory = 512
end

config.vm.define :box, primary: true do |box|
    box.vm.box = 'dummy'
    box.vm.network :public_network, ip: '192.168.0.1', macaddress: 'ff:aa:cc:dd:bb:ee'
end

end

kevinlong206 commented 8 years ago

Virtual Environment 4.3-9/f7c6f0cd