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

How to Generate Random Numbers in JavaScript

Does your next JavaScript project need a random number to work? Maybe you are creating a poker game for your site? To do...
28/12/2020

How to run multiple commands in Linux

Different types of commands are needed to run from the terminal in Linux. Sometimes we need to run multiple commands at...
29/12/2020

How to Add a non-Root User to Kali Linux

Generally, Most Linux distros ask their users to use lower user privileges while using the Operating System. That is a...
29/12/2020
Bài Viết

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

SỰ KHÁC BIỆT GIỮA RESIDENTIAL PROXY VÀ PROXY DATACENTER
17/02/2024

Mua Proxy v6 US Private chạy PRE, Face, Insta, Gmail
07/01/2024

Mua shadowsocks và hướng dẫn sữ dụng trên window
05/01/2024

Tại sao Proxy Socks lại được ưa chuộng hơn Proxy HTTP?
04/01/2024

Mua thuê proxy v4 nuôi zalo chất lượng cao, kinh nghiệm tránh quét tài khoản zalo
02/01/2024