火星博客

这是来自火星的博客

MAN手册-INTERFACES(5)

2019 02/28 周四 - No Comments
Tags: ,
Posted in 码农场

NAME

/etc/network/interfaces – network interface configuration for ifup and ifdown

DESCRIPTION

/etc/network/interfaces contains network interface configuration information for the ifup(8) and ifdown(8) commands. This is where you configure how your system is connected to the network.
Read More…

proxmox硬件直通

2019 02/27 周三 - No Comments
Tags:
Posted in 码农场

shell里面输入命令: nano /etc/default/grub

在里面找到:

GRUB_CMDLINE_LINUX_DEFAULT="quiet"

然后修改为:

GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"

如果是amd cpu请改为:

GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on"

在更新一下:

update-grub

到这里先不要重启。

在PVE的shell中输入:

nano /etc/modules

查看modules中是否有vfio、vfio_iommu_type1、vfio_pci、vfio_virqfd ,如果没有请添加。修改好就可以重启系统了。

系统备份

2019 02/26 周二 - No Comments
Tags: ,
Posted in 码农场

一、先查询系统盘和优盘使用情况

fdisk -l
lsblk

二、创建mnt下的子目录

dd if=/dev/nvme0n1 of=/mnt/sdf/pve_lede_backup.img bs=1440k

三、恢复到系统盘

dd if=/mnt/sdf/pve_lede_backup.img of=/dev/nvme0n1

一、修复软件升级源报错

1.注释掉不可用源

nano /etc/apt/sources.list.d/pve-enterprise.list

注释掉

#deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise

2.手动修复升级

echo "deb http://download.proxmox.com/debian/pve stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
wget http://download.proxmox.com/debian/proxmox-ve-release-5.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg
apt update && apt dist-upgrade

二、修复订阅报错

nano /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
if (data.status !== 'Active') {

替换为

if (false) {

三、修复启动时候的driver ‘pcspkr’ is already registered,aborting报错

使用命令:

dmesg |grep -i 'lookup'

查看信息表。

[ 0.000000] ACPI Error: [\_SB_.PCI0.XHC_.RHUB.HS11] Namespace lookup failure, AE_NOT_FOUND (20170831/dswload-210)
[ 0.000000] ACPI Exception: AE_NOT_FOUND, During name lookup/catalog (20170831/psobject-252)
echo "blacklist snd-pcsp" >> /etc/modprobe.d/blacklist.conf