WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: why!? mounting disks in host and guest is bad!!  (Read 5276 times)

Offline mocore

  • Hero Member
  • *****
  • Posts: 636
  • ~.~
why!? mounting disks in host and guest is bad!!
« on: January 30, 2022, 08:56:17 AM »
genraly searching ..
wrt : xigmanas > virtualbox > tc . see http://forum.tinycorelinux.net/index.php/topic,25522.0.html

i hapened to find this quote

You cannot mount a device in both the host and a virtual machine.. 
You will have to use a network file system such as NFS if you wish to share a"Folder" among multiple machines.

Please spend some time in the wiki. I think you need to read http://wiki.tinycorelinux.net/wiki:virtualbox


 ::) ... every time somone reads a mort wiki link in the forums ,   a kitten is killed (...in the metaverse)
/rant

afaik
mounting on host and guest IS posible !

 so you *can*  "mount a device in both the host and a virtual machine"

HOWEVER 2 systems (with R/W acess!) writing to the same disk IS (v x n)BAD  , resulting  inconsistencies .. data loss , nose deamons

one system with r/w  and one with r/o
 
 *should* be posible ! *afaik

but this must be configured manualy on each system
afaik as no method exists to check if disk in use by host or guest system and prevent mounting as rw



perhaps (vagly) related lynx

https://unix.stackexchange.com/questions/13786/virtualbox-mounting-guest-directory-on-host-computer

http://forum.tinycorelinux.net/index.php/topic,18806.0.html - VirtualBox Guest Additions
http://forum.tinycorelinux.net/index.php/topic,10877.15.html - virtualbox additions
« Last Edit: January 30, 2022, 09:07:11 AM by Rich »

Offline mocore

  • Hero Member
  • *****
  • Posts: 636
  • ~.~
Re: why!? mounting disks in host and guest is bad!!
« Reply #1 on: December 12, 2023, 10:18:09 PM »
...
Quote from: wiki.qemu.org/Documentation/9p_root_fs
It is possible to run a whole virtualized guest system entirely on top of QEMU's 9p pass-through filesystem (Documentation/9psetup) such that all guest system's files are directly visible inside a subdirectory on the host system and therefore directly accessible by both sides.

https://wiki.qemu.org/Documentation/9p_root_fs

https://github.com/v9fs