M
M
Mihnovich_AE2017-02-06 12:48:48
XenServer
Mihnovich_AE, 2017-02-06 12:48:48

How to forward a physical SSD to a virtual machine in XenServer 7?

Is it possible to forward a physical SSD in XenServer not as a virtual disk?
I did it according to the instructions from Habrahabr, but in this version, the SSD is seen as a "Block storage device", and because of this, TRIM does not work.
Here's what I did:

1) Create a folder for block devices:

mkdir /srv/block-devices


2) Now we make it an SR of type udev with content-type=disk:
xe sr-create name-label="Physical drive" name-description="Physical drives to connect to VM" type=udev content-type=disk device-config:location=/srv/block-devices


3) We make a symbolic link to the previously created folder on the SSD:
ln -s /dev/nvme0n1 /srv/block-devices/nvme0n1


Next, we do Rescan in the "Physical drive" device we created, we see the added SSD. Open storage devices on VM and add SSD.

I repeat, TRIM does not work in this option, since the device is seen as a "Block storage device". Are there any other options for forwarding?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question