Install and run a Windows Virtual Machine under Debian/Ubuntu

29/12/2020
Chưa phân loại
In this tutorial we’ll quickly setup a Windows XP virtual machine using VirtualBox under Debian.

The first step is to download and install Virtualbox by editing the repositories’ file and running “apt install virtualbox” as root.

First run

nano /etc/apt/sources.list

and edit the file by adding the line

"deb http://download.virtualbox.org/virtualbox/debian stretch contrib"

as shown in the following image

Then run

wget https://www.virtualbox.org/download/oracle_vbox_2016.asc

And

sudo apt-key add oracle_vbox_2016.asc

Now we can run

"apt update && install virtualbox-5.2"

After getting the error above I just ran “apt upgrade && install –help” and then I executed

sudo apt-get install virtualbox-5.2

Once our VirtualBox is installed lets get an ISO for the system we want to use, in this case Windows XP 32 bits, you will need to find the location for your self based on your situation.

Once your ISO is ready, move or copy it to the subdirectory /root/VirtualBox VMs/
In my case the VM was previously created under Windows XP-32, where “root” is the username executing the virtual machine.

Run Virtualbox for first time:

virtualbox

Click on NEW and fill the required information

In this case we’ll use a Windows XP environment, fill using the information fitting your settings, the field Name is free.


Select the amount for your virtual machine ram memory.

Assign an amount and space from your hard disk for your VM.

We’ll use a VirtualBox image based on an ISO we’ll download.

The last screen is for confirmation, confirm and finish creating the VM.
When starting the VM for first time it will ask for an optical device with the OS installator,

Click on the folder’s icon with the green arrow and select the Windows ISO you got as shown in the following image

The Windows installation process will start, in this tutorial I assume you know how to install Windows, since Windows XP installation is completely intuitive.

Press enter and select the first option Quick NTFS format

It will start formatting and copying system files

After installing initial files the installation process will ask for little information.

Press Next and select Device and Organization names, you can write whatever you want in the fields.

Next field will ask for an optional password and time zone, finish the steps letting the installator to continue. You will be asked about a WORKGROUP name, fill it freely.

After finishing the installation Windows will show the Welcome Screen, click on Next, select your security level and let the installator to setup your internet connection, try the “local network” or “ home network” options first.

Then it will ask for username and our Windows will start!

That’s how we get a clean Windows XP virtual machine running on Linux, you can replace the ISO for any other system and choose different OS type repeating this process to virtualize almost every existing OS.

Guest Additions:

“Guest Additions” improve the guest’s operativity by enabling functions like mouse-pointer integration or sharing files between the host and the guest, it will make your virtual machine easier to manage and ind increase it’s productivity.

On the main menu click on Devices and on the last option, “Insert Guest Additions CD image

Click on Next

Next again…optionally you can edit your destination folder.

Select all options you want and click on Install, then allow your system to reboot when asked as shown below.

At this point we have a flexible virtual machine to start working, it will require updates to solve drivers issues, the first recommendation is to run Windows Update and let it work including hardware updates.

I hope you found this tutorial easy and helpful, thank you for reading it.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Atom 1.16.0 released – Install Atom Text Editor in Ubuntu

Atom Text Editor v1.16.0 recently released, is one of the most widely used hackable text editor and its built on atom-shell....
28/12/2020

Install TeamSpeak 3 Client 3.1.0 on Linux – Improved echo cancellation

TeamSpeak 3 is a secured voice enabled software that allows users to communicate between each other over the Internet or...
28/12/2020

Top 5 CAD software available for Linux

If you’re an engineer then you must be familiar with the term “CAD”. Computer Aided Design is a term which is used...
29/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Dịch Vụ Xây Dựng Hệ Thống Peering Với Internet Exchange (IXP)
04/04/2025

Dịch Vụ Triển Khai VPN Site-to-Site & Remote Access
04/04/2025

Dịch Vụ Thiết Lập Hệ Thống Tường Lửa (Firewall)
04/04/2025

Dịch Vụ Triển Khai Hệ Thống Ảo Hóa & Cloud
04/04/2025

Dịch Vụ Triển Khai Hệ Thống Ceph
04/04/2025