Results 1 to 8 of 8
  1. How to tell if I am running a VPS , linux command?

    Hi guys,

    I was wondering if there is any linux function that I can run to tell if I am running a VPS. Better still, any function to tell if its a Virtuozzo, UML, FreeVPS or Zen?
    What you can do with Cpanel ------------------> |||||
    What you can do with Cpanel XP+CpanelAPP -------> ||||||||||||||||||||||||||||||||||||||||

    Your competitors are cashing in with Cpanel XP & CpanelAPP, are you?

  2. #2
    Join Date
    Jun 2003
    Location
    UK
    Posts
    6,601
    cat /proc/cpuinfo to see if it says UML

    df can show /dev/vzfs for Virtuozzo based system

    ifconfig -a can show something like venet0 if under VServer

    cat /proc/bean_counters can show a Virtuozzo system

    Rus
    Russ Foster - Industry Curmudgeon

  3. Rus,

    I guess you misunderstood.
    Good info anyway.

    I was actually looking for commands that I can run from my VPS account itself.
    I guess the virtualization is so tight nowadays that it is virtually(no pun intended) impossible to tell.

    Originally posted by vaserv
    cat /proc/cpuinfo to see if it says UML

    df can show /dev/vzfs for Virtuozzo based system

    ifconfig -a can show something like venet0 if under VServer

    cat /proc/bean_counters can show a Virtuozzo system

    Rus
    What you can do with Cpanel ------------------> |||||
    What you can do with Cpanel XP+CpanelAPP -------> ||||||||||||||||||||||||||||||||||||||||

    Your competitors are cashing in with Cpanel XP & CpanelAPP, are you?

  4. #4
    Join Date
    Jun 2003
    Location
    UK
    Posts
    6,601
    If you run all those commands inside a VPS they will give you back info. For example in the Virtuzzo VPS if you run

    "df"

    Virtuozzo doesn't use /dev/hda1 it uses /dev/vzfs

    or have i got the wrong end of the stick?

    rus
    Russ Foster - Industry Curmudgeon

  5. Rus,

    Youre definitely right.
    I tested it out and it works
    What you can do with Cpanel ------------------> |||||
    What you can do with Cpanel XP+CpanelAPP -------> ||||||||||||||||||||||||||||||||||||||||

    Your competitors are cashing in with Cpanel XP & CpanelAPP, are you?

  6. #6
    Join Date
    Feb 2005
    Posts
    374
    another one is uname -a. This will return the kernel version. If you see somthing like stab022.1.777-smp, you are running virtuozzo.

  7. When I run that command on UML, I get 2.4.26-1um.
    Is the 'um' a giveaway?

    Originally posted by datruesurfer
    another one is uname -a. This will return the kernel version. If you see somthing like stab022.1.777-smp, you are running virtuozzo.
    What you can do with Cpanel ------------------> |||||
    What you can do with Cpanel XP+CpanelAPP -------> ||||||||||||||||||||||||||||||||||||||||

    Your competitors are cashing in with Cpanel XP & CpanelAPP, are you?

  8. #8
    Join Date
    Jun 2003
    Location
    UK
    Posts
    6,601
    The um in UML can easily be removed. Its not a sure fire way. For UML cat /proc/cpuinfo and "grep User Mode Linux" is the best way. However it is possible to hide even that.

    Rus
    Russ Foster - Industry Curmudgeon

Posting Permissions

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