I didn't follow recent changes related to these 3 types of names. I don't know that we introduced a new flag to control that. It makes sense to me for user to explicitly control VM's display name, however, for host name and instance name, it would become a burden for user to pick up a name explicitly that won't run into conflicts and is qualified name on the network, if we do allow user to pick names for that, we need to help maintain the semantic of having unique and qualified names for VM to be running smoothly on the network at run time. And especially for instance name, since its name convention is assumed by VM Sync logic in CloudStack, any change to it without updating VMSync logic may break hypervisor view and CloudStack view apart.
kelven From: Min Chen <min.c...@citrix.com<mailto:min.c...@citrix.com>> Date: Monday, October 15, 2012 2:43 PM To: Kelven Yang <kelven.y...@citrix.com<mailto:kelven.y...@citrix.com>>, #Cloud - Engineering <engineer...@cloud.com<mailto:engineer...@cloud.com>> Cc: "cloudstack-dev@incubator.apache.org<mailto:cloudstack-dev@incubator.apache.org>" <cloudstack-dev@incubator.apache.org<mailto:cloudstack-dev@incubator.apache.org>> Subject: RE: Display Name vs. Host Name in Instance View Thanks Kelven for clear clarifications. Based on your comments: In 3.0.x, host name is given by default as UUID name for user Vms, for system Vms, host name is given the same as its instance name The UI screenshot attached previously is wrong, right? Those are user VMs, host name are shown as the same as display name. -min From: Kelven Yang Sent: Monday, October 15, 2012 2:38 PM To: Min Chen; #Cloud - Engineering Subject: Re: Display Name vs. Host Name in Instance View There are 3 types of names in CloudStack system. Display Name: as its name suggests Host name: a name will be used by guest VM to identify itself on network. If guest OS is linux, you can see it at your login prompt. If guest OS is windows, it is supposed to become its NetBIOS name (computer name). Host name can be used to form fully qualified Domain Name, but itself won't show as that. In 3.0.x, host name is given by default as UUID name for user Vms, for system Vms, host name is given the same as its instance name Instance name: name like I-xx-xx, r-xx-xx, these are name used internally by CloudStack to match a VM object in CloudStack DB with the VM at hypervisor side through naming match rules. It's name convention is used by CloudStack VM-Sync process (not supposed to be exposed to end user) Kelven From: Min Chen <min.c...@citrix.com<mailto:min.c...@citrix.com>> Date: Monday, October 15, 2012 2:25 PM To: Kelven Yang <kelven.y...@citrix.com<mailto:kelven.y...@citrix.com>>, #Cloud - Engineering <engineer...@cloud.com<mailto:engineer...@cloud.com>> Subject: RE: Display Name vs. Host Name in Instance View Then which code generated this hostname? Is it always the same as display name? During provisioning vm instance, I only provided display name through UI. Your explanation makes sense to me, feel that hostname should be something like full-qualified domain name. But see my screenshot, it does not show that way though. Thanks -min From: Kelven Yang Sent: Monday, October 15, 2012 2:21 PM To: Min Chen; #Cloud - Engineering Subject: Re: Display Name vs. Host Name in Instance View Display name, as its name suggests, it is used for display purpose only. Can be of any arbitrate string Host Name is used to identify the machine on the network. Its name should follow rules from underlying network, for example, on a windows network, following NetBIOS naming convention. Kelven From: Min Chen <min.c...@citrix.com<mailto:min.c...@citrix.com>> Date: Monday, October 15, 2012 2:14 PM To: #Cloud - Engineering <engineer...@cloud.com<mailto:engineer...@cloud.com>> Subject: Display Name vs. Host Name in Instance View Hi there, Can somebody explain to me what is the difference between DisplayName and HostName column in VM instance view? See below screen shot: Here they shows same name for my provisioned instance. Host Name to me is a bit confusing term, since it may refer to the host where VM is provisioned. [cid:image001.png@01CDAAE3.80309CA0] Thanks -min