AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-613425

Guerlando OCs's questions

Martin Hope
Guerlando OCs
Asked: 2021-07-03 21:48:33 +0800 CST

如何在 Ubuntu 上列出已安装的快照?

  • 3

如何列出通过 安装的应用程序snap?

lz@vm:$ snap help
The snap command lets you install, configure, refresh and remove snaps.
Snaps are packages that work across many different Linux distributions,
enabling secure delivery and operation of the latest apps and utilities.

Usage: snap <command> [<options>...]

Commonly used commands can be classified as follows:

         Basics: find, info, install, remove, list
        ...more: refresh, revert, switch, disable, enable, create-cohort
        History: changes, tasks, abort, watch
        Daemons: services, start, stop, restart, logs
    Permissions: connections, interface, connect, disconnect
  Configuration: get, set, unset, wait
    App Aliases: alias, aliases, unalias, prefer
        Account: login, logout, whoami
      Snapshots: saved, save, check-snapshot, restore, forget
         Device: model, reboot, recovery
      ... Other: warnings, okay, known, ack, version
    Development: download, pack, run, try

这里没有列出快照

snap
  • 1 个回答
  • 1181 Views
Martin Hope
Guerlando OCs
Asked: 2021-06-29 12:32:59 +0800 CST

如何在 virt-manager 中将 USB 3.0 设备重定向到 VM?

  • 0

usb 3.0 设备对我来说从来没有在 virt-manager 上工作过。我在主机和来宾上都运行 Ubuntu 20.04,并且只有 2.0 重定向有效。当我执行 3.0 时,它根本不会出现在 lsusb 上的客户机上,也不会出现在磁盘上(例如闪存驱动器)

我正在使用“重定向 USB 设备”选项,而 virt-manager 是 2.2.1

usb
  • 1 个回答
  • 3652 Views
Martin Hope
Guerlando OCs
Asked: 2021-02-13 09:43:59 +0800 CST

如何在 Ubuntu 上更新戴尔 XPS 13 9310 的 BIOS?

  • 2

我试过这个:https ://www.dell.com/support/kbdoc/pt-br/000131486/atualizar-o-bios-da-dell-em-um-ambiente-linux-ou-ubuntu在我的戴尔 XPS 13 9310. 我将U盘格式化为FAT32并复制了.exe文件,但是当我进入bios更新选项时却找不到U盘。我尝试了很多选项,在启动时按 F12 或 F2 等。

我也知道它可以通过更新管理器进行更新,但我在我的软件更新程序中没有看到 BIOS 更新

boot
  • 1 个回答
  • 1394 Views
Martin Hope
Guerlando OCs
Asked: 2020-12-16 12:39:50 +0800 CST

固件 blob(来自 linux-firmware)到底是什么?

  • 4

根据https://wiki.gentoo.org/wiki/Linux_firmware,

Linux 固件是与 Linux 内核一起分发的软件包,其中包含某些硬件设备的部分或全部功能所必需的固件二进制 blob。这些二进制 blob 通常是专有的,因为一些硬件制造商不会发布构建固件本身所需的源代码。

例如,我的蓝牙 pcie 设备需要linux-firmware/qca/htbtfw20.tlv. 这是内核驱动程序吗?为什么是格式.tlv,为什么有些是.bin?通常内核驱动程序是 ELF 可执行文件。

drivers kernel bluetooth firmware
  • 1 个回答
  • 3512 Views
Martin Hope
Guerlando OCs
Asked: 2020-12-11 15:46:17 +0800 CST

戴尔 XPS 13 9310 蓝牙找不到任何东西

  • 3

刚刚在我全新的 XPS 13 上安装了 Ubuntu 20.04。蓝牙处于活动状态,它找不到任何东西。有一次它找到了“音频设备”和“未知”,但我什至无法点击。

我尝试bluetoothctl了power on,scan on等等,但它什么也找不到。

我什至不知道我的戴尔使用哪种蓝牙设备,因为它不会出现在 lspci 或 lsusb 上:

lz@xps13:~$ lspci
0000:00:00.0 Host bridge: Intel Corporation Device 9a14 (rev 01)
0000:00:02.0 VGA compatible controller: Intel Corporation Device 9a49 (rev 01)
0000:00:04.0 Signal processing controller: Intel Corporation Device 9a03 (rev 01)
0000:00:06.0 System peripheral: Intel Corporation Device 09ab
0000:00:07.0 PCI bridge: Intel Corporation Device 9a23 (rev 01)
0000:00:07.2 PCI bridge: Intel Corporation Device 9a27 (rev 01)
0000:00:0a.0 Signal processing controller: Intel Corporation Device 9a0d (rev 01)
0000:00:0d.0 USB controller: Intel Corporation Device 9a13 (rev 01)
0000:00:0d.2 USB controller: Intel Corporation Device 9a1b (rev 01)
0000:00:0d.3 USB controller: Intel Corporation Device 9a1d (rev 01)
0000:00:0e.0 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller
0000:00:12.0 Serial controller: Intel Corporation Device a0fc (rev 20)
0000:00:14.0 USB controller: Intel Corporation Device a0ed (rev 20)
0000:00:14.2 RAM memory: Intel Corporation Device a0ef (rev 20)
0000:00:15.0 Serial bus controller [0c80]: Intel Corporation Device a0e8 (rev 20)
0000:00:15.1 Serial bus controller [0c80]: Intel Corporation Device a0e9 (rev 20)
0000:00:16.0 Communication controller: Intel Corporation Device a0e0 (rev 20)
0000:00:19.0 Serial bus controller [0c80]: Intel Corporation Device a0c5 (rev 20)
0000:00:19.1 Serial bus controller [0c80]: Intel Corporation Device a0c6 (rev 20)
0000:00:1c.0 PCI bridge: Intel Corporation Device a0b8 (rev 20)
0000:00:1d.0 PCI bridge: Intel Corporation Device a0b3 (rev 20)
0000:00:1e.0 Communication controller: Intel Corporation Device a0a8 (rev 20)
0000:00:1f.0 ISA bridge: Intel Corporation Device a082 (rev 20)
0000:00:1f.3 Multimedia audio controller: Intel Corporation Device a0c8 (rev 20)
0000:00:1f.4 SMBus: Intel Corporation Device a0a3 (rev 20)
0000:00:1f.5 Serial bus controller [0c80]: Intel Corporation Device a0a4 (rev 20)
0000:55:00.0 Network controller: Qualcomm Device 1101 (rev 01)
0000:56:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5260 PCI Express Card Reader (rev 01)
10000:e0:06.0 PCI bridge: Intel Corporation Device 9a09 (rev 01)
10000:e1:00.0 Non-Volatile memory controller: Toshiba Corporation Device 011a

lz@xps13:~$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 0c45:672a Microdia Integrated_Webcam_HD
Bus 003 Device 007: ID 22b8:2e25 Motorola PCS XT1650
Bus 003 Device 002: ID 27c6:533c Shenzhen Goodix Technology Co.,Ltd. FingerPrint
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

