Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2011
    Posts
    223

    Question getty / hvc0 on Xen but not OpenVZ

    Hi,

    I've 2 "nearly identical VPS" (from the provider) both running Ubuntu 10.04, one is a Xen, another OpenVZ.

    I noticed that when I issued 'ps aux' - the Xen listed a whole lot of processes which I don't see in OpenVZ - is this normal?

    Also, in the /etc/init/ folder - there are 46 different config files (in the Xen) compared to only 18 (in OpenVZ)

    ps ax on the Xen will show all the ttys, e.g.

    Code:
      405 tty4     Ss+    0:00 /sbin/getty -8 38400 tty4
      407 tty5     Ss+    0:00 /sbin/getty -8 38400 tty5
      411 tty2     Ss+    0:00 /sbin/getty -8 38400 tty2
      412 tty3     Ss+    0:00 /sbin/getty -8 38400 tty3
      415 tty6     Ss+    0:00 /sbin/getty -8 38400 tty6
      489 tty1     Ss+    0:00 /sbin/getty -8 38400 tty1
    22142 ?        Ss     0:00 /sbin/getty -8 38400 hvc0
    But non on the OpenVZ.

    And there is an "error" that is really bugging me, i.e.

    --------
    Jul 6 02:46:26 srv1 init: hvc0 main process (21769) terminated with status 1
    Jul 6 02:46:26 srv1 init: hvc0 main process ended, respawning

    Jul 6 02:46:36 srv1 init: hvc0 main process (21771) terminated with status 1
    Jul 6 02:46:36 srv1 init: hvc0 main process ended, respawning

    -------------

    That error is being logged every 10 seconds in /var/log/syslog

    Any idea why?

    What is this 'hvc0' ?

    Can I safely remove the /etc/init/hvc0.conf file?
    I assume that will stop the respawning of the hvc0

    Many thanks!

  2. #2
    Join Date
    Mar 2011
    Location
    Graz, Austria
    Posts
    298
    I noticed that when I issued 'ps aux' - the Xen listed a whole lot of processes which I don't see in OpenVZ - is this normal?
    Yes, since OpenVZ does not run it's own Kernel enviroment.

    Also, in the /etc/init/ folder - there are 46 different config files (in the Xen) compared to only 18 (in OpenVZ)
    Again: OpenVZ does not need any Kernel related services there.

    But non on the OpenVZ.
    Yet again the Kernel....

    Can I safely remove the /etc/init/hvc0.conf file?
    No, but comment everything out in it and restart the VPS, that will stop the process from spawning.

    William

  3. #3
    Join Date
    Apr 2011
    Posts
    223
    Hi William,

    Thanks for the reply. Currently, my hvc0.conf shows:

    -------------------
    start on stopped rc RUNLEVEL=[2345]
    stop on runlevel [!2345]

    respawn
    exec /sbin/getty -8 38400 hvc0
    ----------------

    So, I just comment out everything, like:

    ------------------------
    #start on stopped rc RUNLEVEL=[2345]
    #stop on runlevel [!2345]

    #respawn
    #exec /sbin/getty -8 38400 hvc0
    -----------------

    Or just comment out the "respawn" line?

    Many thanks!

Similar Threads

  1. Replies: 0
    Last Post: 10-23-2010, 01:13 PM
  2. Replies: 0
    Last Post: 10-13-2010, 04:56 PM
  3. Replies: 0
    Last Post: 08-27-2010, 05:54 AM
  4. Replies: 0
    Last Post: 08-20-2010, 11:30 AM
  5. Replies: 0
    Last Post: 08-10-2010, 01:22 PM

Related Posts from theWHIR.com

Posting Permissions

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