Skip to content

Proxmox config files for/and Windows VM with working NVidia Graphics card passthrough.

Notifications You must be signed in to change notification settings

Andrei-Paul/proxmox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 

Repository files navigation

proxmox

Proxmox config files for/and Windows VM with working NVidia Graphics card passthrough.

After modifications to /etc/default/grub and /etc/modprobe.d/passthrough.conf, run:

update-initramfs -u -k all

Personal Initial Instalation

-> Options
  -> Filesystem
      zfs (RAID1)
  -> Disk Setup
    -> Harddisk 0
        /dev/ds[REDACTED] ([REDACTED]GiB, [REDACTED] [REDACTED]-7)
    -> Harddisk 1
        /dev/ds[REDACTED] ([REDACTED]GiB, [REDACTED] [REDACTED]-0)
    -> Harddisk 2
        -- do not use --
    -> Harddisk 3
        -- do not use --
    -> Harddisk 4
        -- do not use --
-> Country
  [REDACTED]
-> Time zone
  [REDACTED]
-> Keyboard Layout
  [REDACTED]
-> Password
  [REDACTED]
-> Confirm
  [REDACTED]
-> Email
  [REDACTED]
-> Mangement Interface:
  [REDACTED]8
-> Hostname (FQDN):
  proxmox[REDACTED]
-> IP Address (CIDR)
  [REDACTED]49 / [REDACTED]
-> Gateway:
  [REDACTED]
-> DNS Server:
  [REDACTED]

Disable Enterprise Repository

mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.disabled

Enable No Subscription Repository

echo 'deb http://download.proxmox.com/debian/pve buster pve-no-subscription' > /etc/apt/sources.list.d/pve-no-subscription.list

Enable Ceph Repository

echo 'deb http://download.proxmox.com/debian/ceph-octopus buster main' > /etc/apt/sources.list.d/ceph.list

Set [ Email from address ]

-> Datacenter
  -> Options
    -> Email from address
      [REDACTED]@[REDACTED]

Configure Google Mail relaying

# Based on https://www.naturalborncoder.com/linux/2023/05/19/setting-up-email-notifications-in-proxmox-using-gmail/
apt update
apt install libsasl2-modules mailutils

# Setup Account
echo "smtp.gmail.com [REDACTED]@[REDACTED]:[REDACTED]" > /etc/postfix/sasl_passwd # "Replace" with mail:password

chmod 600 /etc/postfix/sasl_passwd
postmap hash:/etc/postfix/sasl_passwd

# Setup Headers Rewrite
echo '/^From:.*/ REPLACE From: [REDACTED] <[REDACTED]@[REDACTED]>' > /etc/postfix/smtp_header_checks # "Replace" with hostname <mail>
postmap hash:/etc/postfix/smtp_header_checks

sed 's|relayhost =|#relayhost =\nrelayhost = smtp.gmail.com:587\nsmtp_use_tls = yes\nsmtp_sasl_auth_enable = yes\nsmtp_sasl_security_options =\nsmtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd\nsmtp_tls_CAfile = /etc/ssl/certs\nEntrust_Root_Certification_Authority.pem\nsmtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cache\nsmtp_tls_session_cache_timeout = 3600s\nsmtp_header_checks = pcre:/etc/postfix/smtp_header_checks\n#|' -i /etc/postfix/main.cf

# Reload configuration
postfix reload

# Test
echo "Test email from Proxmox: $(hostname)" | /usr/bin/proxmox-mail-forward

Set [ MAC address prefix ]

-> Datacenter
  -> Options
    -> MAC address prefix
      [ANY OF: x2:xx:xx: x6:xx:xx: xA:xx:xx: xE:xx:xx: ]

Disable Subscription Nag Screen

sed -i.backup -z "s/res === null || res === undefined || \!res || res\n\t\t\t.data.status.toLowerCase() \!== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service

About

Proxmox config files for/and Windows VM with working NVidia Graphics card passthrough.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published