[SOLVED] Change VM virtio0 to scsi0 to enable SSD emulation

pizza

Renowned Member
Nov 7, 2015
96
9
73
I have migrated older VM Ubuntu machines to a thin-LVM storage. To make fstrim work (enabling SSD emulation), the virtio0 disk must changed to scsi0. I editted the VM conf file, but the VM will not start because the disk is not found.
 
For trim to work, you don't need SSD emulation but you need to enable the Discard option for the virtual drive (and setup trim/discard inside the VM of course).
"on VirtIO Block drives is only supported on guests using Linux Kernel 5.0 or higher", according to the documenation. How old is your Ubuntu?
 
  • Like
Reactions: pizza
Ubuntu 18.04 with kernel 4.15
For trim to work, you don't need SSD emulation but you need to enable the Discard option for the virtual drive (and setup trim/discard inside the VM of course).
"on VirtIO Block drives is only supported on guests using Linux Kernel 5.0 or higher", according to the documenation. How old is your Ubuntu?
Ubuntu 18.04 with kernel 4.15, discard is enabled