spdk vhost 能夠有效降低虛機IO到後端存儲的延時,用vhost 啟動盤的時候,實際使用中通常會碰到各種問題。
下面記錄下來,避免走彎路。
1. 盤的socket 不對
現象: 虛機裡無法挂到盤
2. vm 已經使用過
construct_vhost_blk_controller is deprecated, use vhost_create_blk_controller instead.
start vm
error: Failed to define domain from vhost_user_blk1.xml
error: operation failed: domain 'vhostgw-vm' already exists with uuid cb94538f-1467-4742-9076-bcdd96709443
- 更新 虛機.xml 裡面的vm 名稱;
- 更新對應的建立bdev 并且啟動的腳本;