--- vzctl.8.orig 2009-05-26 21:13:14.549970842 +0200 +++ vzctl.8 2009-05-26 23:21:27.189970329 +0200 @@ -555,8 +555,264 @@ Prints help message with a brief list of possible options. .IP \fB--version\fR 4 Prints \fBvzctl\fR version. -.SH DIAGNOSTICS -Returns 0 upon success. +.SH EXIT STATUS +.LP +The following exit values may be returned: +.TP 7 +\ 0 +Success +.LP +System errors +.TP 7 +\ 1 +VZ_SETUBC_ERROR +.TP 7 +\ 2 +VZ_SETFSHD_ERROR +.TP 7 +\ 3 +VZ_SYSTEM_ERROR +.TP 7 +\ 5 +VZ_BAD_KERNEL - not a VZ-capable kernel +.TP 7 +\ 6 +VZ_RESOURCE_ERROR +.TP 7 +\ 7 +VZ_ENVCREATE_ERROR +.TP 7 +\ 8 +VZ_COMMAND_EXECUTION_ERROR +.TP 7 +\ 9 +VZ_LOCKED +.TP 7 +\ 10 +VZ_NOCONFIG - global config file not found +.TP 7 +\ 11 +VZ_NOSCRIPT +.TP 7 +\ 12 +VZ_NO_ACCES +.TP 7 +\ 13 +VZ_SET_CAP +.TP 7 +\ 14 +VZ_NOVECONFIG +.TP 7 +\ 15 +VZ_EXEC_TIMEOUT +.TP 7 +\ 16 +VZ_CHKPNT_ERROR +.TP 7 +\ 17 +VZ_RESTORE_ERROR +.TP 7 +\ 18 +VZ_SETLUID_ERROR +.LP +Argument errors +.TP 7 +\ 20 +VZ_INVALID_PARAMETER_SYNTAX +.TP 7 +\ 21 +VZ_INVALID_PARAMETER_VALUE +.TP 7 +\ 22 +VZ_VE_ROOT_NOTSET +.TP 7 +\ 23 +VZ_VE_PRIVATE_NOTSET +.TP 7 +\ 24 +VZ_VE_TMPL_NOTSET +.TP 7 +\ 27 +VZ_NOTENOUGHPARAMS +.TP 7 +\ 28 +VZ_NOTENOUGHUBCPARAMS +.TP 7 +\ 29 +VZ_VE_PKGSET_NOTSET +.LP +CT errors +.TP 7 +\ 31 +VZ_VE_NOT_RUNNING +.TP 7 +\ 32 +VZ_VE_RUNNING +.TP 7 +\ 33 +VZ_STOP_ERROR +.TP 7 +\ 34 +VZ_CANT_ADDIP +.TP 7 +\ 35 +VZ_VALIDATE_ERROR +.TP 7 +\ 36 +VZ_OVERCOMMIT_ERROR +.LP +Filesystem errros +.TP 7 +\ 40 +VZ_FS_NOT_MOUNTED - private area is not mounted +.TP 7 +\ 41 +VZ_FS_MOUNTED - private area is already mounted +.TP 7 +\ 43 +VZ_FS_NOPRVT - no private area with this id +.TP 7 +\ 44 +VZ_FS_PRVT_AREA_EXIST - private area with this id already exists +.TP 7 +\ 46 +VZ_FS_NO_DISK_SPACE +.TP 7 +\ 47 +VZ_FS_BAD_TMPL - template private area is not properly created +.TP 7 +\ 48 +VZ_FS_NEW_VE_PRVT - cannot create new private area +.TP 7 +\ 49 +VZ_FS_MPOINTCREATE - cannot create mounpoint +.TP 7 +\ 50 +VZ_FS_CANTMOUNT - cannot mount ve private area +.TP 7 +\ 51 +VZ_FS_CANTUMOUNT - cannot umount ve private area +.TP 7 +\ 52 +VZ_FS_DEL_PRVT - error deleting ve private area +.TP 7 +\ 53 +VZ_UNK_MOUNT_TYPE - private area doesn't exist +.TP 7 +\ 54 +VZ_CANT_CREATE_DIR +.TP 7 +\ 55 +VZ_NOTENOUGH_QUOTA_LIMITS +.LP +Disk quota errors +.TP 7 +\ 60 +VZ_DQ_ON - disk quota not supported +.TP 7 +\ 61 +VZ_DQ_INIT +.TP 7 +\ 62 +VZ_DQ_SET +.TP 7 +\ 63 +VZ_DISKSPACE_NOT_SET +.TP 7 +\ 64 +VZ_DISKINODES_NOT_SET +.TP 7 +\ 65 +VZ_ERROR_SET_USER_QUOTA +.TP 7 +\ 66 +VZ_DQ_OFF +.TP 7 +\ 67 +VZ_DQ_UGID_NOTINITIALIZED +.TP 7 +\ 68 +VZ_GET_QUOTA_USAGE +.LP +"vzctl set" errors +.TP 7 +\ 70 +VZ_BADHOSTNAME - incorrect hostname +.TP 7 +\ 71 +VZ_BADIP - incorrect ip address +.TP 7 +\ 72 +VZ_BADDNSSRV - incorrect dns nameserver address +.TP 7 +\ 73 +VZ_BADDNSSEARCH - incorrect dns domain name +.TP 7 +\ 74 +VZ_CHANGEPASS - error changing password +.TP 7 +\ 77 +VZ_VE_LCKDIR_NOTSET +.TP 7 +\ 78 +VZ_IP_INUSE +.TP 7 +\ 79 +VZ_ACTIONSCRIPT_ERROR +.TP 7 +\ 82 +VZ_CP_CONFIG +.TP 7 +\ 85 +VZ_INVALID_CONFIG +.TP 7 +\ 86 +VZ_SET_DEVICES +.TP 7 +\ 87 +VZ_INSTALL_APPS_ERROR +.TP 7 +\ 89 +VZ_IP_NA +.TP 7 +\ 91 +VZ_PKGSET_NOT_FOUND - Template Error +.TP 7 +100 +VZ_GET_IP_ERROR +.TP 7 +104 +VZ_NETDEV_ERROR +.TP 7 +105 +VZ_VE_START_DISABLED +.TP 7 +106 +VZ_SET_IPTABLES +.TP 7 +107 +VZ_NO_DISTR_CONF +.TP 7 +108 +VZ_NO_DISTR_ACTION_SCRIPT +.TP 7 +109 +VZ_APPLY_CONFIG_ERROR +.TP 7 +128 +VZ_CUSTOM_REINSTALL_ERROR +.TP 7 +129 +VZ_SET_MEMINFO_ERROR +.TP 7 +130 +VZ_VETH_ERROR +.TP 7 +131 +VZ_SET_NAME_ERROR +.TP 7 +133 +VZ_WAIT_FAILED .SH EXAMPLES To create and start "basic" container with ID of 1000 using \fIfedora-core-5\fR OS template and IP address of 192.168.10.200: