Undeploy all VM in lab manager 4.0

hi
is there a way to undeploy all VMs in lab manager vs going through each VM and undeploy individually?  basically i want all VMs undeployed at the end of the day.
I read i can do this by disabling the pool and then i can undeploy. is this the best way of doing this?

You can undeploy all configurations at the datastore, organization, or resource pool level if you are a global administrator.  Go to resources, one of the tabs for the resources types I listed, mouse of the name of the resource and select Undeploy.
The drawback to doing it this way is that all the configurations actually do an "undeploy - save state" and will write all memory to the hard drive so you'll need to make sure you have enough free space for that.
Otherwise you could do it via the API's by getting all configs and doing an undeploy - discard state.
Eric

Similar Messages

  • Lab Manager to vCenter Host Migration Problem

    Ok I have a weird one for you hopefully someone can help and if so TIA!!!. I have Lab Manager 4.0 running and I am trying to move all my Hosts and VM's out and over to Vcenter 4.0 so I can shut down and quit using LM and some of my hosts are having problems. I have undeployed all my Vm's off the hosts and went thru the unprepare process and moved the hosts to a new cluster that was not created in Lab Manager and some of my hosts are fine but some are not. On the ones that are having issues when I migrate a Vm to it I cannot remote or ping the vm but I can ping the Host. Has anyone seen or had this happen to them? Again some of my hosts that I have migrated had no issue at all but some are. Should I go and add it back to LM and add the host then go thru the unprepare process again and see if that works? Any help would be much appreciated TIA.
    Thanks,
    JE

    can you try uninstall the lab manager agent manually from the host? Follow the KB for steps.
    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1007029

  • VM's resetting after deploying a configuration in Lab Manager 4.0.4

    H iGuys,
    Got a problem which i can't figure out.  I have imported some VM's into our Lab Manager 4.0.4 setup and put them into the VM templates area (5 VM's in total, 2x windows 2008, 2 x windows 2003, and a unix).  I then deploy them to ensure that they have imported ok, and they are fine, the static IP's are still in place as they should be, services start, and everything is fine.
    So I then create a fenced configuration with the VM's in it, and deploy that configuration.  when the VM's come up the windows 2008/windows 7 VM's run a windows configuration setup, and reboot again.  When allthe VM's are up, they have all lost their static IP settings , and have been replaced by DHCP IP's.
    I've now tried this with 2 VM sets and it does the same.  I don't understand why the VM's work perfectly in the VM Templates, but as soon as i put them into a configuration they change.
    Has anyone else seen this  we have another setup in the the US on the same version of Lab Manager and the VM's work fine.
    Mike

    so here is the workflow difference you are seeing.
    If you go from VM template to Workspace Configuration, it is "more normal" to perform guest customization.  You'll also get a new MAC address and UUID in the VM.  So be aware there are changes being made, and you'll have to re-configure network at minimum to use the assigned IP with fencing.
    HOWEVER ... there is an easier method.
    If you have several VMs in a pre-defined config that you want to use over and over ... That's what the Library is for.  Made a configuration, save to library.
    When you clone from Library to Workspace, Guest Customization is NOT performed as the Configuration is pre-defined and configured.  The Fencing will automatically accomodate the existing IP structure and you don't have to modify the VMs at all.
    This also saves you from having to build a configuration each time, and you can copy Some or All of a Library item to your workspace.
    Best Regards,
    Jon Hemming

  • Lab Manager 3 reports - SQL Queries - looking for some help

    Hi Everyone
    Our management has asked for metrics on the use of Lab Manager so I started looking around and noticed that none of the 3rd party tools support Lab Manager. I started to poke around the SQL database and managed to extract some info however my SQL knowledge is very limited. I am wondering if anyone out there has written their own queries or can help me sort some things out.
    I thought I would start a community thread as i'm sure I am not the only one out there looking to do this.
    This first query gives you the usernames and deploys in order
    SELECT *
    FROM Jobs
    WHERE (starttime > '02/01/2007') AND (object NOT LIKE 'VirtualRouter%') AND (operation LIKE 'JOB_Deploy') AND (object_type_full = 'Virtual Machine') and (status <> 3)
    This query gives you the daily deployments per organization
    SELECT convert(char(10), starttime, 101) as MonthYear, count(operation) as Deployments, bucket_name AS Organization
    FROM Jobs
    WHERE (operation LIKE 'JOB_Deploy')AND starttime BETWEEN '12/01/2006' AND '12/01/2009' AND (status <>3)
    GROUP BY convert(char(10), starttime, 101),bucket_name
    ORDER BY MonthYear
    This last query shows total deployments listed by username (someone helped me with this)
    SELECT U.username, COUNT(J.job_id) AS Deploys
    FROM  Jobs J INNER JOIN
                         Usr U ON J.user_id = U.user_id
    WHERE (J.object_type_full = 'Virtual Machine') AND (J.operation = 'JOB_Deploy') AND (starttime BETWEEN '12/01/2006' AND '12/01/2009')
    GROUP BY U.username
    I would like to know how to get some of the following:
    Top 10 Users (Query 3 lists the total deployments per user but i don't know how to have it display this)
    number of images created monthly (VM Templates / Workspace Configurations)
    number of images captured to the library monthly
    Biggest VMs
    Number of logins daily (to Lab Manager)
    Top 10 images checked out
    Images not used in x days
    Any help would be greatly appreciated

    Troubleshooting Queries for Lab Manager 4
    I always had the need to map the VM IDs in vSphere Client and public IPs to the actual user and organisation. Also, LUN and ESX relations I need from time to time.
    SQL file to show all deployed VMs in all configurations
    use LabManager
    go
    select
      right('000000' + convert(varchar,bvs.dir_id),6) + '-' + left(bvs.name,15) as "Name in VCeneter",
      left(bko.name,12) as "Organization",
      left(bkw.name,8) as "Workspace",
      left(us.fullname,20) as "User",
      left(cfg.name,25) as "Configuration",
      dir.chain_length as "Chain Length",
      left(ds.display_name,15) as "LUN",
      left(ms.display_name,26) as "ESX Server",
      rii.ip_addr as "Internal IP",
      rie.ip_addr as "External IP",
      left(bvs.vm_tools_version,7) as "VM Tools",
      bvs.vcpu_count "CPU Count",
      left(bvs.mem,5) as "Memeory",
      convert(varchar(19), bvs.date_created, 120) as "Created",
      convert(varchar(19), dvs.date_deployed, 120) as "Deloyed"
    from BucketVirtualServer bvs
      inner join Bucket bko on bko.bucket_id=bvs.OrganizationBucketId
      inner join Bucket bkw on bkw.bucket_id=bvs.bucket_id
      inner join ConfigurationView cfg on bvs.sg_id=cfg.sg_id
      inner join Usr us on us.user_id=bvs.user_id
      inner join FsDir dir on dir.dir_id=bvs.dir_id
      inner join Datastore ds on ds.datastore_id=dir.datastore_id
      inner join NetworkInterface ni on bvs.vs_id=ni.vs_id
      inner join ReservedIPAddress rii on rii.address_id=ni.ip_address_id
      left join ReservedIPAddress rie on rie.address_id=ni.ext_address_id
      inner join DeployedVirtualServer dvs on dvs.vs_id=bvs.vs_id
      inner join ManagedServer ms on ms.ms_id=dvs.ms_id
    where bvs.is_vrouter=0
    order by bvs.dir_id
    go
    Batch file
    osql -S localhost\LABMANAGER -E -i vmlist.sql -o vmlist.txt -w 1024 -n
    start notepad vmlist.txt
    SQL file to show all VMs in all configurations
    use LabManager
    go
    select
    right('000000' + convert(varchar,bvs.dir_id),6) + '-' + left(bvs.name,15) as "Name in VCeneter",
    left(bko.name,12) as "Organization",
    left(bkw.name,8) as "Workspace",
    left(us.fullname,20) as "User",
    left(cfg.name,25) as "Configuration",
    dir.chain_length as "Chain Length",
    left(ds.display_name,15) as "LUN",
    left(ms.display_name,26) as "ESX Server",
    rii.ip_addr as "Internal IP",
    rie.ip_addr as "External IP",
    left(bvs.vm_tools_version,7) as "VM Tools",
    bvs.vcpu_count "CPU Count",
    left(bvs.mem,5) as "Memeory",
    convert(varchar(19), bvs.date_created, 120) as "Created",
    convert(varchar(19), dvs.date_deployed, 120) as "Deloyed"
    from BucketVirtualServer bvs
      inner join Bucket bko on bko.bucket_id=bvs.OrganizationBucketId
      inner join Bucket bkw on bkw.bucket_id=bvs.bucket_id
      inner join ConfigurationView cfg on bvs.sg_id=cfg.sg_id
      inner join Usr us on us.user_id=bvs.user_id
      inner join FsDir dir on dir.dir_id=bvs.dir_id
      inner join Datastore ds on ds.datastore_id=dir.datastore_id
      inner join NetworkInterface ni on bvs.vs_id=ni.vs_id
      inner join ReservedIPAddress rii on rii.address_id=ni.ip_address_id
      left  join ReservedIPAddress rie on rie.address_id=ni.ext_address_id
      left  join DeployedVirtualServer dvs on dvs.vs_id=bvs.vs_id
      left  join ManagedServer ms on ms.ms_id=dvs.ms_id
    /* where bvs.is_vrouter=0 */
    order by bvs.dir_id
    go
    Batch file
    osql -S localhost\LABMANAGER -E -i vmlist_all.sql -o vmlist_all.txt -w 1024 -n
    start notepad vmlist_all.txt

  • Lab Manager console is disconnected and shows a blank grey screen

    Hello,
    I am trying to solve an issue in Lab Manager v4.0 (no update 1) that is perplexing me.  I am simply trying to show or view an open console in Lab manager using IE6. I am prompted to install the MKS add-on (quickMksAx.dll) and I can that no problem.  When I try to "show" the console view it pauses for a few seconds and then displays "The console is disconnected" wiht a bland grey background.  I have spent several hours searching for a solution on google but to no avail.  I have tried these documented workarounds on the VMware website but again to no avail.  Any help would be much appreciated.  There are several users in our company that will access Lab Manager via IE6 exclusively.  I need to know what settings to change in IE to get around this problem.  One important note, this only happens when I connect to Lab Manager 4.0.  Works fine on Lab Manager v3. 
    I attached a jpg showing the error screen.
    Thank you in advance!

    I'm running LabManager 4.04 with IE9 and Firefox 10.x. The Black Windows Screen is sometimes there sometimes not.
    The Browsers more or less doenst react when connecting and then the Console Window through mks-plugin is there and sometimes
    the black window appears.
    I first thought some problems with a local firewall and checked the logfile but none of the ports and ip destinations show up as blocked.
    Then i checked the system with the process explorer. The mks plugin exe doesnt seem to start when the black window appears.
    When the Console is visible the vmware plugin starts up and is availabe in the process monitor.
    The Plugin writes logfiles in the logged in users Appdata\Local\vmware....\vmware-%username%-xxxx.txt but first when it could be started.
    I havent checked by now the following possible reasons
    - Identical Systemtime
    - DNS Resolution of ESX-Hosts
    - Webconsole Interface vCenter
    But why does it work sometimes and sometimes not the possible reasons doesnt fit to Identical Systemetime, DNS-Resolution and Webconsole..
    If these reseans are responsible it shouldnt work at all and not the sometimes it does and sometimes it dont
    Chers
    Michael

  • Windows 2008/R2 not getting IP from Lab Manager 3.x

    Hi all.  We had a crash of Lab Manager 3.x here a few months back, and I've rebuilt the infrastructure back up. 
    We currently use three OS's for our lab testing, Win 2K3, RHEL 5, and Win 2K8 R2 and non-R2.  For the Win 2K3 and RHEL VM's, there are no problems with Lab Manager assinging an IP to the boxes when they are spun up.  I have a pool of 192.168.194.0 /24 assigned and each machine will take the next available IP in that pool.
    The Win 2K8 servers, however, are a different story.  No matter what I do, I can't seem to get the Lab Manager to assign an IP to the box when it's spun up from a template.  In LM, it states the machine has been assigned an IP of 192.168.194.x, but when I check the machine via console, it seems to be pulling IP's from other DHCP VM's we have deployed, and not LM. 
    Is there a way to set the template for 2K8 to pull the IP from LM as opposed to an Win DHCP box? 
    Thanks!

    Hi
    Welcome to the communities.
    Please check if windows getting APPIPA IP or not.
    If APPIPA ip not getting something wrong with inbuilt NIC or driver.
    "a journey of a thousand miles starts  with a single step."

  • Firefox 4 VMware vCenter Lab Manager dropdown boxes are broken

    When using Firefox 4 with the VMware vCenter Lab Manager application version 4.0 (4.0.2.1269), none of the dropdown pickboxes work properly. It appears that the text in these fields is of zero height or something. I can provide screenshots of this if necessary.

    I should read the whole answer before posting a reply:) No, it still doesn't show the drop down options in 10.0.
    Something changed between 3.6 and 4.0 that causes these empty drop down boxes. All versions, starting with 4.0 up until 10.0, show the same behavior that you can see in the attached image: empty drop down boxes for the "source", "network" and "datastore" options.

  • How to Create a Parameterized Report - The select "- ALL-" for department and manager not working.

    I downloaded the OEHR Sample Objects application and followed the steps in Oracle® Application Express Advanced Tutorials
    Release 3.2.
    The parameters and report seem to be working correctly except when I enter "all" for department or manager I get no matching hits.
    What's the most efficient way to retrieve "all" if the users selects all for dept and mgr - thus we'd want to return all records in the table.
    Region snipprt
    Enter Search
    Search Employee
    Dept
    - ALL -
    Administration
    Marketing
    Purchasing
    Human Resources
    Shipping
    IT
    Public Relations
    Sales
    Executive
    Finance
    Accounting
    Treasury
    Corporate Tax
    Control And Credit
    Shareholder Services
    Benefits
    Manufacturing
    Construction
    Contracting
    Operations
    IT Support
    NOC
    IT Helpdesk
    Government Sales
    Retail Sales
    Recruiting
    Payroll
    Mgr
    - ALL -
    Steven King
    Neena Kochhar
    Lex De Haan
    Alexander Hunold
    Nancy Greenberg
    Den Raphaely
    Matthew Weiss
    Adam Fripp
    Payam Kaufling
    Shanta Vollman
    Kevin Mourgos
    John Russell
    Karen Partners
    Alberto Errazuriz
    Gerald Cambrault
    Eleni Zlotkey
    Michael Hartstein
    Shelley Higgins
    The following is the sql that was provided as part of the turitoral.
    SELECT
       "OEHR_EMPLOYEES"."EMPLOYEE_ID" "EMPLOYEE_ID",
       "OEHR_EMPLOYEES"."FIRST_NAME" "FIRST_NAME",
       "OEHR_EMPLOYEES"."LAST_NAME" "LAST_NAME",
       "OEHR_EMPLOYEES"."EMAIL" "EMAIL",
       "OEHR_EMPLOYEES"."PHONE_NUMBER" "PHONE_NUMBER",
       "OEHR_EMPLOYEES"."HIRE_DATE" "HIRE_DATE",
       "OEHR_EMPLOYEES"."JOB_ID" "JOB_ID",
       "OEHR_EMPLOYEES"."SALARY" "SALARY",
       "OEHR_EMPLOYEES"."COMMISSION_PCT" "COMMISSION_PCT",
       "OEHR_EMPLOYEES"."MANAGER_ID" "MANAGER_ID",
       "OEHR_EMPLOYEES"."DEPARTMENT_ID" "DEPARTMENT_ID"
    FROM
       "#OWNER#"."OEHR_EMPLOYEES" "OEHR_EMPLOYEES"
    WHERE
         (lower(first_name) like '%' || lower(:P1_NAME) || '%' OR
          lower(last_name) like '%' || lower(:P1_NAME) || '%')
    AND department_id = decode(:P1_DEPT,'%null%',department_id,:P1_DEPT)
    AND manager_id = decode(:P1_MGR,'%null%',manager_id,:P1_MGR)

    Hi,
    Use this..
    SELECT
       "OEHR_EMPLOYEES"."EMPLOYEE_ID" "EMPLOYEE_ID",
       "OEHR_EMPLOYEES"."FIRST_NAME" "FIRST_NAME",
       "OEHR_EMPLOYEES"."LAST_NAME" "LAST_NAME",
       "OEHR_EMPLOYEES"."EMAIL" "EMAIL",
       "OEHR_EMPLOYEES"."PHONE_NUMBER" "PHONE_NUMBER",
       "OEHR_EMPLOYEES"."HIRE_DATE" "HIRE_DATE",
       "OEHR_EMPLOYEES"."JOB_ID" "JOB_ID",
       "OEHR_EMPLOYEES"."SALARY" "SALARY",
       "OEHR_EMPLOYEES"."COMMISSION_PCT" "COMMISSION_PCT",
       "OEHR_EMPLOYEES"."MANAGER_ID" "MANAGER_ID",
       "OEHR_EMPLOYEES"."DEPARTMENT_ID" "DEPARTMENT_ID"
    FROM
       "#OWNER#"."OEHR_EMPLOYEES" "OEHR_EMPLOYEES"
    WHERE
        (:P1_NAME IS NULL OR
            (:P1_NAME IS NOT NULL AND
                    (lower(first_name) like '%' || lower(:P1_NAME) || '%') OR
                    (lower(last_name) like '%' || lower(:P1_NAME) || '%')
        ) AND
        (:P1_DEPT IS NULL OR department_id = :P1_DEPT) AND
        (:P1_MGR IS NULL OR manager_id = :P1_MGR)

  • Configuration of Lab Management in TFS

    1.After configured Lab Management in TFS,can I set automation generic plan in MTM(contains Roles,Data Diagnostics etc) ?What is the role of Lab Management
    configuration in automation.

    Hi,
    If you want to use SCVMM lab environment, you need to configure lab management in TFS admin console.
    If you just want to use Standard lab environment, you don’t need to configure lab management in TFS admin console.
    After you create a lab environment, you could configure automatically test setting (e.g. Data Diagnostics)
    There are many roles for machine when create lab environment, you could base on test setting (data diagnostics) to specify roles.
    There is a link that can help you:
    # Setting Up Test Machines to Run Tests or Collect Data
    https://msdn.microsoft.com/en-us/library/dd293551.aspx
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I can no longer use all of the "Computer Management" tools against a remote computer. "Local Users and Groups", "Event Viewer", "Performance Logs and Alerts" and "Device Manager"

    Hello All,
    I can no longer use all of the "Computer Management" tools against a remote
    computer. "Local Users and Groups", "Event Viewer", "Performance Logs and
    Alerts" and "Device Manager"
    kindly see the below snapshot for assistance
    REGARDS DANISH DANIE

    This link may help....
    http://windowsxp.mvps.org/admintools.htm
    Freeman

  • TF255317 When trying to set up Lab Management

    My attempts are connecting TFS with SCVMM for Lab Management have been futile. What is frustrating is that the error message I receive is completely undocumented.
    TFS Version: 2013 Update 2
    SCVMM Version: 2012 R2
    Windows Server Version (on both VMs): 2012 R2
    TFSService account is part of the SCVMM Administators group
    Ports 8100-8103 are allowed between the TFS Application Tier and the SCVMM Server. In fact, I can use the VMM Console installed on the TFS App Tier to connect to the SCVMM Server without issue. To clarify, I do not get an error when I try to establish a
    connection to the SCVMM server from the TFS server using the VMM Console. However, when trying to "Configure" the Lab Management piece, I am faced with the error below (error code is elusive to Google [and Bing], and the description is very non-specific)
    TF255317: Team Foundation Server cannot contact the following Virtual Machine Manager Server: '<correct servername>'. Make sure SCVMM is running, that the SCVMM server is available on the network, and that you can connect to the SCVMM server using
    the SCVMM Administrator Console.
    The only hit for this error code is from a MichaelKing facing the same issue back in 2012. Unfortunately, that person doesn't get any response as he's posting his question in a thread about a completely different issue.

    Hi Reza,
    I am trying to involve someone to further look at this issue. There might be some time delay. Appreciate your patience and thanks for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Apple lab management software?

    Is there an Apple lab management software I can use in my classroom?  I'm interested in observing my student's activities and if possible, limit some network access (such as YouTube music videos) when they are supposed to be doing something locally.  Thanks!

    Apple Remote Desktop is the obvious choice for observation, control, and management.  If you are looking to block certain sites, you can use the Parental Controls or push the filtering to the schools content filter.  The challenge is if you want access to YouTube but not access to music videos on YouTube.  I do not think there is a granular method to selectively block specific types of content on the site.

  • Stage Manager vs. Lab Manager

    It would be nice to have someone from VMware CLEARLY define the technical differences between the two products. There is plenty of marketing babble about how they are meant for different situations, but that doesn't tell us the real differences. I think I have a good understanding of the two, however I would like to see this from VMware. It is easy to find material regarding the differences from say VMware Server vs. ESX why not these two products.
    Thanks,
    Sticky

    Dear Ian,
      Yes, a combination of Lab Manager and Stage Manager will fit your needs in an internal Dev/QA/Test/Demo environment.  We at VMware are developing a whitepaper on using these two products together and you can expect it to be published in the near future. 
      Typically development labs and pre-production environments are not mixed in an IT environment since the former contains virtual machines that can be customized for developer needs and the latter needs to comply with strict IT policies.  As you know, Lab Manager targets at needs in development labs and Stage Manager targets at pre-production environments.  We see Lab Manager and Stage Manager being utilized in separate infrastructures.  That being said, Lab Manager and Stage Manager manages different servers.  The Agent software of each product needs to be installed on the managed servers, yet you cannot install both Agents on the same server.  It is possible to have the servers sharing the same VI datastore (a LUN in a SAN), yet you might want to keep the datastores separate for these two products for easier management.
      The paper will tell you more about how to configure resource pools, etc.  Please stay tuned.
    Regards,
    Desmond

  • Lab Manager + Stage Manager question

    I have gone through few docs and found that lab manager best suits for dev-test env and stage manager fits for integration, staging (pre-production env). But my question is what does the default stages dev and testing in the default service template indicates? (does this mean stage manager also replaces lab manager?)

    sorry, i see a lab manager deploy in my VI
    i uninstalled the LM
    and execute  uninstall - labmanager  in ESX
    but  the problem still exit

  • IPod Lab Management Software

    I manage an iPod Touch lab for an intensive English Language Program we have a 20 pod set in a Bradford carrying case. We have not found a great management software that makes it easy to do a clean wipe of user input data like video or voice recordings. We've been having to import all of the media one by one to iPhoto and then select to delete media after import.
    There has got to be a better way.
    Any tips?
    Thanks

    That's a really interesting question. I didn't think this was possible, but apparently, a few other users have had the same thought.
    You might to look here:
    http://od1.cartwright.k12.az.us/inst/Instructional_Technology/iPod_Tutorials.htm l
    This is an example of how mass-syncing can be done.

Maybe you are looking for

  • Problem with resolution of external display

    Hi, I am trying to use external display with my Unibody Aluminium Macbook Pro (NVIDIA GeForce 9400M, 2.26Gh, snow leopard). Cable setting I use is quite complicated as it is: macbook: minidisplay port>hdmi> DVI D : display. Display is LG Flatron W224

  • Downloading photos from Itunes to Ipod Touch

    Itunes says I have 311 pics to download to Ipod touch but only 177 pics will download.  Why?  I cleared all pics, then redownloaded, did the same thing.  279 pics in one folder.  Is this too many?  But if I selected all, it was trying to download 100

  • Issue with conditional breaks

    Hi Experts, I am working on conditoinal breaks in adobe. My requirement is: For a delivery item if i have 3 batched i have to print 3 forms with item data. Here the data of one batch can flow into multiple pages I had applied a conditional break on b

  • BOE XI 3.1 SP2

    Hi, I have BOE XI 3.1 installed. Planning to install the BOE XI 3.1 SP2. Does anyone know how/where to check if teh BOE XI 3.1 SP2 is installed in the system? Thanks.

  • Query Pld Output

    Hello Experts, I have done a query pld in which item code , description, is repeating. How to restrict this? My Current out put is Itemcode    Item Desc      Qty   Rate       Batch No.  Batch Qty 001            ABC                 10  15000