PVE(Proxmox VE)安装Windows11虚拟机直通独立显卡,一台电脑上同时运行Macos及windows双系统,MacOS黑苹果双系统安装系统
3 min read
2 hours ago
Published on Jan 11, 2025
This response is partially generated with the help of AI. It may contain inaccuracies.
Table of Contents
Introduction
This tutorial will guide you through the process of installing Windows 11 on a Proxmox Virtual Environment (PVE), utilizing a dedicated graphics card, while simultaneously running macOS. This setup allows you to enjoy both operating systems on a single machine, making it ideal for users who require versatile environments for different tasks.
Step 1: Prepare Your Environment
- Ensure that your hardware supports virtualization (VT-x for Intel or AMD-V for AMD).
- Download and install Proxmox VE from the official website.
- Create a bootable USB drive with the Proxmox VE installer.
- Boot your computer from the USB and follow the installation prompts to set up Proxmox.
Step 2: Configure Proxmox for Windows 11
- Access the Proxmox web interface by entering the server's IP address in your browser.
- Create a new virtual machine:
- Click on "Create VM."
- Enter a name for your VM and select the appropriate VM ID.
- Choose "Linux" as the OS type and select the appropriate version.
- Allocate resources for the VM:
- Set the desired RAM and CPU cores.
- Choose the hard disk size, ensuring it meets Windows 11 requirements (64GB minimum).
Step 3: Install Windows 11
- Upload the Windows 11 ISO to the Proxmox storage by using the "ISO Images" tab.
- Start the VM and select the Windows 11 ISO as the boot device.
- Follow the installation prompts:
- Select your language, time, and keyboard preferences.
- Click "Install Now" and enter your Windows product key if prompted.
- Choose the installation type (Custom is recommended) and select the virtual hard disk for installation.
Step 4: Set Up GPU Passthrough
- Ensure that your graphics card is supported for passthrough.
- Modify the Proxmox configuration:
- Edit the file located at
/etc/default/grub
and add the following parameters to theGRUB_CMDLINE_LINUX_DEFAULT
line:
or for AMD:intel_iommu=on
amd_iommu=on
- Update GRUB with the command:
update-grub
- Edit the file located at
- Reboot your Proxmox server.
- Identify your GPU and configure passthrough:
- Use the command
lspci
to list PCI devices and find your GPU's ID. - Edit the VM's hardware settings in Proxmox:
- Add a new PCI device and select your GPU from the list.
- Use the command
- Start the VM and install the GPU drivers in Windows.
Step 5: Install macOS alongside Windows
- Create another VM for macOS following similar steps as for Windows:
- Use a compatible macOS image.
- Allocate appropriate resources and configure settings for macOS.
- Ensure that the macOS VM does not interfere with Windows performance.
Conclusion
You have successfully set up a dual-boot environment with Windows 11 and macOS using Proxmox VE. This configuration allows you to leverage the strengths of both operating systems on a single machine. For further enhancements, consider exploring additional configurations or software tools that can optimize the performance of your virtual machines.