Extensions Learning Performance vCenter

VMware Instant Clone is now at your fingertips with the updated PowerCLI Extensions fling!

 

FLINGS.png

At VMware we are pleased to announce the publishing of a new fling:  PowerCLI Extensions! PowerCLI Extensions gives PowerCLI users access to early access functionality by extending the core PowerCLI cmdlets to include new experimental features and gives PowerCLI customers the ability to provide early feedback. So what is included in this fling? Read on…

Instant Clone

Extensions

‘Instant Clone’ also known as VM Fork or Project Fargo, gives admins the ability to rapidly clone and deploy virtual machines, as much as 10x faster than what is currently possible today. Instant Clone uses rapid in-memory cloning of running virtual machines and copy-on-write to quickly deploy clones of a parent virtual machine.

Because Instant Clone uses a private API, PowerCLI is currently the only way Instant Clone can be accessed and leveraged.

What is actually happening?

The Instant Clone capability allows admins to ‘fork’ a running virtual machine, meaning, it is not a full clone. The parent virtual machine is brought to a state where the admin will Instant Clone it, at which time the parent virtual machine is quiesced and placed in a state of a ‘parent VM’. This allows the admins to create as many “child VMs” as they please. These child VMs are created in mere seconds (or less) depending on the environment (I’ve seen child VMs created in .6 seconds). The reason these child VMs can be created so quickly is because they leverage the memory and disk of the parent VM. Once the child VM is created, any writes are placed in delta disks.

When the parent virtual machine is quiesced, a prequiesce script cleans up certain aspects of the parent VM while placing it in its parent state, allowing the child VMs to receive unique MAC addresses, UUID, and other information when they are instantiated. When spinning up the child VMs a post clone script can be used to set properties such as the network information of the VM, and/or kick off additional scripts or actions within the child VM.

Specific information can be passed to the child VM for the post clone script to use to quickly perform actions on the virtual machine as it powers on (I use the term power-on because when the VM is cloned it is shown in vSphere as ‘Powered-Off’ however, when you “Power-On” the VM, it is already in its fully running state, there is no boot up). If you assigned a -PostCloneScript to the child VM, when it is Powered-On, the script will execute. Values such as network properties, can be passed to the Child VM through configuration parameters stored in the VMX file. These can be set with an array where the left-side is the name of the property and the right-side is the value:

$configSettings = @{
‘ipaddress’ = “10.134.14.75”;
‘netmask’ = ‘255.255.255.0’;
‘gateway’ = ‘10.134.14.253’;
}

When included in the  New-InstantCloneVM cmdlet’s -ConfigParams, they will be added to it’s VMX file:

$childForkVm = New-InstantCloneVM -ParentVM $parentforkVm -Name “2012ChildClone$_” -ConfigParams $configSettings

Because of VM Tools,  these values can then be retrieved from within the Child VM using the VMware Tools RPCTool, which can read guest information from the VMX file (using the example configparameters above):

  • “%programfiles%\vmware\vmware tools\rpctool” “info-get guestinfo.fork.ipaddress”
  • “%programfiles%\vmware\vmware tools\rpctool” “info-get guestinfo.fork.netmask”
  • “%programfiles%\vmware\vmware tools\rpctool” “info-get guestinfo.fork.gateway”

In the demo below you will see a walkthrough of verifying the intended-parent VM’s network settings, and that the VM is in the desired state to instant clone. It then walks through the PowerCLI commands to create 9 child VMs off of the parent VM.


On my equipment it took me 15 seconds to create 9 Instant Clone child VMs of a Windows Server 2012 Parent VM. Times will vary based on a number of factors including the number of configuration parameters saved to each virtual machine, hardware, etc.

Get PowerCLI Extensions

You can download the user guide and PowerCLI Extensions module from the VMware Flings site HERE. I strongly recommend reading the user guide and following the step-by-step instructions for getting started.

VSAN cmdlets removed

Originally the PowerCLI Extensions module included VSAN cmdlets. As of PowerCLI 6.0 R1 those cmdlets have been removed from PowerCLI Extensions and added into PowerCLI.

Stay tuned for the next post. which will be a tutorial of how to use the Instant Clone functionality

 

Comments

168 comments have been added so far

  1. I am getting error trying to create an instant clone:

    PowerCLI C:\> New-InstantCloneVM -ParentVM “testvm” -Name “testvm01”
    New-InstantCloneVM : 8/4/2015 4:04:58 PM New-InstantCloneVM The Vm ‘testvm’ is not instantclone parent.

      1. I found that you need to have the In-Guest Customization script (as per https://blogs.vmware.com/PowerCLI/2015/08/using-vmware-instant-clone-via-powercli-extensions-fling.html) and specifiy the

        $parentForkVM = Enable-InstantCloneVM -VM $parentVM -guestUser “administrator” -GuestPassword “VMw@re123” -PostCloneScript C:\temp\WindowsPostScript.bat

        Varibale as part of the “New-InstantCloneVM” command

        i.e.
        $parentForkVM = Enable-InstantCloneVM -VM $parentVM -guestUser “administrator” -GuestPassword “****123” -PostCloneScript “c:\Scripts\WindowsPostScript.bat

        $childForkVm = New-InstantCloneVM -ParentVM $parentForkvm -Name “2012ChildClone$_” -ConfigParams $configSettings ; $childForkVm | Start-vm

        (Rather then specifiying the parentVM name directly).

        To get around this issue

  2. Question about a Windows Guest after it’s been cloned and gets a new IP adress… What about the computer name, the secure computer account with the domain controller, Dynamic DNS, etc? Is it up to the administrator to fix all those potential issues after the instant clone is instantiated?

    Ben

  3. Does anybody now what happens if I want to change the disk space of an “instant-clone(d)” VM?
    Is it right to assume that I then need to invest a lot of time transforming it into a fully-cloned VM?

    1. So my understanding (from reading the 2009 SnowFlock paper) is that at least in-principle this doesn’t need to be a problem. Conceptually Instant Clone is an extension to Link Cloning (it’s that same + COW memory deltas), since Linked Cloning supports VMDK re-sizes I’d expect Instant Clones to support it as well. Whether or not the concept matches reality is not something I know.

  4. Pingback: VMware announces Horizon Air Hybrid Mode, Horizon 7, and AppVolumes 3.0. Here's our full analysis: – Brian Madden (blog)
  5. Neuere Erkenntnisse zeigen, dass Bewegung nicht unbedingt intensiv
    sein muss, um die Gesundheit zu stärken.

  6. Hi, excellent stuff here. In testing I’m getting the following error in Power CLI. (Extensions are installed etc)
    I get an error that “the operation is not supported on the object”. Any thoughts?
    Thanks

  7. My VM is a Cisco Virtualized router that does not have the ability to have VMWare Tools installed. So in other words, its an ‘Other’ type of VM. I cant get InstantClone to work and get this error. Any thoughts? Workaround?

    Enable-InstantCloneVM : 5/27/2016 12:36:46 PM Enable-InstantCloneVM The Vm ‘IOS-Clone’ is not powered on or
    VMware tools are not running.
    At line:1 char:17
    + $parentforkVm = Enable-InstantCloneVM -VM $parentVm
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Enable-InstantCloneVM], VimException
    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.Extensions.InstantClone.Commands.Enabl
    eInstantCloneVM

    1. Instant Clone requires VMware Tools. If your VM does not have VMware Tools installed, IC will not work.

  8. is this working on vsphere 6.5? Why the instantclone cmdlets are not included in PowerCLI 6.5? I am running 6.5 and downloaded the extension (VMware.VimAutomation.Extensions_for_PCLI_65R1) but fails with this error:

    PowerCLI C:\> Enable-InstantCloneVM -vm $a -GuestUser administrator -GuestPassword password -PostCloneScript C:\pscript.bat

    Enable-InstantCloneVM : 1/9/2017 2:36:45 AM Enable-InstantCloneVM A general system error occurred: vix error codes =
    (1, 0).

    At line:1 char:1
    + Enable-InstantCloneVM -vm $a -GuestUser administrator -GuestPassword …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Enable-InstantCloneVM], SystemError
    + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_RunScriptInGuest_ViError,VMware.VimAutomation.Extensions.Ins
    tantClone.Commands.EnableInstantCloneVM

    Enable-InstantCloneVM : 1/9/2017 2:36:45 AM Enable-InstantCloneVM Object reference not set to an instance of an
    object.
    At line:1 char:1
    + Enable-InstantCloneVM -vm $a -GuestUser administrator -GuestPassword …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Enable-InstantCloneVM], VimException
    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.Extensions.InstantClone.Commands.Enabl
    eInstantCloneVM

  9. What is Norton? Norton is an anti-virus and anti-malware software which offers various products related to digital security. It is an industry-leading software which is reputed for its real-time protection and various comprehensive features. It helps in securing your device with ultimate protection from existing and emerging security risks. For utmost protection, Norton uses six

  10. What is MS office? Microsoft office provides a complete package of various applications that are used by businesses, educational institutions and homes. It comprises a large number of products for various purposes. It includes Microsoft Office, Excel, Powerpoint that is used to create spreadsheets, make labels and produce presentations for your home or office.

  11. SMOOTH AND ROUNDED EDGES No Sharp Edges Perfect Angle for Sliding Feet into Shoes and Won’t Damage or Cut into Your Shoe and then Long length of this shoehorn allows you to put on your shoes without bending over or crouching.Easy Grip Handle-Durable lanyard protect your hands avoid hurt.It is made in a unique design that fits for everyone

  12. Is it true that you are confronting Epson Error code 0xea? Get the arrangement here. Experience this means and understand your issues right away. Contact Epson Support for help. Is it true that you are experiencing the Epson Printer Error Code 0xea while working with your printer? This is one of the most widely recognized Errors that the Epson printer experience.

  13. The next time I read a blog, Hopefully it won’t disappoint me as much as this particular one. I mean, I know it was my choice to read, however I genuinely thought you’d have something useful to say. All I hear is a bunch of complaining about something that you could fix if you weren’t too busy looking for attention.https://amazoncardredeem.com

  14. Thanks for sharing nice information with us. Hope we will again get this kind of information from your site. Your article about this topic is really excellent as get the information from this page I felt good. If you want the same as information about the spirit airlines reservations then visit the sites.

  15. Thanks for sharing very informative blog with us. Hope we will again get this kind of so many information from your site. If you have the same details about the httprouterasus.com then visit the website.

  16. Thanks for sharing this blog with us. Its working with windows 10 computer also. Know why your Brother Wireless Printer keeps going Brother offline Windows 10 and follow various steps to resolve the Brother Printer offline fix Windows 10 issue.

  17. We are leading website designing and Development Company in India. We provide custom website design, responsive web design, Graphic design service, Social media services at very reasonable charges.

  18. Thanks for sharing the most important information I am so glad to visit this blog. we provide technical support. If you need any issues regarding orbilogin Routers visit our website. Our technician 24 hours available.

    orbilogin

  19. Thanks for sharing the post. I am also working on Dlink devices. I want to share the Steps for Dlink Router Login Using Dlinkrouter.local web address or the default IP address can be found mentioned in the blogs section of our website. You can follow the same online to get help with the D-Link router login process and access the setup page for easy network configuration online. Visit our website to know more.

  20. The default web address tplinkrepeater.net can be accessed on a compatible web browser. You can use the IP address as well to access the repeater setup page and begin with the network configuration settings online. For more help on the repeater settings, refer to the troubleshooting guide on our website now.

  21. If you are stuck with a poor network, you will find it inconvenient every time you have to do something really important with the internet. Getting the Linksys velop wifi to replace your old router is the best. And also, the linksys velop setup procedure is a very easy one

  22. If you are stuck with a poor network, you will find it inconvenient every time you have to do something really important with the internet. Getting the Linksys velop wifi to replace your old router is the best. And also, the linksys velop setup procedure is a very easy one

  23. The meshforce is a whole home wifi system that covers a very wide range of space in the home or office. You do not have to get stuck to one particular location anymore. Just because your previous wifi router does not cover all the places in your home or office.

  24. Thanks for posting such an amazing blog. This one is really amazing and even it helped me a lot. I would love to save this blog for the future so that it can also help me for the future also, even I will share this blog with the others also because it can also help the others also. I want to read more imformative blogs like this.

  25. The Netgear Orbi login page can be accessed using the Orbilogin.com web address in a compatible web browser online. When you reach on the orbi login page, you can use the default login credentials to begin with the setup process. If you face issues accessing the setup wizard, you can always reach out to the team.

  26. To login to arris router is not difficult at all. With a few steps, you will be right on your admin page. However, if you don’t have a guide, you might find it very challenging to arrange the setup tools together and login. Follow the guide to help you login easily.

  27. To login to arris router is not difficult at all. With a few steps, you will be right on your admin page. However, if you don’t have a guide, you might find it very challenging to arrange the setup tools together and login. Follow the guide to help you login easily.

  28. Setting up the Linksys extender for the very first time can be quite challenging. But the case is different when it comes to setting up with a proper instruction. And using extender.linksys.com is one of the best ways that you can achieve a fast and easy set up.

  29. It is obvious that both Wi-Fi extender and Wi-Fi repeaters are similar in many respects. But they are different in their behaviour. A WiFi extender performs by pulling the reception from a router before relaying it to a device. While doing this, it is not transmitting the coverage using the same type of network name as the initial wireless network. For instance, if original or initial network is known as “WirelessNet1” the booster will produce a new network name such as “WirelessNet2’. For your device to connect to the internet as desired, it must connect to “WirelessNet2mywifiext setup

  30. Need help with the steps to complete the Linksys velop setup process in no time? Read through the tips on this page to navigate through the complex setup process easily and configure your network. For help on the setup and login related issues, you can follow the troubleshooting guide posted on our website at any time.

  31. The Linksys Velop Setup process begins with accessing the setup wizard and proceeds with editing the velop network settings. You can configure the details online and add multiple nodes once the parent node has been set up. For more information on the velop setup process, reach out to the team at our end now.

  32. The Linksys Velop Setup process begins with accessing the setup wizard and proceeds with editing the velop network settings. You can configure the details online and add multiple nodes once the parent node has been set up. For more information on the velop setup process, reach out to the team at our end now.

  33. The default web address Router.Asus.Com can be used to access the Asus router login page and gain access to the setup wizard online. For help with the Asus router login or learn the steps to setting up the Asus router, you can always read through the blogs section online. For more help with the Asus router setup, you can visit the website now.

  34. With our best logo maker, you can create bespoke logos in minutes. Browse from a range of logo design templates and select one that best represents your brand. 1000+ templates are available that you can customize to make reel cover, highlights covers, or much more.

  35. With our best logo maker, you can create bespoke logos in minutes. Browse from a range of logo design templates and select one that best represents your brand. 1000+ templates are available that you can customize to make reel cover highlights covers, or much more.

  36. Get help with the Linksys Velop setup process using the information in our blogs posted on the website. Learn key steps to access the setup wizard and configure the network settings easily. For help with the setup process, reach out to the team at our end. Or, you can also visit our website for details on the same.

  37. Arlo Camera Login has a feasible mean to do so through the URL my.arlo.com and you will reach to the page of arlo camera login. This page is the window that will help you complete, customize and explore the setup, cloud and further settings of your arlo camera. Well done.

  38. The Linksys E5350 router setup process can help you get access to seamless internet. For help on the same, you can always reach out to the team at our end. Visit our website to access the detailed setup guide. Also, find the detailed troubleshooting steps to resolve common router related issues in no time.

  39. In this discussion, we will discuss how to do tplinkwifi.net setup . Although tplink login is easy to access, users face difficulties. In order to do tplinkwifi.net setup, open a browser and type tplinkwifi.net in the URL bar and press enter. If you have an error while doing the tplinkwifi.net setup you can visit our site.

  40. To perform the Linksys WiFi extender setup, you will need to have access to the network as well as an SSID. It is possible to configure the network yourself, by first setting it up. Use the default IP address to access the setup wizard. If you have any questions about the setup or username, please visit our website or contact us today.

  41. Dlinkrouter.local is the gateway to the Dlink router setup wizard. You can also use the default IP as a gateway. An internet connection to start the login process is required. You will also need a computer/laptop to begin the login process. Contact our team of experts if you have any questions regarding the login and setup.

  42. The Asus login by http://router.asus.com is an easy process using the compatible browser. You can also use the default IP address here as an alternative. Once you access the web-based utility, you can change the various wireless setting of the router and manage them accordingly. Get in touch with our experts in the end if you have any issues.

  43. A good placement plays a vital role in determining the number of Wifi signals which will get extended in a ap.setup network. Once the setup process gets done you can relocate the range extender to an optimum location from where it can receive the maximum amount of Wifi signals. You can also take the help of the Signal LED to determine a good spot for placing the range extender. If the signal LED turns blue it means the range extender is at a required distance from the router but if the signal LED turns red it means you need to bring the range extender closer to the router.

  44. New models of ASUS routers are also capable of being converted into a Repeater mode. In Repeater mode, a router connects to an existing network, and repeats the Wi-fi signals back and forth to extend its wireless coverage. The LAN IP address of an ASUS router will get changed after being converted into a repeater. You have to download or install the Device Discovery Utility to find the IP address of your router. Using the IP address, you can also interact with the web interface of the router.asus.com window.

  45. We know the brand Linksys for its outstanding routers that gives us the internet speed that we may not have experienced in the internet usage throughout the life. The link http:// Myrouter.local will let us enter the linksys router with comfort and we will be easily able to run the router and also the internet with ease. This device just need a log in to use the internet and the high speed can be experienced as we wished.

  46. Routerlogin.net is owned and operated by a company Netgear Inc. ,which is the multinational networking company based in the United States. Routerlogin.net is a gateway in order to manage and operate our Netgear wireless router services. It should be noted that Routerlogin.net will only work if we are connected to the Netgear router using Ethernet cable or wireless connection.

  47. Wifi.wavlink.com with a web interface of the Wavlink extender can easily configure and manage the extender.The web based management window can be used in Windows or Macintosh using. A Web Browser.It does not require any active internet connection. The extender must be connected to the computer to allow a user to connect to the wifi.wavlink.com.

  48. Myrouter.local is a web page of linksys router. Using this portal one can access linksys router. One can also be able to do advanced settings of the linksys router. If one wants to log in to the linksys router, one need to use myrouter.local.192.168.1.1 as a log in address. This way one can access the linksys router.

  49. Dlink routers are used to deliver excellent internet connection and file sharing capabilities. Users on the same network can easily share photos, videos and files. D-link routers use AC technology, the latest in WI FI technology. D-link is a combination of “Datex”, our roots and “link” focuses. We are taken to the Dlink login page by using http://dlinkrouter.local.

  50. Having a mesh wifi system at your home will let you cover every corner of your home with wifi signals. You can connect to the internet and access it on the go. However, to realize this goal, you’ll first need to access the Linksys Velop login page online. Once you have gained access to the same, you can start following the velop setup process to configure the network and device settings easily. For help, visit our website or contact our team now.

  51. Thank you for posting such a valuable content. I was searching for this comment only and i got that. I will share this content with others too.

    I just want to see this kind of post in future also. Do visit my site as well.

  52. Myrouter.local is pleasing for accessing the web admin page and configuring the settings of the wireless router .This Web address is generally used for Netgear and linksys router’s several models. The Myrouter local 192.168.1.1. relatively enables us to access the web interface page of many internet devices.

  53. Lots of useful information I have get from here I read lots of blogs here and all are full of informative. Users can learn lots of new things here and we can even upgrade our skills by reading blogs here. There are some doubts which cleared here.

  54. Belkin range extender increases the range of your existing wifi network. Belkin wifi extender connects to your router and picks up the wireless signals to further increase their throughput. That way, the Belkin wifi extender increases the network coverage by manifolds. Simply, plug in your extender and configure its settings after logging into it.

  55. The default Linksys Router Login page can be used to sign in to the router setup wizard and modify the network settings easily. If you need more help with the setup and login process, you can refer to the information on our website. or, reach out to the team at our end now. They may guide you through the setup page and help you navigate through the login process in easy steps.

  56. For Orbi router login, you can either use the default web address orbilogin.net or the Orbi app on your smartphone. Logging into your Orbi router is easier with the help of the Orbi app. However, you will have to first configure your Orbi router using the app. Once you configure, you can easily login to the Orbi router.

  57. The web address router asus com can be used to access the asus router login page online on your web browser. You can use any compatible web browser. Once you have access to the web-based settings management wizard, you can proceed with the on-screen instructions being displayed on the screen for setup.

  58. If your brother printer has stopped working or is causing problems, then you may require the answer to the question of how to netgear nighthawk router login? This will erase all the cache memory and will probably get you through with the error. For further information, get in touch with us.

  59. Linksys routers can be accessed using the default web address myrouter.local. You can connect your computer or wireless device to the router network using a wired or a wireless connection. Once connected, you can access the setup wizard using the web address and head towards editing the network settings. For more help with the router setup process, you can always reach out to the team at our end.

  60. For the Netgear router reset, make sure the router is powered On. After that, locate the reset button on the backside of your device. Push the reset button and make sure you hold it down for 10 seconds. After that, release the reset button and the Netgear router will start restoring the factory default settings on its console.

  61. For the Netgear router login, make sure the router is powered On. After that, locate the reset button on the backside of your device. Push the reset button and make sure you hold it down for 10 seconds. After that, release the reset button and the Netgear router will start restoring the factory default settings on its console.

  62. I’d spend time understanding your needs before we can explore the heavens. I m Experienced Bull, what you want in bed i know very well, i like to bring smile on your charming and beautiful face.

Leave a Reply

Your email address will not be published.