neville1994
Senior Member
Mình dùng proxmox thì có tình trạng host không có mạng trong khi máy ảo VM có mạng, các bác có biết nguyên nhân vì sao không nhỉ
Cho e xin số điện thoại hay fb e hỏi này xíu được k ạTheme Link - GitHub - walkxcode/homer-theme:A custom Homer theme! (https://github.com/walkxcode/homer-theme)
Mã:title: "Homer Dashboard" subtitle: "Walkx" logo: "logo.png" header: false footer: false #footer: '<p>Theme made with <span class="has-text-danger">❤️</span> by <a href="https://github.com/WalkxCode">Walkx</a></p>' # Set false if you want to hide it. stylesheet: - "assets/custom.css" defaults: layout: 'columns' # Either 'columns', or 'list' colorTheme: 'dark' # One of 'auto', 'light', or 'dark' columns: "3" # You can change this to any number that is a factor of 12: (1, 2, 3, 4, 6, 12) theme: default colors: light: highlight-primary: "#fff5f2" highlight-secondary: "#fff5f2" highlight-hover: "#bebebe" background: "#12152B" card-background: "rgba(255, 245, 242, 0.8)" text: "#ffffff" text-header: "#fafafa" text-title: "#000000" text-subtitle: "#111111" card-shadow: rgba(0, 0, 0, 0.5) link: "#3273dc" link-hover: "#2e4053" background-image: "../assets/wallpaper-light.jpeg" # Change wallpaper.jpeg to the name of your own custom wallpaper! dark: highlight-primary: "#181C3A" highlight-secondary: "#181C3A" highlight-hover: "#1F2347" background: "#12152B" card-background: "rgba(24, 28, 58, 0.8)" text: "#eaeaea" text-header: "#7C71DD" text-title: "#fafafa" text-subtitle: "#8B8D9C" card-shadow: rgba(0, 0, 0, 0.5) link: "#c1c1c1" link-hover: "#fafafa" background-image: "../assets/wallpaper.jpeg" services: - name: "ZCI" icon: "fas fa-server" items: - name: "proxmox" logo: "assets/tools/proxmox.png" # Change github.png to the name of your own custom icon! type: "Proxmox" url: "https://proxmox.url" node: "pve" warning_value: 50 danger_value: 80 api_token: "PVEAPIToken=root@pam!API-USER-TOKEN-HERE" # values below this line are optional (default value are false/empty): hide_decimals: true # removes decimals from stats values. hide: ["vms",'lxcs'] # hides information. Possible values are "vms", "vms_total", "lxcs", "lxcs_total", "disk", "mem" and "cpu". small_font_on_small_screens: true # uses small font on small screens (like mobile) small_font_on_desktop: true # uses small font on desktops (just in case you're showing much info) target: "_blank" - name: "openwrt" logo: "assets/tools/openwrt.png" # Change github.png to the name of your own custom icon! subtitle: "wifi-access-point" type: Ping tag: "openwrt" tagstyle: "is-primary" # This will display the is-primary color! Try changing it to; is-link, is-info, is-success, is-warning or is-danger! url: "https://url.here" target: "_blank" - name: "pfsense" logo: "assets/tools/openvpn.png" # Change github.png to the name of your own custom icon! subtitle: "fw-dhcp-openvpn" type: Ping tag: "outbound-vpn" tagstyle: "is-primary" # This will display the is-primary color! Try changing it to; is-link, is-info, is-success, is-warning or is-danger! url: "https://url.here/" target: "_blank" - name: "Pi-hole" logo: "assets/tools/pi.png" #subtitle: "Network-wide Ad Blocking" # optional, if no subtitle is defined, PiHole statistics will be shown url: "http://url.here/admin" tagstyle: "is-primary" target: "_blank" tag: "pihole" type: PiHole - name: "miap" logo: "assets/tools/miwifi.png" # Change github.png to the name of your own custom icon! subtitle: "wifi-access-point" tag: "miap" type: Ping tagstyle: "is-primary" # This will display the is-primary color! Try changing it to; is-link, is-info, is-success, is-warning or is-danger! url: "http://url.here.zc/" target: "_blank" - name: "gateway" logo: "assets/tools/telstra.png" # Change github.png to the name of your own custom icon! subtitle: "internet-gateway" tag: "mgw" type: Ping tagstyle: "is-primary" # This will display the is-primary color! Try changing it to; is-link, is-info, is-success, is-warning or is-danger! url: "http://url.here" target: "_blank" - name: "zstorage" logo: "assets/tools/zstorage.png" # Change github.png to the name of your own custom icon! subtitle: "data-storage" tag: "zstorage" type: Ping tagstyle: "is-primary" # This will display the is-primary color! Try changing it to; is-link, is-info, is-success, is-warning or is-danger! url: "https://url.here/" target: "_blank" - name: "ZCS" icon: "fab fa-buromobelexperte" items: - name: "jellyfin" logo: "assets/tools/jellyfin.png" url: "http://url.here" type: "Emby" apikey: "API-KEY" libraryType: "movies" #Choose which stats to show. Can be one of: music, series or movies. target: "_blank" tagstyle: "is-info" tag: "jellyfin" - name: "torrent" logo: "assets/tools/torrent.png" # Change github.png to the name of your own custom icon! subtitle: "torrent" tag: "qbittorrent" type: "qBittorrent" rateInterval: 2000 # Interval for updating the download and upload rates. torrentInterval: 5000 # Interval for updating the torrent count. target: "_blank" # optional html a tag target attribute url: 'http://url.here:8080/' tagstyle: "is-info" - name: "Portainer" logo: "assets/tools/portainer.png" url: "http://url.here/" subtitle: "portainer-docker" # optional, if no subtitle is defined, PiHole statistics will be shown type: Ping tag: "portainer" target: "_blank" tagstyle: "is-info" - name: "wireguard" type: Ping logo: "assets/tools/wireguard.png" subtitle: "inbound-vpn" tag: "wireguard" url: "http://url.here/" target: '_blank' tagstyle: "is-info" - name: "ZCF" icon: "fas fa-heart" items: - name: "xiaolol" logo: "assets/tools/voz-logo.png" subtitle: "chemgio-xiaolol" tag: "voz" tagstyle: "is-info" url: "https://voz.vn/f/diem-bao.33/" target: "_blank"
Nếu bật passthrough thì packet của bác sẽ tiếp tục truyền xuống để check với các rule dưới. Nếu không bật thì check thấy match với 1 rule thì sẽ ngừng, ko check các rule ở phía bên dưới rule đã match nữa.passthrough là gì mn nhỉ
nếu ở context của mấy ông trên này hay nói thì có nghĩa là cho phép máy ảo trực tiếp điều khiển thiết bị phần cứng mà không cần phải qua lớp ảo hóa nào.passthrough là gì mn nhỉ
Bạn ở trên đã nói rất rõ về nguyên lý hoạt động của Passthrough. Dưới đây tôi xin giải thích theo hướng kỹ thuật.passthrough là gì mn nhỉ
vậy bác có hướng dẫn làm chi tiết k để mình thực hành với amd Rx470 hoặc nvidia bất kỳBạn ở trên đã nói rất rõ về nguyên lý hoạt động của Passthrough. Dưới đây tôi xin giải thích theo hướng kỹ thuật.
Device (VGA, Soundcard, Network controller,...)
Mỗi device (phần cứng) được xác định bởi cặp MID-DID. Trong đó MID là số ID của nhà sản xuất, và DID là số ID của của thiết bị được nhà sản xuất đặt. Nhờ có MID-DID mà máy biết cài driver nào cho device trên máy. Và driver điều khiển thiết bị qua function của device.
Passthrough
Khi thực hiện passthrough, hypervisor sẽ unbind driver của nhà sản xuất, và bind driver mới chúng ta tạm gọi là passthrough driver (VFIO trong linux). Sau đó sẽ thông báo MID-DID cho máy ảo sử dụng driver của nhà sản xuất để điều khiển thiết bị. Còn passthrough driver chỉ bắc cầu giữa OS ảo và device qua function. Nó không quan tâm dữ liệu (lệnh) truyền giữa hai bên.
OS ảo <-> VGA driver <-> Function ảo <-> Passthrough driver <-> Function thật <-> VGA thật
bác lên r/vfio với đọc guidevậy bác có hướng dẫn làm chi tiết k để mình thực hành với amd Rx470 hoặc nvidia bất kỳ
iGPU có hỗ trợ công nghệ gvt-g (split igpu) thì vừa passthrought vừa dùng được màn hình cho proxmox luôn bácbác lên r/vfio với đọc guide
![]()
[TUTORIAL] - PCI/GPU Passthrough on Proxmox VE 8 : Installation and configuration
In this article, I propose taking a closer look at the configuration process for setting up PCI Passthrough on Proxmox VE 8.0 (I had initially planned this article for Proxmox VE 7, but since the new version has just been released, it's an opportunity to test!). This article will be the...forum.proxmox.com
chú ý mấy điều:
passthrough gpu thì máy nên có 1 card màn hình khác để nhìn, nếu k có thì khi boot máy ảo lên bạn sẽ mất console của proxmox (remote qua web ui vẫn được thôi)
bạn cần kiểm tra iommu group, vì bạn sẽ phải pass hết thiết bị trong cùng 1 iommu vào vm


cái này giống kiểu SR-IOV mà dùng cho gpu ấy nhiểiGPU có hỗ trợ công nghệ gvt-g (split igpu) thì vừa passthrought vừa dùng được màn hình cho proxmox luôn bác![]()
Tương tự thế đó bác. Mà gpu thì dùng vGPU cho nó ngon báccái này giống kiểu SR-IOV mà dùng cho gpu ấy nhiể

cái gvt đấy đúng kiểu budget vGPU của ông teo cho người dùng còn gìgpu thì dùng vGPU cho nó ngon bác![]()

Uhm bác. Dành cho hệ các "người nghèo" mà đam mêm công nghệ đó báccái gvt đấy đúng kiểu budget vGPU của ông teo cho người dùng còn gì![]()
. Tận dụng triệt để phần cứng.
Thế à. Em trước dùng i5 9400f. Lúc cài thì cắm. Cài xong rút ra vẫn okae nào có giải pháp cho mấy con CPU XEON, cắm card để cài proxmox, cài xong rút card rời ra cho đỡ tốn điện không![]()
vẫn nhận mạng OK à bạnThế à. Em trước dùng i5 9400f. Lúc cài thì cắm. Cài xong rút ra vẫn ok
tại trước mình cắm mấy card usb pcie, nếu rút ra thì id card LAN trên main nó sẽ nhảy => mất mạng phải cắm màn hình vào console chỉnh lại trong còn card VGA chưa thử, vì tháo card VGA ra thì còn gì cắm màn hình nữa đâu mà chỉnhnano /etc/network/interfaces

promox noó k xài card mấy nên mình nghĩ nó sẽ k tốn điện lắm đâu 10w/h chắc là cùngvẫn nhận mạng OK à bạntại trước mình cắm mấy card usb pcie, nếu rút ra thì id card LAN trên main nó sẽ nhảy => mất mạng phải cắm màn hình vào console chỉnh lại trong
còn card VGA chưa thử, vì tháo card VGA ra thì còn gì cắm màn hình nữa đâu mà chỉnh![]()
nếu main có cổng serial thì bạn có thể cấu hình serial console redirection để lỡ có mệnh hệ gì rớt mạng còn cổng serial để chọt. Hoặc dùng cáp usb ra serial nhưng cái này hơi hên xui nha.ae nào có giải pháp cho mấy con CPU XEON, cắm card để cài proxmox, cài xong rút card rời ra cho đỡ tốn điện không![]()
vậy phải lắp 2 card màn hình 1 cái cho promox 1 cái để passthourh vào à bácbác lên r/vfio với đọc guide
![]()
[TUTORIAL] - PCI/GPU Passthrough on Proxmox VE 8 : Installation and configuration
In this article, I propose taking a closer look at the configuration process for setting up PCI Passthrough on Proxmox VE 8.0 (I had initially planned this article for Proxmox VE 7, but since the new version has just been released, it's an opportunity to test!). This article will be the...forum.proxmox.com
chú ý mấy điều:
passthrough gpu thì máy nên có 1 card màn hình khác để nhìn, nếu k có thì khi boot máy ảo lên bạn sẽ mất console của proxmox (remote qua web ui vẫn được thôi)
bạn cần kiểm tra iommu group, vì bạn sẽ phải pass hết thiết bị trong cùng 1 iommu vào vm