mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-10 03:53:42 +08:00
Compare commits
9 Commits
v7.33
...
32ef7caa85
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32ef7caa85 | ||
|
|
7ebc976ae7 | ||
|
|
fa2dfbe6cb | ||
|
|
05cad738a8 | ||
|
|
c90a4f1677 | ||
|
|
f5aaa8a104 | ||
|
|
1a3eacbba7 | ||
|
|
8b8c75739c | ||
|
|
a46a10bbf0 |
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
@@ -20,5 +20,5 @@ jobs:
|
||||
uses: hadolint/hadolint-action@v3.1.0
|
||||
with:
|
||||
dockerfile: Dockerfile
|
||||
ignore: DL3008,DL3003,DL3006,DL3013
|
||||
ignore: DL3008,DL3003,DL3006
|
||||
failure-threshold: warning
|
||||
|
||||
@@ -15,7 +15,7 @@ ARG DEBCONF_NOWARNINGS="yes"
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
ARG DEBCONF_NONINTERACTIVE_SEEN="true"
|
||||
|
||||
RUN set -eu && \
|
||||
RUN set -eu && extra="" && \
|
||||
apt-get update && \
|
||||
apt-get --no-install-recommends -y install \
|
||||
jq \
|
||||
@@ -56,7 +56,8 @@ COPY --chmod=755 ./src /run/
|
||||
COPY --chmod=755 ./web /var/www/
|
||||
COPY --chmod=755 --from=builder /qemu-host.bin /run/host.bin
|
||||
COPY --chmod=744 ./web/conf/nginx.conf /etc/nginx/sites-enabled/web.conf
|
||||
ADD --chmod=775 https://raw.githubusercontent.com/sud0woodo/patology/refs/heads/main/patology.py /run/extract.py
|
||||
|
||||
ADD https://raw.githubusercontent.com/sud0woodo/patology/refs/heads/main/patology.py /run/extract.py
|
||||
|
||||
VOLUME /storage
|
||||
EXPOSE 22 139 445 5000
|
||||
|
||||
25
readme.md
25
readme.md
@@ -58,7 +58,7 @@ kubectl apply -f https://raw.githubusercontent.com/vdsm/virtual-dsm/refs/heads/m
|
||||
|
||||
##### Via Github Codespaces:
|
||||
|
||||
[](https://github.com/codespaces/new?repo=619260050&machine=basicLinux32gb)
|
||||
[`Click here to launch this container in the cloud!`](https://github.com/codespaces/new?skip_quickstart=true&machine=basicLinux32gb&repo=619260050&ref=master&devcontainer_path=.devcontainer.json)
|
||||
|
||||
## FAQ 💬
|
||||
|
||||
@@ -123,16 +123,21 @@ kubectl apply -f https://raw.githubusercontent.com/vdsm/virtual-dsm/refs/heads/m
|
||||
|
||||
### How do I pass-through a disk?
|
||||
|
||||
It is possible to pass-through a disk device directly, which can be useful when your host is a virtual machine, as it removes an extra layer and allows for easier image management on the host.
|
||||
It is possible to pass-through a disk device directly, which can be useful when your host is a virtual machine, as it removes an extra layer and allows for easier management. For use with physical disks this method provides little advantage and is not recommended.
|
||||
|
||||
For use with physical disks this method provides little advantage over using an image and is not recommended. You can add the device to your compose file like this:
|
||||
You can add the virtual device to your compose file like this:
|
||||
|
||||
```yaml
|
||||
devices:
|
||||
- /dev/sdc:/disk1
|
||||
- /dev/disk/by-uuid/12345-12345-12345-12345-12345:/disk2
|
||||
```
|
||||
|
||||
Replace `/dev/sdc` with the name of the disk. It needs to be totally empty (without any partition table) otherwise DSM does not always format it into a volume.
|
||||
The device needs to be totally empty (without any partition table) otherwise DSM does not always format it into a volume.
|
||||
|
||||
Make sure to bind the disk via its UUID (obtainable via `lsblk -o name,uuid`) instead of its name (`/dev/sdc`), to prevent ever binding the wrong disk when the drive letters happen to change.
|
||||
|
||||
> [!CAUTION]
|
||||
> Do NOT use this feature with the goal of sharing files from the host, they might all get lost without warning when DSM creates the volume.
|
||||
|
||||
### How do I change the amount of CPU or RAM?
|
||||
|
||||
@@ -251,14 +256,14 @@ kubectl apply -f https://raw.githubusercontent.com/vdsm/virtual-dsm/refs/heads/m
|
||||
|
||||
With this method, it is even possible to switch back and forth between versions while keeping your file data intact.
|
||||
|
||||
Alternatively, you can also skip the download and use a local file instead, by binding it in your compose file in this way:
|
||||
|
||||
If you don't have internet access, it's also possible to skip the download by setting `URL` to:
|
||||
|
||||
```yaml
|
||||
volumes:
|
||||
- ./DSM_VirtualDSM_42218.pat:/boot.pat
|
||||
environment:
|
||||
URL: "DSM_VirtualDSM_42218.pat"
|
||||
```
|
||||
|
||||
Replace the example path `./DSM_VirtualDSM_42218.pat` with the filename of your desired `.pat` file. The value of `URL` will be ignored in this case.
|
||||
after placing a copy of [DSM_VirtualDSM_42218.pat](https://global.synologydownload.com/download/DSM/release/7.0.1/42218/DSM_VirtualDSM_42218.pat) in the root of your `/storage` folder.
|
||||
|
||||
### What are the differences compared to the standard DSM?
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ fi
|
||||
|
||||
FN="boot.pat"
|
||||
if [ -d "/$FN" ]; then
|
||||
error "The file /$FN does not exist, please check that you mapped it to a valid path!" && exit 65
|
||||
error "The file /$FN has an invalid path!" && exit 65
|
||||
fi
|
||||
|
||||
FILE=$(find / -maxdepth 1 -type f -iname "$FN" | head -n 1)
|
||||
@@ -31,9 +31,12 @@ if [ -n "$URL" ]; then
|
||||
fi
|
||||
fi
|
||||
if [[ "${URL,,}" != "http"* ]] && [[ "${URL,,}" != "file:"* ]] ; then
|
||||
URL="file:///$BASE.pat"
|
||||
if [ ! -s "/$BASE.pat" ]; then
|
||||
error "File '$BASE.pat' does not exist!" && exit 65
|
||||
URL="file://$STORAGE/$BASE.pat"
|
||||
if [ ! -s "$STORAGE/$BASE.pat" ]; then
|
||||
URL="file:///$BASE.pat"
|
||||
if [ ! -s "/$BASE.pat" ]; then
|
||||
error "File '$BASE.pat' does not exist!" && exit 65
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user