Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


OpenVZ Ubuntu 11.10 Template buggy
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

OpenVZ Ubuntu 11.10 Template buggy

sshVMsshVM Member
edited February 2012 in General

Any VPS provider here running OpenVZ Ubuntu 11.10 template without any issues?

http://wiki.openvz.org/Download/template/precreated

Comments

  • FranciscoFrancisco Top Host, Host Rep, Veteran

    Yes but we rolled our own

  • Same here. The OpenVZ-provided templates are nice for your first few weeks of business. And then you realize they're full of chaff, so you roll your own. :)

  • True, this official template needs lot of fix.

  • vzctl enter 100
    enter into CT 100 failed
    Unable to open pty: No such file or directory
    

    Fix:

    /sbin/MAKEDEV -d /vz/private/100/dev -x {p,t}ty{a,p}{0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f} console core full kmem kmsg mem null port ptmx random urandom zero ram0
    /sbin/MAKEDEV -d /vz/private/100/etc/devices -x {p,t}ty{a,p}{0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f} console core full kmem kmsg mem null port ptmx random urandom zero ram0
    

    Issue: Sources.list missing.

    root@demo:/# apt-get update
    Reading package lists... Done
    root@demo:/# ls -la /etc/apt/
    total 44
    drwxr-xr-x  6 root root 4096 Jan 10 21:25 .
    drwxr-xr-x 82 root root 4096 Feb 17 16:48 ..
    drwxr-xr-x  2 root root 4096 Jan 10 21:25 apt.conf.d
    drwxr-xr-x  2 root root 4096 Oct  6 19:30 preferences.d
    drwxr-xr-x  2 root root 4096 Oct  6 19:30 sources.list.d
    -rw-------  1 root root 1200 Jan 10 21:25 trustdb.gpg
    -rw-r--r--  1 root root 6713 Jan 10 21:25 trusted.gpg
    drwxr-xr-x  2 root root 4096 Oct  6 19:30 trusted.gpg.d
    -rw-r--r--  1 root root 6713 Jan 10 21:25 trusted.gpg~
    

    Fix:
    Generate list and update it to sources.list

    http://repogen.simplylinux.ch/generate.php
    

    Issue: modules.dep: No such file or directory

    root@demo:~# /etc/init.d/networking restart
     * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
     * Reconfiguring network interfaces...
    ssh stop/waiting
    ssh start/running, process 1533
    FATAL: Could not load /lib/modules/2.6.18-274.7.1.el5.028stab095.1/modules.dep: No such file or directory
    ssh stop/waiting
    ssh start/running, process 1565
    ssh stop/waiting
    ssh start/running, process 1600
       ...done.
    

    Fix:

    root@demo:~# rm -rfv /sbin/modprobe
    removed `/sbin/modprobe'
    root@demo:~# ln -s /bin/true /sbin/modprobe
    root@demo:~# /etc/init.d/networking restart
     * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
     * Reconfiguring network interfaces...
    ssh stop/waiting
    ssh start/running, process 1696
    ssh stop/waiting
    ssh start/running, process 1728
    ssh stop/waiting
    ssh start/running, process 1763
       ...done.
    

    Issue: venet0:0 missing

    root@demo:~# 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:79 errors:0 dropped:0 overruns:0 frame:0
              TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:5770 (5.7 KB)  TX bytes:5770 (5.7 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.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:1 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:136 (136.0 B)  TX bytes:68 (68.0 B)
    

    Fix:

    apt-get install ifupdown
    
    reboot
    

    Issue: init 100%

      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                             
        1 root      25   0  2880 1444 1204 R  100  0.1   3:32.62 init   
    

    Not sure why init utilizes cpu 100%.

  • Your first issue, regarding missing pty/tty devices, will recur every time the OS template is reinstalled. So expect that your users will be unable to log in if they reinstall their OS.

  • After making all the changes should gz the private.

  • Like been said create your own templates, once you start doing this it becomes second nature.

  • For init use:

    "Firstly Open up SSH and add the following PPA
    add-apt-repository ppa:jammy/upstart.fix-880049
    Hit enter and Enter again.

    If It says command not found, Issue this command first
    apt-get install python-software-properties
    Then
    apt-get update && apt-get upgrade"

    source: http://askubuntu.com/questions/68144/init-process-at-100-cpu-usage

    It worked for me however I do not offer Ubuntu 11.10 right now.

Sign In or Register to comment.