Description of the virtual machine

Hello

Can someone tell me please how to add the description of a virtual machine using client vspher.

You should be able to add the description "Annonations" tab in the "remarks" section of the summary of the VM tab.

The search function in the vSphere client also has the ability to search the virtual machines using these Notes.

Post edited by: vGuy

Tags: VMware

Similar Questions

  • Write notes or description of the virtual machine

    Hello

    I need to write notes or description of the virtual machine to understand the purpose of the virtual machine. Where can I find this option in vCenter?

    We are using vMware vCenter Server version 4.0.0 build 208111 Update 1 and ESX version 4.0.0 build 208167 update 1.

    Thank you

    Kind regards

    NcmsVmware

    u see an option of notes on the summary of a vm tab

  • Best way to remove a part of the description of the virtual machine?

    Hello

    With much help from Lucd, I created a script to add the version of the tools in the description.  It works fine, but the problem is that once he has run and added the version if it is run again, it simply adds the version once again.  I want to run this script on a schedule, once a night so little time I'll have a full description of the version of the tools

    I have an if - execution of another OK but I want to do is remove the text of version pre-existing tools and then add the new.  See where I've 'done' on the fi.  It is where I want to get magic that willdo what I have to do.  I can not just blow all of the description because people have a habit of describing their servers it

    $vm = get - machine virtual VMNAME

    $description = $vm. Description

    $date = get-date-format d

    $version = ($vm |) Get - View).config.tools.toolsVersion

    If ($description - match 'Tools worm') {virtual Set-machine - VM $vm - Description ("Already done" + "" + $description)-confirm: $false}

    Else {virtual Set-machine - VM $vm - Description ("Tools $date $version worm." + "" + $description)-confirm: $false}

    Any suggestions?

    This is the date format. With my locale, I 31/03/2009 and you have 31/03/2009.

    So, if you use the regular expression

    '^Tools ver at (\d{2}/\d{2}/\d{4}) (\d+)\. (.*)'
    

    This should work for you use the date format.

  • How to display the version of the tools in the description of the virtual machine?

    Hello

    I can view the version of the tools with this

    get-vm VMName | % { get-view $_.ID } | select Name, @{ Name="ToolsVersion"; Expression={$_.config.tools.toolsVersion}}

    and I can insert text into the description field with this

    Get - vm vmname name | set-vm-description "blah blah".

    But I am struggling to understand how to enter the toolsversion in the description!  I know it is not difficult, but I'm a newbie to script.

    Thank you!

    You can do it like this

    $vm = Get-VM 
    $version = ($vm | Get-View).config.tools.toolsVersion
    Set-VM -VM $vm -Description $version -Confirm:$false
    

    or as a one-liner

    Get-VM  | Set-VM -Description ($_ | Get-View).config.tools.toolsVersion -Confirm:$false
    
  • How to set vm-description/notes and get the name of the data store, where the virtual machine

    Hello guys,.
    I have vCenter Orchestrator 4.1.1 build 733 installed and it works fine, but I need your help for the following two issues:
    (1) I want to put the description/notes of a virtual machine using a workflow. But I have not found any API useful to create this workflow (I don't want custom attributes, see attachment for details).

    (2) how can I get the name of the data store, where the virtual machine? I need this name for a workflow.
    I need your help.
    Thanks in advance!

    With regard to the notes of the VM, the following code (see enclosed package) can do this:

    var oldNotes = vm.summary.config.annotation;
    If (oldNotes == null) {oldNotes = ' ' ;}}
    System.log ("Notes of VM current:" + oldNotes);
    Now put the new notes:
    Start by creating a context
    Context of var = new VcVirtualMachineConfigSpec();
    Update the annotation with the new value property
    configSpec.annotation = notes;
    launch the task to reconfigure the virtual machine with the new context
    NOTE: This is sure to apply with a virtual machine under tension
    var task = vm.reconfigVM_Task (configSpec);

    And, in what concerns the VM information, take a look at the workflow of the library: \Library\vCenter\Virtual Machine management\Others\Extract virtual machine information

  • I have a problem with the password on the virtual machine.

    Original title: passwords & Windows 7 virtual machines

    Hello

    I am running windows 7 pro 32 bit, with a windows XP virtual to develop existing software.

    The hosts & VM connect to a file on the network server. The file server is running windows XP, the network is a simple working group. I've manually created a limited user on the file server with the same name and password as my logon to windows 7.

    Today, I changed my password to connect to windows 7, which I am not as often as the security people recommend that I do. I changed the password on the file server to synchronize and also the password on the virtual computer.

    The virtual machine is maintaining however, somewhere the old password, which crashes, and I get the logon screen. If I enter the new password it connects then. I went into the settings of the VPC and delete the credentials saved, without effect. I removed "enable on startup" of integration features, also without effect.

    So I get the password in the VPC, but then I have to enter the password to access the network share. Or I can enter the password each time I start the virtual machine. The second is less painful, but still annoying.

    Any thoughts?

    Hello

    Thanks for posting in the Microsoft Community.

    According to the description, it looks like you are facing a problem with windows Virtual PC.

    The question you posted would be better suited in the TechNet Forums; We recommend that you post your question in the TechNet Forums to get help:

    http://social.technet.Microsoft.com/forums/en-us/w7itprovirt/threads

    If you need Windows guru, do not hesitate to post your questions and we will be happy to help you.

  • Could not enumerate the virtual machines that are used as models

    Hey guys,.

    I have a simple script that collects information from a virtual computer. Unfortunately, I'm getting a lot of mistakes, he doesn't pull out information if the virtual machine is used as a model.

    $date = get-Date-format-M - d - yyyy

    Import-Csv C:\test\servers_mate.csv - UseCulture | %{

    Get-VM-name $_. Name |

    Select Name,

    @{N = 'Center'; E = {Get-Datacenter - VM $_______ |} {{Select - ExpandProperty name}}.

    @{N = "Cluster"; E = {Get-Cluster - VM $_______ |} {{Select - ExpandProperty name}}.

    Host, NumCpu, MemoryGB,

    ProvisionedSpaceGB, Powerstate,

    @{N = "Path"; E = {}

    $current = get-view $_. ExtensionData.Parent

    $path = $_. Name

    {}

    $parent = $current

    if($parent.) Name - only "vm") {$path = $parent. {Name + "\" + $path}

    $current is get-view $current. Parent

    } While ($current. Parent - no $null)

    [channel]: join ('-',($path.)) Split('\') [0.. ($path). Split('\'). (Count-2)]))

    }},

    FolderId,

    @{N = "Manufacturer"; E = {(Get-VMHost-Name $_.)} Host). Manufacturer reference}},

    @{N = ' model'; E = {(Get-VMHost-Name $_.)} Host). Model}},

    @{N = "ProcessorType"; E = {(Get-VMHost-Name $_.)} Host). ProcessorType}}

    } | Export-Csv "C:\test\servers-vcenter-servers-vmpath-$date.csv" - NoTypeInformation - UseCulture

    the output current is like that.

    NameData CenterClusterHostNumCpuMemoryGBProvisionedSpaceGBPowerStateFolder pathFolderIdManufacturerModelProcessorType

    I just also want to collect the same information, even if the virtual machine is used as a model. Introduction 1 additional column is perhaps something like below. So we can clearly identify if it is a virtual machine or be used as a model? Thank you.

    NameData CenterClusterHostNumCpuMemoryGBProvisionedSpaceGBPowerStateFolder pathFolderIdManufacturerModelType of processorVirtual MACHINE or template

    Erros I receive.

    Get - VM: get-VM VM with name 03/08/2015-12:40:44

    "xxxx" was not using the specified

    filter (s).

    Online: 2 char: 5

    + Get-VM-name $_. Name |

    +     ~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: ObjectNotFound: (:)) [Get - VM], VimException)

    + FullyQualifiedErrorId: Core_OutputHelper_WriteNotFoundError, VMware.VimA

    utomation.ViCore.Cmdlets.Commands.GetVM

    Try something like this

    Import-Csv C:\test\servers_mate.csv - UseCulture | %{

    Notice-EEG - ViewType VirtualMachine-filter @{'Name' = $_.} Name} | %{

    $esx = get-view-Id $_. Runtime.Host

    $_ | Select Name,

    @{N = 'Template'; E={$_. Config.Template}},

    @{N = 'Center'; E = {Get-Datacenter - VM $_.} Name | {{Select - ExpandProperty name}}.

    @{N = "Cluster"; E = {Get-Cluster - VM $_.} Name | {{Select - ExpandProperty name}}.

    @{N = 'Host'; E = {$esx. Name}},

    @{N = "NumCpu"; E={$_. Config.Hardware.NumCpu}},

    @{N = "MemoryGB"; E = {[int]($_.)} Config.Hardware.MemoryMB/1KB)}}.

    @{N = "ProvisionedSpaceGB"; E = {($_.Summary.Storage.Committed+$_.Summary.Storage.Uncommitted)/1 GB)}},

    @{N = "Powerstate"; E={$_. Runtime.PowerState}},

    @{N = "Path"; E = {}

    $current = get-view-Id $_. Parent

    $path = $_. Name

    {}

    $parent = $current

    if($parent.) Name - only "vm") {$path = $parent. {Name + "\" + $path}

    $current is get-view $current. Parent

    } While ($current. Parent - no $null)

    [channel]: join ('-',($path.)) Split('\') [0.. ($path). Split('\'). (Count-2)]))

    }},

    @{N = "FolderId"; E={$_. Parent.ToString ()}}.

    @{N = "Manufacturer"; E = {$esx. Hardware.SystemInfo.Vendor}},

    @{N = ' model'; E = {$esx. Hardware.SystemInfo.Model}},

    @{N = "ProcessorType"; E = {$esx. Hardware.CpuPkg [0]. Description}}

    }

    }

    The error you see seems to indicate that there is an entry in the CSV file for a nonexistent VM.

  • Create the virtual machine with the ISO mounted CDROM

    Community of hell!

    Working on the vmcreate.pl script to add the creation of CD-ROM with iso data store, I got stuck on the error

    ' Invalid device configuration: ' VirtualSCSIControllerOption.numSCSICdroms '.

    I'm sure I'm missing something obvious, or this option but may not understand how to deliver this.

    I created a cdrom as follows (below test I create any CDROM, no iso file to reduce the number of layers):

    my $ BPPRR m_backing_info = VirtualCdromRemotePassthroughBackingInfo->new)

    deviceName = > ' '.

    exclusive = > 0,

    );

    my $description = description->new(label = > 'CDROM', summary = > 'cdddrom');

    my $connectable = VirtualDeviceConnectInfo->new(allowGuestControl = > 1,)

    connected = > 0,

    startConnected = > 1,

    ( State = > inmates ' / ' );

    my $ BPPRR m = VirtualCdrom->new(backup = > $BPPRRm_backing_info,

    connectable = > $connectable,

    controllerKey = > 0,

    deviceInfo = > $description,

    key => 1,

    ( unitNumber = > 1 );

    VirtualDeviceConfigSpec->new(device = > $BPPRRm,

    operation = > VirtualDeviceConfigSpecOperation->new()'add'));

    Did anyone have working example to create the virtual machine with CDRom?

    Andrey

    If someone will find this useful I followed this route Re: vmreconfig.pl add the device CD/DVD fails if the virtual machine created with vmcreate.pl

    and also I found good examples of what I need to in VMUtil.pm in cmd vmsphere libraries.

    Andrey

  • NPIV enabled on the virtual machine, but not seen in the comments

    Hello

    I have a 5.0 with an HBA qlogic esxi. I created a VM and rhel is installed.

    Then I activated the npiv on this virtual machine and saw that it generated node WWN and port WWN.

    However, when I logged in the comments, I am not able to see the names of ports in

    / sys/Class/scsi_host/Host {n} / device / fc_host:host {n} / port_name

    Are there additional configuration on the side of the virtual machine to allow the WWNS within the guest?

    Thanks in advance.

    Hello

    This is a very detailed description of all the required tasks for use with VMware NPIV.

    NPIV: N-Port ID Virtualization

    Kind regards

    Ralf

  • Impossible to reconfigure the Virtual Machine error

    Hi all

    Newbie here.  I am trying to convert my Windows XP Version 2002 SP3 (it's a virtual machine) to my new IMac with Fusion 4.1.1 (536016).

    When I run the migration agent, everything is fine and he says his will last about 2 hours.  20 minutes or so, I have error with "unable to reconfigure the target Virtual Machine.   My PC is up to date with Windows updates and pretty vanilla.

    Here are the last few lines of my log file:

    EIP backtrace [16] 0x101362c3 ? GetThreadId@System@Vmacore@@YA_JXZ
    _endthreadex eip 0x781329bb backtrace [17]
    _endthreadex eip 0x78132a47 backtrace [18]

    [08-03-2012 07:18:10.124 01264 verbose "PropertyProvider"] ASSIGN RecordOp: info.transferRate, task-1
    [08-03-2012 07:18:10.124 01264 verbose "PropertyProvider"] ASSIGN RecordOp: info.completeTime, task-1
    [08-03-2012 07:18:10.124 01264 verbose "PropertyProvider"] ASSIGN RecordOp: info.error, task-1
    [08-03-2012 07:18:10.124 01264 verbose "PropertyProvider"] ASSIGN RecordOp: info.state, task-1
    [08-03-2012 00276 verbose 'Ufa.HTTPService' 07:18:10.124] HTTP: Complete (processed 1315 bytes of response)
    [08-03-2012 07:18:10.124 01264 info "App"] [task, 374] task [1] - ERROR - convert: converter.fault.ReconfigurationFault
    {(converter.fault.ReconfigurationFault)
    dynamicType = < unset >
    faultCause = (vmodl. NULL in MethodFault),
    Description = "Preparation of Reconfiguration failed",
    MSG = ""
    }
    [08-03-2012 03472 verbose 'HttpSvc.HTTPService' 07:18:10.358] User agent is 'VMware-customer '.
    [08-03-2012 03472 verbose 'HttpSvc.HTTPService' 07:18:10.358] HTTP response: customer: NeedsContentLength: true UnderstandsChunking: false CanKeepAlive: true (PresetContentLength-1)

    Any suggestions for what may be the problem are greatly appreciated.

    Thank you

    Jim

    There is no configuration file .vmx in the packaging of the Virtual Machine,

  • Impossible to get 'notes' of the virtual machine

    I tried to use a powershell script to get information from the virtual machine. I can get VMHost, VMname and GuestVersion using the script in the following, but failed to get the notes of the virtual machine. Anyone know why I can't get notes, please help me with that. Thank you in advance.

    report = @)
    foreach ($vmView in (Get-View - ViewType VirtualMachine))
    {
    $report += $vmView. Select-Object @{Name = "$vmhost"; Expression = {($vmView.Runtime.Host Get-View).} Name}},
    @{Name = "VMName"; Expression = {$_.} Name}},
    @{Name = 'Notes'; Expression = {$_.} Description}},

    @{Name = "GuestVersion"; {Expression = {$vmView.Guest.GuestFullName}}
    }
    $report | Sort-Object VMName-descending | Export-Csv "d:\vm_GuestVersion.csv" - NoTypeInformation

    There is no need to do it with the cmdlet Get-View.

    You can do

    $report = @()foreach ($vm in Get-VM){    $report += $vm | `        Select-Object @{Name="VMHost"; Expression={($_.Host).Name}},            @{Name="VMName"; Expression={$_.Name}},            @{Name="Notes"; Expression={$_.Description}},            @{Name="GuestVersion"; Expression={$_.Guest.OSFullName}}}$report | Sort-Object VMName -Descending | Export-Csv "d:\vm_GuestVersion.csv" -NoTypeInformation
    

    If you want to do with the cmdlet Get-View for any reason, you can do

    $report = @()
    foreach ($vmView in (Get-View -ViewType VirtualMachine))
    {
        $report += $vmView | `        Select-Object @{Name="VMHost"; Expression={(Get-View $vmView.Runtime.Host).Name}},
                @{Name="VMName"; Expression={$_.Name}},
                @{Name="Notes"; Expression={$_.Config.Annotation}},
                @{Name="GuestVersion"; Expression={$vmView.Guest.GuestFullName}}
    }
    $report | Sort-Object VMName -Descending | Export-Csv "d:\vm_GuestVersion.csv" -NoTypeInformation
    

    But note that as you need a view of the GET each time for the host name, performance will suffer.

  • Physical disk how can I add in the Virtual Machine?

    I am trying to set up a network of storage, but I discovered it is there is a limitation for the addition of physical hard disks in the virtual machine.

    I have 1 virtual hard disk for the operating system (SCSI), an invited so I try to add more than 4 disks, but it should not add more than 3. They showed that (IIRC).

    I try to add 4 x 1 TB as physical hard disk in virtual machine hard disks, but it says that I must remove one to add.

    1. in the settings of the Virtual Machine, is there a difference between (SCSI) (IDE) and why are the physical disks (IDE)?

    2. What is the limitation of total hard drives under the VM settings, four?

    Johwwy

    physical disks can be detected such as IDE or SCSI - depends on the drivers used by the host

    SATA in ide-compat mode is used as IDE

    SATA AHCI mode is detected as SCSI

    It is possible to rewrite the descriptions after their creation.

    It is a little advanced - see my notes

    http://sanbarrow.com/VMDK-basics.html#changeadapter

    for a start, it may be necessary to also change the geometry... ask first so uncertain.

    I think the limit of physical disks that can be attached to a virtual machine is 64 = 4 x 15 - scsi and IDE 4-disc drives

    _________________________

    VMX-settings- WS FAQ -[MOAcd | http://sanbarrow.com/moa241.html]- VMDK-manual

  • PowerCLI can not change the IP address of the virtual machine

    I am relatively new to Powershell and PowerCLI (as in 1 week ago relatively new) and I'm falling through the procurement process about 12 VMS on a recurring basis for one class.  I can deploy VM template very well, however I would attribute a specific IP addresses the VM once they are done sysprep'ing.  I use Powershell 1.0 and PowerCLI 4.0.1 Windows 2003 VM (also vcenter in this box).  The virtual machine, I am the deployment is also Windows 2003 and sysprep very well.  This is the section in my script that I use to set the IP address:

    $net1 = 'LAN '.

    game-vmguestnetworkinterface - VmGuestNetworkInterface $net1 - vm P2V_student06 - hostuser root - hostpass * guestuser - administrator - guestpass * - static - ippolicy - netmask 255.255.255.0 - Gateway 192.168.20.1 ip 192.168.20.126

    Here is the output of get-vmguestnetworkinterface for this virtual machine:

    VMId: VirtualMachine-vm-578

    Subnet mask: 255.255.255.0

    NicId: VirtualMachine-vm-578/4000

    Name: LAN

    IPPolicy: Dhcp

    IP: 192.168.20.188

    DNS: {192.168.20.2}

    Passerelle_par_defaut: 192.168.20.1

    Description: Intel(r) PRO/1000 MT Network Connection

    Mac: 00-50-56-B7-36-45

    RouteInterfaceId:

    DnsPolicy: Dhcp

    WinsPolicy: Dhcp

    Victories:

    When I run the script it gives the following result:

    Name                                        Port                                        User

    -


    -


    -


    192.168.20.35 443 administrator

    Game-VMGuestNetworkInterface: cannot bind parameter 'VmGuestNetworkInterface '. Cannot convert value 'LAN' type 'VMware.VimAutomation.Types.VMGuestNetworkInterface '. Error: "Invalid typecast"System.String"'VMware.VimAutomation.Types.VMGuestNetworkInterface'."

    At C:\powercli_scripts\test_setup_vsphere_4.0_class.ps1:6 char: 53

    + set-vmguestnetworkinterface - VmGuestNetworkInterface & lt; & lt; & lt; & lt; LAN - vm P2V_student06 - hostuser root - hostpass * guestuser - administrator - guestpass * - static - ippolicy - netmask 255.255.255.0 - Gateway 192.168.20.1 ip 192.168.20.126

    The virtual machine was originally the standard 'connection to the Local network' for the name of the network adapter.  I thought that there might be problems with spaces so I renamed it 'LAN' and it still error.  Can anyone think what I am doing wrong?  This almost seems to be a bug any.

    Thanks in advance for any help you can offer.  I am pulling my hair being so closely how it makes me NUTS!

    Best regards

    Eric Steed

    Instead of filling the variable followed by setting the network card by specifying the variable can you just try the interface and piped to the set command?  I have repro had your problem, but got it to work in this way:

    Get-VMHost MY_ESX_HOST | Get - vm MY_VM | Get-VMGuestNetworkInterface |? {$_.name - eq 'Connect to the Local network'} | Game-VMGuestNetworkInterface - static IPPolicy - gateway 192.168.1.1 - Netmask 255.255.255.0 - Ip 192.168.1.5 - Verbose

    To meet the "necessary powershell in the prompt is", the answer is no.  You use the powercli command creates a file of commands, uses vix, or the equivalent of copy-vmguestfile or vmscript-invoke to call the file of orders for the customer... that's a CMD file on the guest.

    Now, there is a problem where vmguestnetworkinterface controls were assuming that was the name of the interface "Local Area Connection *" so naming anything other than that would break the script.  Not sure if this is yet, but I can check a little later.

    Hope this helps,

    Alex.

  • ESXi 4.0 on Dell 1850 this host doesn't support VT you have configured the virtual machine to use an operating system 64-bit client.

    Hello

    , I have in 3 data centers Dell 1850, identical hardware configurations.  I installed Esxi 4.0 to the ISO from site Web de VMware dell custom help. He is successfully installed on all servers, without error at all. I've updated them all to the last generation, using VMware vSphere Client. I have a problem with one of the server when I want to use 64-bit machines, he realizes: this host does not support VT you have configured the virtual machine to use an operating system 64-bit client.  However, this host is not able to run 64-bit virtual machines or virtual computer has 64-bit support disabled. For more information, see http://www.vmware.com/info?id=152. I don't understand why I got this, servers are identical, versions of BIOS, firmware, and all updates are the same. There is also a warning in the configuration tab, on the State of health link.

    Thanks in advance for any helpful suggestion.

    Yes according to the description of CPU, it seems that they do not support intel VT:

    http://Ark.Intel.com/product.aspx?ID=28016&processor=&spec-codes=SL7DX, SL7HH, SL7PF, SL7TD, SL8KQ

    Please give points for any helpful answer.

  • What windows key you use to activate one of the virtual machines on my Hyper-V on Windows Server 2012 R2 Std

    I installed my Hyper-V role and now wants to activate one of the virtual machines, but the key is not recognized.  Should what key I use?

    Hello

    Your question is beyond the scope of this community.

    I suggest that repost you in the Forum of Hyper-V on Technet.

    https://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?Forum=winserverhyperv

    Or:

    TechNet Server forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

Maybe you are looking for

  • Critical failure DirectX - DXDiag shows no problem, used for end-user TIME, nothing works.

    Without apparent reason, Direct X has suddenly stopped working. I can't play Solitaire or the Sims 2. I followed the previous advice on this issue, and with the help of dxdiag shows no problem, reinstall he didn't help not, using the runtime for the

  • "no nat-traversal crypto isakmp" after restart

    Hello With the version of the Software ASA 8.0, we noticed that whenever restart us tha device, the configuration line: No encryption isakmp nat-traversal appears in the configuration. It is very annoying, because this NAT - T obviously does not work

  • Sync blackBerry Smartphones to two laptops?

    I have a laptop of society on Enterprise Server, and BB is enterprise enabled, so that they are in harmony. I ALSO want to synchronize BB with a personal laptop (not on the company's server).  Life would be so much easier with all my calendars synchr

  • Can I add the e-mail notification to multiple user login screen in windows 7

    Under xp with outlook express logon screen showed that if the emails were wating, this feature seems to be missing with live mail in windows 7

  • Lightroom updates

    HelloI have a full subscription to CC. Lightroom is currently 2015 (Oct) 2015. I want to upgrade to 2015.5 but Cloud Creative app gives me any upgrade. I tried to uninstall Lightroom and then download and install it again, but it of always the year 2