Windows VM Configuration on Fedora
Posted on - February 12, 2025 by Andy Cinquin
VMFedoraWindows
Table of Contents
- Prerequisites and Initial Setup
- Windows VM Configuration
- UFW Firewall Configuration
- File Sharing Configuration
- Troubleshooting
- Advanced Configurations
1. Prerequisites and Initial Setup (On Fedora Host)
2. Windows VM Configuration
Creating the VM (Via virt-manager on Fedora)
- Open virt-manager
- Click "New VM"
- Choose "Import existing disk image"
- Select Windows ISO
- Recommended configuration:
- RAM: 4GB minimum
- CPU: 2 cores minimum
- Storage: 50GB minimum
- Network type: NAT
VM Performance Configuration
In VM settings:
6. Add hardware:
6. Add hardware:
- Channel Spice (for clipboard)
- Display Spice (for display)
- 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
- CPU configuration:
- Model: "Host passthrough"
- Topology: Match your CPU
- Disk configuration:
- Bus: VirtIO
- Cache: none
- IO mode: native
Audio and USB Configuration
On Fedora Host
In virt-manager
- Add audio devices:
- Add Hardware → Sound device
- Model: ich9
- 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 !☕