VmWare View... upgrading linked clones from XP to 7?

farscapesg1

2[H]4U
2FA
Joined
Aug 4, 2004
Messages
2,658
OK, here's the scenario. I've got a small VMWare View setup at work that is housing 20 linked clone desktops. They are currently running XP and I need to upgrade them to Win7. The parent VM was configured for XP, and I have a new VM built with Windows 7 that I can recompose the pool with.

The issue is that those VMs need to retain their device names and MAC addresses due to some software on the them. Can I recompose with the new parent VM (different memory/CPU settings as well as different designated Guest OS) and keep the same MAC addresses? If so, how. If not, I guess I can copy them all down and change them after the pool is recreated...
 
I've worked with View before so here is how I would approach this:

1) Prep your new master VM running Windows 7
2) Clone the number of VMs you need via linked clones.
3) Move one user at a time to their new VM.
4) As you move them, rename the PC to the user's prior XP-named workstation
5) Power down the VM, manually encode the VM's NIC MAC address to the MAC of the XP NIC the user came from.

I wouldn't in-place upgrade the XP VM to 7. Your space savings are gone at that point. Upgrading the parent VM also does you no good since the the linked clone VM works off a certain point of the parent VM and doesn't work perpetually as you might think.
 
Your options are pretty limited based on how View handles MAC addresses on linked clones. This is a good read for that

http://myvirtualcloud.net/?p=1952

so if you're using a floating assignment pool, you'll have to set the VM to use a statically assigned MAC by editing the .vmx file.

If you're using a floating assignment pool I would extend shade91's suggestion to this:

- copy down the mac address for each linked clone VM
- instead of creating a separate pool for the new windows 7 vm's, change the base VM to the new one and recompose off of that.
- if needed, put each vm into maintenance mode, shut them down individually and set the mac statically in the vmx file (or script it)
 
- instead of creating a separate pool for the new windows 7 vm's, change the base VM to the new one and recompose off of that.
- if needed, put each vm into maintenance mode, shut them down individually and set the mac statically in the vmx file (or script it)

Dytralis - Very no on changing the base VM - you need to create a new pool when using a different master especially on an upgrade or VMware wont support that configuration. There are instances during the recompose where the hardware (LSI Parallel wont change to the LSI SAS and will fail the recompose) [Depending on your version 5.0.x + it could delete the entire VM to repair it.]

Even a recompose has the potential to change the MAC Address, during the newer versions of view there are new functions inside the code if the machine doesnt build correctly it will DELETE the entire VM and recreate it to attempt a recovery (Means New MAC)

In Truth if they are using software that is MAC based it would seem more logical to use Full Clones, If its just software like SCOM or Antivirus then that's just admin issues...

If i recall there is no entry for the MAC address of a VM inside the composer or ADAM databases so you should be fine there,

Changing a MAC after a VM has been provisioned could change the NIC Number as well as might require a reboot (I tested it on View 5.2 and it didnt request a reboot i am just throwing out there its possible [Using VMXNet3])

If you feel comfortable using scripts thats great, just be careful as one mess up in the VMX could prevent your Linked Clone not communicating correctly back to View.

Hope this helps
DaSaint - View Specialist @ VMware
 
Dytralis you need to read further

http://pubs.vmware.com/view-50/inde...UID-F5042933-299A-406E-B359-4ACEBDDB792F.html

View Composer does not support recomposing linked clones that use one operating system to a parent virtual machine that uses a different operating system. For example, you cannot use a snapshot of a Windows 7 or Windows Vista parent virtual machine to recompose a Windows XP linked clone.

Again i work at VMware TRUST ME I KNOW!
 
That just doesn't make sense. I can understand if you upgrade an existing virtual machine from Windows XP to Windows 7 then recompose, but not if you choose a brand new different base VM with Windows 7 then recompose after that. What information would be in the ADAM or composer database that's going to tie the linked-clone to the original OS install on the original master image? To expand upon that further, what info would be in there that is persistent across recomposes?
 
When it comes to recomposes it will NOT change the Controller on the VM this is the biggest flaw in the process, you cannot assume it will change hardware of a pre-created VM to accomidate the new master. This will cause the issue and this is why its unsupported.

It is always recommended to create a new pool when transitioning OS's even doing an upgrade on an XP vm to 7 it is not recommended changing the hardware because it would cause the same situation above.

We have had a many call on this issue and the answer is always the same... its in the doc as unsupported create your VM clean and deploy correctly. Softwares used that are MAC locked are not suggested to be Linked Clones because a recompose operation in View 5.x could potentially delete the machine if the recompose fails, this is a new function (Recovery Function) that was designed in the 5.x version, this is to try to avoid failures in the provisioning process.

when it comes to pools use images that stay within the same hardware and OS dont transition or you could come across issues.
 
When it comes to recomposes it will NOT change the Controller on the VM this is the biggest flaw in the process, you cannot assume it will change hardware of a pre-created VM to accomidate the new master. This will cause the issue and this is why its unsupported.

I am so confused... where did changing the scsi controller come into play? I never said anything about changing the hardware. We are talking about totally changing the base VM from one virtual machine to another.

Pool1:

VM01-XP --> VM01-XP Snapshot --> replica-<blah blah> --> linked-clones

