getsolus / getsolus/packages

Virtual Machine Manager: Error attempting to add pool via samba share

Open
#531 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
141
Forks
146
Avg merge
11h 7m
Merged PRs (30d)
407

Description

Summary

I am unable to add a cifs / samba storage pool to Virtual Machine Manager, an error appears

Steps to reproduce
  1. Click Create New VM
  2. Click Browse next to the storage path input
  3. Click + to create a new storage pool, choose Type netfs Network Exported Directory
  4. Enter a target path (I chose /home/tracey/libvirt_images)
  5. Format auto (the only choice), Host Name htpc, source path isos
Expected result

I am able to create the pool based on the samba share folder

Actual result

An error appears

Error creating pool: Could not start storage pool: internal error: Child process (/usr/bin/mount -o nodev,nosuid,noexec htpc:isos /home/tracey/libvirt_images) unexpected exit status 32: mount: /home/tracey/libvirt_images: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program.
dmesg(1) may have more information after failed mount system call.

dmesg does not have any information about this.
I have other pools that were successfully created based on filesystem directories.

Environment
  • Is system up to date?
Repo

Unstable

Desktop Environment

Plasma

System details

Operating System: Solus 4.4
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.5.5-258.current (64-bit)
Graphics Platform: X11
Processors: 16 × 11th Gen Intel® Core™ i7-11800H @ 2.30GHz
Memory: 62.5 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2
Manufacturer: Dell Inc.
Product Name: XPS 17 9710

Other comments

According to https://libvirt.org/storage.html under "Network filesystem pool", cifs is a valid filesystem type.
cifs-utils is installed, system is up to date

I verified I can browse the share with the guest user with

smbclient //htpc/isos -U guest 

I noticed in the error that it is using "htpc:isos" rather than "//htpc/isos", which is what I'd expect for mounting a samba share

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin by reproducing the Virtual Machine Manager storage-pool flow described in the steps and inspect the reported mount command. Compare the generated htpc:isos source with the expected CIFS share syntax; done means creating the pool from the Samba share succeeds without the reported mount error.

Written by the indexing model from the issue text.

Assessment

Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.