How to run mbralign on esxi with vsphere CLI
I have a few virtual machines with disks misaligned, each of them can be found on ESXi, I also vSphere CLI installed on my laptop.
Thus, it is possible to run mbralign using vSphere CLI, since there is no console on ESXi. If so, what would be the command.
Not possible, vCLI aims for vSphere management regarding the host/vms/etc., that has nothing to do with running the tools custom within the classic ESX or ESXi. As far as I know, the mbralign is not supported on ESXi, if this is the case, it is most likely must be run within the Busybox unsupported console.
Take a look to this blog post by Duncan about the alignment of the VM - http://www.yellow-bricks.com/2010/04/08/aligning-your-vms-virtual-harddisks/
=========================================================================
William Lam
VMware vExpert 2009
Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
Introduction to the vMA (tips/tricks)
Getting started with vSphere SDK for Perl
VMware Code Central - Scripts/code samples for developers and administrators
If you find this information useful, please give points to "correct" or "useful".
Tags: VMware
Similar Questions
-
How to run the packaged procedure with Ref Cursor
Hello.
The question may be very simple for you... but I was confused how to run
I have the following package
But I want to test (run) this procedure...CREATE OR REPLACE PACKAGE CURSPKG AS TYPE T_CURSOR IS REF CURSOR; PROCEDURE OPEN_ONE_CURSOR (N_EMPNO IN NUMBER, IO_CURSOR IN OUT T_CURSOR); END CURSPKG; / CREATE OR REPLACE PACKAGE BODY CURSPKG AS PROCEDURE OPEN_ONE_CURSOR (N_EMPNO IN NUMBER, IO_CURSOR IN OUT T_CURSOR) IS V_CURSOR T_CURSOR; BEGIN IF N_EMPNO <> 0 THEN OPEN V_CURSOR FOR SELECT EMP.EMPNO, EMP.ENAME, DEPT.DEPTNO, DEPT.DNAME FROM EMP, DEPT WHERE EMP.DEPTNO = DEPT.DEPTNO AND EMP.EMPNO = N_EMPNO; ELSE OPEN V_CURSOR FOR SELECT EMP.EMPNO, EMP.ENAME, DEPT.DEPTNO, DEPT.DNAME FROM EMP, DEPT WHERE EMP.DEPTNO = DEPT.DEPTNO; END IF; IO_CURSOR := V_CURSOR; END OPEN_ONE_CURSOR; END CURSPKG; /
But confused how to have Ref Cursor
Could you help me in this...
Thank youYou must declare a variable of type T_CURSOR and pass it to the procedure like this.
declare lOutCursor CURSPKG.T_CURSOR; begin CURSPKG.OPEN_ONE_CURSOR(
, lOutCursor); end; -
Running the command using the vSphere CLI
I installed the vSPhere CLI on my workstation but can't seem to execute commands.
My ESX hosts are managed by a host vCenter.
C:\Program VMware vSphere CLI\bin & gt; esxcli - 10.15.0.11 - user name of server localadmin - password XXXXXXX swiscsi add - n vmk0 d vmhba32
Makes me:
Connect to 10.15.0.11 failed: authorization to perform this operation was refused.
You use an account that has permission to update the configuration of ESX host? Of the error, it looks like a permission problem.
In addition, your syntax can be disabled, try this:
[VI Toolkit] C:\Program Files\VMware\VMware vSphere CLI\bin> .\esxcli.exe --serer esxi40-1.primp-industries.com --username root swiscsi nic add --nic vmk1 --adapter vmhba33 Enter password:
(it worked on our development configuration)
=========================================================================
William Lam
VMware vExpert 2009
Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
VMware Code Central - Scripts/code samples for developers and administrators
If you find this information useful, please give points to "correct" or "useful".
-
How to run Bluecat API calls with a Scriptable task in vRO 6
Throw it to the community for tips. I'm still VERY new to javascript & vRO.
I have vRO6 running with the Plugin from the IPAM Bluecat up and running with the actions of out-of-the-box & plugins. Large.
What I am struggling with, it's that I am creating tasks that contains custom script that can do 'other' things listed in the Handbook for the Bluecat API... Looking at the guide, some things are easy, but others make absolutely no sense to me.
An example of what I don't understand is the sequel... the API guide will show a specific example to the api java code, but it does not explain how to do this in a scriptable vRO task.
Update in Java:
APIEntity area = service.getEntityById (area ID).
Properties EntityProperties = new EntityProperties (zone.getProperties ()); Fill with the existing values and then update the only properties that need to be changed.
properties.addProperty ("TextUDF", "testTextValue");
properties.addProperty ("IntegerUDF", "1005");
zone.setProperties (properties.getPropertiesString ());
service. Update (area);
So it's 6 lines of code, but the execution of that api call vRO Bluecat seems to expect a single sector of something like this:
result = BCNProteusAPI.call (profileName, "method()", args);
I don't make any sense? Any guidance here?
Thank you!!!
The version of the plugin available on SolutionExchange seems to expose a script object unique vRO BCNProteusAPI that acts as a proxy for Proteus service calls. Thus, the Java method calls that look like service.someMethod (args) should be directly translatable to scripts of calls BCNProteusAPI.call (profileName, "someMethod", [args]); For the example you provided, calls Java
APIEntity zone = service.getEntityById( zoneId ); service.update(zone);
may arise in the vRO as scripts
var zone = BCNProteusAPI.call(profileName, "getEntityById", [zoneId] ); BCNProteusAPI.call(profileName, "update", [zone]);
Unfortunately, the other Proteus API objects, like APIEntity, EntityProperties, etc., are not exposed as vRO scripts of the objects, which can cause problems if some service API requires such object as an input parameter. You will probably be able to pass this object returned by a call to service as input to another call from service (such as area in the example above), but you may have problems to instantiate them directly (like EntityProperties in the Java code example).
You can contact BlueCat for info, why not not all objects are exposed as vRO script objects and how they recommend to use these objects.
-
How to run MechWarrior 4: mercenaries with Windows 7
compatibility issues with windows 7
I am running windows 7 and have incompatibility issues when you try to run mechwarrior mercenaries 4 mektek I was wondering if there was a patch to make windows 7 compatible with this older game I beleave it was released for windows 2000, ME and XP but has problems to run properly in windows 7, I tried to change the settings , but still, come in the same endpoint, what gives? am I missing a patch or what?
-------------
-
How to run an application associated with 2 different versions of MFC?
Hello
I created an application that generates a DLL with an EXE which refers to several delivered runtime DLLS. The DLL and EXE have been built with VS2012, and the DLL of enforcement delivered have been built with VS2010. When I try to run the application, I get an access violation in WinMain (calling AfxGetThread returns null). Just to check the application, if the supplied runtime DLLs were also built with VS2012, the application runs correctly.
My goal is to run the application without restoring links there.
Is it possible to use a manifest configuration, using the file and change references to the VS2010 (made by the runtime DLL) to VS2012, so that the application can be run without the restoration of the links?
Here is the config file that I created, but did not succeed:
I don't know if the assemblies Microsoft.VS100.MFC and Microsoft.VS100.CRT names are actually valid and also don't know if I can redirect between major versions of VS.
I was not able to find examples of work. Any help would be useful.
Regards, Rob
This issue is beyond the scope of this site and must be placed on Technet or MSDN -
How to run a job Disqualification with the ability to specify the name of the file to process
Hello
We want to start a task from the Disqualification by command line where I can specify the name of the input in the command line file?
I tried to use the Externalize in drive and renamed the 'enable' file name and try to use the command below.
> java-jar jmxtools.jar runopsjob-ProcessFileToLoad of the job-project DataLoad u weblogic Pei welcome123 - runlabel Jul24 d FileName = abc.dat - nowait localhost:8090
I expect this command will take the entrance as abc.dat instead which is specified as a reader in the work process. But it does not have the file specified as input and still treat the work with the original staging data.
Please help how I can use several files get handled by using the unique task.
Thank you
RaviHi Ravi,
The syntax for the outsourced options is the same as in execution profiles, would be if:
D - phase.*.snapshot. *. FileName = abc.dat
Assuming you outsourced or not ownership of file name as "filename."
Kind regards
Nick
-
How to run Windows Upgrade VCenter with little or no problem at all?
Hello
I have 24 x Servers VMware ESXi 5.1 update 1 on HP Blade servers managed by my VCenter VMware Windows virtual machine that is currently in version vCenter Server 5.1 patch 1 (build 1064983 2013-04-25) as follows:
Windows Server 2008 R2 SP1 Standard - 1 x vCPU & 10 GB vRAM
Microsoft SQL Server 2008 Standard Edition (64-bit) (SP2) - 10.0.4000.0
My question is which of the Sub VCenter upgrade version is less stressful or no problem at all:
VMware vCenter Server 5.1 Update 3 has and modules
VMware vCenter Server 5.5 updated 2nd and modules
Note: Since the VCenter and DB SQL are in one place, I model clonedto the exsiting running VCenter server for roll simple return by deploying model when you connect directly to ESXi where the model is running.
Thanks in advance.
Given that the process of updating U3 5.1 or 5.5 U2 is as the same, I strictly recommend you upgrade to version 5.5, in this way, you don't need to upgrade your vCenter again if you decide to upgrade your guests the time later.
-
How to run multiple simultaneous backups with VDR 1.2
I have several VDR 1.2 devices, using every two CIFS shares for data warehouses. I did not any changes in the .ini on devices file (the file does exist), but I am only able to write a backup at a time. If I try to run a job manually all-in-one runs, it fails with a message telling me to look under "Reports" error messages. However, there is nothing there. I also can not save/restore the integrity checks are running. It was also a problem of point 1.1, but it would actually give an error message that they data store was busy.
I tried to import a whole new camera VDR and by attaching it to a new data store - same result.
Does anyone have an idea what might happen?
Thank you.
Allen Beddingfield
Systems engineer
The University of Alabama
Yes, exactly. We first had a VDR with 12 GB of RAM and 4 vCPUs and were not able to run several jobs once. Now, we decided to create two VDR each 4 GB RAM Max. Now, everything works!
See you soon
Nils
-
Get ID VM with vSphere CLI power
Hey guys,.
I used to know how to do this with the command get - vm, but now I can't get the syntax right, so I don't know miss me just something very simple. I just need the command to get all the vm IDs. Thank you!
That's what you're looking for: Get - VM | Select Name, Id ?
-
Permissions to connect to esxi with perl sdk
I tried the user scripts perl for surveillance. I have 1 Server ESXi 5.1 I can connect to directly and the script has no problem connecting.
I have another 3 esxi servers which are connected to a server for vsphere.
On the same server, I can connect directly to the server esxi with vsphere client no problem.
On the vsphere server, I can only connect to the server for vsphere, I can't connect directly to the esxi hosts. (http, https, ssh, etc...)
I think it's the issue that I have with the sdk for perl. I have a SSO connection that I can user to connect to the server for vsphere, but these permissions will not get access to the esxi host.
Anyone have any ideas on how to solve this problem?
Thank you
I'm really not sure about the writing of scripts and other things, but if you need to create local users in ESXi host, you must connect to the host directly and then go to the tab of local users and groups and create users.
-
How to perform the procedure packed (with some param) in TOAD for Oracle
Hello.
Could you help me
How to run the packaged procedure with parameters in TOAD to Oralce...
Thank you...Use anonymous PL/SQL block to run it.
For example.
DECLARE
; BEGIN . ( ); END; -
How to correctly record the ESXi 4.0 and vSphere Client for free?
Hello everyone.
Can someone help me with registration
of free VMware ESXi 4.0? I am totally confused with the process I
certainly do not understand.
My goal is to install and use ESXi
4.0 and manage via vSphere client with free licenses free of charge for
more than 60 dayes. Is it possible?
Installation of its products
gone without problems, but failed to save. I found a few
suggestion on other threads, but nothing helped. Give me a hand please,
I will be grateful.
I'll write what I did:
I went to the http://www.vmware.com/products/esxi/ site.
I read that I can get the free license for VMware ESXi 4 and VMware vSphere Client.
Decided to download this software, registered and was redirected to
the site where I could download iso 4 ESXi and vSphere Client .exeInstallation and basic configuration of ESXi on the bare metal and vSphere Client Windows XP without problems.
I am able to create virtual machines and use it - it's OK, but vSphere Client know that I have to the 60-day trial.
Meanwhile I received the email with "Activate your VMware ESXi license".
I have
Click on the link in the e-mail and was redirected to the same
the site, where I can download the software, but on the top of the web page I can
find information and a 'ESXI licenses""this license key is valid.
"for VMware ESXi 3.5 Update 2 and later versions. So I guess it's also valid
for ESXI 4.0. I'm I right?I would like to record my ESXi 4 software installed and the vSphere Client. Of
I chose the vSphere Client Menu: help - & gt; VMware on the web - & gt;
Sign up for now. The site ask me "series/license number Activation".
Code"so I typed the license key. Iassume that this license key should not be placed here, because the web site of replay that: "Code of Activation of series/license number has already been registered. So how do?
As I wrote, I'm confused. How to correctly record the ESXi 4.0 and vSphere Client? What I did wrong and how to fix?
To register the serial number in your ESX4i host
Home-> inventory-> higher level (your ESXi host)
Tab Configuration
Left side - features licensed
Edit-> Assign new key for this host-> Enter Key
Paste your key
Confirm all
Your ESXi server is now fully licensed
Note: you no longer have the basic features and all the enterprise features that came with a trial license are no longer valid
Maish
Architect of virtualization & Systems Administrator
-
Hello
I integrated LIVE ID with Sharepoint 2010 and got the same compliance.
In sharepoint server 2010, several sharepoint sites are run under port 443 with different domain names.
I configured 1 LIVE ID certificate for one of our sharepoint sites would like to know can I use the same certificate for other sites too or I need to install other certificates LIVE ID to access other sites.
How can I get prod LIVE ID certificates are available for free as nexus offers two certificates INT and PROD (x 509 certificate) or do I need to buy.
If I need to buy where can I buy it go?
Hi ppdremsadm,Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums as it is related to the configuration of Live ID in Sharepoint 2010. It should be better in the Forums of Windows Sharepoint.
Please ask your question in products and technology SharePoint forums to improve assistance in this regard.
-
How can I run WP51 for DOS with Win 7?
How to make qp51 for DOS with Win 7? This is a 16-bit program and will not work with the Simulator XP, which comes down to 32. I have DOSBox, but am stuck on getting wp51 to run.
16-bit applications are not supported in Windows Vista or Windows 7, please see the following article.
Article number: 926657 - some 16-bit DOS programs and the command prompt does not work in mode full screen in Windows Vista and Windows 7
http://support.Microsoft.com/kb/926657
If DosBox or Virtualbox is not running, then you may be out of luck.Sincerely,
Maybe you are looking for
-
Double tap on the web page does not zoom in, only outside.
the zoom feature works only if I use the method of pinching two fingers. the double tap does not work for Zoom.
-
Equium P300-16 t - after disassembling it does not start
Hi all, I'm new and I came here looking for help. I have a Toshiba Equium P300-16 t (I think it is such and such Satellite in the USA). Like many other people I got the BIOS password suddenly appearing problem, so after trying different passwords of
-
There is a dedicated forum where suggestions can be made to improve Windows 7?
Hello I was wondering if there is a dedicated forum where suggestions can be made to improve Windows 7? I have a few suggestions for developers of Windows 7 which, if possible, I'd love to share with them. But I can't find a direct contact method or
-
Panasonic HD HC-V100 software HD Writer 1.1
-
Replace the HHD Pavilion m7 with SSD boot drive
I have a Samsung 840 Evo SSD that I managed to install in the 2nd internal drive Bay. It works great as a second internal drive, but I want to make the boot drive for Windows 8.1 or simply swap with the internal HD, which is the current startup disk.