changed to

VM02-WIN7 --> VM02-WIN7 Snapshot --> (new) replica-<blah blah> --> (new) linked clones

Why would that be unsupported? You're deleting the old replica, all the old linked-clones and if the hardware doesn't change between the two base images (just the OS running in it), what is going to cause issues?
 
WinXP uses LSI Parallel as Suggested SCSI Controller,
Win7 Uses LSI SAS as Suggested SCSI Controller

If you were to use VMs already provisioned

WINXP <-> Parallel <-> Replica
When you recompose with 7 image it would do the following
Win7Replaced <-> Parallel <-> Replica (Would not change to SAS)

the Links have their own controller unless the VM is new (Created new clone! the issue would be the old Provisioned VMs would retain the old hardware)

If you were to remove ALL VMs from the pool and let it provision new ones this wouldn't be an issue, i am talking about a recompose which uses already the VM hardware in existence on the links.

The method above wouldnt be supported and the OS would probably fail due to the machine installing new hardware on the provision (hell it might not fire as well seen that one too)

This is why its unsupported the Recompose isnt really designed to change out the hardware of the pre-created linked clones to match whatever replica it uses... the links are just built on the initial replicas hardware that when it provisioned from.
 
Thanks for all the information. Looks like more work on my side. At least I'm only dealing with 20 VMs though :) Oh well... this environment was originally a trial run and we will be moving to a XenDesktop implementation anyways (to comply with corporate standards)...

Yeah, unfortunately the software is a GE product... and their client management software is really based on a MSAccess database (yuck). Their management software requires adding machines to the table by IP address. For us, it was easier to set up a list of IP reservations by MAC address to ensure the virtual workstations pulled the same IP address each time.

Hopefully this will become a non-issue in the near future since we are working to move the application over to our XenApp farm and publish it that way. At that point I won't care about the linked clones getting the a specific IP address and can just publish the application to the workstations and be done with it.
 
however, according to kb article 2037409

http://kb.vmware.com/selfservice/mi...nguage=en_US&cmd=displayKC&externalId=2037409

it states:

The recompose operation removes all hardware from the View desktop and then imports all the hardware from the master virtual machine.

which would nullify any issue with different scsi controller's in the first place if you used a brand new virtual machine during the recompose operation. Granted that KB article doesn't have anything to do with changing base virtual machines in a linked-clone pool, but it does support my side of the discussion - unless the document creator mis-wrote that line under "causes".

why would you keep the original vmx file under the linked-clone during a recompose anyways? If you had changed any of the hardward (for example: increased the RAM), the different hardware changes between snapshots would (I'm assuming) cause major havok for the linked clones during the recompose process - given that it would even work if you kept the original vmx intact.
 
Dytralis - I am just trying to provide incite as to why the main documentation states it is an unsupported action. The KB in my mind is worded wrong, and i will put in a note to have that wording changed as it is invalid. There are parts that do stay within the original VMX, it may get overwritten by some changes but in every situation i have seen like this the controller doesnt change.

The recompose action really is there to change pointers of the old Replica to the New one (Some OS changes for Patches/Updates and new software), it wasn't really meant to be used as a full modification event (hardware), the code just isn't as robust when it comes to major modifications, it may work, however would you trust that kind of action on a prod environment with 1000 VMs in multiple pools.

Personally i would go with the main documentation any day, and knowing our engineering dept if they knew the method used was unsupported that would be the end of the show right there.. They create the main documents. There are a lot of hands that can create the KB's, there have been many times the wording has been incorrect, and it takes discussions like this to pull them out.

New Pool == Clean configs
Old Pool with major changes == Trouble

I am just providing the best supported actions based upon documentation and experience as well as making sure that we don't put people in unsupported situations, as some of our customers use this forum as a communities page.
 
Last edited:
Thanks for all the information. Looks like more work on my side. At least I'm only dealing with 20 VMs though :) Oh well... this environment was originally a trial run and we will be moving to a XenDesktop implementation anyways (to comply with corporate standards)...

Yeah, unfortunately the software is a GE product... and their client management software is really based on a MSAccess database (yuck). Their management software requires adding machines to the table by IP address. For us, it was easier to set up a list of IP reservations by MAC address to ensure the virtual workstations pulled the same IP address each time.

Hopefully this will become a non-issue in the near future since we are working to move the application over to our XenApp farm and publish it that way. At that point I won't care about the linked clones getting the a specific IP address and can just publish the application to the workstations and be done with it.

I hear ya mang, i wonder would the app be capable for something like a Terminal Server Config? is it graphics intensive, or is it just like an in-house app that needs to run on Desktop VMs? also is it individualized to user/mac account or is it just general purpose use (wasnt sure if your Linked Clones were Dedicated or Floating)
 
Linked Clones are a floating pool. The VMs aren't user specific per se and graphics don't really matter (they run in the field on basic workstations with just onboard video).

Really they are just used for training purposes for new users on the system. Originally we had it installed on the training room systems physically, but due to complaints because the application is "full screen only" and designed to be up at all times it was interfering with additional training room needs. So we virtualized it in view, and they have been very happy, both the trainers and anyone else using the training room. If the darn software didn't require static IP adresses.. this whole issue wouldn't really exist.
 
Back
Top