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

Parsing HTML using Python

Parsing HTML is one of the most common task done today to collect information from the websites and mine it for various...
28/12/2020

CentOS Change Password

Passwords are the oldest and yet, effective form of security measure that almost every single system in the world offers...
29/12/2020

How to Use Kickstart to Install CentOS 7

How to Use Kickstart to Install CentOS 7 You can install CentOS 7 automatically with a Kickstart file. A Kickstart file...
28/12/2020
Bài Viết

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

Reliable IPv4 and IPv6 Subnet Rental Services: The Perfect Solution for Global Businesses
23/12/2024

Tìm Hiểu Về Thuê Proxy US – Lợi Ích và Cách Sử Dụng Hiệu Quả
11/12/2024

Mua Proxy V6 Nuôi Facebook Spam Hiệu Quả Tại Onetcomvn
03/06/2024

Hướng dẫn cách sử dụng ProxyDroid để duyệt web ẩn danh
03/06/2024

Mua proxy Onet uy tín tại Onet.com.vn
03/06/2024