我5.10.0-051000rc6-lowlatency之所以选择是因为 ubuntu 20.04 附带的那个在睡眠和其他方面存在问题。

我如何知道我正在使用哪个蓝牙设备?

PS:我也没有wifi,好像驱动Network controller: Qualcomm Device 1101 (rev 01)还没准备好。

我尝试了ubuntu 20.10,但安装时出错,尝试了很多次。但我猜这个问题与内核有关。

[bluetooth]# list
Controller 00:00:00:00:5A:AD xps13 [default]

更新:

lz@xps13:~$ sudo dmesg | grep -i blue
[sudo] password for lz: 
[   37.837663] Bluetooth: Core ver 2.22
[   37.837675] Bluetooth: HCI device and connection manager initialized
[   37.837678] Bluetooth: HCI socket layer initialized
[   37.837680] Bluetooth: L2CAP socket layer initialized
[   37.837683] Bluetooth: SCO socket layer initialized
[   37.854802] Bluetooth: HCI UART driver ver 2.3
[   37.854804] Bluetooth: HCI UART protocol H4 registered
[   37.854804] Bluetooth: HCI UART protocol BCSP registered
[   37.854810] Bluetooth: HCI UART protocol LL registered
[   37.854810] Bluetooth: HCI UART protocol ATH3K registered
[   37.854814] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   37.854845] Bluetooth: HCI UART protocol Intel registered
[   37.854863] Bluetooth: HCI UART protocol Broadcom registered
[   37.854866] Bluetooth: HCI UART protocol QCA registered
[   37.854866] Bluetooth: HCI UART protocol AG6XX registered
[   37.854870] Bluetooth: HCI UART protocol Marvell registered
[   37.969110] Bluetooth: hci0: setting up ROME/QCA6390
[   37.974178] Bluetooth: Received HCI_IBS_WAKE_ACK in tx state 0
[   38.275421] Bluetooth: hci0: QCA Product ID   :0x00000010
[   38.275422] Bluetooth: hci0: QCA SOC Version  :0x400a0200
[   38.275422] Bluetooth: hci0: QCA ROM Version  :0x00000200
[   38.275423] Bluetooth: hci0: QCA Patch Version:0x00000d2b
[   38.275424] Bluetooth: hci0: QCA controller version 0x02000200
[   38.275425] Bluetooth: hci0: QCA Downloading qca/htbtfw20.tlv
[   38.275588] bluetooth hci0: Direct firmware load for qca/htbtfw20.tlv failed with error -2
[   38.275590] Bluetooth: hci0: QCA Failed to request file: qca/htbtfw20.tlv (-2)
[   38.275591] Bluetooth: hci0: QCA Failed to download patch (-2)
[   38.985832] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   38.985833] Bluetooth: BNEP filters: protocol multicast
[   38.985837] Bluetooth: BNEP socket layer initialized
[   46.210793] Bluetooth: RFCOMM TTY layer initialized
[   46.210798] Bluetooth: RFCOMM socket layer initialized
[   46.210800] Bluetooth: RFCOMM ver 1.11

插入固件后:

lz@xps13:~$ sudo dmesg | grep -i blue
[   10.126340] Bluetooth: Core ver 2.22
[   10.126356] Bluetooth: HCI device and connection manager initialized
[   10.126360] Bluetooth: HCI socket layer initialized
[   10.126362] Bluetooth: L2CAP socket layer initialized
[   10.126364] Bluetooth: SCO socket layer initialized
[   10.168251] Bluetooth: HCI UART driver ver 2.3
[   10.168252] Bluetooth: HCI UART protocol H4 registered
[   10.168253] Bluetooth: HCI UART protocol BCSP registered
[   10.168261] Bluetooth: HCI UART protocol LL registered
[   10.168262] Bluetooth: HCI UART protocol ATH3K registered
[   10.168271] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   10.168303] Bluetooth: HCI UART protocol Intel registered
[   10.168321] Bluetooth: HCI UART protocol Broadcom registered
[   10.168324] Bluetooth: HCI UART protocol QCA registered
[   10.168325] Bluetooth: HCI UART protocol AG6XX registered
[   10.168327] Bluetooth: HCI UART protocol Marvell registered
[   10.276703] Bluetooth: hci0: setting up ROME/QCA6390
[   12.322211] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   12.322212] Bluetooth: BNEP filters: protocol multicast
[   12.322216] Bluetooth: BNEP socket layer initialized
[   12.685060] Bluetooth: hci0: command 0xfc00 tx timeout
[   21.069061] Bluetooth: hci0: Reading QCA version information failed (-110)

更新:

lz@xps13:~$ sudo dmesg | grep -i blue
[sudo] password for lz: 
[   22.779705] Bluetooth: Core ver 2.22
[   22.779720] Bluetooth: HCI device and connection manager initialized
[   22.779723] Bluetooth: HCI socket layer initialized
[   22.779725] Bluetooth: L2CAP socket layer initialized
[   22.779728] Bluetooth: SCO socket layer initialized
[   22.790061] Bluetooth: HCI UART driver ver 2.3
[   22.790063] Bluetooth: HCI UART protocol H4 registered
[   22.790064] Bluetooth: HCI UART protocol BCSP registered
[   22.790070] Bluetooth: HCI UART protocol LL registered
[   22.790070] Bluetooth: HCI UART protocol ATH3K registered
[   22.790074] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   22.790096] Bluetooth: HCI UART protocol Intel registered
[   22.790126] Bluetooth: HCI UART protocol Broadcom registered
[   22.790130] Bluetooth: HCI UART protocol QCA registered
[   22.790130] Bluetooth: HCI UART protocol AG6XX registered
[   22.790134] Bluetooth: HCI UART protocol Marvell registered
[   22.931800] Bluetooth: hci0: setting up ROME/QCA6390
[   22.939205] Bluetooth: hci0: Frame reassembly failed (-84)
[   23.245423] Bluetooth: hci0: QCA Product ID   :0x00000010
[   23.245424] Bluetooth: hci0: QCA SOC Version  :0x400a0200
[   23.245425] Bluetooth: hci0: QCA ROM Version  :0x00000200
[   23.245425] Bluetooth: hci0: QCA Patch Version:0x00000d2b
[   23.245427] Bluetooth: hci0: QCA controller version 0x02000200
[   23.245428] Bluetooth: hci0: QCA Downloading qca/htbtfw20.tlv
[   24.118016] Bluetooth: hci0: QCA Downloading qca/htnv20.bin
[   24.118039] bluetooth hci0: Direct firmware load for qca/htnv20.bin failed with error -2
[   24.118041] Bluetooth: hci0: QCA Failed to request file: qca/htnv20.bin (-2)
[   24.118044] Bluetooth: hci0: QCA Failed to download NVM (-2)
[   24.155330] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   24.155332] Bluetooth: BNEP filters: protocol multicast
[   24.155336] Bluetooth: BNEP socket layer initialized
[   39.842936] Bluetooth: RFCOMM TTY layer initialized
[   39.842943] Bluetooth: RFCOMM socket layer initialized
[   39.842946] Bluetooth: RFCOMM ver 1.11
[  136.016876] Bluetooth: hci0: command 0x0c1a tx timeout
[  138.064522] Bluetooth: hci0: command 0x0c3a tx timeout
[  140.112331] Bluetooth: hci0: command 0x0c1a tx timeout
[  142.160092] Bluetooth: hci0: command 0x0c52 tx timeout
[  146.255507] Bluetooth: hci0: failed to disable LE scan: status 0x1f
[  146.255555] Bluetooth: hci0: command 0x2042 tx timeout
drivers bluetooth 20.10
  • 1 个回答
  • 1659 Views
