hi,
I have several Proxmox nodes running and I was able with some help and the vagrant-proxmox plugin to get KVM and LXC containers creating and starting. The problem is now, that Vagrant (1.8.1) tries to connect via ssh and the Proxmox node, instead of the ip from the container/kvm vm:
[...]
INFO interface: Machine: action ["read_ssh_info", "end", {:target=>:box}]
DEBUG ssh: Checking key permissions: /home/foobar/.vagrant.d/insecure_private_key
INFO ssh: Attempting SSH connection...
INFO ssh: Attempting to connect to SSH...
INFO ssh: - Host: 192.168.100.5
INFO ssh: - Port: 229000
INFO ssh: - Username: vagrant
INFO ssh: - Password? false
INFO ssh: - Key Path: ["/home/foobar/.vagrant.d/insecure_private_key"]
[...]Since I use public_network and a bridge, I expected, that Vagrant tries to connect the VM via
192.168.100.100. It works with "ssh -i ~/.vagrant.d/insecure_private_key
vag...@192.168.100.100" ...
So, what I have done wrong?
Vagrant.configure('2') do |config|
config.vm.provider :proxmox do |proxmox|
proxmox.endpoint = 'https://192.168.100.5:8080/api2/json'
proxmox.user_name = 'vagrant@pve'
proxmox.password = 'secret'
proxmox.vm_type = :lxc
proxmox.openvz_os_template = 'local:vztmpl/debian-8.0-standard_8.0-4_amd64.tar.gz'
proxmox.vm_id_range = 9000..9010
proxmox.vm_disk_size = '1G'
proxmox.vm_storage = 'pve-container'
proxmox.vm_name_prefix = 'vagrant_'
proxmox.vm_memory = 512
proxmox.selected_node = 'pmox01'
end
config.vm.define :box, primary: true do |box|
box.vm.box = 'dummy'
box.vm.network :public_network, ip: '192.168.100.100', interface: 'eth0', bridge: 'vmbr0', gw: '192.168.100.1'
end
endcu denny