Cannot change VM name during service deployment

Hi folks,

So I deployed a service using scvmm, it deployed just fine (I can connect to the VM just fine, everything I installed works). But when I try to deploy another VM from it on App Controller, the VM name field is filled with a random VM name and greyed out so I can't change it.

And this wouldn't be that annoying except that since it is larger than 15 characters, it prevents the deployment.

Does any of you guys have an idea?

Thanks !

Regards, AG

  • Changed type AGerard Monday, July 30, 2012 9:42 AM
July 30th, 2012 11:49am

Hi AG,

What error are you receiving in App Controller / VMM when attempting to deploy the service? In App Controller the Jobs view will show the error message returned from VMM, and for some errors you can see more detailed information in the VMM console.

There are 2 names that for virtual machines:

  • Virtual Machine Name
  • Computer Name

The Virtual Machine Name is auto generated and quite likely more than 15 characters, e.g. "Machine Tier-a9f55577-c3e8-4b14-b8a8-3a7055f46e81" - this won't block deployment of the virtual machine.

The Computer Name for a service can be automatically generated if it is set to *. Service templates though often follow a pattern e.g. Service0000. Both are helpful if you have made your service able to be scaled out. If the Computer Name is longer than 15 characters then you will receive an error from VMM.

Kind Regards,

Richard

Free Windows Admin Tool Kit Click here and download it now
August 1st, 2012 3:16am

Hi,

Since I reinstalled AC and deleted my service I can't really reproduce the error right now.

I do remember it was about the computer name being too long though, and I couldn't change it in AC.

I will try again and get back to you.

PS: Since we are talking about computer names in SC, I have an issue. VMM doesn't seem to "clean" the computer names out after I delete a VM or its deployment fails. That makes any VM creation with the same computer name fail. I checked my DB but couldn't find the items there. Any idea? If it can help I join my VMs to my domain in the template.

August 1st, 2012 10:53am

Hi ,

My friend faced same issue.

he forget to add OS profile, to resolve that just create New VM template with existing sysprep vhd and Add both Hardware profileand OS Profile .

then you can pass both VM Name and Computer name from App Controller.

if you are using service template and doing VM provisiong from App Controller then you can pass only computer name .

and

if you are using service template and doing VM provisiong from SCVMM then you can pass both VM Name and computer name .

Snap of VM template.

* will result in a randomly-generated hostname and

# wildcards are supported for incrementing numerical values.

  you can pass winvm-## in compuername if required computername is winvm-01,02 and so-on.

if you want to remove VM name from SCVMM DB, then use scvmm Powershell commands

$VM = Get-VM -Name "VM Name"
Remove-VM -VM $VM -Force

or

from SQL DB Table, you can see The VM Name.

Open SQL Server Management and drill down to the VirtualManagerDB tables node
Once there scroll down and find the tbl_WLC_VObject table, right click on it and choose Open Table:

in Name field , you can see the VM Name

link:->

http://blogs.technet.com/b/scvmm/archive/2009/04/30/fixing-an-incomplete-vm-that-s-stuck-in-the-creating-state.aspx

Free Windows Admin Tool Kit Click here and download it now
May 21st, 2013 1:10pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics