OpenVZ vps created started not pinging

  • Thread starter Thread starter ataomega
  • Start date Start date
A

ataomega

Guest
Hello all.

i installed Proxmox on a debian 5 server.
server's network configuration :

/etc/network/interfaces
Code:
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet static
address 173.45.97.234
netmask 255.255.255.248
gateway 173.45.97.233
server has these ips : 173.45.97.234 (main ip), 173.45.97.235-238 (additional)

i create a vps with proxmox, a centos vps vps with ip 173.45.97.236
it used this commands to create vps :
Code:
/usr/bin/pvectl vzcreate 101 --disk 8 --ostemplate centos-5-standard_5.2-1_i386.tar.gz --rootpasswd $1$7g0t63pP$eCyRCG3hh8RtHvseqeSum1 --hostname ns1.mihanpars.com --description CentOS 5 (standard) --nameserver 209.190.74.89 --searchdomain 209.190.74.89 --onboot yes --swap 512 --ipset 173.45.97.236 --mem 1024 --cpus 1
vzctl set 101 --vmguarpages 393216:9223372036854775807 --oomguarpages 393216:9223372036854775807 --privvmpages 393216:405716 --lockedpages 262144:262144 --diskspace 8388608:9227468 --diskinodes 1600000:1760000 --hostname ns1.mihanpars.com --description CentOS 5 (standard) --searchdomain 209.190.74.89 --ipadd 173.45.97.236 --onboot yes --nameserver 209.190.74.89 --save
Saved parameters for CT 101
VM 101 created

on the server :
Code:
d5:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1c:c0:5c:b1:a6
          inet addr:173.45.97.234  Bcast:173.45.97.239  Mask:255.255.255.248
          inet6 addr: fe80::21c:c0ff:fe5c:b1a6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:288896 errors:0 dropped:0 overruns:0 frame:0
          TX packets:69319 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:192013182 (183.1 MiB)  TX bytes:6307125 (6.0 MiB)

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:4900 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4900 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1068801 (1.0 MiB)  TX bytes:1068801 (1.0 MiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:224 (224.0 B)  TX bytes:0 (0.0 B)

d5:~#

On vps :
cat /etc/resolv.conf :
Code:
search 209.190.74.89
nameserver 209.190.74.89


ifconfig :
Code:
ifconfig                                                         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:0 errors:0 dropped:0 overruns:0 frame:0                                           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                                         collisions:0 txqueuelen:0                                                                    RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)                                                                                                                                          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:0 errors:0 dropped:0 overruns:0 frame:0                                           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                                         collisions:0 txqueuelen:0                                                                    RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)                                                                                                                                          venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00                    inet addr:173.45.97.236  P-t-P:173.45.97.236  Bcast:173.45.97.236  Mask:255.255.255.255                                                                                                   UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

on ifcfg-venet0:0 file in vps : NETMASK=255.255.255.2555
before these, i've worked VirtualBox for creating vps, for windows and linux vpses, i set netmask for them 255.255.0.0
also in ifcfg-venet0:0 file , gateway is not defined.

any solution please? vps is not pinging
 
ok.

in vps , i edit the netmask and set it to 255.255.0.0 from 255.255.255.255
its now ok and pinging.

but everytime i should do this manually?
 
Hello all.

i installed Proxmox on a debian 5 server.
server's network configuration :

/etc/network/interfaces
Code:
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet static
address 173.45.97.234
netmask 255.255.255.248
gateway 173.45.97.233
server has these ips : 173.45.97.234 (main ip), 173.45.97.235-238 (additional)

