OpenVZ Forum


Home » General » Support » assign public ( or private ) ip to new vps?
assign public ( or private ) ip to new vps? [message #1597] Wed, 15 February 2006 02:37 Go to previous message
snowdeal is currently offline  snowdeal
Messages: 22
Registered: February 2006
Junior Member
since i don't see any other posts regarding this topic, i'm going to have to assume that i'm missing something basic and this is yet another opportunity for me to embarrass myself in public.

anyway, i have a openvz installed on a hardware node running rhel3 with one nic and eth0 and lo enabled by default [1]. and for the life of me i can't figure out how to assign public ips from my pool of available addresses to a new vps.

of course, at first i tried following the quick install instructions precisely [2] and ran into a "Unable to apply network parameters: VPS is not running" error. so, naturally i'd start the vps and then apply the public ip. while the vps starts without a problem, i get an error that it's unable to add the route [3] because the network is down.

next, using my faulty logic skills i thought i'd turn on the addresses on the hardware node by properly configuring ifcfg-eth0-range0 and running './ifup-aliases eth0' to bring up the pool of addresses and assign one to the new vps. but after creating the node with a slightly modified set of commands [4], when i attempt to start the vps, i receive enough errors [5] to indicate that something has gone seriously awry.

lastly, i thought i might try assigning a private ip to the node and ssh into the running vps and assign the public ip, but i run into this problem [6] where my network is claming that they have every private/non-routable IP address for reasons that i don't understand.

if someone could help get me out of this quagmire, i'd be mighty obliged.


eric

[1]
eth0 Link encap:Ethernet HWaddr my.mac.address
inet addr:my.public.ip Bcast:my.bcast Mask:255.255.255.224
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:262511 errors:0 dropped:0 overruns:0 frame:0
TX packets:237674 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:226756755 (216.2 Mb) TX bytes:38988863 (37.1 Mb)
Base address:0xecc0 Memory:fe100000-fe120000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8493 errors:0 dropped:0 overruns:0 frame:0
TX packets:8493 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:799010 (780.2 Kb) TX bytes:799010 (780.2 Kb)

[2]
vzctl create 101 --ostemplate centos-4-i386-default --config vps.basic
/usr/sbin/vzctl set 101 --ipadd next.public.ip
Unable to apply network parameters: VPS is not running
WARNING: Settings were not saved and will be resetted to original values on next start (use --save flag)

[3]
/usr/sbin/vzctl set 101 --ipadd next.public.ip
Adding IP address(es): next.public.ip
RTNETLINK answers: Network is down
vps-net_add ERROR: Unable to add route /sbin/ip route add next.public.ip dev venet0 src my.public.ip

[4]
vzctl create 101 --ostemplate centos-4-i386-default --config vps.basic
vzctl set 101 --onboot yes --save
vzctl set 101 --ipadd next.public.ip --save

[5]
Starting VPS ...
VPS is mounted
Adding IP address(es): next.public.ip
RTNETLINK answers: Network is down
vps-net_add ERROR: Unable to add route /sbin/ip route add public.ip.195 dev venet0 src public.ip.215
VPS start failed
Stopping VPS ...
VPS was stopped
vzquota : (error) Quota off syscall for id 101: Device or resource busy
vzquota setlimit -f failed [3]
VPS is unmounted

[6]
http://forum.openvz.org/index.php?t=msg&th=207&#msg_ 951

[Updated on: Wed, 15 February 2006 02:38]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: support for 3Ware \ 2 channel SATA RAID controller?
Next Topic: Problem with running apache2
Goto Forum:
  


Current Time: Sun Jul 21 02:22:36 GMT 2024

Total time taken to generate the page: 0.02252 seconds