Jump to content
T65

[SOLVED] Missing/Invisible file on passthroughed unassigned hard disk

2 posts in this topic Last Reply

Recommended Posts

Dear community,

 

I have different VMs which are connected to the network and some not. I have set up a hard disk with drivers for graphics cards, ... and various programs I want to test in an isolated environment. If I configure a new VM, I passthrough the hard disk (Manual, /dev/disk/by-id/...) and install all necessary drivers from the hard disk without need of the internet.  BUT if I create a text file on the hard disk on VM "abc", shutdown VM "abc" and start another VM "def" - it looks like that this file is not (present/visible/written) on the hard disk in VM "def".

 

The hard disk is only used by one VM at a time! I removed the hard disk and connected it via USB. All data is available, but not always in the VMs. I tried different bus types (VirtIO, SATA, USB, ...), with no success.

 

Does anyone know the problem, perhaps a solution or should I avoid this procedure?

 

Thank you very much,

T65

Edited by T65

Share this post


Link to post

Dear community,

 

I read a little in the "libvirt" documentation and found maybe two useful additions for my issue. I changed the drivers cache and added the following tag to all of my virtual machine XML descriptions.

<disk ...>
  <driver ... cache='none'>
  ...
  <shareable/>
</disk>

In a first test it has already worked - see what the future holds.

 

Thank you very much,

T65

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.