VM Tips and Tricks?

Page 3 of 3 FirstFirst 123

  1. Posts : 17,661
    Windows 10 Pro
       #21

    Let's just make this very clear:

    OP's question:

    GatsbyGlen said:
    Question. I'd like to save off the VM in it's initial state. Is it better to just make a copy of the vmcx, vmrs, and vhdx? Or is better to do Export?
    When you want to save the initial state of your vm, the checkpoint is the way to do it. It does exactly what you want to, according to your question: it saves the initial state of your vm.

    Please remember that although it has been posted in this thread that you cannot have several branches of checkpoints, that is not true
    ;
    you can create new checkpoint branches as you wish and restore (apply) any checkpoint from any branch whenever you want to and further create new checkpoints on that branch.

    The checkpoints do not only do exactly what you asked for, they allow you to save various states of your virtual machine.

    If you want to reuse the same VHD on another vm, then export is the way to do it. Remember that an exported new vm needs it's own product key to activate whereas restoring a checkpoint to state when Windows was activated does not require reactivation.

    Kari
      My Computer


  2. Posts : 66
    Windows 10 Pro
    Thread Starter
       #22

    I'm really looking to have two different environment states. Since I can't use the same key across different virtual machines, it looks like I have to use one machine (where it's activated) and change the pointer to the disk. That seems pretty easy to do.

    With checkpoints, can you do this ...

    Create initial VM state - create checkpoint 1
    Install Software/Setup ENV for Customer/Scenario A - create checkpoint 2
    Go back to initial VM state, and install software/setup ENV for Customer/Scenario B - create checkpoint 3

    Now let's say I'm working with B for awhile, and need to go to A. So I go back to checkpoint and do some work. How to I go back to B? Would I need to save off checkpoints each time I switch from A to B?
      My Computer


  3. Posts : 17,661
    Windows 10 Pro
       #23

    An unauthorized response, this not being a tutorial but let's try

    GatsbyGlen said:
    Create initial VM state - create checkpoint 1
    Install Software/Setup ENV for Customer/Scenario A - create checkpoint 2
    Go back to initial VM state, and install software/setup ENV for Customer/Scenario B - create checkpoint 3
    Yes, the checkpoint feature is the absolutely easiest and practical method to do exactly that.

    GatsbyGlen said:
    Now let's say I'm working with B for awhile, and need to go to A. So I go back to checkpoint and do some work. How to I go back to B? Would I need to save off checkpoints each time I switch from A to B?
    If you have saved new documents, installed new software or done any changes on your vm then yes. If you have just used it generally bot not saved anything special, you don't have to do it.

    Here's an example scenario:

    VM Tips and Tricks?-2015_09_27_17_06_541.png
    (Click to enlarge.)


    "Now" marks where I am / the vm is at the moment, in 2nd checkpoint in the first branch after installing Office 2016. Because I changed the state of the vm by installing Office, I created this last checkpoint. (Number 1 in screenshot above is the "mother", the parent checkpoint, all later checkpoint branches and checkpoints in them will be child objects to it, therefore I do not count it as first checkpoint in this branch.)

    I can now apply the first checkpoint, the "mother" for both checkpoint branches (1) or any of the previous checkpoints in this branch (2 or 3) or jump to a totally different branch of checkpoints by selecting any checkpoint in the 2nd branch (4 or 5). Whatever checkpoint I select, the vm is restored to that exact state, as it was when the checkpoint was created.

    When applying a checkpoint Hyper-V by default checks if you want to save the current state first in a new checkpoint before creating a new one:

    VM Tips and Tricks?-2015_09_27_17_20_012.png

    To apply a checkpoint, right click it and select Apply:

    VM Tips and Tricks?-2015_09_27_17_22_271.png

    Kari
      My Computer


  4. Posts : 490
    Windows 10 Pro
       #24

    GatsbyGlen said:
    Hello,

    When I purchased my recent laptop, I had it come downgraded to Windows 7 Pro on a junk drive. So I essentially had a Windows 7 key and 8 key. I replaced the junk drive with an SSD and installed Windows 8 using the key in the BIOS. Today, the laptop is on Windows 10 Pro.

    I'm now setting up a VM inside of the Windows 10 using Hyper-V, and created a Windows 7 Pro VM using the key that came with the junk drive.

    Some questions:

    Can I make repeated VMs using the same key? I thought about getting a base VM configured, and then saving that off, and then just importing that base VM additional times if needed. For example, 1 VM for 1 customer and other for a different customer, etc. Furthermore, is it possible to upgrade the base VM to Windows 10 and accomplish the same duplication?

    I thought I had seen a tutorial or post about that here ...

    Thanks!!
    VMs are copyable and portable. I copy VMWare virtual machines to a network drive as a backup method to ensure that I can recover when an active vm becomes unusable (which can happen, though relatively rarely). However, if you try to create a new vm with the same product key you will get a message that the product key is in use or is unavailable, or something similar. Product keys in a vm are subject to the same licensing terms as in any computer.

    In summary, vms are not distributable in the manner you are asking about. Contact Microsoft Sales and Support about redistributable copies of vms.
      My Computer


  5. Posts : 11,247
    Windows / Linux : Arch Linux
       #25

    logicearth said:
    No. That is not possible. Having multiple activated copies running at the same time will get flagged.
    Hi there

    Incorrect -- Cloning VM's will retain activation etc etc. If you MOVE a VM to significantly detectable different hardware you *might* be requested for activation but in general you won't be.

    Bear in mind though you are only allowed to run ONE VM at a time under the license. It's a bit like having 7 backup copies of W10 -- you can restore any of them without re-activation and they will work -- however restoring and running more than ONE concurrently is not allowed.

    Cheers
    jimbo
      My Computer


  6. Posts : 490
    Windows 10 Pro
       #26

    jimbo45 said:
    Hi there

    Incorrect -- Cloning VM's will retain activation etc etc. If you MOVE a VM to significantly detectable different hardware you *might* be requested for activation but in general you won't be.

    Bear in mind though you are only allowed to run ONE VM at a time under the license. It's a bit like having 7 backup copies of W10 -- you can restore any of them without re-activation and they will work -- however restoring and running more than ONE concurrently is not allowed.

    Cheers
    jimbo
    When you are asked to reactivate a VM is when you convert it between virtualization programs. For example if you convert a VirtualBox vm to a VMWare vm. That is a change in virtual motherboards. The virtual motherboard does not change if you are moving the VM from one computer to another. IT departments routinely move vms between servers.

    The user is entitled to protect his investment by backing up his data, including vms. There are many ways to do so.

    Cloned vms will run concurrently on different computers without requiring reactivation but the MAC address must be regenerated to avoid network conflicts. This is a violation of a consumer license, however. This is avoided in IT enviroments with the use of volume license keys.
      My Computer


  7. Posts : 11,247
    Windows / Linux : Arch Linux
       #27

    Cbarnhorst said:
    When you are asked to reactivate a VM is when you convert it between virtualization programs. For example if you convert a VirtualBox vm to a VMWare vm. That is a change in virtual motherboards. The virtual motherboard does not change if you are moving the VM from one computer to another. IT departments routinely move vms between servers.

    The user is entitled to protect his investment by backing up his data, including vms. There are many ways to do so.

    Cloned vms will run concurrently on different computers without requiring reactivation but the MAC address must be regenerated to avoid network conflicts. This is a violation of a consumer license, however. This is avoided in IT enviroments with the use of volume license keys.
    Hi there

    Nothing in the EULA about MAC -- running VM's doesn't mean you have to even install networking - you can choose between Host only, NAT, Bridged or None - well you can in VMware / vbox.

    Mac addresses can be protected / set in your firewall but in general at a non corporate level you can ignore this. VM's though if you move them between different environments (on a CONSUMER rather than a corporate network) will give a message of the type "Did you Move or Copy" the VM at the first power on. Thi is only done because of an identifier GUUID -- you can set in the config to not create a new GUUID if a VM is copied / moved to a new machine (or even to a new HDD).

    It's 100% legal to CLONE VM's. If you have a single windows license then you are only allowed to run ONE VM at a time unless you have a Volume type license.

    I've converted a VM from VMWARE to HYPER-V and back again without getting asked for re-activation. I suppose it's dependant on your VM configuration and whether the VM can detect any significant difference in the REAL or Virtual hardware -- for instance the VM will know what type of physical CPU it's using so some hardware changes will be detected.

    Cheers
    jimbo
      My Computer


  8. Posts : 490
    Windows 10 Pro
       #28

    jimbo45 said:
    Hi there

    Nothing in the EULA about MAC -- running VM's doesn't mean you have to even install networking - you can choose between Host only, NAT, Bridged or None - well you can in VMware / vbox.

    Mac addresses can be protected / set in your firewall but in general at a non corporate level you can ignore this. VM's though if you move them between different environments (on a CONSUMER rather than a corporate network) will give a message of the type "Did you Move or Copy" the VM at the first power on. Thi is only done because of an identifier GUUID -- you can set in the config to not create a new GUUID if a VM is copied / moved to a new machine (or even to a new HDD).

    It's 100% legal to CLONE VM's. If you have a single windows license then you are only allowed to run ONE VM at a time unless you have a Volume type license.

    I've converted a VM from VMWARE to HYPER-V and back again without getting asked for re-activation. I suppose it's dependant on your VM configuration and whether the VM can detect any significant difference in the REAL or Virtual hardware -- for instance the VM will know what type of physical CPU it's using so some hardware changes will be detected.

    Cheers
    jimbo
    The EULA doesn't concern itself with MACs because it is not a licensing issue and that isn't why I mentioned it. But duplicate MAC addresses on an infrastructure network will cause a network conflict so it is de rigeur to generate a new MAC in one of the clones.
      My Computer


  9. Posts : 5,478
    2004
       #29

    Kari said:
    It never stops amazing me how the people who do not know refuse to accept the fact they really do not know and feel offended when the lack of their knowledge is shown. It's as if it would be more important to not correct the false information than to give the correct information.

    Of course you can make two branches of checkpoints. Or three or four or five, as you desire. Here's an example of a vm I am working just now, checking various imaging and cloning scenarios, at the moment two totally different checkpoint branches. I can restore (apply) any checkpoint on any branch when I want to and create new checkpoints on that branch:
    Kari
    Sorry, Kari, you are correct and I was wrong.

    I apologise for saying otherwise - you can certainly can make different branches of checkpoints.

    If anyone finds it a more convenient method - it is certainly an option to consider.

    BR, Hali
      My Computer


  10. Posts : 17,661
    Windows 10 Pro
       #30

    Case closed.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:20.
Find Us




Windows 10 Forums