VirtualBox

Ticket #12025 (closed defect: fixed)

Opened 8 months ago

Last modified 6 months ago

'Solid State Disk' setting not detected by Linux guest => fixed in SVN

Reported by: jimav Owned by:
Priority: major Component: virtual disk
Version: VirtualBox 4.2.16 Keywords:
Cc: Guest type: Linux
Host type: Windows

Description

If the "Solid State Disk" check-box is checked for a VM's (vdi) disk, a Linux guest still thinks it is a rotational disk. This prevents the guest OS from issuing Trim commands, etc. The client is running Ubuntu 13.04, kernel 3.8.0

The actual physical disk in the host is in fact an SSD (though that should not matter).

STEPS TO REPRODUCE:

  1. Install Ubuntu 13.04 in guest
  2. In Settings->Storage->Controller:SATA->xxx.vdi, check the "Solid-state drive" box.
  3. Start the guest and open a terminal window
  4. Cat /sys/block/sda/queue/rotational

Actual results: 1

Expected results: 0

The same Ubuntu system correctly detects SSDs on bare metal, so VirtualBox must be (not) doing something which prevents the guest from recognizing the SSD designation.

I will attach the host Log file and a copy of the output from "dmesg" in the guest showing detection of /dev/sda

Attachments

VBox.log Download (102.1 KB) - added by jimav 8 months ago.
dmesg_output_in_guest.txt Download (32.4 KB) - added by jimav 8 months ago.

Change History

Changed 8 months ago by jimav

Changed 8 months ago by jimav

comment:1 Changed 8 months ago by jimav

FWIW, the linux kernel may expect SSDs to report a rotational speed of 1 RPM.

See  http://lxr.linux.no/#linux+v3.10.5/include/linux/ata.h#L914
in function ata_id_is_ssd()

comment:2 Changed 7 months ago by aeichner

  • Summary changed from 'Solid State Disk' setting not detected by Linux guest to 'Solid State Disk' setting not detected by Linux guest => fixed in SVN

Thanks for the report. We already report a rotational speed of 1 but newer Linux kernels requires at least ATA major version 7 to evaluate this field. Will be fixed in the next maintenance release.

comment:3 Changed 6 months ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fix is part of VBox 4.3.2.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use