This guide will help you set up an Arch Linux virtual machine on Hyper-V with enhanced session mode and custom configurations. Follow the steps below to create, configure, and customize your Arch Linux VM.
- NOTE: By default right now the root user and your username will use
password
as the default password.
- Hyper-V installed on your host machine
- Basic knowledge of Hyper-V and command-line usage
First, create an Arch Linux VM in Hyper-V. Refer to the images in the readme_images
folder for visual guidance:
-
Quick Create โจ
-
RAM Allocation ๐ง
Before booting the VM, enable host support for enhanced session mode:
Set-VM -VMName "ArchLinux" -EnhancedSessionTransportType HvSocket
Replace "ArchLinux"
with the name of your VM.
First Boot ๐
Boot the VM for the first time and proceed with the Arch Linux installation.
Run the initial setup script to install Arch Linux:
curl https://raw.githubusercontent.com/pentestfunctions/archsetup/main/setup.sh > setup.sh
chmod +x setup.sh
./setup.sh
This script will install Arch Linux and reboot the VM.
After rebooting, log in with the default credentials (username:password
), then proceed with the following steps:
-
Clone the Setup Repository ๐
git clone https://github.com/pentestfunctions/archsetup.git cd archsetup
-
Configure Hyper-V Enhanced Mode ๐ฅ๏ธ
chmod +x hypervsetup.sh ./hypervsetup.sh
Reboot the system after running this script. Connect using the enhanced RDP session prompt.
Customize your Arch Linux setup with the provided script:
-
Run the Customization Script ๐ ๏ธ
cd archsetup chmod +x customize.sh ./customize.sh
-
Edit Settings โ๏ธ
Adjust any additional settings as needed.
Finally, install essential tools and applications:
yay -S nano lolcat brave --noconfirm
After the tools are installed, you can rerun this script and everything should be green.
chmod +x install_tools.sh
./install_tools.sh
Close and relaunch your terminal to apply transparency settings if configured.
Your Arch Linux VM on Hyper-V is now set up with enhanced session mode and customized settings. You can start installing and configuring additional tools as per your requirements. Enjoy your new Arch Linux environment! ๐