Results 1 to 5 of 5

Thread: Virtualbox VM on external harddrive

  1. #1
    Join Date
    Jul 2016
    Beans
    8

    Virtualbox VM on external harddrive

    Hi,

    I have two harddrives in my Laptop. One permanently with the OS and one with an adaptor in the CD-Multi-Use tray.

    To save space on my internal harddrive I chose the external harddrive as location for some of my VMs.

    Everytime I start Virtualbox the VMs on the external harddrive are marked as "not accessable".
    The machine shows the following error
    Code:
      Runtime error opening '/media/****/ext*****/VM/V-ne****/V-ne****.vbox' for reading: -102 (File not found.).
    
     /build/virtualbox-NLghmB/virtualbox-6.0.6-dfsg/src/VBox/Main/src-server/MachineImpl.cpp[750] (nsresult Machine::i_registeredInit()).
    If I enter my harddrive in Nemo I cann access the VM.

    Is it possible to change this so that I dont need to access my harddrive through Nemo before using the VM?

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    16,563
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Virtualbox VM on external harddrive

    Yes. Mount the partitions you need in /etc/fstab.

    BTW, I wouldn't use /media/ for the mount point and hopefully, the file system is a Linux-based one. It is likely that the performance of the VMs will drastically improve, since gvfs mounts are usually slower than "real mounts."

  3. #3
    Join Date
    Jul 2016
    Beans
    8

    Re: Virtualbox VM on external harddrive

    The mountpoint was choosen by the system. I did not specify any mount path for this harddrive.

    Both Harddrives are BTRFS.

    I will try to add the mount to fstab

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    16,563
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Virtualbox VM on external harddrive

    I can't speak for virtualbox, but there was a warning against using btrfs storage for KVM VMs. https://serverfault.com/questions/85...lesystem-btrfs Redhat has deprecated btrfs support.

    /media/ is where gvfs mounts go. They are specifically for removable storage. According to the file system hierarchy standards:
    /media/
    Mount points for removable media such as CD-ROMs (appeared in FHS-2.3)
    https://wiki.debian.org/FilesystemHierarchyStandard
    Following the standards is the smart play.
    Last edited by TheFu; 3 Weeks Ago at 05:50 PM.

  5. #5
    Join Date
    Jul 2016
    Beans
    8

    Re: Virtualbox VM on external harddrive

    Quote Originally Posted by TheFu View Post
    I can't speak for virtualbox, but there was a warning against using btrfs storage for KVM VMs. https://serverfault.com/questions/85...lesystem-btrfs Redhat has deprecated btrfs support.

    /media/ is where gvfs mounts go. They are specifically for removable storage. According to the file system hierarchy standards:

    https://wiki.debian.org/FilesystemHierarchyStandard
    Following the standards is the smart play.
    The harddrive is removable.
    The slot for the CD-Drive is for multiple purposes. I can insert a CD-Drive, a harddrive tray or a second battery. So /media seems to be appropriate.
    Until now I didn't noticed any problems using VirtualBox on Btrfs.


    Adding the harddrive to fstab worked. Thanks!!

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
  •