Multiple Ip addresses

TonyZ

New Member
Aug 7, 2009
10
0
1
Hi,

I am still getting up to speed with this great product, but having a few difficulties. I installed a Debian Lenny kvm, I need to assign a second ip address to it. I assumed that I just do that on the kvm machine. Is this wrong? I do not see anything special on the host proxmox configuration. The bridge is vmbr0 and the first ip address is working fine. Thanks for any help.
 
Thank you for the reply. After some hours of testing, I have not been able to narrow this down. Maybe I am missing something. I am using Debian Lenny as the guest with the virtio drivers. If I assign a second ip address to eth0 on the guest, I can use it fine. Once the guest is reset, the virtual ip address is wiped out. I have lots of bare metal Debian servers with multiple ip addresses assigned to eth0. I did see on the linux-kvm site where lots of parameters can be passed to /usr/bin/kvm. Is there a mechanism somewhere that may be wiping out /etc/network/interfaces? Maybe it has something to do with using virtio drivers. How can I assign a second virtual nic to the guest? Maybe that would be a better way to do this.

Thank you for any thoughts.
 
Thank you dietmar for your patience and replies. We have never had this issue on our bare metal boxes and this is our first foray into testing virtualization. This issue was not the fault of Proxmox, but a weird issue that happened during the install which caused a misconfiguration which took us a few days to find. We are going to try and replicate the behavior for our purposes, but I donot believe it has anything to do with KVM/qemu.

Thanks again!

After evaluation, we will be donating if things work out.
 
Hi TonyZ.
I have a similar problem, but with OpenVZ type of virtualization.

/etc/network/interfaces is reset to 1 ip only after restart, and adding a second IP to the same nic does not work, as it is not accessible from outside the guest system.

Can you give us a hint of what you found to be the issue? Maybe it can help the less experienced like myself. :)

Thanks!
 
Hi,

If you are using Proxmox, you can assign multiple ips in the web interface. Just assign them with a space between them. The ips are handled by Proxmox/OpenVZ. If you are using KVM, then the guest is like its own machine. You would assign multiple ips in the /etc/network/interfaces, and they do stick after a reboot. My issue was that our installer installs webmin ad some other things. For some reason, when we were doing a normal install that works on bare metal, the same install was not assigning the subnet mask and broadcast correctly. Once we fixed that, there were no issues.

You said you were using "OpenVZ type of virtualization" what else is there similar to openvz or proxmox? We are still struggling to find a good virtualization for large java apps. No fault of Proxmox which is great, just Java and memory have specific issues.
 

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!