即使我从当前登录会话注销, Linuxat
命令也会执行该作业,对吗?即使系统重新启动?
如果是,那么其背后的后台服务是什么?如果作业一旦安排好,可以在注销和/或重新启动后继续运行,则需要某种守护进程/服务。
即使我从当前登录会话注销, Linuxat
命令也会执行该作业,对吗?即使系统重新启动?
如果是,那么其背后的后台服务是什么?如果作业一旦安排好,可以在注销和/或重新启动后继续运行,则需要某种守护进程/服务。
我和许多人一样,使用 VS Code 进行开发。如今,我的大多数客户都需要在现有项目上完成工作,不用说,我默认不信任这些项目。
因此,为了避免必须在我的计算机上运行他们的代码,我运行虚拟机,在其中部署他们的项目并使用 SFTP 将虚拟机安装到主机,然后/run/user/1000/gvfs/...
在 VS Code 中打开并完成工作。
这很好,但像深度搜索(或无论它叫什么,我说的是ctrl++ )或文件搜索(+ )这样的函数需要很长时间。显然,vscode 需要索引项目,然后它们才能按预期工作,但问题shift是下次我安装虚拟机时,它需要再次索引它。fctrlp
有什么方法可以告诉 VS Code 保留索引吗?或者实际上还有其他方法可以实现我的目标,即能够像在本地开发一样进行开发,而无需承担在我的计算机上运行项目的风险?
我有几个虚拟机是用 VirtualBox 使用的(现在我在 Ubuntu 24.10 下运行 v7.0)。其中有些几个月前运行过的虚拟机现在都不能运行了。实际上,我无法将它们添加到 VirtualBox 中,它拒绝打开它们并出现以下错误:
NS_ERROR_INVALID_ARG (0X80070057)
经过搜索,似乎这是一个相当通用的错误代码,并没有说明根本原因。我确信文件没有损坏:不同的 SSD 和我也有备份,但行为是一样的。
此外,我检查了虚拟机和主机的日志(在~/.config/VirtualBox
),但当发生此错误时,它们没有更新。
我现在陷入困境,我必须运行这些机器,但我甚至无法添加它们来更改设置。由于没有可用的日志,而且错误很普遍,我该怎么做才能调试这个问题?
如果这很重要,那么所有表现出此行为的虚拟机都将 Windows 10 作为客户操作系统
根据评论中的提示,我创建了一个新的 VBox,并添加了相同的视频。现在它拒绝运行,说缺少操作系统。 在这里我上传了日志文件。
这是失败的部分:
00:00:00.629510 Changing the VM state from 'POWERING_ON' to 'RUNNING'
00:00:00.629514 Console: Machine state changed to 'Running'
00:00:00.630193 VMMDev: Guest Log: BIOS: VirtualBox 7.0.22
00:00:00.630232 PCI: Setting up resources and interrupts
00:00:00.630850 PIT: mode=2 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:00.631342 GUI: UIMachineViewNormal::resendSizeHint: Restoring guest size-hint for screen 0 to 800x600
00:00:00.631444 GUI: HID LEDs sync is not supported on this platform
00:00:00.634813 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=1, Machine-state=6
00:00:00.648272 VMMDev: Guest Log: CPUID EDX: 0x178bfbff
00:00:00.648480 VMMDev: Guest Log: BIOS: No PCI IDE controller, not probing IDE
00:00:00.648593 AHCI#0: Reset the HBA
00:00:00.648595 VD#0: Cancelling all active requests
00:00:00.648617 AHCI#0: Port 0 reset
00:00:00.648630 VD#0: Cancelling all active requests
00:00:00.648836 VMMDev: Guest Log: BIOS: AHCI 0-P#0: PCHS=16383/16/63 LCHS=1024/255/63 0x000000000dc00000 sectors
00:00:00.648864 AHCI#0: Port 1 reset
00:00:00.649462 PIT: mode=2 count=0x48d3 (18643) - 64.00 Hz (ch=0)
00:00:00.685814 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000793114000000 w=640 h=480 bpp=32 cbLine=0xA00 flags=0x0 origin=0,0
00:00:00.761245 GUI: UIMediumEnumerator: Medium-enumeration finished!
00:00:03.130467 PIT: mode=2 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:03.130566 VMMDev: Guest Log: BIOS: Boot : bseqnr=1, bootseq=0231
00:00:03.130635 VMMDev: Guest Log: BIOS: Boot from Floppy 0 failed
00:00:03.130714 VMMDev: Guest Log: BIOS: Boot : bseqnr=2, bootseq=0023
00:00:03.131020 VMMDev: Guest Log: BIOS: CDROM boot failure code : 0003
00:00:03.131082 VMMDev: Guest Log: BIOS: Boot from CD-ROM failed
00:00:03.131157 VMMDev: Guest Log: BIOS: Boot : bseqnr=3, bootseq=0002
00:00:03.131967 VMMDev: Guest Log: BIOS: Booting from Hard Disk...
00:00:03.132021 VMMDev: Guest Log: BIOS: INT18: BOOT FAILURE
00:00:03.132038 PcBios: Boot failure
00:00:03.132051 VM: Raising runtime error 'VMBootFail' (fFlags=0x0)
00:00:03.132054 Console: VM runtime error: fatal=false, errorID=VMBootFail message="The VM failed to boot. This is possibly caused by not having an operating system installed or a misconfigured boot order. Maybe picking a guest OS install DVD will resolve the situation"
似乎没有找到硬盘,但 vdi 文件已连接到 SATA 控制器
我有一个 Debian 12 安装,安装在 10 年前的 120GB SSD 上。我买了一个新的 500GB SSD,我想在将来使用它。
我在 500GB SSD 上创建了 3 个新分区:
之后,我做了这样的事情:
我被 uefi 困住了。如何移动我的 uefi 分区并从新驱动器启动我的 Debian?
我想自己托管一个网站,为此我从 ISP 购买了一个静态 IP。我的硬件设置包括一个调制解调器和一个来自 ISP 的集成路由器(质量较差),以及一台 Netgear Nighthawk RAX120,我将其用作路由器来改善覆盖范围并在更换位置时启用即插即用 NAS。因此,我始终有两个 Wi-Fi 网络:一个来自我的 ISP,另一个来自 Netgear 路由器,只需插入我的 Netgear 路由器,我几乎可以在任何地方使用它。
当通过 ISP 的 Wi-Fi 进行自托管时,一切都按预期运行 — 我使用该192.168.0.*
地址配置端口转发,并且该站点可从外部访问。但是,如果托管我网站的 PC 通过 Netgear Wi-Fi 连接,它会收到该范围内的不同 IP 地址192.168.208.*
。调制解调器不接受此 IP 进行端口转发,给出“本地 IP 地址无效”错误(IP 在本地解析正常)。
在谷歌搜索该问题后,我尝试将子网掩码从 更改为255.255.255.0
,255.255.0.0
但得到:
“LAN IP 地址不能与 VLAN IP 地址位于同一子网。”
我似乎没有任何与 VLAN 相关的设置可供编辑。而且我担心整个设置会崩溃。
PS 我遇到的另一个问题是,通过 Netgear Wi-Fi 连接时,某些 HTTPS 网站拒绝加载,而是显示 Netgear 登录提示,然后将我重定向到URL/unauth.cgi
。Google、Gmail 和 Amazon 等大型网站运行正常,但较小的网站(例如http://propertypriceregister.ie/
)无法加载。使用 ISP 的 Wi-Fi 时一切正常。
我对网络知识知之甚少,但我想知道是否可以将我的 Netgear Wi-Fi 设置为“透明”代理,以便它不会干扰 ISP 的 Wi-Fi 行为?
我有一个关于 Ubuntu 全盘加密的简单问题。
我想在我的笔记本电脑上安装带有全盘加密的 Ubuntu 24.04,但我还需要用 C 语言做一个面向操作系统的项目,用于我在大学里要上的课程。
我想知道全盘加密是否会对使用 C 的内置函数进行文件 I/O 造成一些问题?
如果这是一个愚蠢的问题,我很抱歉,但我不确定我是否已经很好地理解了 LUKS 的工作原理,以及加密/解密是在哪个级别完成的。
我的网络上的一个节点突然无法通过我的笔记本电脑和手机访问,但可以通过其他节点访问。它也无法访问我的笔记本电脑或手机,但可以访问其他节点并访问互联网。
这件事突然发生 - 这是一个相当新的系统,我不记得改变过任何东西,但它可能与在相关计算机上安装 docker 有关。
网络概述:
192.168.1.1
- 路由器192.168.1.10
- 无线中继器192.168.1.20
-家庭影院电脑。192.168.1.90
- 笔记本电脑。HTPC 和笔记本电脑都连接到主 Wi-Fi。
HTPC可以ping通其他节点:
root@htpc:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=59 time=13.9 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=59 time=8.35 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 8.351/11.147/13.943/2.796 ms
root@htpc:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=3.05 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=3.87 ms
^C
--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 3.045/3.456/3.868/0.411 ms
root@htpc:~# ping 192.168.1.10
PING 192.168.1.10 (192.168.1.10) 56(84) bytes of data.
64 bytes from 192.168.1.10: icmp_seq=1 ttl=63 time=4.74 ms
64 bytes from 192.168.1.10: icmp_seq=2 ttl=63 time=5.26 ms
^C
--- 192.168.1.10 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 4.738/5.001/5.264/0.263 ms
但是,它无法 ping 笔记本电脑:
root@htpc:~# ping 192.168.1.90
PING 192.168.1.90 (192.168.1.90) 56(84) bytes of data.
From 192.168.1.20 icmp_seq=1 Destination Host Unreachable
From 192.168.1.20 icmp_seq=2 Destination Host Unreachable
From 192.168.1.20 icmp_seq=3 Destination Host Unreachable
From 192.168.1.20 icmp_seq=4 Destination Host Unreachable
From 192.168.1.20 icmp_seq=5 Destination Host Unreachable
From 192.168.1.20 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.1.90 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6145ms
pipe 4
root@htpc:~#
它的路由表如下所示,并且 ufw 防火墙被禁用:
root@htpc:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 600 0 0 wlo1
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-a221f258ed7f
192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlo1
root@htpc:~# ufw status
Status: inactive
其IP表规则:
root@htpc:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy DROP)
target prot opt source destination
DOCKER-USER all -- anywhere anywhere
DOCKER-ISOLATION-STAGE-1 all -- anywhere anywhere
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
DOCKER all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
DOCKER all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain DOCKER (2 references)
target prot opt source destination
Chain DOCKER-ISOLATION-STAGE-1 (1 references)
target prot opt source destination
DOCKER-ISOLATION-STAGE-2 all -- anywhere anywhere
DOCKER-ISOLATION-STAGE-2 all -- anywhere anywhere
RETURN all -- anywhere anywhere
Chain DOCKER-ISOLATION-STAGE-2 (2 references)
target prot opt source destination
DROP all -- anywhere anywhere
DROP all -- anywhere anywhere
RETURN all -- anywhere anywhere
Chain DOCKER-USER (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
其 ARO 表:
_gateway (192.168.1.1) at d4:24:dd:5d:22:9d [ether] on wlo1
? (192.168.1.10) at 30:23:03:dc:1c:19 [ether] on wlo1
从笔记本电脑 ping htpc 不起作用,但笔记本电脑当然可以与所有其他节点通信:
kopf@prkbook ~ ping 192.168.1.20
PING 192.168.1.20 (192.168.1.20): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down
Request timeout for icmp_seq 0
ping: sendto: Host is down
Request timeout for icmp_seq 1
ping: sendto: Host is down
Request timeout for icmp_seq 2
ping: sendto: Host is down
Request timeout for icmp_seq 3
ping: sendto: Host is down
Request timeout for icmp_seq 4
ping: sendto: Host is down
Request timeout for icmp_seq 5
ping: sendto: Host is down
Request timeout for icmp_seq 6
^C
--- 192.168.1.20 ping statistics ---
8 packets transmitted, 0 packets received, 100.0% packet loss
kopf@prkbook ~ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=5.044 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=10.624 ms
^C
--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 5.044/7.834/10.624/2.790 ms
笔记本电脑的 ARP 表:
? (192.168.1.1) at d4:24:dd:5d:22:9d on en0 ifscope [ethernet]
? (192.168.1.10) at 30:23:3:dc:1c:19 on en0 ifscope [ethernet]
? (192.168.1.20) at (incomplete) on en0 ifscope [ethernet]
? (192.168.1.255) at ff:ff:ff:ff:ff:ff on en0 ifscope [ethernet]
mdns.mcast.net (224.0.0.251) at 1:0:5e:0:0:fb on en0 ifscope permanent [ethernet]
有人知道这里还可能存在什么问题吗?
我的测试设置:
创建/附加 VHDX 文件,并使用您喜欢的方法在其中创建/格式化分区,但不要为格式化的分区提供驱动器号或挂载点。
我们将生成的 VHDX 文件称为C:\mydisk.vhdx
创建一个目录作为挂载点。
我们称该目录为C:\mymountpoint\
将图像文件挂载到该目录中:
Get-DiskImage -ImagePath C:\mydisk.vhdx |
Get-Disk |
Get-Partition |
Get-Volume |
Get-Partition |
Add-PartitionAccessPath -AccessPath C:\mymountpoint\
然后分离图像文件:
DisMount-DiskImage -ImagePath C:\mydisk.vhdx
现在C:\mymountpoint\
有点“损坏”,但是当您重新连接正确的 VHDX 时,您可以再次访问它。
我的问题是:
鉴于C:\mymountpoint\
,如何获取关联的 VHDX 文件(当前已分离)的路径?