使用 copy-out 命令将虚拟机文件系统中的文件复制到主机上:

><fs> copy-out /path/to/vm/file /path/to/host/directory
其中 /path/to/vm/file 是要导出的虚拟机文件的路径,/path/to/host/directory 是要保存到主机上的目录路径。例如,/tmp 目录。

当完成操作后,务必断开 guestfish 和虚拟机文件系统的连接:

><fs> umount /
><fs> exit
注意,使用 guestfish 导出文件时,请务必小心操作并备份重要数据

  

posted on 2023-05-18 18:14  属于我的梦,明明还在  阅读(121)  评论(0)    收藏  举报