i create a vps with proxmox, a centos vps vps with ip 173.45.97.236
it used this commands to create vps :
Code:
/usr/bin/pvectl vzcreate 101 --disk 8 --ostemplate centos-5-standard_5.2-1_i386.tar.gz --rootpasswd $1$7g0t63pP$eCyRCG3hh8RtHvseqeSum1 --hostname ns1.mihanpars.com --description CentOS 5 (standard) --nameserver 209.190.74.89 --searchdomain 209.190.74.89 --onboot yes --swap 512 --ipset 173.45.97.236 --mem 1024 --cpus 1
vzctl set 101 --vmguarpages 393216:9223372036854775807 --oomguarpages 393216:9223372036854775807 --privvmpages 393216:405716 --lockedpages 262144:262144 --diskspace 8388608:9227468 --diskinodes 1600000:1760000 --hostname ns1.mihanpars.com --description CentOS 5 (standard) --searchdomain 209.190.74.89 --ipadd 173.45.97.236 --onboot yes --nameserver 209.190.74.89 --save
Saved parameters for CT 101
VM 101 created
on the server :
Code:
d5:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1c:c0:5c:b1:a6
          inet addr:173.45.97.234  Bcast:173.45.97.239  Mask:255.255.255.248
          inet6 addr: fe80::21c:c0ff:fe5c:b1a6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:288896 errors:0 dropped:0 overruns:0 frame:0
          TX packets:69319 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:192013182 (183.1 MiB)  TX bytes:6307125 (6.0 MiB)

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:4900 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4900 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1068801 (1.0 MiB)  TX bytes:1068801 (1.0 MiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:224 (224.0 B)  TX bytes:0 (0.0 B)

d5:~#
On vps :
cat /etc/resolv.conf :
Code:
search 209.190.74.89
nameserver 209.190.74.89
ifconfig :
Code:
ifconfig                                                         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:0 errors:0 dropped:0 overruns:0 frame:0                                           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                                         collisions:0 txqueuelen:0                                                                    RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)                                                                                                                                          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:0 errors:0 dropped:0 overruns:0 frame:0                                           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                                         collisions:0 txqueuelen:0                                                                    RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)                                                                                                                                          venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00                    inet addr:173.45.97.236  P-t-P:173.45.97.236  Bcast:173.45.97.236  Mask:255.255.255.255                                                                                                   UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
on ifcfg-venet0:0 file in vps : NETMASK=255.255.255.2555
before these, i've worked VirtualBox for creating vps, for windows and linux vpses, i set netmask for them 255.255.0.0
also in ifcfg-venet0:0 file , gateway is not defined.

any solution please? vps is not pinging

you installed Proxmox VE on a exisiting Debian?

you need to follow this howto:
http://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Lenny

looks like you do not not configure the bridge like described in the wiki.
 
sorry, i made mistake.

i change network mask, and rebootet vps. not it is pinging. but when i enter at explorer 173.45.97.236 , it goes to proxmox admin , when i connect to it through ssh, when i enter vps's password, access denied! when i enter main server's password it login, when i connect with ssh to vps , it connects to server!
 
ok, tnx. i found.
but which i should configure? eth0 or vmbr0?
 
ok. tnx

now is it true?
Code:
d5:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1c:c0:5c:b1:a6
          inet6 addr: fe80::21c:c0ff:fe5c:b1a6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:319 errors:0 dropped:0 overruns:0 frame:0
          TX packets:283 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:37315 (36.4 KiB)  TX bytes:35203 (34.3 KiB)

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:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:940 (940.0 B)  TX bytes:940 (940.0 B)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:161 errors:0 dropped:0 overruns:0 frame:0
          TX packets:175 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:20386 (19.9 KiB)  TX bytes:18778 (18.3 KiB)

vmbr0     Link encap:Ethernet  HWaddr 00:1c:c0:5c:b1:a6
          inet addr:173.45.97.234  Bcast:173.45.97.239  Mask:255.255.255.248
          inet6 addr: fe80::21c:c0ff:fe5c:b1a6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:319 errors:0 dropped:0 overruns:0 frame:0
          TX packets:277 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:32537 (31.7 KiB)  TX bytes:34735 (33.9 KiB)

d5:~#
 
also, may i have both openvz and kvm vpses at the time? (both running)
 
and the last question. i've a 500GB usb hard drive NTFS formated , mounted to this debian linux server.

how can i copy files from that hard to a directroy in main hard? tnx
 
about KVM vpses, i want to create a windows kvm vps, i should select vmbr0 network?
where should i set ip for the vps? and how can i mount iso image to cd rom for vps

tnx
 
about KVM vpses, i want to create a windows kvm vps, i should select vmbr0 network?
where should i set ip for the vps? and how can i mount iso image to cd rom for vps

tnx

pls follow the forum rules.

if you have a question, do the following:

  • read the documentation on our wiki pages
  • search the forum for similar questions
  • if this does not help, post your issue in this forum
this question can be easily answered by reading the documentation.

thanks,
 
ok, sorry.
and a question i'm sure the answer is not in wiki.

does the kernel (proxmox) support ntfs?
 
ok, sorry.
and a question i'm sure the answer is not in wiki.

does the kernel (proxmox) support ntfs?

try installing ntfs-3g, never tried personally but should work.
(apt-get install ntfs-3g)
 
tnx.
worked for me. (but doesnt show all files, doesnt show tar files on the disk.)

i have iso images on hard, where should i copy them?
 
tnx.
worked for me. (but doesnt show all files, doesnt show tar files on the disk.)

i have iso images on hard, where should i copy them?

=> read the docu and use the search function of the forum.

e.g. search for 'iso path'
 

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!