From 8a60b1b7306588b0541d79d54a7c8f8f8a1c8657 Mon Sep 17 00:00:00 2001 From: light <1870499383@qq.com> Date: Thu, 17 May 2018 15:50:39 +0800 Subject: [PATCH] openstack sth --- openstack/install.md | 13 ++++++++++ openstack/passthrough.md | 54 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 openstack/passthrough.md diff --git a/openstack/install.md b/openstack/install.md index 3575149..98311dd 100644 --- a/openstack/install.md +++ b/openstack/install.md @@ -6,6 +6,19 @@ ## keystone ``` bash + +name: controller +data-dir: /var/lib/etcd +initial-cluster-state: 'new' +initial-cluster-token: 'etcd-cluster-01' +initial-cluster: controller=http://192.168.234.201:2380 +initial-advertise-peer-urls: http://192.168.234.201:2380 +advertise-client-urls: http://192.168.234.201:2379 +listen-peer-urls: http://0.0.0.0:2380 +listen-client-urls: http://192.168.234.201:2379 + + + docker pull mysql docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql docker exec -i -t id /bin/bash diff --git a/openstack/passthrough.md b/openstack/passthrough.md new file mode 100644 index 0000000..59f7271 --- /dev/null +++ b/openstack/passthrough.md @@ -0,0 +1,54 @@ +# 显卡穿透 + + + +``` bash +sudo nano /etc/default/grub +#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on vfio-pci.ids=1002:67df,1002:aaf0" +sudo update-grub +sudo update-grub2 + + +sudo nano /etc/modprobe.d/blacklist.conf + +blacklist nouveau +blacklist lbm-nouveau +options nouveau modeset=0 +alias nouveau off +alias lbm-nouveau offenter code here + + +#blacklist amdgpu +#options amdgpu modeset=0 +#alias amdgpu off + + + +sudo nano /etc/modprobe.d/nouveau-kms.conf + +# options nouveau modeset=0 + +sudo nano /etc/modprobe.d/amdgpu-kms.conf +#options amdgpu modeset=0 + + + +nano /etc/modprobe.d/vfio.conf + +options vfio-pci ids=10de:1401,10de:0fba + +sudo nano /etc/initramfs-tools/modules + +vfio +vfio_iommu_type1 +vfio_pci +vfio_virqfd + +sudo update-initramfs -u + + +nano /etc/libvirt/qemu.conf + +nvram = ["/usr/share/OVMF/OVMF_CODE.fd:/usr/share/OVMF/OVMF_VARS.fd"] + +``` \ No newline at end of file