VirtualBox

Opened 11 years ago

Closed 10 years ago

#12025 closed defect (fixed)

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

Reported by: Jim Avera Owned by:
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 (2)

VBox.log (102.1 KB ) - added by Jim Avera 11 years ago.
dmesg_output_in_guest.txt (32.4 KB ) - added by Jim Avera 11 years ago.

Download all attachments as: .zip

Change History (5)

by Jim Avera, 11 years ago

Attachment: VBox.log added

by Jim Avera, 11 years ago

Attachment: dmesg_output_in_guest.txt added

comment:1 by Jim Avera, 11 years ago

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 by aeichner, 11 years ago

Summary: 'Solid State Disk' setting not detected by Linux guest'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 by Frank Mehnert, 10 years ago

Resolution: fixed
Status: newclosed

Fix is part of VBox 4.3.2.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use