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 [email protected]" ...
So, what I have done wrong?
- Vagrantfile
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
end
cu denny
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/a81eb8b4-e58e-4faa-8e0b-f583995345b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.