5 virt-edit - Edit a file in a virtual machine
9 virt-edit [--options] -d domname file [file ...]
11 virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]
13 virt-edit [-d domname|-a disk.img] file -e 'expr'
17 virt-edit domname file
19 virt-edit disk.img [disk.img ...] file
23 You must I<not> use C<virt-edit> on live virtual machines. If you do
24 this, you risk disk corruption in the VM. C<virt-edit> tries to stop
25 you from doing this, but doesn't catch all cases.
29 C<virt-edit> is a command line tool to edit C<file> where each C<file>
30 exists in the named virtual machine (or disk image).
32 Multiple filenames can be given, in which case they are each edited in
33 turn. Each filename must be a full path, starting at the root
34 directory (starting with '/').
36 If you want to just view a file, use L<virt-cat(1)>.
38 For more complex cases you should look at the L<guestfish(1)> tool
39 (see L</USING GUESTFISH> below).
41 C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can
42 do that and much more.
46 Edit the named files interactively:
48 virt-edit -d mydomain /boot/grub/grub.conf
50 virt-edit -d mydomain /etc/passwd
52 For Windows guests, some Windows paths are understood:
54 virt-edit -d mywindoma