qemu-nvme
qemu-nvme copied to clipboard
How do I reload the block drive I created when the VM restarts?
Hello, I have successfully initialized a PBLK Target in the VM and formatted it to read and write properly. However, I was puzzled that when I closed the virtual machine and opened the virtual machine again with the following command, I could not find the hard disk I created previously. How can I solve this problem? Thanks.
The command I used to restart the virtual machine:
sudo ./qemu-system-x86_64 -m 4G -enable-kvm ubuntu.raw -blockdev ocssd,node-name=nvme01,file.driver=file,file.filename=ocssd.img -device nvme,drive=nvme01,serial=deadbeef,id=lnvm