No IP address in container and cannot SSH into containers

ossvirt

Member
Mar 13, 2013
14
1
23
I'm having problems getting my first few containers set up right.

I have Ubuntu 12.04 and Debian 6 containers running from built-in templates. I have managed to get the Proxmox console to work eventually by installing Oracle Java and following these directions.

However I cannot paste into the Proxmox console and it seems pasting is not yet implemented.

So I want to SSH into these containers. One of them registers on my internet router but only one and I can't tell which it is. SSHing to that IP results in a 'connection refused' error.

openssh-server is installed on both containers verified by executing 'apt-get install openssh-server' on each container. Both return 'the installed version is the most recent'

When I run ifconfig on both containers from the Proxmox console they both show they only have a local loopback device running, no eth0. I assumed they would both pull IP addresses from the local router by DHCP. They were both set to their respective vmbr0.

I am a bit stumped as to how to get this all working.

I want to give them static IP addresses really, and to SSH into them both.

Thanks for any help in advance.
 
Thanks tom, I'm reading through the wiki and working on it.

So the built-in templates in Proxmox have a venet as standard when they start up. From the wiki -
Vzctl scripts set up an appropriate IP address and other settings on venet inside a container
How is the appropriate IP determined?

What about the Turnkey Linux templates, what do they start with, as they do seem to talk to DHCP?
 
Last edited:
Right, I set mine to bridged mode as I didn't get any access previously with routed mode. So does that mean they are using veth?

Does the choice between routed and bridged on the network tab of Create new container directly relate to venet and veth?