remove the material with the command line

I have a virtual machine that is powered on and in a cluster and I need to migrade. the vehicle currently has a cdrom installed but I can not change it (the cdrom is grayed out) is there a way to remove these devices from the virtual machine in VC with a command line so I can migrate? (it's really just the cdrom which is holding it up. Oh and the kicker is I can't restart the VM,...

Hello

I have no version of ESX 3.0 coming down more, but you can try to do it by using vimsh as follows:

Connect to the Console on your ESX host and enter as root:

vimsh

Now to get the ID of your virtual machine in question for help (scroll through using shift page up / page down if you must)

vmsvc/getallvms

Note the ID of virtual machine, for example, it can be a number like 4400

Find the key to your VirtualCDrom by querying the hardware devices to your virtual machine.

vmsvc/device.getdevices 4400

Scroll to the top again and note the key, in my case, it's 3000

Now, disconnect the CD-ROM device by running:

vmsvc/device.connection 4400 3000 false

Use true if you want to connect the device.

Just tested on VMware ESX3.5 and it worked very well there.

--

Wil

_____________________________________________________

Visit the new VMware developers at http://www.vi-toolkit.com wiki

Tags: VMware

Similar Questions

  • How to remove a shortcut with the command line?

    How to remove a shortcut with the command line?

    How to make a backup of the local users and groups with command line?

    You delete a shortcut, just as you would remove any other file.  A shortcut will end with the extension ".lnk".  So assuming you are trying to remove the shortcut named "Shortcut.lnk" which appears to the user 'Bob's Office, you use the button Delete (del) or 'clear' command by specifying the full path to the file.  (Remember to put filename in quotes if there is a space anywhere in the path or name) as in:

    del "C:\documents and settings\Bob\Desktop\Shortcut.lnk".

    What kind of a backup 'users and groups' you want to do?  If there is a backup of the users and groups as written in the registry, a good registry as C:\WINDOWS\ERUNT backup program that will make the command line.  If you are trying to backup all users and their data as well, then you are better off with a backup program.

    HTH,
    JW

  • Deployment of final application with the command line Question

    OK so I have my finished application.

    on a folder in my office called "CODBOUG".

    So I tried different methods to run the application and complete the test on the Simulator with the command line. But it's just too much. So I need your help community!

    I tried:

    BlackBerry-deploy-installApp-package CallofDutyBlackOpsUltimateG

    uide.bar - device 192.168.18.128

    I'm a little lost with the help of the command line, if someone could guide me on the right lane.

    I'm on windows, btw.

    Thank you.

    When you run a command, Windows will search in a series of directories for this program to run. The list of directories is stored in what is called an environment variable. You must add the path to the bin of the sdk at this variable directory (e.g. C:\Program Files (x 86) \Adobe\Adobe Flash Builder Burrito\sdks\blackberry-tablet-sdk-0.9.3\bin).

    You can access the path variable by right-clicking on my computer > properties. Select the Advanced tab and click on approx. Variables.

    Under System Variables, search PATH and edit it. Add the path to the sdk bin directory (make sure that there is a semicolon, that separates the directories).

    Open a command line window in the directory where your .bar file. When you run the command, Windows will look for blackberry - deploy and can be found in the directory that you have added to your PATH variable so to run it.

  • When you try to add a network route with the "route add" command in the command line, I get the message "the requested operation requires a rise."

    Elevation required to route add command

    When you try to add a network route with the "route add" command in the command line, I get the message "the requested operation requires a rise."  What is the correct syntax to use?

    You can watch using the PowerShell...

    http://TechNet.Microsoft.com/en-us/library/bb978526.aspx

    http://TechNet.Microsoft.com/en-us/scriptcenter/dd742419.aspx

    .. .and post questions about Windows PowerShell forum...

    http://social.technet.Microsoft.com/forums/en/winserverpowershell/threads

  • with the command line remote reboot

    I know not how to remote shutdown of a pc on our network using the command-line using this...

    Shutdown - r f t 0 - m ComputerName

    But how to do it with my mac to pc?

    Again, you can not. The commands only work with the same OS.

    Yes Mac to Mac, Windows, Windows, etc.

    You will need to find some kind of package of administration remote cross-platform.

  • Is there a problem with Adobe Reader DC using the command line to open a file?

    Hello

    I am a developer and we use Adobe Reader to view our PDF help files in our application.  For years, we used WinExec() to open Adobe Reader, by specifying the file to open on the command line and it has been working perfectly.  In other words, upward until our users began to load Adobe Acrobat Reader DC.  Despite this work very well when you type a command using CMD.exe, it simply does not help WinExec() from another application programmatically.  Also, I modified the code to try using CreateProcess() or ShellExecute() and these functions do not work either.

    It may have to do with the fact that there is a switch or a parameter now within the DC, but I don't know what it is, or why it happens.  If anyone can shed some light on this it would be much appreciated because it severely hampers our latest version of the software.

    Kind regards

    Leigh.

    A common cause is not to put quotes on the command line, so instead of

    "c:\program files...\acrord32.exe" "c:\documents and settings\...my file.pdf.

    You write

    "c:\program files...\acrord32.exe" c:\documents and settings\...my file.PDF

    This has always been bad, but older versions it would accept anyway. (It was a recent change but not in DC).

    I would recommend using ShellExecute instead of the command line, however. That simulates a double-click and executes everything the user has created for PDFs (perhaps Reader, Acrobat maybe, maybe something else).

  • VMWare Player startup with the command line command does not work!

    Hello everyone,

    I'm new to the community and it will probably show. So, I say sorry in advance for the flaws, I'll do. Since I am of German native language I need to translate it into English. So, I could use special terms wrong, but I'll certainly try to avoid this. Just keep in mind. And now my question:

    I was running VMware Player 3.0 with VMware Tools installed and VMware VIX 1.8.0 installed on a host of Win7 Ultimate 64-bit. The Useraccount on the host has administrator rights. Guest operating system is WinXP SP3. Since I need two softwares of different recording/Dictation on my workstation and I could only one of them simultaneously open (which is very uncomfortable, when you need to change frequently), because those two were always challenging who got to use the microphone, I installed a second microphone (that only the application for the two contest) and then created a virtual machine to run the software second with one of the two microphones connected only to the prompt. (Directly/comfortably) to start the second software I created a. LNK shortcut file (and attached to the startmenu) who run the command

    Departure of player "C:\Program Files (x 86) \VMware\VMware" t "C:\Users\USERPROFILE\Eigene virtual Computer\Recorder Windows XP Pro Windows XP Pro SP3.vmx VM SP3\Recorder VM.

    with the recorder VM "VM Windows XP Pro SP3" opening the second software automatically (autostart).

    This worked well, until I updated my VMware Player to 3.0.1. Since the update however, my shortcut file simply is unable to start the virtual machine. However, starting the virtual machine of VMWare Player normal window still works. By running the command mentioned above constitute the command line prompt, I got the information, this vmrun.exe could not connect to the host, due to an error, the specified version is not found, which probably means that the VMware Player.

    P:\ & gt; "" Player t C:\Program Files (x 86) \VMware\VMware VIX\vmrun.exe "start"C:\Use ".

    virtual rs\USERPROFILE\Eigene Computer\Recorder VM Windows XP Pro SP3\Record

    ER VM Windows XP Pro SP3.vmx"

    Unable to connect to the host.

    Error: The specified version is not found

    P:\ & gt;

    I tried the VMware VIX update (from 1.8.0 to 1.8.1) without success. The errormessage even remains.

    The three relevant paths for VMware Player, VMware Vix and the VM are spezified in the systemvariable path as follows:

    % SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\; "" C:\Program Files (x 86) \VMware\VMware VIX ". "" C:\Program Files (x 86) \VMware\VMware Player. " "' Virtual C:\Users\USERPROFILE\Eigene computer; C:\Program Files (x 86) \QuickTime\QTSystem\

    Today suddenly wrong?

    Any help would be greatly appreciated.

    Thanks in advance to one that solves the Enigma.

    Hello

    Meine VMs starte ICH mit dem VMplayer so:

    vmplayer.exe _

    VMX-settings- WS FAQ -[MOAcd | http://sanbarrow.com/moa241.html]- VMDK-manual

  • sqlplus connects well with SID on the command line, but not with setora

    I can connect to my database using sqlplus if I specify the SID on the command line; However, I get an error if I try to connect after using setora to set the SID. Any ideas on why this is happening?

    Oracle version is 10.2.4.0
    OS is SunOS 5.9 Generic_122300-46 sun4u sparc SUNW, Sun-Fire-V490
    MYDB resides on a host machine that is different from the one where I'm under sqlplus. We'll call this REMOTEHOST machine.
    I am sure that MYDB is running on REMOTEHOST
    MYUSER@MYHOST% setora MYDB
    MYUSER@MYHOST% sqlplus MYUSER
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Mon Mar 8 09:38:58 2010
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
    
    
    Enter user-name: ^C^C
    MYUSER@MYHOST% sqlplus MYUSER@MYDB
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Mon Mar 8 09:39:10 2010
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    Enter password:
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Oracle environment variables:
    MYUSER@MYHOST% env | grep -i ora
    PATH=/u01/home/bin:/u01/app/oracle/product/10.2.0/OPatch:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/lib/cobol/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/banvol/uncg/bin:/etc:/usr/openwin/bin:/opt/hsqr/ora/bin:/opt/hsqr/jre/jre141/bin:/u01/app/oracle/product/10.2.0/bin
    SQRDIR=/opt/hsqr/ora/bin
    LD_LIBRARY_PATH=/usr/ccs/lib:/opt/lib/cobol/lib:/opt/SUNWspro/lib/v9:/opt/SUNWspro/lib/v9:/opt/SUNWspro/lib:/u01/app/oracle/product/10.2.0/lib:/opt/hsqr/ora/bin:/opt/hsqr/jre/jre141/lib/sparce/native_threads:/opt/hsqr/jre/jre141/lib/sparc/client:/opt/hsqr/jre/jre141/lib/sparc:/u01/app/oracle/product/10.2.0/lib32
    ORACLE_BASE=/u01/app/oracle
    ORABIN=/u01/home/bin
    OWB_HOME=/u01/app/oracle/product/owb102
    ORACLE_SID=MYDB
    ORACLE_HOME=/u01/app/oracle/product/10.2.0
    TNSNAMES entry:
    MYDB =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = REMOTEHOST)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = MYDB.MYDOMAIN.COM)
        )
      )

    TWO_TASK = MYDB
    Export TWO_TASK

  • Create shortcuts with the command line switches

    I have three versions of Word on my computer. (I know, I'm a masochist).

    There are times when I want to run one of them in safe mode. Those who get me if I run winword.exe /a in the run window let you guess.

    I know I can get it by including all the way, but it's a pain.

    I would like to make a few shortcuts in Windows that would do this for me. However, I don't know how to add the command line switches. I used to be able to properties (similar to editing a .pif file) but it doesn't seem to be an option.

    You * need to locate executable files and create each shortcut via right click on the executable file.  Shortcuts Microsoft Office may not be "real" classical shortcuts

    Right click and change the shortcut.  In the 'Target' box, add at the end command line switch.

    For example... I found the 64-bit Microsoft Office 2010 Word executable here:
    «"C:\Program Files\Microsoft Office\Office14\WINWORD."» EXE ".

    and created a shortcut on my desktop.  The "target", said:
    «"C:\Program Files\Microsoft Office\Office14\WINWORD."» EXE ".

    I added the / a that you pointed at the end, the target is now:

    «"C:\Program Files\Microsoft Office\Office14\WINWORD."» "EXE" /a

    In fact - the after typing all that above, I realized that there is a Microsoft Knowledgebase Article... Google worked and I do not use it.  Heh

    How to use the line switches of start command to start Word 2010, Word 2007, Word 2003, Word 2002, and Word 2000 (Method 2).

  • How can I make and delete a snapshot of the command line in ESXi 4?

    How can I make and delete a snapshot of the command line in ESXi 4?  ghettoVCB4i does, but I need unusual behaviour for two virtual machines.  I need to be able to save only one of the two virtual drives, not both.  So I can't use this script here.  I need to write a script that will:

    1 copy off the .vmx

    2 make a snapshot of a virtual computer running

    3 use the vmkfstools command to clone the vmdk in the backup location

    4 remove the snapshot.

    The snapshot is the part that I do not know how.  I do not see a flash drive in vmkfstools and I do not understand the snapshot code in ghettoVCB4i.

    Thank you!

    vmkfstools is a tool for working with VMDK, has nothing to do with stereotypes. In the Busybox unsupported console, the only tool that you can use for some of the management of the virtual computer is vim-cmd , which is about a wrapper for VMware vimsh, take a look at our site for more information: http://engr.ucsb.edu/~duonglt/vmware/#vmware_vimsh

    Basically, you're going to do something like the following:

    vim-cmd "vmsvc/snapshot.create XXXX FIRST_SNAPSHOT MY_FIRST_SNAPSHOT_1"
    

    where XXXX is VmId to the virtual machine that is retrieved from vmsvc/getallvms, then you are going to deliver the snapshot.remove

    Here are some other useful commands dealing with snapshots:

    Vim - cmd vmsvc/snapshot.removeall \[VmId]

    [[[vim - cmd vmsvc/snapshot.remove \[VmId\] \[removeChildren\] \[snapshotLevel\] \[snapshotIndex\]

    Vim - cmd vmsvc/snapshot.get \[VmId\]

    ghettoVCB4i uses vimsh to do these things as well.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • How to reduce or hide the webroot toolbar upward under the command line?

    Browser = Firefox; Virus program = Webroot security; on the firefox browser, a white line will appear on the command line, followed by the logo of webroot with 'tools webroot' my webroot and 'sign-in '. can it be lost. the Explorer windows or chrome show these. It's a waste of screen for me.

    I should have mentioned that you could click next to the menu, the '+' (new tab) button or in a box empty after the address button to access the pop-up window and turn off the display of the individual toolbars on and outside. It works with the Webroot toolbar?

  • 10.11.4 update has failed because of the command line tools

    The 10.11.4 update fails with a message on the command line tools.

    I found this in system.log.

    Memento kernel [0]: sandbox: softwareupdated (329) deny system (1) - 682f fsctl

    181Mb Command Line Tool for Xcode 7.3 keeps reappearing in the section "updates" from the App Store, 10.11.4, as well as the global update apparently cannot continue.

    Normally, you should be able to select the updates separately (click on "More... »). If this does not work for some reason, you can download the 10.11.4 update by itself: download OS X El Capitan 10.11.4 updated

    (Combo version: Download OS X El Capitan 10.11.4 Combo Update)

  • How to list the devices and the format of the command line?

    Hello

    Is there a guide reference CLI or procedure to the list of devices and devices from the command line format but also create volumes? I get failures from the GUI without specific error or log messages, said just that the volume creation failed.

    The Setup is as follows

    Flex-Raid RAID5 3x160GB Bay 1-3 devices with an SSD shore in Bay 4, I want to create a new volume on the SSD drive. I should be able to do this with Flex-RAID as I understand.

    I could solve this problem. I ended up restarting the NAS and the volume was recognized and usable.

  • Unicode character on the command line

    I have a folder that contains a non-ASCII character, "registered sign" (®), which can be typed in a Terminal by using the-r option.

    It is U + 00AE, and as an 8-bit character, it is 174 decimal. I want to be able to enter this character on the command line without

    typing Option, because I have to build a Terminal command using an application that

    is not respectful of Unicode. So option-r helps me create a string that contains this character.

    For example, in the Terminal, I made a folder in ~ with as its name in full (I typed a r while pressing the option key):

    > mkdir ~ /.

    I can list help

    > ls ~ /.

    but I have to be able to do so * without using any modifier key * (as option).

    I thought I could use something like (after cd ~)

    > ls \302\256

    or

    > ls \u00AE

    or

    > ls \xc2\xae

    but I could not do the shell to interpret what I type as registered r symbol. Everything what I enter is interpreted

    literally as individual characters rather that, for example, the \xC2 is considered a single character. I also tried different combinations

    quotes as double the backslash, but I continue get "No such file or directory".

    How can I represent this character on the command line without modifier keys? I'm on El Capitan, OS X 10.11.2, running bash 3.2.

    Have you tried zsh instead of bash?

    I think bash supports \u starting only 4.2

  • Start an application saved on the command line

    Hello

    first of all that I do not know how I can start my data .exe on the command line, I know that. I need a few more tips.

    My problem is that I start my program and set values in my interface and then I save my interface. You can say that I am creating some options with different parameters (option 1, option 2, option3). Now, I would like to open this option on the command line. So first of all the program begins with option1 when this option is over that option 2 should start (I will also create a handler of signals which gives me a feedback if the option before closing).

    It should be like this:
    Path\Application.exe option1 option2 option3

    But know that I have a problem. When I save my slab (SavePanelState) I can not open such a Panel is saved with the command "LoadPanel". In help, there is also information that you can load only such a panel with the RecallPanelState command, but with this command you only update the interface. Now my question is, how can I savel a panel with its States and call it with the command LoadPanel? Or is the only way to load a group of experts and to recall the values the command of RecallPanelState?

    Best regards

    Unortunately there is no way to directly open a control panel preconfigured with controls other than in their default state. You have already discovered it and I can confirm that this can not be changed. However, if you call LoadPanel and RecallPanelState front showing the Panel, that the user will directly see the Panel custom, which is more or less what you are looking for.

Maybe you are looking for

  • How to capture (record) streaming video online with his partner is on El Capitan?

    Someone can advise or recommend including many different programs available that I must use to capture (record) streaming video online with it's associated audio on El Capitan?  I tried MacX DVD Converter Pro, but believe it or not, it does not recor

  • Photosmart C6380 all-in-one: HP Solution Center does not work after update to the last version of Windows 10

    Printer worked flawlessly after upgrade to Windows 10. But with the last update, I can't scan more by HP Solution Center. I tried HP doctor and then remove and reinstall the software suite full, ensuring I have the latest drivers, but it still does n

  • Manage problems with USB 3.0

    Recently, a new technology was developed, and now many desktop computers and laptops are moving to the use of USB 3.0 ports. Some computers use a mix of the old USB 2.0 and new ports of 3.0, and some have moved to exclusively use the new port type. U

  • Gateway to Comcast Business class SMCD3G-CCR and Cisco 2960 G switch

    Hello I'm looking to upgrade my silent switches to a Cisco 2960 switch.  I wanted to check and make sure that this configuration would be funded. I need to configure the 4 VLANS on Cisco 2960 switch, 1 for the vmotion traffic, which would have no int

  • Double tap screensaver

    Wouldn't be a nice feature if we could get the display to sleep by double click, when he's awake? Just as you wake up the screen with a double tap on the screen... I think it would be a great feature, some of the other manufactures who have.