## centos是你客户机的名字 virsh edit centos ## 修改之后要保存 virsh dumpxml centos > centos.xml 修改了之后要把你保存的快照重新拍摄,不然端口就又回去了