Proxmox + Chilli + 2 IPS

crewze

New Member
Oct 17, 2009
24
1
1
I added a second IP to my VM and it works fine. I can use SSH to access the VM on both IPs.

When I try to install the Chilli application that requires 2 IPs -- I get an error:

Starting chilli: SIOCSIFFLAGS: Cannot assign requested address
chilli.

Here is my /etc/network/interfaces:

# Auto generated interfaces
auto lo
iface lo inet loopback

auto venet0
iface venet0 inet static
address 127.0.0.1
netmask 255.255.255.255
broadcast 0.0.0.0
up route add -net 192.0.2.1 netmask 255.255.255.255 dev venet0
up route add default gw 192.0.2.1
auto venet0:0
iface venet0:0 inet static
address 192.168.1.17
netmask 255.255.255.255
broadcast 0.0.0.0

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

That all looks fine to me. When I restart networking I get:

* Reconfiguring network interfaces...
SIOCSIFFLAGS: Cannot assign requested address
SIOCSIFFLAGS: Cannot assign requested address
SIOCSIFFLAGS: Cannot assign requested address
...done.

ifconfig gives:

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:65 errors:0 dropped:0 overruns:0 frame:0
TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6355 (6.2 KB) TX bytes:6355 (6.2 KB)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:123707 errors:0 dropped:0 overruns:0 frame:0
TX packets:82909 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:65734628 (62.6 MB) TX bytes:5179101 (4.9 MB)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.1.17 P-t-P:192.168.1.17 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

venet0:1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.1.18 P-t-P:192.168.1.18 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1


Does someone know what I am missing here?
 
Is there a way to change after you have created the VM?

I have done many modifications to the VM and if I have to create it again, I will have to redo those changes.
 
Yes, just remove all assigned IPs on the network tab - then you can selectc bridged mode (veth).
 
OK --- I did that and it now shows:

Bridged Ethernet Devices eth0:disabledvmbr0

Is that correct?

How do I assign 2 IP addresses?
 
Bridged Ethernet Devices eth0:disabledvmbr0

Is that correct?

assign eth0 to vmbr0

How do I assign 2 IP addresses?

Please edit /etc/network/interfaces directly inside the vm - i should look like you are on a physical machine (please delete all venet leftover).
 
Can you give me a sample configuration. I tired:

iface eth0 inet static
address 192.168.1.17
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

which is the configuration I would use for a physical machine.
 
Code:
auto lo
iface lo inet loopback
 
auto eth0
iface eth0 inet static
        address 192.168.1.17
        netmask 255.255.255.0
        gateway 192.168.1.1
 
auto eth0:1
iface eth0:1 inet static
        address 192.168.1.18
        netmask 255.255.255.0
 
Thanks. I get the following error when I restart networking (/etc/init.d/networking restart) :

SIOCSIFFLAGS: Cannot assign requested address

But....the IP addresses appear to work fine. :confused: