Model of virtual machine deployment process.

I'm trying to understand the model way VM deployment works to design a distributed environment of VirtualCenter with effective model commissioning. My scenario and the question is;

  • I have a NFS location to store my VM models.

  • Mount the NFS on one of my (ESX01) ESX hosts using a VMKernel port.

  • I save the VM model on this host ESX (ESX01).

  • I have a second host ESX (ESX02) who doesn't have the mounted via NFS.

  • Deploy a VM from this model to ESX02.

Question: How is the copy of the model deployed/copied to the ESX host?

  • Is copied on the VirtualCenter server, then to ESX02 VM?

  • Is the copied virtual machine on ESX01 to ESX02 via the network of the Service Console?

  • There is another way, that the template is created?

If anyone has a detailed understanding of the model deployment process, it would be much appreciated.

Thanks for your time,

Dan.

Given that the source is mounting NFS using vmkernel, should be out of this interface in all cases.  If you have NFS mounted on both ESX hosts, then it will use vmkernel port on the computer virtual source where the template has been saved.  Because you can not have a template with the same name, you will have to re-register the template under a different name, so that it looks like ESX a completely different model.

-KjB

VMware vExpert

Tags: VMware

Similar Questions

  • The former "cannot change the power state of virtual machine: the process has exited with an error: end of the error message" thing again (Fedora 8/Server 1.08)

    OK, this problem beautifully undescriptive I've seen caused by what seems to be dozens of things happening for me.

    I made the mistake of horrible update my FC8 kernel to the latest one (2.6.26.8 - 57.fc8).  Mind you, that's all that's changed.  It was with a 1.06 server with happiness and perfectly good computers running virtual in use before the upgrade.

    After the new kernel and reboot, I had to rebuild vmmod.  I had to get a fix of any - any later that I used with my previous kernel (116 does not solve the problem of compiling) so I used all-any117d.  Update like a champion.

    Try to turn on a VM and Ihanta!, the above error.

    Nothing else was changed.

    I tried the upgrade to VMware Server 1.08.  Used all-new any117d - update OK.

    Error again.

    I have re-run the compilation, this time to say 'yes' to what the installation script to "adjust the permissions of all virtual machines in xxxlist" or whatnot.

    Error again.

    1. status of /etc/init.d/VMware

    Networking networking on/dev/vmnet0 is running

    Invited only on/dev/vmnet1 network is running

    Network invited only on/dev/vmnet8 is running

    NAT networking on/dev/vmnet8 is running

    Responsible vmmon module

    Loaded module Vmnet

    FWIW, I compile as long as root, but have always run VMware server from my UID nonroot.

    What now?

    I'm in the same boat.  Fedora 8 2.6.26.8 - 57.fc8 #1 SMP

    I have tried uninstalling/reinstalling v1.0.6 thru 1.0.8 with all 116 updates and 117d.   117D compiles with every version of server but when I try to turn on a virtual computer I get this error.

    Cannot change the power state of virtual machine: the process has exited with an error:

    vmxvmdb: name of the Index generated by the configuration file

    POST (no connection): Version mismatch with vmmon module: expected 138.0, obtained 168.0.

    You have a bad version of the module kernel "vmmon.

    Try reinstalling VMware Server.

    POST (no connection): failed to initialize the surveillance apparatus.

    Failed to initialize the virtual machine.

    End of the error message.

    I found several posts other people have this problem but

    they are months with no recent activity and nothing that solved the problem.  I found appeared

    to get a fix, one updated the all an update that corrects the problem for

    2.6.26 performing several nuclei, but the link for the update on TI-psycho appears to be dead.  Here is the link to the discussion

    http://Fedoraforum.org/Forum/showthread.php?t=199026&page=2

    Of course, I would like to know how to solve this problem as well.

    Thank you

  • Customization of the comments for the virtual machines deployed from model has stopped working

    Hi all

    (Environment: vCenter and ESXi 10 5.1 hosts running Build #3070626)

    We have a model 2012R2 and a file specification of customization that allows us to deploy the VMs 2012R2 server. It worked well for a while. After the Christmas break, it seems more work correctly and we havn't knowingly changed anything to cause this. We have fixed our ESXi hosts Build #3070626 October 6, but have deployed VMs of model since, without problem.

    We have all staged for the VM in advance (IE AD entry of objects and DNS). And then powered the deployed virtual computer, sysprep runs, but does not seem to apply settings in the customization file (IE rename the virtual computer, set the Admin password, join the domain etc.). If feed us the cycle of the VM, sysprep is running again, but even once, does nothing.

    I have attached the contents of my file guestcust.log of a computer deployed virtual (see below), but I do not see the clues about the problem. I thought initially the error on the first line was important, until I've found it is also present on the virtual machines that have been successfully deployed from this template in the past, so it's maybe a Kipper.

    Does anyone have advice for troubleshooting this?

    TIA

    Mark

    ==========

    guestcust.log

    ==========

    Could not query value reported in the registry (the system cannot find the file specified.)

    Sysprep from Windows Respecialize operating detected.

    Copy the files from C:\Windows\TEMP\vmw7DEB.tmp to C:\Windows\TEMP\vmw8A3E.tmp.

    Rescheduling of customization of the guest operating system.

    "Executing command C:\Windows\system32\schtasks.exe / create /sc ONSTART $ more HIGH/np/z v1 /ru SYSTEM /tr" C:\Windows\TEMP\vmw8A3E.tmp\guestcustutil.exe customize - sealparam \"/quiet/generalize/oobe /reboot\ ' NIC - 4000 - schedulenativeunobfusc ' /tn"VMware Guest OS task of customization.

    At the request of guest OS customization task invoked.

    Remove scheduled task of customization of the guest operating system.

    Execution of command C:\Windows\system32\schtasks.exe, /f/delete /tn "VMware Guest OS task of customization"

    Personalization current 2016 to 1 - Feb - 11 18:32:42

    RPCI: Send request = 'deployPkg.update.state 4 C:\Windows\TEMP\vmware-imc\guestcust.log 0'

    RPCI: Envoy = 'deployPkg.update.state 4 C:\Windows\TEMP\vmware-imc\guestcust.log 0' request, response = ", len = 0, status = 1

    Key successfully open SYSTEM\CurrentControlSet\Control\Session Manager\

    Size of 27 reg_multi_sz.

    Read the multi_sz registry autocheck autochk/q/v value *, size 27.

    value chain of registry autocheck autochk/q/v *.

    1 items back

    Obtained the session mgr BootExecute.

    Native App sysprepDecrypter.exe, arguments "

    Copied file sysprepDecrypter.exe to C:\Windows\system32\sysprepDecrypter.exe

    Update boot run value.

    Created / opened key \Guest Customization\ SOFTWARE\VMware, Inc. successfully.

    New shoe, run:

    autocheck autochk/q/v *.

    sysprepDecrypter.exe

    System drive: C:

    Move the folder "sysprep" to "C:".

    Select * from win32_networkadapter where manufacturer! "Microsoft" and ServiceName =! = "VMnetAdapter" and the manufacturer is not null and MACAddress is not null

    1 objects found. Pointer f049a8. return code 0(0x0)

    "" "0 items found." " Pointer to 0. return code 1(0x1)

    00:50:56:B0:70:46 the value for the property return system

    Setting dhcp for nic # 0

    Return value \\VMT-W2K12R2\ROOT\CIMV2:Win32_NetworkAdapter.DeviceID="10' for the system property

    ASSOCIATORS OF {\\VMT-W2K12R2\ROOT\CIMV2:Win32_NetworkAdapter.DeviceID="10"} where ResultClass = Win32_NetworkAdapterConfiguration

    1 objects found. Pointer eee290. return code 0(0x0)

    "" "0 items found." " Pointer to 0. return code 1(0x1)

    Clear the gateway ip addresses.

    Enabling DHCP on the computer

    Returns the value for the system property \\VMT-W2K12R2\ROOT\CIMV2:Win32_NetworkAdapterConfiguration.Index=10

    DNS server IP configuration

    Execution of command C:\windows\system32\sysprep\sysprep.exe/quiet/generalize/oobe/reboot /unattend:C:\sysprep\sysprep.xml

    Successfully executed the command C:\windows\system32\sysprep\sysprep.exe/quiet/generalize/oobe/reboot /unattend:C:\sysprep\sysprep.xml

    Try to connect network interfaces, try 1

    RPCI: Send request = 'deployPkg.update.state 4 103 C:\Windows\TEMP\vmware-imc\guestcust.log@4000'

    RPCI: Envoy = 'deployPkg.update.state 4 103 C:\Windows\TEMP\vmware-imc\guestcust.log@4000' request, response is "queryNicsSupported", len = 18, State = 1

    Got answer VMX 'queryNicsSupported '.

    RPCI: Send request = 'deployPkg.update.state 4 104 C:\Windows\TEMP\vmware-imc\guestcust.log@4000'

    RPCI: Envoy = 'deployPkg.update.state 4 104 C:\Windows\TEMP\vmware-imc\guestcust.log@4000' request, response = 'connected', len = 9, State = 1

    Got VMX response "connected."

    Network interfaces are connected to 0 seconds

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

    OK, I myself fixed the end.

    I created a new customization file with exactly the same settings as the old file, and it worked. I can only assume that the old customization file has been altered somehow.

  • Model of centOS virtual machine deployment

    Hi all, I am met with the following problem when I tried to deploy the virtual machine from a template of centOS. "Customization of the guest operating system"centosGuest"is not supported in this configuration". I do turn on ESXi 4.1 and ensure that the vmware-tools is installed. I tested on a machine model virtual ubuntu which I am able to change on reviews customization then deploy the virtual machine. I would like to know if there is a solution to this? Thanks in advance.

    It seems that the new feature of type "CentOS" 4/5 as guest of OS has not evaluated correctly.  I changed my 'Red Hat Enterprise Linux 5' models as they were before the update.  CentOS is a recompilation of Red Hat anyway, so it makes sense to keep.

  • Need a solution to customize virtual machines deployed from models

    Here's the problem:

    When I deploy virtual machines from a template, the guest of the new virtual machine operating system takes the same size of hard drive than the model between what was created.  It is very fast to increase the size of the virtual hard disk after deployment.  But the size of the partition in the guest operating system is unchangeable.  This means that, for each virtual machine, I have to start the virtual machine and either extend the guest operating system by using an operating system disk management tool or a third-party for the partition management application.

    It takes a lot of time to do during the deployment of a large number of virtual machines.  Another option is to create a template for each size of hard drive - but the problem with this is that all of these models for each operating system must be maintained, that takes a lot of time.

    Does anyone have ideas for another or better solutions?  For example, is there such a thing as a tool that integrates with VMware to enable not only the size of the virtual hard disk, but also the size of the partition of the guest operating system to customize when you create a virtual model of computer?

    Any contribution is appreciated-

    Thank you

    It resizes the disk partition inside the virtual machine to the guest OS uses the complete virtual disk capacity.

  • Models of virtual machine in the library of content focus type = unknown

    Hello

    I created a test with vsphere environment 6 and I created a content library for my VM models.

    That worked well for the last few months, but today I have connected the web client and wanted to deploy a new virtual machine from the content library.

    First thing I noticed was the selection after "deploy vm from library" - the library is empty...

    When I look directly in the content library, models are still there, but the type is unknown and not possible to export the s model or deploy...

    Any ideas what I can do?

    I already rebooted the server vcenter...

    I found a work around...

    I was able to clone the model with type = unknown, and the watch type = clone model vm and the guest OS is displayed correctly, too...

  • Could not import the message to get model No. Virtual Machine selected

    Hi guys,.

    Need help.  obtained Lab Manager, who was very well, yesterday I've migrated virtual machine that is running Lab Manager and virtual Center for LM to a new environment of VC VC 4.0 5.5, but not changed the computer virtual another installation of VMware tools updated.

    Now, whenever I try to import a new model in an organization, the window has changed, the Panel that has the VM on VC lists very well all VM but he now has a black box with an X in it next to each virtual machine and 'expand' next to it.  I put a name and choose the virtual machine that I want to import and it comes up saying 'No Virtual Machine not selected' even though there obviously.

    Other than this lab manager seem to be OK, I was able to deploy to the workspaces etc. without problem.

    Has anyone seen this?

    Mike

    It sets, migration has changed the time and date of the Lab Manager server, once I changed the date and time correct and restarted the Manager of laboratory services, he has worked.

  • Virtual machines deployed on VSAN without selected with THICK disk storage policy

    Hello

    We had an admin build 50 VMs on our data VSAN store but did not choose the VSAN storage policy while he got the default which allows you to have the THICKNESS of the disks provisioned

    I have chnaged any of the virtual machines to use the VSAN storage policy (which uses a thin) but the virtual machine is still using all the space

    Is there a way to make virtual machines recover white space, now they have a VSAN storage strategy?

    Yes - I have to agree with Duncan. I don't think that there is a way to return/reduce the size.

    An idea is, if you have additional storage, Storage vMotion VM to NFS or VMFS, converting to thin and then back to VSANS with a policy that doesn't have a "thickness".

    Try it with a VM - see if it works.

    A bit of a drag, I know, but I can't think of any other casual way.

    HTH

    Cormac

  • VMware View 4.5 - number of virtual machines deployment through Virtual Center

    Hello

    After an update to VMware View 4.5 Solution, thanks to an automatic pool sliding the virtual Center creates now six machines at the same time.

    Before this update the VC never fired on two machines at the same time...

    It of Nice to have this indictment, but is it possible for me to configure the number of virtual machines created on same time?

    Thanks for your help

    Kind regards

    If you go into servers and change the login information from vCenter there is an Advanced tab.  Click this tab and you can set the maximum amount of concurrent provisioning operations you want.

    If you have found this device or any other useful post please consider the use of buttons useful/correct to award points

    Twitter: http://twitter.com/mittim12

  • Models of virtual machines that are not visible after reinstalling Virtual Center

    Hello

    I can see patterns in data warehouses, but not covered by the option "display" under models and virtual computers?

    This happens sometimes.  You can browse the data store (s) in question, right click on the file .vmtx and add to the inventory?

  • hcibench: the virtual machine deployment will fail

    Hello

    I sent the last machine of HCIbench. Everything seems to work, vm are deployed and I can ping, but whenever I run a test I have a vm deployment failure message.Deployment_progress_error_msg.jpg

    I have connected the public NIC and use an IP fixed, don't use do not map private NETWORK I have a DHCP server on the vlan.

    I tried to use files of different settings without success.

    I also have the following message in the log.

    host-notestselected.jpg

    You have an idea on what is happening?

    Thank you

    Aurel

    There are a few newspapers and troubleshooting steps here - http://cormachogan.com/2015/09/24/getting-started-with-hcibench-the-benchmark-for-hyper-converged-infrastructure/

    Also read the comments section where you will find a few problems and resolutions.

    HTH

    Cormac

  • Determine the "lineage" of a virtual machine. Hence the model was a given VM is the author?

    Wonder how I could resolve the question of which model our VM was created from. In some circles, there are only a handful of models, and each of them is of a particular type of XP, 2K, 2003, etc. is no biggie. With largest deployments with more models and many of a similar (2003 Standard, Windows 2003 Ent) type, it can get more complicated. Or for otherwise this said, reports on which virtual machines were manufactured in what models;

    I don't know where to start here Sorry for not posting any code or attempts.

    Thank you,

    As I know there is no property that shows what model a virtual machine has been deployed.

    But, based on the script that I wrote for Monitoring DRS VMotion via Powershell , you can review the task and the event log and extract the information from there.

    This script does just that

    
    $days = 10
    $tasknumber = 999
    $eventnumber = 100
    $serviceInstance = get-view ServiceInstance
    $taskMgr = Get-View TaskManager
    $eventMgr = Get-View eventManager
    $report = @()
    $filter = New-Object VMware.Vim.TaskFilterSpec
    $filter.Time = New-Object VMware.Vim.TaskFilterSpecByTime
    $filter.Time.beginTime = (Get-Date).AddDays(-$days)
    $filter.Time.timeType = "startedTime"
    $collectionImpl = Get-View ($taskMgr.CreateCollectorForTasks($filter))
    $dummy = $collectionImpl.RewindCollector
    $collection = $collectionImpl.ReadNextTasks($tasknumber)
    while($collection -ne $null){
            $collection | Where-Object {$_.DescriptionId -eq "VirtualMachine.Clone"} | Sort-Object StartTime | % {
                    $efilter = New-Object VMware.Vim.EventFilterSpec
                    $efilter.eventChainId = $_.EventChainId
                    $TemplateDeploy = $false
                    $ecollectionImpl = Get-View ($eventMgr.CreateCollectorForEvents($efilter))
                    $ecollection = $ecollectionImpl.ReadNextEvents($eventnumber)
                    while($ecollection -ne $null){
                            foreach($event in $ecollection){
                                    switch($event.GetType()){
                                            "VMware.Vim.TaskEvent"{
                                                    $startTime = $event.CreatedTime
                                            }
                                            "VMware.Vim.VmDeployedEvent" {
                                                    $status = $event.FullFormattedMessage
                                                    $endTime = $event.CreatedTime
                                                    $templateDeploy = $true
                                            }
                                            "VMware.Vim.VmDeployFailedEvent"{
                                                $status = $event.FullFormattedMessage
                                                    $endTime = $event.CreatedTime
                                                    $templateDeploy = $true
                                            }
                                            "VMware.Vim.VmBeingDeployedEvent"{
                                                $template = (Get-View $event.SrcTemplate.Vm).Name
                                                    $target = $event.SrcTemplate.Name
                                                    $user = $event.UserName
                                            }
                                            Default {}
                                    }
                            }
                            $ecollection = $ecollectionImpl.ReadNextEvents($eventnumber)
                    }
                    if($TemplateDeploy){
                            $row = "" | Select StartTime, EndTime, VMname, Template, User, Status
                            $row.StartTime = $startTime
                            $row.EndTime = $endTime
                            $row.VMname = $target
                            $row.Template = $template
                            $row.user = $user
                            $row.Status = $status
                            $report += $row
                    }
                    $ecollectionImpl.DestroyCollector()
            }
            $collection = $collectionImpl.ReadNextTasks($tasknumber)
    }
    $report | Export-Csv "C:\Clone-Template-Report.csv" -noTypeInformation 
    

    With the variable $days at the beginning of the script, you can set how many days you want to go back.

    Note that it depends of course how long you keep your tasks and events in your database of VC!

    Update : the script will report now also on deployments models failed.

  • Powecli set IP for a Windows virtual machine, IP pool

    Hello

    I followed all the steps in this article https://pubs.vmware.com/vsphere-55/index.jsp?topic=%2Fcom.vmware.vsphere.networking.doc%2FGUID-DBF79F52-925A-4D0D-893C-49B911D3AC54.html and I need the following to make it work,

    1. pursuant to article when an IP pool is configured, mapped to a portgroup VM in this network is VAPP options enabled and I put it in the static pool of IP.

    2. so when a virtual machine is on the network adapter in the virtual machine must be assigned an IP address from the IP pool.

    3. but VM NIC adapter gets never assigned with an IP address from the pool and VMware have confirmed this IP pool do not have a capacity to push an IP address to the virtual machine.

    I'm looking for a script that can be kept inside the virtual machine and pull an IP address pool option or VAPP machines IP and assign the adapter NIC VM (Windows). Probably via the VMware tools? Let me know any possibility for that?

    The use of IP pools is like poking yourself in the eye. It feels better when you stop

    If you cannot use DHCP and must use IP pools there are a ton of up front configuration mucking about to make:

    1. Follow the first article you have linked
    2. In the options of vApp for the VM in properties and then create a property for each of the things you want to get the pool of IP (IP, etc.). When to create the entries under type select dynamic property can find the correct entry in the drop-down list then the values come from the IP pool
    3. Set up an auto start task (a scheduled task that starts at the start) in your model of virtual machine to run a script that:
      1. Expect that VMware tools start
      2. Run vmtoolsd to get the values of vApp in the VM in XML format
        1. 'C:\Program VMware Tools\vmtoolsd.exe-' cmd 'info-get guestinfo.ovfEnv '.
      3. Parse the XML file to extract the intellectual property, etc..
      4. Run the OS commands (netsh, wmic, vbScript (wmi) or Powershell (perhaps native, perhaps wmi according to version)) to take the values from the XML file, and then set the operating system options

    Outside this configuration he plays poorly as the 'network' in the dynamic property is bound to a group of specific ports. If you try to deploy widely, this means a VM model by group of ports (blech!)

    Hope this help to help you started (or persuade you to use DHCP)

  • NIC goes away on a Windows virtual machine

    Someone on my team ran into this problem on the two virtual machines.

    1020718 Ko tire

    ESX 4.x introduced a new feature called HotPlug. In some deployments cards virtual network may appear as removable devices on the system tray in Windows operating systems. Problems can occur if you confuse this device for one that you can safely remove. This is especially true in the VMware View environments, where there is a constant interaction with the desktop. Do not remove the virtual network adapters in the Windows system tray.
    There is a demand for change identified in the KB resolution for our models of windows. I have never seen this before and is reluctant to make changes to the basic models. Does anyone know what specific deployment scenerio causes this anamoly of system tray?

    Hello

    the Connect feature is not an anomaly, and it occurs not only with specific deployment scenarios. It introduces the possibility of adding hot and hot / deletion of certain devices of harware (such as the network interface cards) and to a virtual machine (if the guest operating system also supports) regardless of the manner in which it was deployed.

    An often undesirable side effect is that a user accidentally unplug NIC of the virtual machine by using the tray icon "safely remove hardware...» ».

    You can avoid this by setting the advanced VM configuration which is explained in http://kb.vmware.com/kb/1012225option.

    Make this change to a virtual computer model will result in all virtual machines deployed from this model to have disabled HotPlug.

    It has no negative side effects, so I think only that a certain measure and I would recommend it even.

    I hope this helps...

    -Andreas

  • How to create a virtual machine from a template?

    Hello

    I created a model of virtual machine with a virtual computer on an ESX Server. I want to use this model to create more virtual machines on different ESX servers. How can I do this?

    Thank you

    Tejas

    In your Virtual Center client in the left upper corner click the inventory button and choose 'Models and Virtual Machines' this will display your virtual machines as well as the underneather of models in the window of the host tree.  Right-click on the template and select deploy the virtual machine from this template and it will start the wizard.

Maybe you are looking for