Martin Hope
Guerlando OCs
Asked: 2020-11-30 17:14:25 +0800 CST

戴尔 XPS 13 高通设备 1101 (a501) wifi 问题

  • 2

刚买了新的戴尔 XPS 13 9300 并尝试安装 Ubuntu 24.04.1。Wifi 既不能使用蓝牙,但我现在只需要 wifi。这是wifi卡:

000:55:00.0 Network controller: Qualcomm Device 1101 (rev 01)
    Subsystem: Bigfoot Networks, Inc. Device a501

不管怎样,刚刚发现Ubuntu 20.04 Killer AX500s DBS 驱动程序支持他们说对这个 wifi 卡的支持落在 5.9 上。我安装了 5.9.10:

lz@dell:~$ uname -r
5.9.10-050910-lowlatency

而且还是没有wifi。

在互联网上没有找到关于这个设备的任何信息,在 linux 内核上也没有。https://github.com/torvalds/linux/tree/master/drivers/net/wireless哪里是 qualcomm 或 bigfoot?

这个线程看起来很有希望:https ://github.com/kvalo/ath11k-firmware/issues/4

我知道这里:https ://medium.com/@tomas.heiskanen/dell-xps-15-9500-wifi-on-ubuntu-20-04-d5f1c218e78a有一种方法可以通过编译从 git 安装它,但我从随机的地方安装东西不舒服。

那么有没有办法让它与最新的内核一起工作?

更新:

也试过

lz@dell:~$ uname -r
5.10.0-051000rc5-lowlatency

这是最新的可能。没有成功。

networking wireless drivers dell
  • 1 个回答
  • 975 Views
Martin Hope
Guerlando OCs
Asked: 2020-11-16 23:17:26 +0800 CST

如何从 lvm Thinpool 中恢复一些文件(来自 Qubes OS)

  • 0

我在 Ubuntu 上安装了一个 LUKS 分区,其中包含来自 Qubes OS 的这些 lvm 容器:

