
對於來賓計算機,我如何知道在 vm 中創建的文件(不是 VM 配置文件,而是我在使用 VM 時創建的實際文件)存儲在主機上的位置?虛擬機器的根目錄對應到我的主機的哪個目錄?
答案1
答案2
若要從命令列取得資訊(以 root 身分):
- 確定您要檢查的網域:
# virsh list --all Id Name State ------------------------------ - lab_master1 shut off - lab_worker1 shut off - lab_worker2 shut off - rhel9.2 shut off
- 從域'獲取文件位置信息RHEL9.2':
# virsh domstats rhel9.2 | grep path block.0.path=/var/lib/libvirt/images/rhel9.2.qcow2