vdsm / virtual-dsm

Virtual DSM in a Docker container.
MIT License
2.64k stars 353 forks source link

How can I reset the network settings in DSM? Can no longer start vDSM, container runs but QEMU crashes. Was previosuly working fine. #794

Closed relink2013 closed 2 weeks ago

relink2013 commented 2 months ago

Operating system

Unraid 7.0.0

Description

I was messing around with various network settings because I was getting horrible performance transferring files between the HostOS and vDSM. But I think I screwed something up royally. But I dont know how to restore the default networking settings without booting into vDSM itself. Real units just have a reset button on the back.

Docker compose

docker run -d --name='virtual-dsm' --net='eth0' --ip='172.17.89.12' --pids-limit 2048 -e TZ="America/New_York" -e HOST_OS="Unraid" -e HOST_HOSTNAME="SERVERUS" -e HOST_CONTAINERNAME="virtual-dsm" -e 'TCP_PORT_5000'='5000' -e 'TCP_PORT_5001'='5001' -e 'DISK_SIZE'='1000G' -e 'RAM_SIZE'='24G' -e 'CPU_CORES'='12' -e 'DHCP'='Y' -e 'DISK_FMT'='qcow2' -e 'TCP_PORT_6522'='6522' -e 'DISK2_SIZE'='30000G' -e 'device_cgroup_rules'=''\''c : rwm'\''' -e 'MAC'='redacted' -e 'GUEST_SERIAL'='redacted' -e 'HOST_SERIAL'='redacted' -e 'HOST_MAC'='redacted' -e 'HOST_MODEL'='DS918+' -l net.unraid.docker.managed=dockerman -l net.unraid.docker.webui='http://[IP]:[PORT:5000]' -l net.unraid.docker.icon='http://172.17.89.10:8384/server-icons/V-DSM-dark%20copy.png' -v '/mnt/zfs-ssd/appdata-2/virtual-dsm/':'/storage':'rw' -v '/mnt/zfs-array/vDSM-Storage':'/storage2':'rw' --device='/dev/kvm' --device='/dev/vhost-net' --stop-timeout 60 --cap-add NET_ADMIN --device-cgroup-rule='c : rwm' 'vdsm/virtual-dsm:latest' 4e32c3dba9eb25ad17fa77836bd2e139f9ac6ea83a7d7b5eb6589812adb7a5b4

Docker log

❯ ERROR: Forcefully terminating QEMU process, reason: 0... [ OK ] Started Synology log notification service. [ OK ] Started Synology Building Tasks Restore for Storage Manager. [ OK ] Started Check Synology HotSpare Config. [ OK [ 22.813293] 8021q: 802.1Q VLAN Support v1.8 [ 22.814103] 8021q: adding VLAN 0 to HW filter on device eth0 ] Started Synology filesystem check service. [ OK ] Started SecureSignIn's service unit. Starting Synology volume service... [ OK ] Started rc.network. Starting Check if network is ready... [ OK ] Reached target Network. Starting Synology SCGI SocketIO... Starting OpenBSD Secure Shell server... Starting Redis data structure server for webapi... Starting PPPoE... Starting findhost daemon... [ OK ] Started PPPoE. [ OK ] Started findhost daemon. [ OK ] Started Redis data structure server for webapi. [ OK ] Started StorageManager's service unit. [ OK ] Started Synology SCGI. Starting Synology SCGI... [ OK ] Started OpenBSD Secure Shell server. [ OK ] Started Synology space table update for Storage Manager. [ 22.970873] BTRFS: device label 2024.06.23-17:19:12 v69057 devid 1 transid 10066 /dev/sdb1 [ 22.978421] BTRFS info (device sdb1): enabling auto syno reclaim space [ 22.979436] BTRFS: device label 2024.08.10-01:38:57 v69057 devid 1 transid 228 /dev/sdc1 [ 22.981277] BTRFS info (device sdb1): use ssd allocation scheme [ 22.982231] BTRFS info (device sdb1): turning on discard [ 22.983060] BTRFS info (device sdb1): using free space tree [ 22.983907] BTRFS info (device sdb1): using free block group cache tree [ 22.984939] BTRFS info (device sdb1): has skinny extents [ OK ] Started Check if network is ready. [ OK ] Reached target Network is Online. [ 22.991351] BTRFS info (device sdc1): enabling auto syno reclaim space [ 22.992410] BTRFS info (device sdc1): use ssd allocation scheme [ 22.992906] BTRFS info (device sdb1): BTRFS: root of syno feature tree is null [ 22.994527] BTRFS info (device sdc1): turning on discard [ 22.995498] BTRFS info (device sdc1): using free space tree [ 22.996318] BTRFS info (device sdc1): using free block group cache tree [ 22.997342] BTRFS info (device sdc1): has skinny extents Starting NFS Mount Daemon... Starting broadcast synorelayd boot state... Starting Traffic Control... Starting Issue VDSM ready for intialization before boot-done.... Starting NTP client/server... Starting Avahi daemon... Starting VPN Client... Starting Set Policy Route... Starting Entry for WS-Transfer and WS-Discovery Server... Starting register ds region by ip... Starting NFS status monitor for NFSv2/3 locking.... Starting NetBIOS name server... Starting Run sysnotify migration[ 23.019428] BTRFS info (device sdc1): BTRFS: root of syno feature tree is null sc... string and network are ready... [ OK ] Started NFS Mount Daemon. [ OK ] Started Entry for WS-Transfer and WS-Discovery Server. [ OK ] Started VPN Client. [ OK ] Started NFS status monitor for NFSv2/3 locking.. [ OK ] Started NTP client/server. [ OK ] Started Traffic Control. [ OK ] Started Set Policy Route. [ OK ] Started Avahi daemon. [ OK ] Started Run sysnotify migration scr...il string and network are ready. [ OK ] Started broadcast synorelayd boot state. [ OK ] Started Issue VDSM ready for intialization before boot-done.. Stopping Synology Task Scheduler Vmtouch... [ OK ] Stopped Synology Task Scheduler Vmtouch. [ OK ] Started Synology Task Scheduler Vmtouch. Starting Synology Task Scheduler Vmtouch... [ OK ] Started NetBIOS name server. [ OK ] Started WS-Discovery Server. Starting WS-Discovery Server... [ OK ] Started Synology volume service. Starting Synology volume mount post hook... [ OK ] Started QuickConnect's service unit. Starting SupportService's service unit... [ OK ] Stopped Support Service Remote Action Client. [ OK ] Started Support Service Remote Action Client. Starting Support Service Remote Action Client... [ OK ] Started Support Service Online Updater. Starting Support Service Online Updater... [ OK ] Started SupportService's service unit. [ OK ] Started register ds region by ip. Stopping Synology Task Scheduler Vmtouch... [ OK ] Stopped Synology Task Scheduler Vmtouch. [ OK ] Started Synology Task Scheduler Vmtouch. Starting Synology Task Scheduler Vmtouch...

Screenshots (optional)

No response

kroese commented 2 months ago

You can remove the file with the .system extension in your /storage folder. This will trigger a re-install of DSM, so basicly a factory reset (without wiping the data).