ubuntu@ubuntu:~$ sudo lvs
  LV                                             VG         Attr       LSize    Pool   Origin                                         Data%  Meta%  Move Log Cpy%Sync Convert
  pool00                                         qubes_dom0 twi---tz-- <452.86g                                                                                              
  root                                           qubes_dom0 Vwi---tz-- <452.86g pool00                                                                                       
  swap                                           qubes_dom0 -wi-a-----    8.96g                                                                                              
  vm-anon-whonix-private                         qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-bitpay-private                              qubes_dom0 Vwi---tz--    2.00g pool00 vm-bitpay-private-1604634684-back                                                     
  vm-bitpay-private-1604634684-back              qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-debian-10-private                           qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-debian-10-root                              qubes_dom0 Vwi---tz--   10.00g pool00 vm-debian-10-root-1604634337-back                                                     
  vm-debian-10-root-1604634337-back              qubes_dom0 Vwi---tz--   10.00g pool00                                                                                       
  vm-debian-sys-net-private                      qubes_dom0 Vwi---tz--    2.00g pool00 vm-debian-sys-net-private-1600569197-back                                             
  vm-debian-sys-net-private-1600569197-back      qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-debian-temp-private                         qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-debian10-coding-private                     qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-debian10-coding-root                        qubes_dom0 Vwi---tz--   10.00g pool00 vm-debian10-coding-root-1604634103-back                                               
  vm-debian10-coding-root-1604634103-back        qubes_dom0 Vwi---tz--   10.00g pool00                                                                                       
  vm-default-mgmt-dvm-private                    qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-fedora-29-dvm-private                       qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-fedora-29-private                           qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-fedora-29-root                              qubes_dom0 Vwi---tz--   10.00g pool00 vm-fedora-29-root-1599172317-back                                                     
  vm-fedora-29-root-1599172317-back              qubes_dom0 Vwi---tz--   10.00g pool00                                                                                       
  vm-hacking-private                             qubes_dom0 Vwi---tz--   20.00g pool00 vm-hacking-private-1602069716-back                                                    
  vm-hacking-private-1602069716-back             qubes_dom0 Vwi---tz--   20.00g pool00                                                                                       
  vm-multipurpose-private                        qubes_dom0 Vwi---tz--   11.00g pool00 vm-multipurpose-private-1589207893-back                                               
  vm-multipurpose-private-1589207893-back        qubes_dom0 Vwi---tz--   11.00g pool00                                                                                       
  vm-orwell3-private                             qubes_dom0 Vwi---tz--  137.00g pool00 vm-orwell3-private-1602465727-back                                                    
  vm-orwell3-private-1602465727-back             qubes_dom0 Vwi---tz--  137.00g pool00                                                                                       
  vm-orwell4-private                             qubes_dom0 Vwi---tz--  117.23g pool00 vm-orwell4-private-1605439750-back                                                    
  vm-orwell4-private-1605439750-back             qubes_dom0 Vwi---tz--  117.23g pool00                                                                                       
  vm-orwell4-private-snap                        qubes_dom0 Vwi---tz--  117.23g pool00 vm-orwell4-private                                                                    
  vm-orwell4-root-snap                           qubes_dom0 Vwi---tz--   10.00g pool00 vm-debian10-coding-root                                                               
  vm-orwell4-volatile                            qubes_dom0 Vwi---tz--   10.00g pool00                                                                                       
  vm-pcb-design-private                          qubes_dom0 Vwi---tz--    2.00g pool00 vm-pcb-design-private-1598425853-back                                                 
  vm-pcb-design-private-1598425853-back          qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-sd-flasher-private                          qubes_dom0 Vwi---tz--   10.00g pool00 vm-sd-flasher-private-1596569587-back                                                 
  vm-sd-flasher-private-1596569587-back          qubes_dom0 Vwi---tz--   10.00g pool00                                                                                       
  vm-social2-private                             qubes_dom0 Vwi---tz--   21.00g pool00 vm-social2-private-1605439747-back                                                    
  vm-social2-private-1605439747-back             qubes_dom0 Vwi---tz--   21.00g pool00                                                                                       
  vm-social2-private-snap                        qubes_dom0 Vwi---tz--   21.00g pool00 vm-social2-private                                                                    
  vm-social2-root-snap                           qubes_dom0 Vwi---tz--   10.00g pool00 vm-debian-10-root                                                                     
  vm-social2-volatile                            qubes_dom0 Vwi---tz--   10.00g pool00                                                                                       
  vm-sys-firewall-private                        qubes_dom0 Vwi---tz--    2.00g pool00 vm-sys-firewall-private-1588756764-back                                               
  vm-sys-firewall-private-1588756764-back        qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-sys-firewall-private-snap                   qubes_dom0 Vwi---tz--    2.00g pool00 vm-sys-firewall-private                                                               
  vm-sys-firewall-root-snap                      qubes_dom0 Vwi---tz--   10.00g pool00 vm-fedora-29-root-1599172317-back                                                     
  vm-sys-net-private                             qubes_dom0 Vwi---tz--    2.00g pool00 vm-sys-net-private-1603850959-back                                                    
  vm-sys-net-private-1603850959-back             qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-sys-usb-private                             qubes_dom0 Vwi---tz--    2.00g pool00 vm-sys-usb-private-1605439744-back                                                    
  vm-sys-usb-private-1605439744-back             qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-sys-usb-private-snap                        qubes_dom0 Vwi---tz--    2.00g pool00 vm-sys-usb-private                                                                    
  vm-sys-usb-root-snap                           qubes_dom0 Vwi---tz--   10.00g pool00 vm-fedora-29-root                                                                     
  vm-sys-usb-volatile                            qubes_dom0 Vwi---tz--   10.00g pool00                                                                                       
  vm-sys-whonix-private                          qubes_dom0 Vwi---tz--    2.00g pool00 vm-sys-whonix-private-1598482831-back                                                 
  vm-sys-whonix-private-1598482831-back          qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-sysnet-debian10_2-private                   qubes_dom0 Vwi---tz--    2.00g pool00 vm-sysnet-debian10_2-private-1605439757-back                                          
  vm-sysnet-debian10_2-private-1605439757-back   qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-sysnet-debian10_2-private-snap              qubes_dom0 Vwi---tz--    2.00g pool00 vm-sysnet-debian10_2-private                                                          
  vm-sysnet-debian10_2-root                      qubes_dom0 Vwi---tz--   10.00g pool00 vm-sysnet-debian10_2-root-1605439757-back                                             
  vm-sysnet-debian10_2-root-1605439757-back      qubes_dom0 Vwi---tz--   10.00g pool00                                                                                       
  vm-sysnet-debian10_2-root-snap                 qubes_dom0 Vwi---tz--   10.00g pool00 vm-sysnet-debian10_2-root                                                             
  vm-sysnet-debian10_2-volatile                  qubes_dom0 Vwi---tz--   10.00g pool00                                                                                       
  vm-temp-private                                qubes_dom0 Vwi---tz--   10.00g pool00 vm-temp-private-1595675857-back                                                       
  vm-temp-private-1595675857-back                qubes_dom0 Vwi---tz--   10.00g pool00                                                                                       
  vm-unsafe_code-private                         qubes_dom0 Vwi---tz--   78.00g pool00 vm-unsafe_code-private-1605379428-back                                                
  vm-unsafe_code-private-1605379428-back         qubes_dom0 Vwi---tz--   78.00g pool00                                                                                       
  vm-whonix-gw-14-private                        qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-whonix-gw-14-root                           qubes_dom0 Vwi---tz--   10.00g pool00 vm-whonix-gw-14-root-1571185748-back                                                  
  vm-whonix-gw-14-root-1571185748-back           qubes_dom0 Vwi---tz--   10.00g pool00                                                                                       
  vm-whonix-ws-14-dvm-private                    qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-whonix-ws-14-private                        qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-whonix-ws-14-root                           qubes_dom0 Vwi---tz--   10.00g pool00 vm-whonix-ws-14-root-1571185609-back                                                  
  vm-whonix-ws-14-root-1571185609-back           qubes_dom0 Vwi---tz--   10.00g pool00                                                                                       
  vm-win10_unsafe_coding-private                 qubes_dom0 Vwi---tz--    2.00g pool00 vm-win10_unsafe_coding-private-1602769589-back                                        
  vm-win10_unsafe_coding-private-1602769589-back qubes_dom0 Vwi---tz--    2.00g pool00                                                                                       
  vm-win10_unsafe_coding-root                    qubes_dom0 Vwi---tz--   90.00g pool00 vm-win10_unsafe_coding-root-1602769589-back                                           
  vm-win10_unsafe_coding-root-1602769589-back    qubes_dom0 Vwi---tz--   90.00g pool00                                                                                       
  vm-zoom2-private                               qubes_dom0 Vwi---tz--    2.00g pool00 vm-zoom2-private-1599067205-back                                                      
  vm-zoom2-private-1599067205-back               qubes_dom0 Vwi---tz--    2.00g pool00 

出了点问题,我只想恢复 vm-orwell4-* 容器。至少从中复制一些文件。我对 lvm Thinpool 一无所知。

我试过了

sudo lvchange -ay -v qubes_dom0/vm-orwell4-private
  Activating logical volume qubes_dom0/vm-orwell4-private.
  activation/volume_list configuration setting not defined: Checking only host tags for qubes_dom0/vm-orwell4-private.
  Creating qubes_dom0-pool00_tmeta
  Loading table for qubes_dom0-pool00_tmeta (253:2).
  Resuming qubes_dom0-pool00_tmeta (253:2).
  Creating qubes_dom0-pool00_tdata
  Loading table for qubes_dom0-pool00_tdata (253:3).
  Resuming qubes_dom0-pool00_tdata (253:3).
  Executing: /usr/sbin/thin_check -q --clear-needs-check-flag /dev/mapper/qubes_dom0-pool00_tmeta
  /usr/sbin/thin_check failed: 1
  Check of pool qubes_dom0/pool00 failed (status:1). Manual repair required!
  Removing qubes_dom0-pool00_tdata (253:3)
  Removing qubes_dom0-pool00_tmeta (253:2)

也试过

ubuntu@ubuntu:~$ sudo vgchange -ay
  Check of pool qubes_dom0/pool00 failed (status:1). Manual repair required!
  1 logical volume(s) in volume group "qubes_dom0" now active

更新:

这是我在查看https://unix.stackexchange.com/questions/351921/lvm-how-to-recover-lvm-thin-pool-volume-after-failed-repair后尝试的输出

ubuntu@ubuntu:~$ sudo lvchange -an qubes_dom0 
ubuntu@ubuntu:~$ sudo lvchange -pr -ay qubes_dom0/pool00_tmeta
  Operation not permitted on hidden LV qubes_dom0/pool00_tmeta.
ubuntu@ubuntu:~$ sudo  lvs -a --units m | grep pool00_tmeta   lvs -a --units m | grep pool00_tmeta  ^C
ubuntu@ubuntu:~$ sudo  lvs -a --units m | grep pool00_tmeta  
  [pool00_tmeta]                                 qubes_dom0 ewi-------    116.00m                                                                                              
ubuntu@ubuntu:~$ sudo lvcreate -L 256M -n pool00R qubes_dom0
  Logical Volume "pool00R" already exists in volume group "qubes_dom0"
ubuntu@ubuntu:~$ sudo lvchange -ay qubes_dom0/poool00R    
  Failed to find logical volume "qubes_dom0/poool00R"
