Citrix Xen: How to rename a vm via command line

root's picture

Many times you can find difficult to perform simple tasks if you do not have the appropriate documentation, or you are not searching it correctly :)
It happened to me the other day: I had to rename a vm in Citrix Xen without XenCenter. After few readings, I discovered!
Read on.

[root@XenGz xen]# xe vm-list
uuid ( RO)           : 8ed02ab3-854d-5b75-ee10-194ed204a241
     name-label ( RW): gzvm64
    power-state ( RO): halted
[root@XenGz ~]# xe vm-param-set uuid=8ed02ab3-854d-5b75-ee10-194ed204a241 name-label=prodvm64
[root@XenGz ~]#         [color=yellow]<- no output![/color]
[root@XenGz xen]# xe vm-list
uuid ( RO)           : 8ed02ab3-854d-5b75-ee10-194ed204a241
     name-label ( RW): prodvm64
    power-state ( RO): halted

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.

Recent content

root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root