virsh editor

Carsten Aulbert carsten.aulbert at
Tue Mar 1 13:46:39 UTC 2011

Hu Jurgen

On Tuesday 01 March 2011 14:36:59 jurgen.depicker at wrote:
> I have a small question: whenever I fire up virsh and want to edit a
> domain, it launches vi and I would like it to be nano.  Although i
> configured .bashrc to contain EDITOR=/usr/bin/nano  and
> VISUAL=/usr/bin/nano , virsh seems not to care.  So I need to launch
> 'EDITOR=/usr/bin/nano virsh' to get my wish fulfilled.  What am I doing
> wrong?

Are you exporting the values in .bashrc?


export EDITOR=/usr/bin/nano


export EDITOR



More information about the ubuntu-server mailing list