ubuntu@ubuntu:~$ sudo lvchange -ay qubes_dom0/poool00R
  Failed to find logical volume "qubes_dom0/poool00R"
ubuntu@ubuntu:~$ sudo thin_repair -i /dev/qubes_dom0/pool00_tmeta -o /dev/qubes_dom0/pool00R
Output file does not exist.
 
The output file should either be a block device,
or an existing file.  The file needs to be large
enough to hold the metadata.
ubuntu@ubuntu:~$ # what? /dev/qubes_dom0 does not even exist
ubuntu@ubuntu:~$ sudo thin_check /dev/qubes_dom0/pool00R
Couldn't stat path
ubuntu@ubuntu:~$ 
encryption partitioning lvm disk
  • 1 个回答
  • 507 Views
Martin Hope
Guerlando OCs
Asked: 2020-08-18 14:16:11 +0800 CST

ip tuntap add 给出“打开:没有这样的文件或目录”

  • 1

我在 dockerized ubuntu 20 中并尝试运行以下命令,但出现此错误:

sudo ip tuntap add dev tun0 mode tun user `id -un`

open: No such file or directory

试过这个:https ://stackoverflow.com/questions/32924094/ip-tuntap-command-cant-open-tun但它没有用。有谁知道发生了什么?我已经安装了iproute2。缺了点什么?我是 root 并尝试过有无sudo

networking tunnel ip 20.04
  • 1 个回答
  • 1311 Views
Martin Hope
Guerlando OCs
Asked: 2020-07-22 22:43:37 +0800 CST

无法通过 Ubuntu 20 上的tightvncserver 打开终端/没有 gnome 面板

  • 0

我跟着https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-20-04放了

xrdb $HOME/.Xresources
startxfce4 &

进入我的.vnc/startup,我可以成功登录 VNC 并使用 nautilus 和其他应用程序,但没有最大化/关闭按钮,最重要的是我无法打开终端。我在扩展坞上单击它,没有任何反应

我也试过把这个:

gnome-panel &
gnome-settings-daemon &
metacity &
gnome-terminal &
nautilus &

我可以成功登录并看到 nautilus 打开,但使用它打开终端没有任何结果,而且我也没有看到除了 nautilus 之外的其他东西(没有可点击的图标)

我最好在 VNC 上使用 gnome,但我不能让两者都工作

vnc 20.04
  • 1 个回答
  • 3126 Views
Martin Hope
Guerlando OCs
Asked: 2020-05-08 19:13:44 +0800 CST

什么命令 | sh 在 bash 中是什么意思?

  • -1

这是安装 Rust 的命令:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

做什么|?

我认为 curl 从此链接下载了一个 .sh 文件,并 sh 以某种方式执行它。它是如何工作的?它在我的 Dockerfile 中不起作用,我需要传递-y给它.sh,但我不知道如何。

bash
  • 2 个回答
  • 465 Views
Martin Hope
Guerlando OCs
Asked: 2020-02-20 14:52:12 +0800 CST

KVM GPU 直通:第 15 组不可行。请确保 iommu_group 中的所有设备都绑定到它们的 vfio 总线驱动程序。

  • 3

我关注了 https://mathiashueber.com/windows-virtual-machine-gpu-passthrough-ubuntu/。但是,只有一件事我没有遵循:我离开了 noveau 而不是官方驱动程序,因为如果我按照它说的那样做,当我重新启动时,我只会看到黑屏。而且我想在主机上使用 noveau 而不是专有且可能不安全的驱动程序。

我在技嘉 B450m 主板上安装了 Ryzen 7 2700X。我有一个 GTX 1060,我想把它放在 VM 中,还有一个 GT 750 在主机中使用。

AMD-Vi 工作:

lz@z:~$ dmesg |grep AMD-Vi
[    0.327637] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported
[    0.330500] pci 0000:00:00.2: AMD-Vi: Found IOMMU cap 0x40
[    0.330501] pci 0000:00:00.2: AMD-Vi: Extended features (0xf77ef22294ada):
[    0.330504] AMD-Vi: Interrupt remapping enabled
[    0.330505] AMD-Vi: Virtual APIC enabled
[    0.330572] AMD-Vi: Lazy IO/TLB flushing enabled

这是我的 IOMMU 组:

IOMMU Group 0 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
IOMMU Group 10 00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B [1022:1454]
IOMMU Group 11 00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 59)
IOMMU Group 11 00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
IOMMU Group 12 00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0 [1022:1460]
IOMMU Group 12 00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1 [1022:1461]
IOMMU Group 12 00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2 [1022:1462]
IOMMU Group 12 00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3 [1022:1463]
IOMMU Group 12 00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4 [1022:1464]
IOMMU Group 12 00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 5 [1022:1465]
IOMMU Group 12 00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 6 [1022:1466]
IOMMU Group 12 00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 7 [1022:1467]
IOMMU Group 13 01:00.0 Non-Volatile memory controller [0108]: Kingston Technology Company, Inc. Device [2646:2263] (rev 03)
IOMMU Group 14 02:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset USB 3.1 XHCI Controller [1022:43d5] (rev 01)
IOMMU Group 14 02:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset SATA Controller [1022:43c8] (rev 01)
IOMMU Group 14 02:00.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Bridge [1022:43c6] (rev 01)
IOMMU Group 14 03:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port [1022:43c7] (rev 01)
IOMMU Group 14 03:01.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port [1022:43c7] (rev 01)
IOMMU Group 14 03:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port [1022:43c7] (rev 01)
IOMMU Group 14 05:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
IOMMU Group 14 06:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108 [GeForce GT 730] [10de:0f02] (rev a1)
IOMMU Group 14 06:00.1 Audio device [0403]: NVIDIA Corporation GF108 High Definition Audio Controller [10de:0bea] (rev a1)
>>>>>>>>>>>>>>> IOMMU Group 15 07:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116 [GeForce GTX 1660] [10de:2184] (rev a1)
>>>>>>>>>>>>>>> IOMMU Group 15 07:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:1aeb] (rev a1)
>>>>>>>>>>>>>>> IOMMU Group 15 07:00.2 USB controller [0c03]: NVIDIA Corporation Device [10de:1aec] (rev a1)
>>>>>>>>>>>>>>> IOMMU Group 15 07:00.3 Serial bus controller [0c80]: NVIDIA Corporation Device [10de:1aed] (rev a1)
IOMMU Group 16 08:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function [1022:145a]
IOMMU Group 17 08:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Platform Security Processor [1022:1456]
IOMMU Group 18 08:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Zeppelin USB 3.0 Host controller [1022:145f]
IOMMU Group 19 09:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Renoir PCIe Dummy Function [1022:1455]
IOMMU Group 1 00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge [1022:1453]
IOMMU Group 20 09:00.2 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51)
IOMMU Group 21 09:00.3 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) HD Audio Controller [1022:1457]
IOMMU Group 2 00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge [1022:1453]
IOMMU Group 3 00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
IOMMU Group 4 00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
IOMMU Group 5 00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge [1022:1453]
IOMMU Group 6 00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
IOMMU Group 7 00:07.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
IOMMU Group 8 00:07.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B [1022:1454]
IOMMU Group 9 00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]

