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

pizza

Renowned Member
Nov 7, 2015
96
8
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!