Add extra ip to VPS

Chow

Member
Apr 28, 2008
90
0
6
I'm probably not woken up enough but I don't seem to be able to add an extra ip to my centos vps (container).

I created an ifcfg-venet0:1 but I get an error when restarting the network.. :(

How should I add an extra ip??
 
I'm probably not woken up enough but I don't seem to be able to add an extra ip to my centos vps (container).

I created an ifcfg-venet0:1 but I get an error when restarting the network.. :(

How should I add an extra ip??

just add a second IP (at the web interface), see screenshot.
 

Attachments

  • container-with-2-IP-addresses.png
    container-with-2-IP-addresses.png
    8.8 KB · Views: 107
Mmmm, just tried it.. I added the ip according to the screenshot and clicked on save but it looks like it doesn't save the ip..
 
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root and inform them of the time the error occurred, and anything you might have done that may have caused the error.
[2043]ERR: 24: Error in Perl code: invalid cluster ID '' at /usr/share/perl5/PVE/ConfigServer.pm line 1607.
Apache Embperl 2.2.0 [Sat Sep 20 00:04:20 2008]
 
Any idea? I want to continu setting up vps-es ;)

Do you use the latest version? I remember this bug in one of the very first beta releases.

please check your installation, see the download page for instructions.
 
Hi, 100% sure it's the latest since I downloaded and burned the image last friday.
 
Hi, 100% sure it's the latest since I downloaded and burned the image last friday.

the cd image does not contain the latest packages, did you run apt-get to get the latest packages?
 
Followed the steps because I thought it couldn't hurt. I can't reproduce the earlier error anymore but still unable to add extra ip's. It doesn't save the ip's when I click save..
 
Followed the steps because I thought it couldn't hurt. I can't reproduce the earlier error anymore but still unable to add extra ip's. It doesn't save the ip's when I click save..

what do you get here?

Code:
dpkg-query -l pve-manager
(it should display pve-manager 0.9-5)

so you run a Proxmox VE cluster?
 
Last edited:
Got the right version installed, but found a workaround. I'm running the cluster indeed. When I migrate the vps to the master I can add the ip's. When after that I migrate them back to the node it keeps the ip's. But adding them directly when the vps is on the node doesn't work like i mentioned.
 
Got the right version installed, but found a workaround. I'm running the cluster indeed. When I migrate the vps to the master I can add the ip's. When after that I migrate them back to the node it keeps the ip's. But adding them directly when the vps is on the node doesn't work like i mentioned.

ok, I can confirm this. doing this on the master works. if the container is on a node, it does not work also here - I filed a bug, we will correct it for the upcoming release candidate.
 
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root and inform them of the time the error occurred, and anything you might have done that may have caused the error.
[2043]ERR: 24: Error in Perl code: invalid cluster ID '' at /usr/share/perl5/PVE/ConfigServer.pm line 1607.
Apache Embperl 2.2.0 [Sat Sep 20 00:04:20 2008]

I have same error
tommorow all has been worked
today - this error
I don't change anything in server configuration
 
traceroute form Virtual Machine dont work well

Hi, i have Proxmox 1.1 with two Virtual Machine and both work.

But the problem that i have is when i do a traceroute from VM2 to VM1 the trace is very very fast, but the traceroute from VM1 to VM2 take long time to answer where can be the problem ?

Thanks and Best Regards


From VM1 is very fast
$ traceroute 192.168.1.90
traceroute to 192.168.1.90 (192.168.1.90), 30 hops max, 40 byte packets
1 189.204.35.30 (189.204.35.30) 0.075 ms 0.012 ms 0.011 ms
2 192.168.1.90 (192.168.1.90) 0.033 ms 0.014 ms 0.013 ms

From VM2 is very slow more than 30 seconds to complete
traceroute 192.168.1.97
traceroute to 192.168.1.97 (192.168.1.97), 30 hops max, 40 byte packets
1 (189.204.35.30) 0.076 ms 0.012 ms 0.011 ms
2 (192.168.1.97) 0.033 ms 0.014 ms 0.013 ms


VM1 has: 189.204.35.55 and 192.168.1.97
auto venet0:0
iface venet0:0 inet static
address 189.204.35.55
netmask 255.255.255.255
broadcast 0.0.0.0

auto venet0:1
iface venet0:1 inet static
address 192.168.1.97
netmask 255.255.255.255
broadcast 0.0.0.0

VM2 has 192.168.1.90
 
The ping time is 0.013 ms in both cases - so what exactly is slow? I guess you use 'traceroute -n' ?
 
Thanks for your answer and time

Yes you are right i dont explain very well and both result was the same, i will try to explain with words.

If i write a ping command and after that i push the "Enter" in the keyboard the both VM answer in less than a second and i can see on the screen

If i write a traceroute command from VM1 to VM2 and i push the "Enter" in the keyboard the answer was in less than a second and i can see on the screen

But the problem is:
If i write the traceroute from VM2 to VM1 and i push the "Enter" in the keyboard the answer appers in the screen at less 20 seconds later with the same result as you can see in the post that you answer.

And the real problem is this.
In VM1 i have PHP
In VM2 i have MySQL
When i do a mysql query from PHP it need 20 seconds to response.

But in VM3 i have PHP + MySQL and the same query need 0.1 seconds to response.

And i dont know why, i think the problem is because the VM1 has a external IP address, and the VM2 has a internal IP address

I hope you understood now what is my problem

Thanks and Best Regards
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!