1

Vbox 下虚拟机第二次崩溃了, 我也崩溃了

 3 weeks ago
source link: https://www.v2ex.com/t/1034217
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Vbox 下虚拟机第二次崩溃了, 我也崩溃了

V2EX  ›  程序员

Vbox 下虚拟机第二次崩溃了, 我也崩溃了

  KINGWAY · 2 小时 51 分钟前 · 354 次点击

家中 32G 内存 mini pc 上 win11 装了个 vbox, 然后虚拟了 debian12, 通过 docker 部署了以下服务, 并通过 cf 的 tunnel 实现了外部访问(虽然速度慢点, 但是还挺稳定)

portainer reminder Kasm syncthing immich nextcloud vraya bitwarden wg-easy gitea

关键是莫名其妙崩溃了 2 次, 每次都是显示 initramfs 运行 fsck, 大概 10 次可以正常重启,但来不及做复制/快照就彻底崩溃了, 无论如何运行都会显示大量的 drdy err, 以及 I/O error, dev sda, sector 0 op 0x1:(write) flags 0x800 phys_seg 0 prio class 2. 导致都要重装.

现在累了,想请教下除了 vbox, win11 内置的 linux 子系统值得考虑吗? 前提是万一崩溃,是否可以进入镜像读取内部资料?

9 条回复    2024-04-20 20:19:08 +08:00

winson030      2 小时 44 分钟前 via iPhone

Vbox 是 virtual box 吗?我觉得 VMware 值得一用,很稳定。我的是 win10 ltsc

wheat0r      2 小时 36 分钟前

该不会是你硬盘有问题吧

KINGWAY      2 小时 30 分钟前

@wheat0r #2 应该不是我的硬盘有问题, 因为宿主机 win11 完全正常.

KINGWAY      2 小时 22 分钟前

刚最后一次尝试了 fsck, 结果系统起来了, 然后进去后发现 docker 服务起不来, apt update 了下出现了下面各种提示, chown/chmod 都无法解决.
root@Kingwayer:~# apt update
Hit:1 https://mirrors.aliyun.com/debian bookworm InRelease
Err:1 https://mirrors.aliyun.com/debian bookworm InRelease
Couldn't create temporary file /tmp/apt.conf.p4zeLu for passing config to apt-key
Ign:2 https://mirrors.aliyun.com/debian bookworm-updates InRelease
Ign:3 https://mirrors.aliyun.com/debian bookworm-backports InRelease
Ign:4 https://mirrors.aliyun.com/debian-security bookworm-security InRelease
Ign:5 https://download.webmin.com/download/newkey/repository stable InRelease
Err:6 https://mirrors.aliyun.com/debian bookworm-updates Release
Could not open file /var/lib/apt/lists/partial/mirrors.aliyun.com_debian_dists_bookworm-updates_Release - open (30: Read-only file system) [IP: 118.253.168.243 443]
Hit:7 https://download.webmin.com/download/newkey/repository stable Release
Err:8 https://download.webmin.com/download/newkey/repository stable Release.gpg
Couldn't create temporary file /tmp/apt.conf.SYbPnO for passing config to apt-key
Err:9 https://mirrors.aliyun.com/debian bookworm-backports Release
Could not open file /var/lib/apt/lists/partial/mirrors.aliyun.com_debian_dists_bookworm-backports_Release - open (30: Read-only file system) [IP: 218.77.199.221 443]
Err:10 https://mirrors.aliyun.com/debian-security bookworm-security Release
Could not open file /var/lib/apt/lists/partial/mirrors.aliyun.com_debian-security_dists_bookworm-security_Release - open (30: Read-only file system) [IP: 106.227.100.203 443]
Ign:11 https://download.docker.com/linux/debian bookworm InRelease
Err:12 https://apt.syncthing.net syncthing InRelease
416 Requested Range Not Satisfiable [IP: 143.244.196.6 443]
Err:13 https://download.docker.com/linux/debian bookworm Release
Could not open file /var/lib/apt/lists/partial/download.docker.com_linux_debian_dists_bookworm_Release - open (30: Read-only file system) [IP: 108.138.7.18 443]
can't create /var/cache/apt-show-versions/apackages-multiarch: Read-only file system at /usr/bin/apt-show-versions line 280.
Reading package lists... Done
W: Not using locking for read only lock file /var/lib/apt/lists/lock
W: chmod 0755 of directory /var/lib/apt/lists/auxfiles failed - SetupAPTPartialDirectory (30: Read-only file system)
W: chown to _apt:root of directory /var/lib/apt/lists/auxfiles failed - SetupAPTPartialDirectory (30: Read-only file system)
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (30: Read-only file system)
W: chown to _apt:root of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.88taf3 - IsAccessibleBySandboxUser (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.DSaK7h - IsAccessibleBySandboxUser (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.t5lnUU - IsAccessibleBySandboxUser (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.UHCUu7 - IsAccessibleBySandboxUser (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.07rXLV - IsAccessibleBySandboxUser (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.AtS26j - IsAccessibleBySandboxUser (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.Sl8MaR - IsAccessibleBySandboxUser (30: Read-only file system)
W: chown to _apt:root of file /var/lib/apt/lists/partial/apt.syncthing.net_dists_syncthing_InRelease failed - Item::QueueURI (30: Read-only file system)
W: chmod 0600 of file /var/lib/apt/lists/partial/apt.syncthing.net_dists_syncthing_InRelease failed - Item::QueueURI (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/mirrors.aliyun.com_debian_dists_bookworm_InRelease - PrepareFiles (30: Read-only file system)
W: chown to _apt:root of file /var/lib/apt/lists/mirrors.aliyun.com_debian_dists_bookworm_InRelease failed - Item::QueueURI (30: Read-only file system)
W: chmod 0600 of file /var/lib/apt/lists/mirrors.aliyun.com_debian_dists_bookworm_InRelease failed - Item::QueueURI (30: Read-only file system)
W: chown to root:root of file /var/lib/apt/lists/mirrors.aliyun.com_debian_dists_bookworm_InRelease failed - 400::URIFailure (30: Read-only file system)
W: chmod 0644 of file /var/lib/apt/lists/mirrors.aliyun.com_debian_dists_bookworm_InRelease failed - 400::URIFailure (30: Read-only file system)
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://mirrors.aliyun.com/debian bookworm InRelease: Couldn't create temporary file /tmp/apt.conf.p4zeLu for passing config to apt-key


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK