Using and testing Wognath's suggestion I added to a Qemu VM in Advanced Settings -> Other parameters : -drive file=/tmp/imagefile.img .Wognath wrote:... Finally, a suggestion: Advanced/Other parameters -drive file=/dev/sdc is useful to get files into the VM. ...
I previously created with a script ( one can use the terminal instead ) the /tmp/imagefile.img , using the two lines suggested by step :
I only used mkfs.ext4 instead of mkfs,msdos and made it bigger with count=2048000 .step wrote:# dd bs=512 count=2880 if=/dev/zero of=/tmp/imagefile.img
# mkfs.msdos /tmp/imagefile.img
Once I booted an ISO with the Virtual Machine (Racy , Carolina ,TahrPup) there appeared a new drive sda which can be used to pass files by the Guest system .
From the Host , it can be accessed using in terminal the command :
Thank you step and Wognath for the tipsstep wrote:# filemnt /tmp/imagefile.img
It is wise to use this virtual drive one at a time by the Host or the Guest system . Modifing a text file with the virtual drive accesed by both Guest and Host turned that file into a corrupt one ...