您可以看到我的 GTX1060 在第 15 组中,以及其他我不关心的东西,它们也可以进入 VM。以 USB 控制器为例。

所以我有 10de:2184 (GTX 1060) 和 10de:1aeb (GTX Audio)。我需要保存第 15 组中其他事物的 ID吗?我要尝试处理所有这些,所以我保存了 10de:1aec (USB) 和 10de:1aed (Serial BUS)

lz@z:~$ cat /etc/initramfs-tools/modules 
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
vfio vfio_iommu_type1 vfio_virqfd vfio_pci ids=10de:2184,10de:1aeb,10de:1aec,10de:1aed

和

lz@z:~$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

vfio vfio_iommu_type1 vfio_pci ids=10de:2184,10de:1aeb,10de:1aec,10de:1aed

和

lz@z:~$ cat /etc/modprobe.d/vfio.conf 
options vfio-pci ids=10de:2184,10de:1aeb,10de:1aec,10de:1aed

和

lz@z:~$ cat /etc/modprobe.d/kvm.conf 
options kvm ignore_msrs=1

现在重新启动后看看我的 lspci :

lz@z:~$ lspci -nnv
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Root Complex [1022:1450]
    Subsystem: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Root Complex [1022:1450]
    Flags: fast devsel

00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) I/O Memory Management Unit [1022:1451]
    Subsystem: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) I/O Memory Management Unit [1022:1451]
    Flags: fast devsel, IRQ 25
    Capabilities: <access denied>

00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
    Flags: fast devsel

00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge [1022:1453] (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 26
    Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
    I/O behind bridge: None
    Memory behind bridge: f7600000-f76fffff [size=1M]
    Prefetchable memory behind bridge: None
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge [1022:1453] (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 27
    Bus: primary=00, secondary=02, subordinate=06, sec-latency=0
    I/O behind bridge: 0000d000-0000efff [size=8K]
    Memory behind bridge: f4000000-f53fffff [size=20M]
    Prefetchable memory behind bridge: 00000000e8000000-00000000f21fffff [size=162M]
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
    Flags: fast devsel

00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
    Flags: fast devsel

00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge [1022:1453] (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 28
    Bus: primary=00, secondary=07, subordinate=07, sec-latency=0
    I/O behind bridge: 0000f000-0000ffff [size=4K]
    Memory behind bridge: f6000000-f70fffff [size=17M]
    Prefetchable memory behind bridge: 00000000d0000000-00000000e20fffff [size=289M]
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
    Flags: fast devsel

00:07.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
    Flags: fast devsel

00:07.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B [1022:1454] (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 29
    Bus: primary=00, secondary=08, subordinate=08, sec-latency=0
    I/O behind bridge: None
    Memory behind bridge: f7200000-f74fffff [size=3M]
    Prefetchable memory behind bridge: None
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
    Flags: fast devsel

00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B [1022:1454] (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 31
    Bus: primary=00, secondary=09, subordinate=09, sec-latency=0
    I/O behind bridge: None
    Memory behind bridge: f7500000-f75fffff [size=1M]
    Prefetchable memory behind bridge: None
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 59)
    Subsystem: Gigabyte Technology Co., Ltd FCH SMBus Controller [1458:5001]
    Flags: 66MHz, medium devsel
    Kernel modules: i2c_piix4, sp5100_tco

00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
    Subsystem: Gigabyte Technology Co., Ltd FCH LPC Bridge [1458:5001]
    Flags: bus master, 66MHz, medium devsel, latency 0

00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0 [1022:1460]
    Flags: fast devsel

00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1 [1022:1461]
    Flags: fast devsel

00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2 [1022:1462]
    Flags: fast devsel

00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3 [1022:1463]
    Flags: fast devsel
    Kernel driver in use: k10temp
    Kernel modules: k10temp

00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4 [1022:1464]
    Flags: fast devsel

00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 5 [1022:1465]
    Flags: fast devsel

00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 6 [1022:1466]
    Flags: fast devsel

00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 7 [1022:1467]
    Flags: fast devsel

01:00.0 Non-Volatile memory controller [0108]: Kingston Technology Company, Inc. Device [2646:2263] (rev 03) (prog-if 02 [NVM Express])
    Subsystem: Kingston Technology Company, Inc. Device [2646:2263]
    Flags: bus master, fast devsel, latency 0, IRQ 60, NUMA node 0
    Memory at f7600000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: nvme
    Kernel modules: nvme

02:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset USB 3.1 XHCI Controller [1022:43d5] (rev 01) (prog-if 30 [XHCI])
    Subsystem: ASMedia Technology Inc. 400 Series Chipset USB 3.1 XHCI Controller [1b21:1142]
    Flags: bus master, fast devsel, latency 0, IRQ 30
    Memory at f53a0000 (64-bit, non-prefetchable) [size=32K]
    Capabilities: <access denied>
    Kernel driver in use: xhci_hcd

02:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset SATA Controller [1022:43c8] (rev 01) (prog-if 01 [AHCI 1.0])
    Subsystem: ASMedia Technology Inc. 400 Series Chipset SATA Controller [1b21:1062]
    Flags: bus master, fast devsel, latency 0, IRQ 59
    Memory at f5380000 (32-bit, non-prefetchable) [size=128K]
    Expansion ROM at f5300000 [disabled] [size=512K]
    Capabilities: <access denied>
    Kernel driver in use: ahci
    Kernel modules: ahci

02:00.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Bridge [1022:43c6] (rev 01) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 33
    Bus: primary=02, secondary=03, subordinate=06, sec-latency=0
    I/O behind bridge: 0000d000-0000efff [size=8K]
    Memory behind bridge: f4000000-f52fffff [size=19M]
    Prefetchable memory behind bridge: 00000000e8000000-00000000f21fffff [size=162M]
    Capabilities: <access denied>
    Kernel driver in use: pcieport

03:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port [1022:43c7] (rev 01) (prog-if 00 [Normal decode])
    DeviceName: Broadcom 5762
    Flags: bus master, fast devsel, latency 0, IRQ 34
    Bus: primary=03, secondary=04, subordinate=04, sec-latency=0
    I/O behind bridge: None
    Memory behind bridge: None
    Prefetchable memory behind bridge: None
    Capabilities: <access denied>
    Kernel driver in use: pcieport

03:01.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port [1022:43c7] (rev 01) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 36
    Bus: primary=03, secondary=05, subordinate=05, sec-latency=0
    I/O behind bridge: 0000e000-0000efff [size=4K]
    Memory behind bridge: f5200000-f52fffff [size=1M]
    Prefetchable memory behind bridge: 00000000f2100000-00000000f21fffff [size=1M]
    Capabilities: <access denied>
    Kernel driver in use: pcieport

03:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port [1022:43c7] (rev 01) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 37
    Bus: primary=03, secondary=06, subordinate=06, sec-latency=0
    I/O behind bridge: 0000d000-0000dfff [size=4K]
    Memory behind bridge: f4000000-f50fffff [size=17M]
    Prefetchable memory behind bridge: 00000000e8000000-00000000f1ffffff [size=160M]
    Capabilities: <access denied>
    Kernel driver in use: pcieport

05:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
    Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet [1458:e000]
    Flags: bus master, fast devsel, latency 0, IRQ 35
    I/O ports at e000 [size=256]
    Memory at f5200000 (64-bit, non-prefetchable) [size=4K]
    Memory at f2100000 (64-bit, prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: r8169
    Kernel modules: r8169

06:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108 [GeForce GT 730] [10de:0f02] (rev a1) (prog-if 00 [VGA controller])
    Subsystem: NVIDIA Corporation GF108 [GeForce GT 730] [10de:0825]
    Flags: bus master, fast devsel, latency 0, IRQ 86
    Memory at f4000000 (32-bit, non-prefetchable) [size=16M]
    Memory at e8000000 (64-bit, prefetchable) [size=128M]
    Memory at f0000000 (64-bit, prefetchable) [size=32M]
    I/O ports at d000 [size=128]
    Expansion ROM at f5000000 [disabled] [size=512K]
    Capabilities: <access denied>
    Kernel driver in use: nouveau
    Kernel modules: nvidiafb, nouveau

06:00.1 Audio device [0403]: NVIDIA Corporation GF108 High Definition Audio Controller [10de:0bea] (rev a1)
    Subsystem: NVIDIA Corporation GF108 High Definition Audio Controller [10de:0825]
    Flags: bus master, fast devsel, latency 0, IRQ 35
    Memory at f5080000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

>>>>>>>>>>>>>>>> 07:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116 [GeForce GTX 1660] [10de:2184] (rev a1) (prog-if 00 [VGA controller])
    Subsystem: NVIDIA Corporation TU116 [GeForce GTX 1660] [10de:1324]
    Flags: bus master, fast devsel, latency 0, IRQ 11
    Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
    Memory at d0000000 (64-bit, prefetchable) [size=256M]
    Memory at e0000000 (64-bit, prefetchable) [size=32M]
    I/O ports at f000 [size=128]
    Expansion ROM at 000c0000 [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: vfio-pci
    Kernel modules: nvidiafb, nouveau

>>>>>>>>>>>>>>>> 07:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:1aeb] (rev a1)
    Subsystem: NVIDIA Corporation Device [10de:1324]
    Flags: bus master, fast devsel, latency 0, IRQ 83
    Memory at f7080000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

>>>>>>>>>>>>>>>> 07:00.2 USB controller [0c03]: NVIDIA Corporation Device [10de:1aec] (rev a1) (prog-if 30 [XHCI])
    Subsystem: NVIDIA Corporation Device [10de:1324]
    Flags: fast devsel, IRQ 47
    Memory at e2000000 (64-bit, prefetchable) [size=256K]
    Memory at e2040000 (64-bit, prefetchable) [size=64K]
    Capabilities: <access denied>
    Kernel driver in use: xhci_hcd

>>>>>>>>>>>>>>>> 07:00.3 Serial bus controller [0c80]: NVIDIA Corporation Device [10de:1aed] (rev a1)
    Subsystem: NVIDIA Corporation Device [10de:1324]
    Flags: bus master, fast devsel, latency 0, IRQ 58
    Memory at f7084000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: <access denied>
    Kernel driver in use: nvidia-gpu
    Kernel modules: i2c_nvidia_gpu

08:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function [1022:145a]
    Subsystem: Advanced Micro Devices, Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function [1022:145a]
    Flags: fast devsel
    Capabilities: <access denied>

08:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Platform Security Processor [1022:1456]
    Subsystem: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Platform Security Processor [1022:1456]
    Flags: bus master, fast devsel, latency 0, IRQ 80
    Memory at f7300000 (32-bit, non-prefetchable) [size=1M]
    Memory at f7400000 (32-bit, non-prefetchable) [size=8K]
    Capabilities: <access denied>
    Kernel driver in use: ccp
    Kernel modules: ccp

08:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Zeppelin USB 3.0 Host controller [1022:145f] (prog-if 30 [XHCI])
    Subsystem: Gigabyte Technology Co., Ltd Zeppelin USB 3.0 Host controller [1458:5007]
    Flags: bus master, fast devsel, latency 0, IRQ 48
    Memory at f7200000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: <access denied>
    Kernel driver in use: xhci_hcd

09:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Renoir PCIe Dummy Function [1022:1455]
    Subsystem: Advanced Micro Devices, Inc. [AMD] Zeppelin/Renoir PCIe Dummy Function [1022:1455]
    Flags: fast devsel
    Capabilities: <access denied>

09:00.2 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51) (prog-if 01 [AHCI 1.0])
    Subsystem: Gigabyte Technology Co., Ltd FCH SATA Controller [AHCI mode] [1458:b002]
    Flags: bus master, fast devsel, latency 0, IRQ 63
    Memory at f7508000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: <access denied>
    Kernel driver in use: ahci
    Kernel modules: ahci

09:00.3 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) HD Audio Controller [1022:1457]
    Subsystem: Gigabyte Technology Co., Ltd Family 17h (Models 00h-0fh) HD Audio Controller [1458:a182]
    Flags: bus master, fast devsel, latency 0, IRQ 85
    Memory at f7500000 (32-bit, non-prefetchable) [size=32K]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

我高亮了第 15 组中的设备。只有 NVIDIA GTX 1060 被使用vfio-pci,其他内核模块正在使用其他设备。这是问题的根源吗?为了通过 GTX,我必须通过第 15 组中的所有内容,但是其他驱动程序正在使用这些其他东西,而不是vfio-pci.

Unable to complete install: 'internal error: qemu unexpectedly closed the monitor: 2020-02-19T22:48:02.001713Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
2020-02-19T22:48:02.002255Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
2020-02-19T22:48:02.002845Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
2020-02-19T22:48:02.003340Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
2020-02-19T22:48:02.003842Z qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
2020-02-19T22:48:02.024485Z qemu-system-x86_64: -device vfio-pci,host=07:00.0,id=hostdev0,bus=pci.4,addr=0x0: vfio 0000:07:00.0: group 15 is not viable
Please ensure all devices within the iommu_group are bound to their vfio bus driver.'

请看一下

请确保 iommu_group 中的所有设备都绑定到它们的 vfio 总线驱动程序

这证实了我的想法vfio-pci,即使我明确对他们说,并非所有设备都可以使用。

我认为他在这部分是这样做的,但对于 nvidia 驱动程序:

为了在 nvidia 驱动程序之前更改加载顺序以支持 vfio_pci,请通过 sudo nano /etc/modprobe.d/nvidia.conf 在 modprobe.d 文件夹中创建一个文件并添加以下行:

softdep nouveau pre: vfio-pci softdep nvidia pre: vfio-pci softdep nvidia* pre: vfio-pci

除了 noveau 有没有办法做同样的事情?

drivers nvidia virtualization kvm gpu
  • 2 个回答
  • 16385 Views
Martin Hope
Guerlando OCs
Asked: 2019-07-27 21:07:06 +0800 CST

我删除了 /usr/include/boost,安装 libboost-all-dev 不会带回标头

  • 3

我的 boost::thread 库头文件(我没有触及)中出现了一个疯狂的编译错误,所以我删除了/usr/include/boost.

我清除了libboost-all-dev然后做了,sudo apt-get install libboost-all-dev但标题不会回来。

我应该怎么办?

compiling dependencies apt libraries
  • 1 个回答
  • 1390 Views
Martin Hope
Guerlando OCs
Asked: 2019-05-12 12:49:02 +0800 CST

如何安全下载新内核?

  • 5

我想为我的 ubuntu 测试一个新内核。我想要最新的稳定内核。我怎样才能安全地做到这一点?也就是说,没有http下载。

updates kernel
  • 2 个回答
  • 892 Views
Martin Hope
Guerlando OCs
Asked: 2019-02-18 23:55:20 +0800 CST

一段时间后运行需要 sudo 的命令

  • 31

我通常会

sleep 4h; command

在 4 小时后执行命令。但是,如果该命令需要sudo,它将不起作用。

sudo在我运行命令时是否可以授予权限sleep?

scripts bash sudo
  • 4 个回答
  • 7080 Views
Martin Hope
Guerlando OCs
Asked: 2019-02-18 17:37:14 +0800 CST

未安装模块“OpenGLUnderQML”

  • 1

这是我的 main.qml 文件导致此错误的原因:

import OpenGLUnderQML 1.0

我应该在 ubuntu 上安装什么?

package-management qt
  • 1 个回答
  • 209 Views
Martin Hope
Guerlando OCs
Asked: 2018-11-11 05:32:53 +0800 CST

错误:无法在 http+docker://localhost 连接到 Docker 守护程序 + docker 守护程序上的分段错误

  • 0

我在运行最新的 raspbian 的树莓派零上安装了 docker

curl -sSL https://get.docker.com | sh

和码头工人组成

sudo pip install docker-compose

当我在树莓中运行 docker-compose 时:

sudo docker-compose up
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

当我这样做时sudo dockerd:

sudo dockerd
Segmentation fault

由于分段错误,docker 守护程序似乎无法正常工作。我应该怎么办?

services pip docker raspberrypi
  • 1 个回答
  • 4722 Views
Martin Hope
Guerlando OCs
Asked: 2018-10-30 02:13:47 +0800 CST

mount samba 共享给出“在 /etc/fstab 中找不到 [mount path]”

  • 0
sudo mount -t cifs -o  //192.168.0.3/Public /media/external
mount: /media/external: can't find in /etc/fstab.

路径/media/external存在并且是空的。如果我这样做,smbclient //192.168.0.3/Public我可以完美地看到这些文件。

怎么了?这似乎是一个本地错误,因为该错误是即时的

挂载在 /etc/fstab 中找不到设备没有用

filesystem fstab mount
  • 1 个回答
  • 3474 Views
Martin Hope
Guerlando OCs
Asked: 2018-10-28 15:07:17 +0800 CST

如何在 ubuntu 18.04 上获取 pgp 的 scdaemon?

  • 3

如何在 ubuntu 18.04 上获取 pgp 的 scdaemon?似乎对于旧版本它存在,但是我应该如何为新版本安装?

PS:我正在尝试使用gpg --edit-card

package-management security gnupg signature
  • 1 个回答
  • 3885 Views
Martin Hope
Guerlando OCs
Asked: 2018-10-12 19:57:07 +0800 CST

可以使用 nautilus 挂载 SMB 共享,但不能使用 smbclient

  • 2

我可以通过简单地添加位置来使用 nautilus 挂载我的 SMB 共享smb://ip

这是我在另一台计算机上使用 smbclient 时发生的情况:

lz@air:/media$ smbclient -L //192.168.0.3
WARNING: The "syslog" option is deprecated
Enter WORKGROUP\lz's password: 
OS=[Windows 6.1] Server=[Samba 4.5.12-Debian]

    Sharename       Type      Comment
    ---------       ----      -------
    Public          Disk      
    IPC$            IPC       IPC Service (Samba 4.5.12-Debian)
Connection to 192.168.0.3 failed (Error NT_STATUS_CONNECTION_REFUSED)
NetBIOS over TCP disabled -- no workgroup available

这是本地的,本地主机:

pi@raspberrypi:~ $ smbclient -L localhost
WARNING: The "syslog" option is deprecated
Enter pi's password: 
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.5.12-Debian]

    Sharename       Type      Comment
    ---------       ----      -------
    Public          Disk      
    IPC$            IPC       IPC Service (Samba 4.5.12-Debian)
Connection to localhost failed (Error NT_STATUS_CONNECTION_DISCONNECTED)
NetBIOS over TCP disabled -- no workgroup available

这是我的 SAMBA 配置:

RUN echo '[global]\n\
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536\n\
smb ports = 445\n\
max protocol = SMB2\n\
min receivefile size = 16384\n\
deadtime = 30\n\
os level = 20\n\
map to guest = bad user\n\
printer = bsd\n\
printcap name = /dev/null\n\
load printers = no\n\
create mask = 0644\n\
force create mode = 0644\n\
directory mask = 0755\n\
force directory mode = 0755\n\
browsable = yes\n\
writable = yes\n\
guest account = root\n\
force user = root\n\
force group = root\n\
[Public]\n\
path = /data/share\n\
guest ok = yes\n\
read only = no' > /etc/samba/smb.conf

值得一提的是,我的 samba 上没有密码

更新:

在做了下面评论中所说的之后,我有

lz@air:~$ smbclient -L //192.168.0.3
WARNING: The "syslog" option is deprecated
Enter WORKGROUP\lz's password: 
OS=[Windows 6.1] Server=[Samba 4.5.12-Debian]

    Sharename       Type      Comment
    ---------       ----      -------
    Public          Disk      
    IPC$            IPC       IPC Service (Samba 4.5.12-Debian)
OS=[Windows 6.1] Server=[Samba 4.5.12-Debian]

    Server               Comment
    ---------            -------

    Workgroup            Master
    ---------            -------
    WORKGROUP

我不应该看到我的文件夹吗?我应该如何安装这个?

nautilus networking server samba mount
  • 1 个回答
  • 1860 Views
Martin Hope
Guerlando OCs
Asked: 2018-10-06 16:06:56 +0800 CST

如何通过 id 或易于键入的内容删除路线

  • 0
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
192.168.0.1     0.0.0.0         255.255.255.255 UH    0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.1     0.0.0.0         255.255.255.255 UH    0      0        0 eth0

如果我想从上面删除一些路由,我必须输入所有内容:ip、网关、网络掩码和接口。

有没有简单的方法来删除路线?我一直都需要它,而且输入所有内容都会很烦人。

networking
  • 1 个回答
  • 4296 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve