Results 1 to 6 of 6
  1. #1

    Getting networking going on openvz

    Hi,

    I hope it's OK to ask this here.

    I just got my first VPS, cheap deal from Waveride. I can log into it on the control panel, but there is no internet connectivity. I can't ping anything from the VPS, and I can't SSH into it. I *think* networking is just misconfigured, but it a barebones, no support deal so I can't ask them.

    I've installed Ubuntu 12.10 x86-64 (64Bit).

    /etc/network/interfaces looks like this (my x's):


    Code:
    # Auto generated lo interface
    auto lo
    iface lo inet loopback
    
    # Auto generated lo interface
    auto lo
    iface lo inet loopback
    
    # Auto generated venet0 interface
    auto venet0
    iface venet0 inet manual
            up ifconfig venet0 up
            up ifconfig venet0 127.0.0.2
            up route add default dev venet0
            down route del default dev venet0
            down ifconfig venet0 down
    
    iface venet0 inet6 manual
            up ifconfig venet0 add x:x:x:x:x:x:x:x/128
            down ifconfig venet0 del x:x:x:x:x:x:x:x/128
            up route -A inet6 add default dev venet0
    I have added this using /etc/netowrk/interfaces.tail using the information given by the provider:

    Code:
    auto venet0:0
        iface venet0:0 inet static
        address x.x.x.x
        netmask 255.255.255.0
        gateway x.x.x.x


    /etc/resolv.conf
    Code:
    nameserver 8.8.8.8
    nameserver 8.8.4.4

    root@subject:/# route

    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    151.236.10.0    *               255.255.255.0   U     0      0        0 venet0
    default         *               0.0.0.0         U     0      0        0 venet0

    root@subject:/# ifconfig

    Code:
    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: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.2  P-t-P:127.0.0.2  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:182 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:x.x.x.x  P-t-P:x.x.x.x  Bcast:x.x.x.255  Mask:255.255.255.0
              UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1


    Can anyone help me? I'm a bit lost and not experienced enough to know if it's a problem with OpenVZ or something I'm expected to figure out.

  2. #2
    Join Date
    Jun 2010
    Location
    Manchester, UK
    Posts
    179
    It sounds like no IPv4 address has been assigned to the VPS during deployment. Get in touch with your VPS provider support desk and ask them to check the network configuration.

    If you can't ping something like www.google.com, then there is an issue which needs to be dealt with by the hosting provider.
    Farbyte Ltd [UK] ♦ Professional UK Cloud Hosting ♦ Tel: +44 (0)843 532 0744
    cPanelŽ web hosting since 2006.
    Distributed Optane SSD caching cloud VPS
    ♦ Hosting ♦ Domains ♦ SSL Certificates ♦ VPS

  3. #3
    Join Date
    Dec 2012
    Posts
    219
    Your host should help you as its being a networking issue. You can try to turn off firewall in the vps if its blocking connection.
    TronicHost.com - Offshore Web Hosting Provider. Netherlands/Romania || 24x7 Support
    Shared/Reseller Hosting | Offshare VPS/Dedicated Server. Paypal/Perfectmony/Payza/Bitcoin accepted

  4. #4
    The VPS company got back to me and fixed it. Thanks for the advice!

  5. #5
    Join Date
    Jul 2012
    Posts
    842
    I know the problem was fixed, but I did want to add to the discussion. I was running Debian under OpenVZ (and SolusVM) and noted that certain files were overwritten each time the VPS was booted. That included /etc/network/interfaces.

    I suspect that a simple VPS reboot from the Control Panel may fix the problem. The IP address(es) are added into /etc/network/interfaces each time the VPS is booted. If not, then the hosting provider did not provision your VPS correctly.

    Here is the thread I started regarding files that are edited or overwritten when a VPS is booted in OpenVZ. At the time I thought it was SolusVM, but it is OpenVZ:

    http://www.webhostingtalk.com/showthread.php?t=1213133

  6. #6
    Join Date
    Jan 2010
    Location
    USA
    Posts
    2,173
    If they use SolusVM and you chose a complex password (with characters other than letters and numbers), then you might have run into a bug in SolusVM. The latest "stable" of SolusVM has a bug that busts the networking setup during VPS creation when the VPS is created using the API (such as when a billing system calls the API to create the VPS). The latest "beta" of SolusVM has the bug fixed.
    No Support Linux Hosting Bargain cPanel Hosting Experts Only
    We IGNORE the support questions, and pass the SAVINGS on to YOU!
    We also ignore questions about VPS Hosting

Similar Threads

  1. OpenVZ Networking setup
    By DataWagon-CJ in forum Employment / Job Offers
    Replies: 3
    Last Post: 07-24-2012, 08:55 AM
  2. OpenVZ networking - venet vs veth
    By Edwardzyc in forum VPS Hosting
    Replies: 2
    Last Post: 01-08-2011, 07:49 PM
  3. Lightwave Networking OpenVZ & Xen PV VPS Hosting Availability!
    By Lightwave in forum VPS Hosting Offers
    Replies: 0
    Last Post: 06-14-2010, 11:09 AM
  4. Replies: 0
    Last Post: 05-30-2010, 06:54 PM
  5. Lightwave Networking OpenVZ VPS Hosting
    By Lightwave in forum VPS Hosting Offers
    Replies: 0
    Last Post: 05-23-2010, 01:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •