Logo Cinquin Andy Signature

Windows VM Configuration on Fedora

Développeur Freelance - Logo

The sites and the associated resources.

Article Content

Windows VM Configuration on Fedora

Posted on  - February 12, 2025 by Andy Cinquin

VMFedoraWindows

Table of Contents

  1. Prerequisites and Initial Setup
  2. Windows VM Configuration
  3. UFW Firewall Configuration
  4. File Sharing Configuration
  5. Troubleshooting
  6. Advanced Configurations

1. Prerequisites and Initial Setup (On Fedora Host)

2. Windows VM Configuration

Creating the VM (Via virt-manager on Fedora)

  1. Open virt-manager
  2. Click "New VM"
  3. Choose "Import existing disk image"
  4. Select Windows ISO
  5. Recommended configuration:
    • RAM: 4GB minimum
    • CPU: 2 cores minimum
    • Storage: 50GB minimum
    • Network type: NAT

VM Performance Configuration

In VM settings:
6. Add hardware:
  • Channel Spice (for clipboard)
  • Display Spice (for display)
  1. In "Display Spice":
    • Enable "OpenGL"
    • Check "Listen on all network interfaces"

3. UFW Firewall Configuration (On Fedora Host)

4. File Sharing Configuration (On Fedora Host)

Samba Installation and Configuration

Access from Windows

In Windows Explorer, access the share via:
\\FEDORA_IP\share_name
Use credentials configured with smbpasswd.

5. Troubleshooting

Samba Sharing Issues

  • Check service status: systemctl status smb
  • Test locally: smbclient -L localhost
  • Check SELinux permissions

VM Issues

  • Check BIOS virtualization
  • Check libvirtd status: systemctl status libvirtd
  • For display issues, check spice-vdagent

Useful Verification Commands

6. Advanced Configurations

VM Performance Optimization

On Fedora Host

In virt-manager

  1. CPU configuration:
    • Model: "Host passthrough"
    • Topology: Match your CPU
  2. Disk configuration:
    • Bus: VirtIO
    • Cache: none
    • IO mode: native

Audio and USB Configuration

On Fedora Host

In virt-manager

  1. Add audio devices:
  • Add Hardware → Sound device
  • Model: ich9
  1. USB configuration:
  • Add Hardware → USB Host Device
  • Select devices to share

Advanced Network Configuration

On Fedora Host

Bridge Configuration Example

Additional Shared Folders

On Fedora Host

Snapshots and Backups

Snapshot Management

Useful Scripts

Automatic Start Script

Backup Script




🚀 Thanks for reading!
If you enjoyed this article, feel free to share it around.

💡 Got an idea? Let's talk !

DEVELOP YOUR PROJECTS TOGETHER

An idea, a project? I'm here to answer your questions and help you.
I'd be delighted to discuss your project with you!