VMware vSphere

 View Only
Expand all | Collapse all

Adding notes to VM?

  • 1.  Adding notes to VM?

    Posted Aug 01, 2006 03:35 PM

    I see VC2 has a column for notes, something we'd like to use. However I can't figure out how to add comments in this field.

    What obvious step am I missing?

    Thanks!

    Paul



  • 2.  RE: Adding notes to VM?
    Best Answer

    Posted Aug 01, 2006 03:38 PM

    You actually add the notes under the Summary Tab for the particular virtual machine. Once click the Summary Tab for the virtual machine, you will see a box down below called Notes.

    Michael



  • 3.  RE: Adding notes to VM?

    Posted Aug 01, 2006 03:47 PM

    Of course, couldn't be easier. So easy that it's not even in the manual.

    Thanks for your help. :smileyhappy:



  • 4.  RE: Adding notes to VM?

    Posted Aug 07, 2006 03:13 PM

    But there are at least two bugs with the notes:

    a) The notes are not saved if you switch to another VM after adding text. I first need to switch to another tab of the same VM (performance tab for example)

    b) Line breaks are displayed as squares. In the .vmx file in the annotations section they are stored as |0A (which is a ASCII 10 for UNIX-style line break). Even edited by hand to |0D|0A it is displayed as two squares.

    \--

    Johannes

    PS: VI Client 2.0.0 Build 27704



  • 5.  RE: Adding notes to VM?

    Posted Aug 07, 2006 03:44 PM

    On a[/b] you can also click down in the Recent Tasks[/b] pane.

    For b[/b] use shift+enter and it will put in real line breaks.



  • 6.  RE: Adding notes to VM?

    Posted Aug 07, 2006 04:40 PM

    For b[/b] use shift+enter and it will put in real

    line breaks.

    If any of the moderators are reading this thread, :smileyhappy: here's an item that may be worthy of some bonus points for mstahl75.

    The only pitfall, at least on my virtualized VC2, is that only the first line gets displayed on the "Virtual Machines" tab. It displays a tiny piece of the top of the second line's text, which is slightly annoying but not a show-stopper...



  • 7.  RE: Adding notes to VM?

    Posted Aug 07, 2006 05:20 PM

    Interestingly enough, now when I try it and go out to another machine the line breaks are converted to the squares. So that doesn't look like it is the best answer either :smileysad:



  • 8.  RE: Adding notes to VM?

    Posted Aug 07, 2006 06:09 PM

    Looking at the database, it stores that information in two fields, ANNOTATION and DESCRIPTION. Both of those are varchar[/b] in MSSQL. I think that might be what it causing the squares.



  • 9.  RE: Adding notes to VM?

    Posted Aug 08, 2006 09:01 AM

    On a[/b] it's enough just to press TAB button after editing note field.



  • 10.  RE: Adding notes to VM?

    Posted Aug 09, 2006 09:53 PM

    LoL, careful with quantity.

    I inadvertantly pasted a couple dozen lines of text into the notes box and hit the "Recent Tasks" box. The .vmx file got updated on the Host, but then the Virtual Center service exited with SQL INSERT error. It would not restart.

    I had to manually connect to the HOST with the VIC and edit the notes field down to size before the VC service would start.

    Apparently VC writes the vmx file, then tried to update the DB. Also clearly no bounds checking on the sql fields.... SQL injection anyone?

    (using vi on the vmx directly didn't do it either).



  • 11.  RE: Adding notes to VM?

    Posted Aug 10, 2006 01:19 PM

    Interesting. That field has a max of 255 characters so you would think the application would check for that.



  • 12.  RE: Adding notes to VM?

    Posted May 15, 2007 10:15 PM

    For b[/b] use shift+enter and it will put in real

    line breaks.

    Small issue I know, but has anyone had any luck getting the line breaks to work?



  • 13.  RE: Adding notes to VM?

    Posted Jun 13, 2007 09:33 PM

    The Notes section in the VM's Summary can be updated with information and it can be done via VMVI console and for a Powered on VM too.

    After keying the Notes, move to any other Tab of the vm (like Performance, Task & Events, ...) then the Virtual Machines gets Reconfigured hence saved. BUT should not move to another VM, this action is not allowed to save the notes.



  • 14.  RE: Adding notes to VM?

    Posted Jun 13, 2007 09:42 PM

    End of the issue.



  • 15.  RE: Adding notes to VM?

    Posted Jun 13, 2007 09:52 PM

    Well I wouldn't say that the notes section works logically and as one would expect... but, yes there are usable workarounds.



  • 16.  RE: Adding notes to VM?

    Posted Aug 17, 2006 12:50 AM

    Also, so I found out, the VM has to be off to add notes. Bummer that.



  • 17.  RE: Adding notes to VM?

    Posted Aug 17, 2006 01:42 AM

    The machine can be on or off. It shouldn't matter. I just tested it.



  • 18.  RE: Adding notes to VM?

    Posted Aug 22, 2006 08:07 PM


  • 19.  RE: Adding notes to VM?

    Posted Aug 22, 2006 10:08 PM

    Another interesting thing to add. If you have notes on a template and convert that template into a VM then the notes get lost.



  • 20.  RE: Adding notes to VM?

    Posted Aug 24, 2006 04:22 AM

    It doesn't work for me.....if the VM is running, as soon as I move to another VM and then come back its gone.

    If the VM is off at the time of the Note being added, it remains. These VM's are on a 2.5.3 ESX server. That may be the problem.



  • 21.  RE: Adding notes to VM?

    Posted Aug 24, 2006 01:17 PM

    I just testd on a 2.5.3 server and when I try to add a note it gives an error: Invalid Virtual Machine Configuration[/i]. That happens when I tab off, like you could to get notes to stick on 3.0. It looks like 2.5.3 doesn't support notes, though I'm not sure why since it doesn't appear to actually update the vmx file, just the database.



  • 22.  RE: Adding notes to VM?

    Posted Jan 23, 2007 11:37 PM

    I used to have similar problem but if I move to a different tab (like alarms or permissions) within the VM where notes are being added, they (the notes) will be saved. Do not move to another VM when trying to save notes because they (the notes) will be lost.



  • 23.  RE: Adding notes to VM?

    Posted Jun 18, 2007 07:57 AM

    I looked at the Notes field, but stuck to custom fields, they work much more easily, and are easier to report on from SQL.

    I record the following infor for all of my servers:

    Application/Service

    Category (i.e. Dev, Production or Contingency).

    Comments

    Approver Team

    Maintenance Window

    This way we can track services and easily identify who may be impacted if a VM or host fails, and makes life easier in creating change records that may impact the host.

    An undocumented feature is that the Custome fields are always organised alphabetically not in the order you create them.