پاسخ : دادن پنل به کاربر (ESX/ESXi)
نقل قول:
نوشته اصلی توسط
1eng.ir
Techno Pars:
فقط کار ریسیت و روشن و خاموش و ... رو انجام میده یا کاملتره؟
در جریان جزئیات بذارم تا ببینیم برنامه نویس خوب میشه پیدا کرد یا نه ...
ساخت کامل VPS به طور اتوماتیک
امکان تغییر IP و ...
یک قسمت از سورس را اینجا می گذارم:
کد PHP:
function vmware_ConfigOptions() {
# Should return an array of the module options for each product - maximum of 24
$configarray = array(
"Virtual machine template" => array( "Type" => "text", "Size" => "40", ),
"Operating system" => array( "Type" => "dropdown", "Options" => "do not customize,windows,linux" ),
"Datacenter" => array( "Type" => "text", "Size" => "40", ),
"Datastore (optional)" => array( "Type" => "text", "Size" => "40", ),
"Folder (optional)" => array( "Type" => "text", "Size" => "40", ),
"Cluster (optional)" => array( "Type" => "text", "Size" => "40", ),
"ESX/ESXi Host (optional)" => array( "Type" => "text", "Size" => "40", ),
"Resource Pool (optional)" => array( "Type" => "text", "Size" => "40", ),
"Memory Size (optional)" => array( "Type" => "text", "Size" => "10", "Description" => "MB" ),
"Number of CPUs (optional)" => array( "Type" => "text", "Size" => "3", ),
"Hard Disk Size (optional)" => array( "Type" => "text", "Size" => "3", "Description" => "GB" ),
"Timezone (Windows)" => array( "Type" => "text", "Size" => "3", ),
"Organization (Windows)" => array( "Type" => "text", "Size" => "40", ),
"User (Windows)" => array( "Type" => "text", "Size" => "40", ),
"License Key (Windows)" => array( "Type" => "text", "Size" => "40", ),
"vCenter Windows domain" => array( "Type" => "text", "Size" => "40", ),
"Host domain (Linux)" => array( "Type" => "text", "Size" => "40", ),
"Timezone (Linux)" => array( "Type" => "text", "Size" => "40", ),
"Power On" => array( "Type" => "yesno", "Description" => "Power on VM after setup" ),
"Networking" => array( "Type" => "dropdown", "Options" => "DHCP,Static IP from IP Manager Module" ),
"LDAP base OU for accounts" => array( "Type" => "text", "Size" => "40", ),
"CPU MHZ Limit (optional)" => array( "Type" => "text", "Size" => "40", ),
"Network Setup parameters (Static IP)" => array( "Type" => "text", "Size" => "40", ),
"Network ID (optional)" => array( "Type" => "text", "Size" => "40", ),
);
return $configarray;
}
پاسخ : دادن پنل به کاربر (ESX/ESXi)
نقل قول:
نوشته اصلی توسط
RezaFH
یعنی چی ؟
وقتی مجازی ساز ESXi نصب هستش.... TAB مربوط به Local Users & Groups وجود نداره به هنگامی که با vSphere Client متصل میشیم...
اما مجازی ساز ESX وجود داره....
البته تا جایی که یادمه !
پاسخ : دادن پنل به کاربر (ESX/ESXi)
اینم یه قسمتی از فایل Perl :
البته بیش از 20 تا فایل هستند.
کد:
#!/usr/bin/perl -w
use strict;
use warnings;
use VMware::VIRuntime;
use VMware::VILib;
use IO::File;
use DBI;
require LWP::UserAgent;
my $WHMCS_ROLE_NAME = 'WHMCSVirtualMachineUser';
my %opts = (
'templatename' => {
type => "=s",
help => "The Name of the template to clone",
required => 1,
},
'destinationname' => {
type => "=s",
help => "The Name of the destination VM",
required => 1,
},
'destinationfolder' => {
type => "=s",
help => "The name of the folder for the destination VM",
required => 0,
},
'cluster' => {
type => "=s",
help => "The name of the cluster for the destination VM resources (overrides resourcepool parameter)",
required => 0,
},
'resourcepool' => {
type => "=s",
help => "The Resource pool to assign for the new machine",
required => 0,
default => "Resources",
},
'datacenter' => {
type => "=s",
help => "The Datacenter to place the new VM in",
required => 1,
},
'host' => {
type => "=s",
help => "The ESX/ESXi host to place the new VM on",
required => 0,
},
'datastore' => {
type => "=s",
help => "The Datastore to place the new VM in",
required => 0,
},
'guesttype' => {
type => "=s",
help => "The type of OS customization to perform (windows/linux) (leave blank for no guest OS customization)",
required => 0,
},
'macaddress' => {
type => "=s",
help => "Changes the MAC address of the primary network adapter",
required => 0,
},
'ip' => {
type => "=s",
help => "The IP address to assign to the VM",
required => 0,
},
'subnetmask' => {
type => "=s",
help => "The Subnet mask to assign to the VM",
required => 0,
},
'gateway' => {
type => "=s",
help => "The Gateway to assign to the VM",
required => 0,
},
'dns' => {
type => "=s",
help => "The Dns server to assign to the VM",
required => 0,
},
'domain' => {
type => "=s",
help => "The Domain suffix to assign to the VM",
required => 0,
},
'primarywins' => {
type => "=s",
help => "The primary WINS server to assign to the VM",
required => 0,
},
'secondarywins' => {
type => "=s",
help => "The secondary WINS server to assign to the VM",
required => 0,
},
'memorymb' => {
type => "=s",
help => "The size of the new machine's memory in MB",
required => 0,
},
'numcpus' => {
type => "=s",
help => "The number of CPUs to assign to the VM",
required => 0,
},
'disksizekb' => {
type => "=s",
help => "The primary disk size in KB",
required => 0,
},
'hostname' => {
type => "=s",
help => "The Hostname of the VM",
required => 1,
},
'rootpwd' => {
type => "=s",
help => "The Administrtor password for Guest OS",
required => 0,
},
'timezone' => {
type => "=s",
help => "The Timezone for Windows OS",
required => 0,
default => '085',
},
'orgname' => {
type => "=s",
help => "The Organization name for Windows OS",
required => 0,
default => 'Microsoft',
},
'fullname' => {
type => "=s",
help => "The user name for Windows OS",
required => 0,
default => 'User',
},
'productid' => {
type => "=s",
help => "The product key for Windows OS",
required => 0,
default => '',
},
'hostdomain' => {
type => "=s",
help => "The Domain for Linux OS",
required => 0,
default => '',
},
'timezonelinux' => {
type => "=s",
help => "The timezone for Linux OS",
required => 0,
default => 'Europe/London',
},
'assignuser' => {
type => "=s",
help => "The Username to assign for access to the VM",
required => 0,
},
'poweron' => {
type => "=i",
help => "Wether or not to power on the new virtual machine (0/1)",
required => 0,
default => 0,
},
'whmcshost' => {
type => "=s",
help => "",
required => 0,
},
'whmcsuser' => {
type => "=s",
help => "",
required => 0,
},
'whmcspassword' => {
type => "=s",
help => "",
required => 0,
},
'whmcsdb' => {
type => "=s",
help => "",
required => 0,
},
'whmcsserviceid' => {
type => "=s",
help => "",
required => 0,
},
'whmcscustomfield' => {
type => "=s",
help => "",
required => 0,
},
'whmcsmoref' => {
type => "=i",
help => "",
required => 0,
},
'productuser' => {
type => "=s",
help => "The windows account of the product user",
required => 0,
},
'cpulimit' => {
type => "=i",
help => "The CPU Limit resource allocation in Mhz",
required => 0,
},
'networkid' => {
type => "=s",
help => "The Network ID to assign to the network card (can be a distributed virtual switch)",
required => 0,
},
);
پاسخ : دادن پنل به کاربر (ESX/ESXi)
نقل قول:
یوزر و پسورد باید ترکیبی از حروف و اعداد باشه :
یوزر : pv1234
پسورد : asdfg4344
سلام
تست کردم
باز هم نشد
در قیمت add new user
login
UID
User Name
به این صورت وارد کرد
مثلاً
login = rahman123
UID = 100
User Name = asd456
باز هم ارور داد
نقل قول:
وقتی مجازی ساز ESXi نصب هستش.... TAB مربوط به Local Users & Groups وجود نداره به هنگامی که با vSphere Client متصل میشیم...
این تب در وی کلایت هست ولی زمانی که از طریق وی سنتر متصل میشیم در دسترس نیست
موفق باشید
پاسخ : دادن پنل به کاربر (ESX/ESXi)
نقل قول:
نوشته اصلی توسط
Warez-Host.IR
این تب در وی کلایت هست ولی زمانی که از طریق وی سنتر متصل میشیم در دسترس نیست
موفق باشید
آره پیدا کردم
پاسخ : دادن پنل به کاربر (ESX/ESXi)
پاسخ : دادن پنل به کاربر (ESX/ESXi)
نقل قول:
Password: 1eng%ir.12
سلام
محمد جان این الان جواب سوال من بود یا چیز دیگه ای ؟؟
پاسخ : دادن پنل به کاربر (ESX/ESXi)
نقل قول:
نوشته اصلی توسط
Warez-Host.IR
سلام
تست کردم
باز هم نشد
در قیمت add new user
login
UID
User Name
به این صورت وارد کرد
مثلاً
login = rahman123
UID = 100
User Name = asd456
باز هم ارور داد
UID و User Name نیاز نیست
فقط login رو شما ست کنید
پاسخ : دادن پنل به کاربر (ESX/ESXi)
نقل قول:
نوشته اصلی توسط
vPsPersia.COM
میشه بگید برای اینکه کاربر بتواند از cd rom استفاده کنه و فقط از iso هایی که در سرور هست برای os reload استفاده کنه از چه تیکی باید استفاده کرد ؟
چه گزینه هایی باید فعال بود ؟
میشه بگین واسه این کار باید چیکار کرد؟
ممنون میشم.
پاسخ : دادن پنل به کاربر (ESX/ESXi)
عصی از دوستان میگن دادن پنل به یوزر مشکل امنیتی ایجاد میکنه ایا درسته ؟