openstack sth
This commit is contained in:
parent
42cc8650db
commit
8a60b1b730
@ -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
|
||||
|
||||
54
openstack/passthrough.md
Normal file
54
openstack/passthrough.md
Normal file
@ -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"]
|
||||
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user