The following are step by step instructions for installing Xubuntu and Wine in a Hyper-V VM running on OVH and Local hosted VM’s
Installing xubuntu and wine
Ovh to use static IP you must create a mac address in the OVH control panel
download an iso image.
I used xubuntu minimal for its lightweight desktop gui.
a gui is required for wine to operate properly.
xubuntu-25.10-minimal-amd64.iso
From - Hyper-V or windows admin center
Create a VM
Gen2
Add a virtual switch for the network
I used a 20 GB hard disk
Create Then go to settings
For OVH
Networks → Advanced → Static → Mac Address: Enter mac address here.
Security → Template → Microsoft UEFI Certification Authority
Start Then Connect to the VM
You should now see the xubuntu start screen and a very useful spinning circle.
When startup is complete you will be presented with a desktop
use Install Xubuntu Minimal
Enter the following items and click Next
Language
Keyboard
Do not connect to the internet if you are using OVH as we need to add a setting later. If you are using your local computer you can enter those settings now or a local VM you can enter the settings now.
- Note: if you do try to enter your settings here for OVH setups, the install and boots will take much longer as the network settings will wait to time out.
Interactive installation
Select xubuntu
Do not install third party software
Erase disk and install Xubuntu
I selected no encryption
Enter credentials - Note - For this install i selected that i do not require a password to log in. This may change later if I get systemd working
Select Region
Install and wait until the system is installed - Take a break, do other work or just watch the very useful progress bar.
Once completed - Use restart now
Press enter to remove the installation media and wait for bootup.
Use your password to log in
Use the upper top left blue circle to start terminal emulation
Note: sudo elevates the command you are using to administrator. This is similar to opening a windows command prompt in admin mode.
The first time you use sudo you will be asked to enter your administrator password
Firewall commands: Just the basics here. Salt to your needs.
sudo ufw allow http
sudo ufw allow https
sudo ufw enable
sudo ufw status
Note: to enable from an ip to a specific port. this example is for ssh
sudo ufw allow from 123.123.123.123 to any port 22 proto tcp
Note: to disable use the following example
sudo ufw deny http
Edit network settings
Use the blue circle and then select all applications and select advanced network settings. Go to the IPV4 tab and enter settings. Then Save
Return to or open a new Terminal window using the blue circle
navigate to /etc/netplan/
note: Linux uses the forward slash rather than the back slash when naming directory structures
cd /etc/netplan
Look for yaml files using ls. The -l option shows date and time etc.
ls -l
there may be several files listed. edit the newest file created by the advanced network utility.
hint. you can type out the enter file name such as
sudo nano 90-NM-XXXXXXXXXXXXX.yaml
or you can type something like
sudo nano 9 <press the tab key to finish the line and then press enter>
But before you edit the file. If you did enter the editor then you can use CTRL-X to exit
Now would be a good time to make a backup copy. Linux uses the cp command
sudo cp xxx.yaml xxx.yaml.bu
hint - you can use the tab key to make this quicker
Now back to editing the file
sudo nano 9 <press the tab key to finish the line and then press enter>
Edit the file to look similar to the file below (note the indentation is critical—use spaces, not tabs):
Leave the line with “Your interface as is” mine is eth0. yours could be different as shown below. the on-link: true line is critical for OVH to work
BEGIN FILE
network:
version: 2
ethernets:
enp3s0: # Your interface name
renderer: NetworkManager
addresses:
- 10.10.10.2/24 # Your static IP
routes:
- to: default
via: 10.10.10.1
on-link: true
END FILE
Use CTRL-X to exit and save the file
Test your network file
sudo netplan try
sudo netplan apply
Test the connection
png www.google.com
Update the system
sudo apt update
sudo apt upgrade
Shutdown Xubuntu
From a terminal window use
sudo apt shutdown now
Or blue circle then orange left arrow then shutdown
This is a good time to consider creating a checkpoint
Start the VM and then connect
Use the blue circle to open a terminal window
sudo apt install wine
sudo apt install winetricks
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install wine32:i386
now test wine by running the wine configuration program
winecfg
if you get an error. unable to load kernal32.dll then you will need to move your .wine folder which allows wine to rebuild its defaults
sudo mv ~/.wine ~/.wine.old
Try running winecfg again
exit winecfg
test notepad
wine notepad
Exit notepad
some terminal notes
pwd displays the current directory
~/ represents your home directory
if my user is jeff then my home directory is
/home/jeff
I can navigate to this location using both
cd /home/jeff and cd ~/
When uploading files using ssh or other tools it is usually best to transfer files to this directory
The default folder for Wine is
~/.wine
and the windows C: drive is located under
~/.wine/drive_c
upload your windows EXE
now run
wine ~/.wine/drive_c/yourapplicationfolder/yourapplicationname.exe
Now would be a good time to shutdown and create a checkpoint