Proxmox and using Samba for shared storage

    So I recently invested in a new storage server and set it up as a NFS server so I could set up HA to prevent downtime with my VM’s when I had maintenance to do on my Proxmox Hosts. The problem is that if I use iSCSI it sends the drive as a block device that a single VM can use and the problem with NFS for me is that it was extremely slow (need to do more research on this) but when the server was setup with samba, I was able to get 113MB/s both ways to the box from my desktop (8x 300GB SATA drives in raid 10). So why not just use samba with proxmox?

First off, if you decide to use samba with Proxmox you need to know you will be unable to run openvz containers from this storage. This is because samba does not understand the Linux file and group permission system. This type of storage can be used for all other features though.

So to get started, we need to have a samba share somewhere. Lets pretend ours has the following information:

  • Server: //10.0.0.10/SambaShare
  • Username: share
  • Password: share$4

The first thing we do is we create the folder this will be mounted to. If there is no folder to mount to when the system starts up, it will fail to mount and you will be in a world of hurt.
[code]
mkdir /mnt/SambaShare
[/code]

Now you need to setup the mount in fstab so it will auto mount every boot, so open up /etc/fstab and add the following:
[code]
//10.0.0.10/SambaShare /mnt/SambaShare cifs username=share,password=share$4 0 0
[/code]

This will make it so every start, the samba share will mount to the folder you created. Now because I need this share across a few servers, I just do the same thing to every server. This way the mount is in the same location per system.

To have the samba system mount to the server without restarting it, just run sudo mount and it will mount the share.

Now you just need to login to Proxmox, and add the storage to the nodes so it can be used for VM’s. go to Datacenter > Storage > add and fill in the information, then just press add.

Proxmox Add Storage

After that verify the mount works, and then you are good to go!

!!WARNING!!
Make sure that your Samba server DOES NOT GO OFFLINE while VM’s are running on it. If this happens, your VM’s will freeze, and the IO Wait on your server will skyrocket until the system locks up. So make sure your samba share is 100% configured, and ready to go BEFORE you deploy it. I personally am working on a boot time script that will pause the boot process if the share does not mount, and it will stay paused until it successfully mounts. This way I can prevent the system from writing to non-shared storage, and VM’s thinking there vhd images vanished off the face of the earth.

102 thoughts on “Proxmox and using Samba for shared storage

  1. Jesus

    No me funciono el comando //10.0.0.10/SambaShare /mnt/SambaShare cifs username=share,password=share$4 0 0

    Me da el siguiente error: No such sile or directory

    Reply
  2. cave

    hi,

    I’d like to add, please run the sambe in a VZ container and mount the directory of your samba to the container and add there the samba share.

    do not put samba on your host.

    just my 2 cents

    Reply
  3. eddie

    A question, samba is the “system in the Proxmox VM or external extra system”? Samba system sharing out the resource in its system, then Proxmox mount it ? so it would be the IP address to mount.
    Can proxmox use its host resource to “add storage for share” I am kinda confuse.
    Example”
    mkdir /tmp/testfolder Directory “/tmp/testfolder”
    and then how can I share this Directory?

    thanks

    Reply
  4. Pingback: Proxmox and using Samba for shared storage – Server Network Tech – 2nd chapter! (at) atmaja

  5. binance

    Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

    Reply
  6. Tresurhunting the most hard to find modern products.

    Our true punishment is the guilt we carry daily. We create
    prisons in our minds where we relive our bad deeds over and over again and thus let them define us.

    But as creators, we can also emancipate ourselves from it.
    If we make amends and start contributing positively and transcending our past selves,
    we’ll find true liberation. It won’t be handed to us,
    we’ll find it ourselves in the joy and peace we’ll experience in life exactly as it unfolds,
    without trying to alter its path, hurt others, control or possess anything.

    https://www.bruedd.com

    Reply
  7. Allen Checchi

    Ready to stop guessing with your traffic? Vantovo’s AI finds people already showing interest in your keywords and locations, then sends them to your site. Start with a free 7-day trial—no contracts, cancel anytime. Most clients see more leads and sales.

    https://cutt.ly/myyJfD8a

    Reply
  8. Lonna Castleberry

    Our clients don’t just see more traffic, they see more of the right traffic: people whose behavior already matches what they’re searching for and where they’re located. Try Vantovo free for 7 days and see the difference in your leads.

    https://blankslatelife.com

    Reply
  9. Dorcas Worthen

    Our clients don’t just see more traffic, they see more of the right traffic: people whose behavior already matches what they’re searching for and where they’re located. Try Vantovo free for 7 days and see the difference in your leads.

    https://cutt.ly/myyJfD8a

    Reply
  10. Ingeborg Hupp

    Get visitors who fit your business, not just any visitors. Vantovo’s AI uses behavior signals, keyword matching, and location precision to deliver more relevant traffic. Free 7-day trial with no contracts and cancel-anytime flexibility.

    https://cutt.ly/cyyJfLnp

    Reply
  11. Max Langdon

    What if your website traffic actually matched your ideal customer? Our AI scans behavior across a large network, locks onto visitors who fit your keywords and target locations, and routes them to you. Try it free for 7 days with no contracts and cancel whenever you want.

    https://cutt.ly/cyyJfLnp

    Reply
  12. Alisha Wertheim

    Set your keywords. Pick your location, country, state, city, or zip. Vantovo’s AI takes it from there, scanning a network of thousands of sites and routing matched visitors to your business around the clock. Your first 7 days are free.

    https://blankslatelife.com

    Reply
  13. Brooke Astudillo

    What if your website traffic actually matched your ideal customer? Our AI scans behavior across a large network, locks onto visitors who fit your keywords and target locations, and routes them to you. Try it free for 7 days with no contracts and cancel whenever you want.

    https://cutt.ly/tyo4iPzs

    Reply
  14. Napoleon Bozeman

    Real-time keyword scoring. City-to-zip-code location targeting. A network scanning 700K-1.5M visitors a day. That’s the engine behind Vantovo, and it’s free to test on your own site for 7 days, no contract attached.

    https://blankslatelife.com

    Reply
  15. Saul Gardener

    What if every visitor sent to your site had already shown relevant interest? That’s the idea behind Vantovo. Keyword + location matching powered by adaptive AI. Free 7-day trial, no contracts, cancel at any time. Clients often see stronger leads and sales.

    https://cutt.ly/typIAjQ7

    Reply
  16. Shane Carington

    Get visitors who already match your keywords and target locations—without the usual ad platform complexity. Vantovo’s adaptive AI handles the targeting and optimizes daily. Try it free for 7 days. No contracts. Cancel at any time.

    https://blankslatelife.com

    Reply
  17. Hubert Young

    What if every visitor sent to your site had already shown relevant interest? That’s the idea behind Vantovo. Keyword + location matching powered by adaptive AI. Free 7-day trial, no contracts, cancel at any time. Clients often see stronger leads and sales.

    https://cutt.ly/ayaEeR1H

    Reply
  18. Barbra Kelso

    Let the AI do the heavy lifting. You set the keywords and target locations—Vantovo finds the matching visitors, routes them to your site, and keeps optimizing. Most clients see growth in leads and sales. Start free for 7 days with zero commitment.

    https://cutt.ly/Lyphv8AH

    Reply
  19. Lester Cunniff

    Vantovo doesn’t just send traffic—it sends matched traffic. The system scans behavior, locks onto people aligned with your keywords and locations, and improves automatically. Free 7-day trial, no contracts, cancel whenever you like. Clients typically see better leads and sales.

    https://cutt.ly/GysO0ABu

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *