Question: how-to connect a smb/cifs share to a vm to have access to install binaries?

Hi - I'm new to Proxmox,

My challenge is to set up an isolated VM.
Isolated from our internal network so you only can access it using PVE VM Console. Not Network connection.

I've setup a new Windows VM in Proxmox.
For security reasons it has no connection to our internal network.
Once I'd setup my new Windows VM I need to install additional software and Tools.
My Idea was to access our internal Install Share "indirectly".
So I tryed on stage one to connect my PVE Node to this Install share, using a connection to a smb/ciph share.
I've entered user credentials to get access there.
So far so good.

Unfortunatly I didn't find a setting in Proxmox to show me the content folders and/or install executables here.
As a result my planed second step to have this storage be mountable to a VM temporarily failed.
Like inserting an ISO Image, run setup.exe, unmount Image/share.

Is there a way to make this working that way or do I need to setup a temporary Network connection to that VM with my internal network?
Regards Rainer
 
Hi Reiner,

you might want be able to achieve what you describe with virtiofs, which does not use the network stack [0]. This should work out-of-the-box for Linux guests with a Kernel >5.4. For Windows you will need some extra tweaking -- but it does not seem impossible, see [1] for details.

Just another thought -- what about setting up the VM with network to easily get your programs, and just by then disconnect it from the network?

[0] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_virtiofs
[1] https://github.com/virtio-win/kvm-guest-drivers-windows/wiki/Virtiofs:-Shared-file-system#guest
 
Or put everything you need for your (future) VMs on an ISO (using a system that has network access) and upload that to Proxmox. I'm assuming your VM has or can have a virtual optical drive.
 
  • Like
Reactions: nkSupport
Hi Reiner,

you might want be able to achieve what you describe with virtiofs, which does not use the network stack [0]. This should work out-of-the-box for Linux guests with a Kernel >5.4. For Windows you will need some extra tweaking -- but it does not seem impossible, see [1] for details.

Just another thought -- what about setting up the VM with network to easily get your programs, and just by then disconnect it from the network?

[0] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_virtiofs
[1] https://github.com/virtio-win/kvm-guest-drivers-windows/wiki/Virtiofs:-Shared-file-system#guest
Thanks as well - I'll take a closer look soon.