火星博客

这是来自火星的博客

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 ,如果没有请添加。修改好就可以重启系统了。

一、修复软件升级源报错

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

1.制作proxmox ve虚拟机,引导盘:传送门

2.建立虚拟机。这里需要注意的选项:
上传引导盘img后,挂载为sata0硬盘:

qm importdisk 101 /var/lib/vz/images/101/synoboot.img local-lvm

sata1随便分配一个空白硬盘,待装完系统后删除。
scsi控制器选用默认的LSI53c895a,传统bios方式启动,切记不能用uefi方式;硬盘0挂载sata最多只支持6块硬盘(经测试推荐), scsi支持12块,virtio则支持无限多块;

3.使用winscp登录虚拟机,上传相关synoboot.img文件到/var/lib/vz/images/{VM_ID}/

3.挂载硬盘:

qm set 101 --sata1 /dev/disk/by-id/ata-TOSHIBA-TR200_58IB706QK3US 
&& qm set 101 --sata2 /dev/disk/by-id/ata-TOSHIBA-TR200_58IB706HK3US 
&& qm set 101 --sata3 /dev/disk/by-id/ata-TOSHIBA-TR200_58IB7077K3US 
&& qm set 101 --sata4 /dev/disk/by-id/ata-TOSHIBA-TR200_58IB706PK3US 
&& qm set 101 --sata5 /dev/disk/by-id/ata-TOSHIBA-TR200_58IB707FK3US

Read More…