于 2010年11月03日 22:42, Eric Blake 写道:
On 11/02/2010 09:34 PM, jclift(a)redhat.com wrote:
> On 03/11/2010, at 2:17 PM, Osier Yang<jyang(a)redhat.com> wrote:
>> how about just to change it into:
>>
>> - % virsh dumpxml dom> domain.xml
>> - edit domain.xml
>> - % virsh create< domain.xml
>
> It's a thought, but still isn't making it completely clear.
>
> If we were to change it like this:
>
> virsh dumpxml dom> domain.xml
> vi domain.XML
> (make changes to the XML using your text editor)
> virsh create< domain.xml
Or maybe:
virsh dumpxml dom> domain.xml
vi domain.XML # or other text editor of your choice
virsh create< domain.xml
I prefer this one, but not sure if '#' is fine for
non-programmer.
>
> That would probably work. The "vi" here is only useful because people will
recognize it easily.
That, and vi is the only editor required by POSIX, unless you count ed
(rms explicitly requested that emacs not be part of POSIX, and nano,
gedit, kate, and so forth are all relative whippersnappers in the editor
market). But whatever you do, please don't change it to 'notepad.exe
domain.xml' :)
urgh, never.. :-)
- Osier