Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Problem sharing files

  1. #11
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Problem sharing files

    Best not to mix unrelated issues in the same thread.

    Kdenlive is off-topic. Virtualization is only on-topic if you make it so. DEs and fonts are definitely not on topic for file sharing.

    Cough ... https://www.virtualbox.org/manual/ch...#sharedfolders explains.
    Last edited by TheFu; December 5th, 2023 at 02:46 PM.

  2. #12
    Join Date
    Dec 2009
    Beans
    6,771

    Re: Problem sharing files

    I truly hope I'm not wasting your time but I don't understand your original post.
    sharefolder has been created on Kubuntu
    You don't create a shared folder on a VBox guest. You create it on the host through VBox for the VBox guest VM.

    You can create a mount point for that host shared folder on the guest VM but if you created the share on the host graphically and specified that mount point you would not end up with these permissions:
    drwxrwxr-x 2 satimis satimis 4096 Dec 1 15:54 /home/satimis/sharefolder/
    You would end up with these permissions:
    drwxrwx--- root vboxsf ....
    You can make it look like your stated permissions but only if you did not specify an automount in the VBox host and added an entry into your Kubuntu VM fstab file that looks something like this:
    Code:
    HostShareName /home/satimis/sharefolder vboxsf uid=satimis,gid=satimis,umask=0002 0 0
    Is that what you did?

  3. #13
    Join Date
    Apr 2006
    Beans
    3,923

    Re: Problem sharing files

    Hi all,

    Problem solved with following steps:

    On Konsole of Kubuntu VM

    $ sudo nano /etc/rc.local

    Add following content on it
    Code:
    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.
    
    mount -t vboxsf Transfer_Folder /home/satimis/sharefolder
    
    exit 0
    save rc.local

    Again on Konsole run;
    Code:
    $ sudo chmod +x /etc/rc.local
    Reboot VM

    Now this time the Transfer folder of the Host will be automatically connected. File sharing between Host and VM works without problem.

    I have performed these steps long time ago to setup file sharing between Host and VM. I almost forgot.

    If I recall correctly at that time the VMs were Gentoo and Fedora

    Regards

  4. #14
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Problem sharing files

    That's one method. Not what I'd use, but if it works ... fine.

    Our you could add 1 line to the /etc/fstab inside the VM that looks like this:
    Code:
    Transfer_Folder   /home/satimis/sharefolder   vboxsf     defaults 0 0
    BTW, I wouldn't mount it under any user's HOME. This introduces issues. Mount it under /media or /d/host and use a symbolic link from ~/sharefolder to /d/host to make access from your HOME easier. Keep the easy access, but prevent the problems.

  5. #15
    Join Date
    Apr 2006
    Beans
    3,923

    Re: Problem sharing files

    Quote Originally Posted by TheFu View Post
    That's one method. Not what I'd use, but if it works ... fine.

    Our you could add 1 line to the /etc/fstab inside the VM that looks like this:
    Code:
    Transfer_Folder   /home/satimis/sharefolder   vboxsf     defaults 0 0
    BTW, I wouldn't mount it under any user's HOME. This introduces issues. Mount it under /media or /d/host and use a symbolic link from ~/sharefolder to /d/host to make access from your HOME easier. Keep the easy access, but prevent the problems.
    I did it on Kubuntu Konsole;
    $ mkdir /home/satimis/sharefolder

    I used this method about ten years ago, simple and straight forwards. This method doesn't require installing additional software.

  6. #16
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Problem sharing files

    Nothing I wrote in #14 requires additional software either.

    You do have to install the vbox guest additions, but that's required regardless.
    NFS does require the nfs-server and nfs-client software, but those are so core to Linux at this point, it is like saying you won't install core-utils with ls, mv, cat, less, vi, on a system. Whatever, we all have our individual limitations. NFS works not just between the host and guest, but anywhere on the LAN. I understand you have 2 different computers, both running VMs. Wouldn't it be good to allow access to the storage from every VM?

  7. #17
    Join Date
    Apr 2006
    Beans
    3,923

    Re: Problem sharing files

    Quote Originally Posted by TheFu View Post
    - snip -
    I understand you have 2 different computers, both running VMs. Wouldn't it be good to allow access to the storage from every VM?
    In the past all VMs on my PCs accessed the central storage via LAN, the router. Lately I changed the setup. The central storage is now on an external 4TB USB SSD. I just plug in the 4TB USB SSD to the PC which needs to access the data in the central storage. It is fast and exact.

    I just copy the necessary data to the Tranfer folder. Also it is possible to allow all VMs directly access the external 4TB USB SSD
    Last edited by satimis; December 6th, 2023 at 04:03 PM.

  8. #18
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Problem sharing files

    That is where we differ. My storage is network shares, available to all my machines without having to plug it into a machine to be available.

    All my computers, at least my server, workstation, and network attached printer/scanner, are on all the time, so that they are available to anything else I have, all the time. When I need something, I don't want to have to walk to another room, connect it up, and turn it on, waiting to get to it's resources.

    From what you said, and what you described, you cannot start anything concurrently, because you have to physically plug in that external drive into that specific computer before it starts. (Or it will fail.) That is a concept of a "portable device" that you carry from one device to another to share those files, but not really that of an always-available "shared resource" device, where those files are there to use all the time from different devices.

    You understand that right?

    Even then... On my machines, I actually use 3"-6" USB extension cables, because I've learned that it is easier to throw those away when a USB connector gets worn out and starts failing, than having a connector fail on on a Computer or external drive, and have to think about either having the permanent port replaced, or having to replace the device. USB ports are convenient, but they wear out. I tend to reconfigure things often for different scenarios in what I am doing. I want to protect the investment I have with my computers over the years.

    On my workstation, then I have hot-swap drive bays, and my USB drive caddies, where I can just plug drive in to work from, when I need to, without having to crack open the case. Connectors on SATA cables also tend to wear out.

    I think I remember that TheFu has his servers in a 'bread rack' used as his server rack, with extension cables plugged into his computers, so he doesn't have to remove the computers from it to get to the connectors behind.

    All my machines have KVM. My ISO's and templates are centralized network resources on two of those. I do most of my VM test-cases on those two KVM Hosts, but are available from all.

    You have been around for a long time. You are not new to Ubuntu. You do have quite some skills. I know this. My hat tipped to you for some of the things you drive yourself to do.

    I know you have a dual-boot, with two installed Ubuntu installations... One with KVM, and the other with VirtualBox. You know what we are talking about. You can do things like you want, and how you please. Do what works for you. But, at least to me, some things just make sense, and some do not.

    Just some things to thing about...
    Last edited by MAFoElffen; December 6th, 2023 at 05:19 PM.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  9. #19
    Join Date
    Apr 2006
    Beans
    3,923

    Re: Problem sharing files

    Quote Originally Posted by MAFoElffen View Post
    - snip -

    From what you said, and what you described, you cannot start anything concurrently, because you have to physically plug in that external drive into that specific computer before it starts. (Or it will fail.) That is a concept of a "portable device", but not of a "shared resource device".

    - snip -
    That is the 4TB external USB SSD which I'm running.

    SanDisk 4TB Extreme Portable SSD
    https://www.amazon.com/SanDisk-4TB-E...dcf1838ee&th=1

    The running computer can detect the portable SSD immediately after plugin. It doesn't require rebooting the computer.

    It is very convenient for sharing data. I only have 2 PCs, not hundreds of PCs in multi-storey building. To serve hundreds of PCs I need a central storage room, not a central storage device.
    Last edited by satimis; December 6th, 2023 at 05:40 PM.

  10. #20
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Problem sharing files

    You can quibble back-and-forth about the unknown details you haven't shared between us all in unending posts, but from what you have shared...

    RE: https://ubuntuforums.org/showthread....7#post14168057

    You said you mount it to your /home/satimus/sharefolder... Fine. I applaud the permanent mount point, instead of using /media for a permanent mount. That is sometime I highly recommend to others.

    That is not there if that drive is not connected when you start up the machine or login... Unless:
    - You either add it in the fstab like TheFu said in his post, or...
    - You mount that in after you login.

    The mount tag is there always, but not always populated... It is a portable, not always available mount point. Becaseu you quickly answered him back, that you carry it from machine to machine, like he didn;t know all the details. (He didn't because you didn't share those 'yet'.) When you plug a portable USB external drive in, the default behavior is automount at /media... unless you manually mount it otherwise. <-- Like you seem to be doing.

    I don't know all that you do, I am not there to see that. You tend to not share everything, so that the whole picture of that is known, so we have to guess at the possibilities of what might work for you. I try to remember what you say you have, and what you have shared in what you do, when trying to help you...

    I honestly try to do what I can to help you. I sincerely care that you get answers for what you want to do...
    Last edited by MAFoElffen; December 6th, 2023 at 05:43 PM.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •