Setting up public IPs for containers?

  • Thread starter Thread starter brez
  • Start date Start date
B

brez

Guest
Hey guys,


sorry again for the very newb-ish question, but I have tried to find info on it but I just couldn't wrap my head around it.

I have a proxmox VE installation on a dedicated serverbox on which I have 4 available IPs. During the setup I have used one of those IPs, together with the gateway and netmask, to set up the Proxmox host.


Now I have 3 IPs left and I'd like to use one of those to set up a VM (ubuntu 12.04). Since it's ubuntu I'm assuming that CT would be the way to go (please correct me if I'm wrong).

How do I go about assigning a public IP to my host and getting it so that my ubuntu VM will listen on it? The network stuff is a bit over my head, I don't know whether to pick 'Routed mode' or 'bridged mode', I don't know what I should configure in my host in order to be able to get those IPs working (I'm assuming I should assign the public IP as a second IP to my host, but on which adapter?). I only have one NIC, so that might make it more complicated still.

Any help would be appreciated, I am truly lost here after not being able to find a newb-level tutorial on this matter.

Thanks in advance,
brez
 
If you use the standard bridged setup, just configure the VM using one of those IPs (like you would setup another physical node).
 
So are you saying that I should pick 'bridged' in the CT setup menu in proxmox?

And when I do that, how do I configure the VM to use one of the available IPs? How can I ssh into it? The 'console' doesn't really give me access in any way to configure anything, do I need to configure it on the host?
 
I'd like to run a virtual ubuntu 12.04, I heard that CT was the better choice. A fully virtualized VM is good for me as well, I don't have enough experience to tell which would be better.

Edit: after setting up the CT with a internal IP address and then going in the host and setting "vzctl set 100 -addip x.x.x.x --save", it now works and I am able to ssh into my VM. Sorry to disturb you!
 
Last edited by a moderator:
Edit: after setting up the CT with a internal IP address and then going in the host and setting "vzctl set 100 -addip x.x.x.x --save", it now works and I am able to ssh into my VM. Sorry to disturb you!

When you create a CT, you can simply specify the IP there.