Virtual windows in browser

Эмулятор Windows работающий в браузере, позволяет запускать различные версии операционной системы на одном и том же устройстве. Используйте его в ностальгических или образовательных целях. Некоторые эмуляторы даже работают как виртуальные машины, позволяя устанавливать и запускать совместимое программное обеспечение для тестирования. Независимо от того, зачем вам нужен эмулятор, эти эмуляторы Windows могут работать в вашем браузере.

1. Эмулятор Windows 95: Windows 95 в DOSBox

Если вы помните 90-е года, то эмулятор Windows 95 в DOSBox перенесет вас в прошлое. Запустить эту «древнюю» версию можно в браузере благодаря эмулятору DOSBox, который компилирует исходный код образа диска с Windows 95 на JavaScript. Эмулятор загружает образ в оперативную память и создает виртуальную среду для взаимодействия с операционной системой.

После загрузки эмулятора вы сможете выполнять различные действия, в том числе рисовать в Paint и писать в WordPad. Вы даже сможете играть во встроенные игры, поставляемые с Windows 95, такие как FreeCell, Hearts, Minesweeper и Solitaire.

Интересно: q4wine — графическая оболочка для Wine

Эмулятор Windows 95 сохраняет изменения, внесенные в локальное хранилище браузера, так что вы сможете найти любые файлы, созданные в программе Windows 95, например WordPad, на рабочем столе. Однако вы не сможете передавать файлы в эмулятор и из него или выходить в Интернет через Internet Explorer.

2. Эмулятор Windows 98: Windows 98 – Virtual x86

Windows 98 – Virtual x86 предлагает полностью функционирующую версию Windows 98 в виртуальной среде. Она имеет полный доступ к программам, играм и инструментам.

Вы можете даже просматривать веб-страницы через Internet Explorer, однако доступ к некоторым современным сайтам может оказаться невозможным. Если вы хотите, чтобы эмулятор имел доступ в Интернет, обязательно запустите файл networking.bat. Вы найдете его на рабочем столе. Кроме того, если вы технически подкованы, вы можете установить в эмулятор некоторые совместимые игры и программы.

Эмулятор позволяет загружать образы дисков с внешних устройств хранения данных. Кроме того, можно сохранять состояния эмулятора, которые браузер будет загружать в виде BIN-файлов. Их можно загрузить позже и продолжить работу с того места, на котором остановились.

3. Эмулятор Windows XP: WinXP

С помощью WinXP можно получить точный пользовательский интерфейс Windows XP. К сожалению, полной функциональности не получится, так как некоторые программы и опции не работают. Хотя Internet Explorer можно запустить, доступ к Интернету с его помощью невозможен.

Интересно: 5 лучших эмуляторов Game Boy Advance (GBA) для iOS

Зато можно изучить различные меню Windows XP. Можно даже запустить некоторые программы, например Paint и Winamp, и они будут работать так же, как и в оригинальной ОС. Например, Winamp будет воспроизводить музыкальные файлы.

Также вы можете играть в Minesweeper – единственную игру, которая запускается. Остальные игры, такие как Solitaire, FreeCell, Hearts и Pinball, к сожалению, не работают.

4. Эмулятор Windows 7: Win7 Simu

Win7 Simu – это очередное достоверное воссоздание одной из самых популярных операционных систем компании Microsoft: Windows 7. В эмуляторе можно изучить некоторые возможности Windows 7 и запустить некоторые приложения и игры.

Несколько программ уже установлены, включая Google Chrome Calculator, Notepad, Paint и Command Prompt. Они функциональны и работают так, как и следовало ожидать. Можно даже сохранять файлы, созданные в «Блокноте» и Paint.

Доступ в Интернет можно получить с помощью Chrome и Internet Explorer. Однако для этого необходимо загрузить расширение. В двух словах, iframes – это технология, которая встраивает веб-страницы в другие родительские веб-страницы. Предустановлены различные популярные игры, в том числе Mine Sweeper и Solitaire. Но, пожалуй, самым интригующим для геймеров является включение современных онлайн-игр, таких как Flappy Bird, Among Us, Minecraft Survival и Zombs Royale.

5. Эмулятор Windows 10: Windows VPS

Windows VPS – это не просто воссоздание Windows 10 а настоящая виртуальная машина После ее загрузки у вас будет 20 минут на использование пробной версии до отключения. При этом пробную версию можно загружать и использовать сколько угодно раз, каждый раз получая 20 минут бесплатного использования.

Во время работы с Windows VPS можно выполнять множество действий. Это и изменение настроек, и использование различных аксессуаров и административных инструментов Windows. Например, если вы хотите попробовать что-то сделать в PowerShell или в редакторе реестра, вы можете сделать это здесь. Однако после закрытия эмулятора прогресс не сохранится.

Для доступа в Интернет можно использовать Edge Вы также можете устанавливать новые программы на виртуальную машину и тестировать их в безопасной среде, не подвергая свой компьютер риску.

6. Эмулятор Windows 11: Win11React

Win11React – это эмулятор, использующий веб-технологии для максимально точного воспроизведения Windows 11 в браузере. Разработчик создал его с использованием JavaScript, React и CSS. Он не загружает образ Windows в оперативную память, как другие эмуляторы в этом руководстве, а запускает веб-приложение Windows 11 в браузере.

Win11React хорошо работает в качестве эмулятора, если вы хотите получить базовое представление о том, что такое Windows 11. При условии, что вы знаете о его ограничениях, вы не будете разочарованы. В эмуляторе можно запускать различные программы, включая Командную строку, Калькулятор и Блокнот. Однако сохранить все, что вы делаете во время работы с этими программами, невозможно. Например, можно зайти в File Explorer, но нельзя создать новую папку, а в Notepad нельзя сохранить созданные текстовые файлы.

Вы также имеете доступ к приложению «Настройки», но не можете ничего изменить. Меню базового уровня доступно, но перейти к более глубоким страницам настроек невозможно. В эмуляторе есть GitHub, Spotify и Discord, но они не функциональны. Это просто интерфейсы, напоминающие снимки различных состояний приложения. А вот Edge полностью функционален, и вы даже можете просматривать различные веб-сайты. Однако загрузить и установить ничего нельзя.

Знакомство с Windows без установки

Начиная с Windows 95 и заканчивая Windows 11, несложно найти эмуляторы Windows, которые помогут вам познакомиться с этими операционными системами. Самое приятное, что доступ к ним можно получить с различных устройств, если на них установлен современный браузер, и нет необходимости в установке.

Are you looking for a seamless way to test software, run applications, or learn new technologies without investing in expensive hardware? A windows virtual machine online could be the solution. These virtual environments allow you to replicate a full Windows operating system from the comfort of your browser or local device.

Virtual machines have become essential for developers, IT professionals, and even students. They provide a secure, isolated space to experiment with software or run resource-intensive applications. Temporary or free options, such as free windows vm and online virtual machine free, are particularly appealing for short-term needs like testing or training.

Popular platforms such as Microsoft Learn and Instruqt offer easy access to free virtual machines. With these tools, users can run Windows environments for a limited time, making them ideal for hands-on learning and remote tasks. Whether you’re exploring alternatives to Android Studio or preparing to modify your VM settings for CentOS Linux, virtual machines can simplify these processes.

In this guide, you’ll discover the best platforms for free virtual machine windows 10, learn how to get started, and find solutions tailored to your needs.

TL;DR

  • Access Free Windows VMs: Use platforms like Microsoft Learn VM, Sandbox, and Instruqt for free, temporary Windows environments.
  • Features and Limits: Free VMs typically offer limited CPU, RAM, and session durations (e.g., 2–4 hours).
  • Ease of Use: Most platforms require only a browser and a free account for setup.
  • Ideal for Testing and Learning: Perfect for tasks like software testing, Azure learning, and exploring Windows tools.
  • No Data Persistence: Save your work externally, as free VMs reset after sessions.
  • Best for Short-Term Needs: Ideal for students, developers, and professionals with temporary or lightweight requirements.

Table of Contents

Understanding the Need for Windows Virtual Machines

Understanding the Need for Windows Virtual Machines

Source: Toystack

Why are virtual machines becoming a go-to solution for so many users? A windows virtual machine online provides a safe, efficient way to test software, develop applications, or browse securely without affecting your primary system.

Virtual machines are indispensable in scenarios such as:

  • Software Testing: Developers can experiment with new code without risking the main operating system.
  • Application Development: VMs create isolated environments to build and test apps, making them an excellent alternative of android studio.
  • Secure Browsing: By isolating online activity, VMs safeguard against potential threats.

Temporary or free options, such as free windows vm and online virtual machine free, are particularly beneficial. They cater to developers needing short-term access, students experimenting with technology, or startups saving on infrastructure costs.

Free solutions like Microsoft Learn VM and Instruqt Windows Sandbox offer flexible environments. These options enable tasks like running Windows apps, adjusting VM settings for CentOS Linux, or exploring cloud-based tools like jio cloud for pc.

Whether for learning or professional use, a virtual machine ensures efficiency and adaptability.

How Windows Virtual Machines Work

How Windows Virtual Machines Work

Source: Toystack

windows virtual machine online operates by simulating a complete Windows environment on a host machine or a cloud platform. This process is made possible through virtualization technology, which uses software called a hypervisor to allocate resources like CPU, RAM, and storage from the host system to create an independent virtual environment.

Key Components of Virtual Machines

  • Virtualization: This technology enables one physical machine to run multiple virtual systems simultaneously.
  • Hypervisors: Tools like VMware or Hyper-V manage virtual machines by isolating them from the host system.
  • Cloud Infrastructure: Many VMs are hosted on platforms like Azure or AWS, offering remote accessibility and scalability.

Free vs. Paid Virtual Machines

  • Free VMs: Ideal for temporary needs like testing or learning, these options include limited resources. Examples include free online vm platforms like Microsoft Learn Sandbox.
  • Paid VMs: These provide extensive resources and longer usage times, suitable for production environments or large-scale applications.

Benefits of Browser-Based and Cloud-Hosted VMs

  • Easy Access: Browser-based options, such as free windows vm, eliminate the need for local installations.
  • Scalability: Cloud-hosted VMs can expand resources based on user needs.
  • Cost-Effectiveness: Solutions like free virtual machine windows 10 allow cost savings for short-term projects.

Whether you’re testing software, exploring jio cloud for pc, or preparing a VM for CentOS Linux, understanding these fundamentals ensures efficient use of virtual machines.

Top Platforms for Free Windows Virtual Machines

Top Platforms for Free Windows Virtual Machines

Source: Toystack

Microsoft Learn VM

One of the best free windows virtual machine options is the Microsoft Learn VM. With features such as 6 vCPU, 12GB RAM, and 126GB Disk, it provides powerful capabilities for testing, development, and learning. The VM is available for a 2-hour session, making it ideal for short-term use.

Setup Guide:

  1. Sign up or log in to your Microsoft Learn account.
  2. Access the VM setup page and choose the Windows environment.
  3. Follow the steps to launch the VM, which is pre-configured for hands-on training.
  4. Once the VM is running, start your session and explore the tools.

While this free virtual machine windows 10 is a great learning tool, the main limitation is its 2-hour duration. It’s best used for short tasks like software trials, educational exercises, or app testing, making it suitable for developers or students needing quick, accessible resources.

Microsoft Learn Sandbox

The Microsoft Learn Sandbox offers an alternative with a 2vCPU, 7GB RAM, and 64GB Disk, and is available for a 4-hour duration. This free virtual machine online is a perfect fit for users looking to explore Azure-specific services in a controlled environment.

Key Features:

  • Pre-configured with a selection of Azure tools.
  • Ideal for hands-on labs, exploring cloud-based infrastructure, and testing new services.

However, its limitations include limited concurrency (only a few users can access the sandbox at a time) and being tied to specific learning modules. Despite these, it’s an excellent tool for Azure-related learning and gives students and developers a practical environment to experiment with Microsoft cloud offerings.

Instruqt Windows Sandbox

The Instruqt Windows Sandbox offers 2vCPU, 7.5GB RAM, and 64GB Disk, with a very short 5-minute usage window. This free online virtual machine is tailored for quick, temporary testing.

Best For:

  • Instant use to try out software or configure environments quickly.
  • Great for demonstrations, quick testing, or evaluating simple scenarios.

Due to its short duration, this free virtual machine windows 10 is best for quick hands-on experiments or educational exercises. If you need longer sessions, consider other platforms like the Microsoft Learn VM.

Each of these platforms offers a valuable windows vm online experience, helping you efficiently test, learn, and experiment in a controlled virtual environment.

How to Choose the Best Free Windows Virtual Machine for Your Needs

How to Choose the Best Free Windows Virtual Machine for Your Needs

Source: Toystack

Selecting the right windows virtual machine online depends on your specific requirements. From CPU power to session duration, understanding the features of each platform helps you make an informed decision.

Key Comparison Factors

  1. Features (CPU, RAM, Disk):
    • Microsoft Learn VM: 6 vCPU, 12GB RAM, 126GB Disk. Ideal for intensive tasks.
    • Microsoft Learn Sandbox: 2vCPU, 7GB RAM, 64GB Disk. Great for lighter workloads and Azure learning.
    • Instruqt Windows Sandbox: 2vCPU, 7.5GB RAM, 64GB Disk. Designed for quick, temporary testing.
  2. Duration of Use:
    • Microsoft Learn VM: 2 hours per session.
    • Microsoft Learn Sandbox: 4 hours, suitable for longer experiments.
    • Instruqt Sandbox: 5 minutes, ideal for brief demos or immediate needs.
  3. Ease of Setup and Accessibility:
    • All platforms are browser-based, requiring minimal configuration.
    • Microsoft Learn options are integrated with tutorials for beginners.
    • Instruqt offers the fastest setup for immediate use.
Platform CPU RAM Disk Duration Best For
Microsoft Learn VM 6vCPU 12GB 126GB 2 hours Software testing, application development
Microsoft Learn Sandbox 2vCPU 7GB 64GB 4 hours Exploring Azure services, hands-on labs.
Instruqt Windows Sandbox 2vCPU 7.5GB 64GB 5 minutes Quick testing, demonstrations.

Making the Right Choice

For a powerful environment, choose the Microsoft Learn VM. If you require extended sessions for Azure-related tasks, the Microsoft Learn Sandbox is ideal. For short-term testing, the Instruqt Windows Sandbox offers unmatched speed and simplicity.

Understanding these factors ensures you select the best windows virtual machine online for your tasks, balancing features, duration, and accessibility.

Step-by-Step Guide to Setting Up a Free Windows VM

Step-by-Step Guide to Setting Up a Free Windows VM

Source: Toystack

Setting up a windows virtual machine online is straightforward with platforms like Microsoft Learn and Instruqt. Follow these steps to get started quickly and efficiently.

Setting Up on Microsoft Learn VM

  1. Create or Log Into Your Account: Visit the Microsoft Learn portal and sign in with a Microsoft account.
  2. Select the Virtual Machine Module: Navigate to the section offering pre-configured virtual machines. Choose the Windows VM module.
  3. Launch the VM: Click on “Start” to initiate the session. The setup includes 6 vCPU, 12GB RAM, and 126GB Disk.
  4. Access the Virtual Environment: Once launched, you’ll have a 2-hour session to test software, run applications, or explore features.

Common Pitfalls to Avoid:

  • Ensure you have a stable internet connection, as disconnections may terminate the session.
  • Save your work frequently, as the VM does not retain data after the session ends.

Activating Microsoft Learn Sandbox

  1. Log Into Microsoft Learn: Use your credentials to access the sandbox section.
  2. Activate the Sandbox: Click “Activate Sandbox” to begin. This VM offers 2vCPU, 7GB RAM, and 64GB Diskfor a 4-hour session.
  3. Follow Learning Modules: The sandbox is pre-configured for Azure-related tasks, making it ideal for exploring jio cloud for pc or similar services.
  4. Utilize Time Efficiently: Plan your tasks to maximize the session duration.

Tips:

  • Only one sandbox can be active at a time, so ensure you complete tasks before initiating a new session.
  • It’s best suited for learning and testing Azure services.

Quick Access with Instruqt Sandbox

  1. Visit the Instruqt Platform: No extensive setup is required. Navigate to the Windows Sandbox section.
  2. Start the Session: Click “Start” to launch a temporary 2vCPU, 7.5GB RAM, and 64GB Disk environment. Sessions last 5 minutes.
  3. Test Quickly: Use this platform for instant testing or short demonstrations.

Pro Tips:

  • Prepare beforehand to make the most of the 5-minute duration.
  • If you need longer testing, consider platforms like Microsoft Learn.

These steps help you set up an online virtual machine free with ease, catering to various needs, from quick testing to structured learning. Each platform offers unique features, ensuring flexibility and accessibility.

Limitations of Free Windows Virtual Machines

Limitations of Free Windows Virtual Machines

Source: Toystack

While a windows virtual machine online is a powerful tool, free versions come with certain limitations that users must consider.

Common Constraints

  1. Time Restrictions:
    • Free VMs, like the Microsoft Learn VM, often limit session durations to 2–4 hours.
    • Short time windows, as with the Instruqt Sandbox (5 minutes), require efficient use.
  2. Resource Limitations:
    • Limited CPU, RAM, and storage can restrict intensive tasks. For example, free windows vm options typically offer 2vCPU and up to 12GB RAM, which may not suffice for complex applications.
  3. Prohibited Activities:
    • Certain activities, such as cryptocurrency mining or illegal software use, are banned on most platforms. Misuse can lead to account suspension.

Practical Tips to Overcome Limitations

  • Optimize Time Management: Plan tasks before starting a session to maximize productivity within the allocated time.
  • Use Lightweight Applications: Focus on tasks that align with the platform’s resource capabilities, such as testing software or exploring jio cloud for pc features.
  • Upgrade for Extended Needs: If longer sessions or higher resources are needed, consider low-cost paid VM options alongside free online vm trials.

Free VMs like Microsoft Learn VM and free online virtual machine platforms remain excellent choices for specific, short-term tasks. Understanding their limitations ensures you use them effectively and avoid disruptions.

Future of Windows Virtual Machines Online

Future of Windows Virtual Machine Online

Source: Toystack

The windows virtual machine online landscape is evolving rapidly, driven by technological advancements. AI-powered VMs are emerging, offering predictive resource management and enhanced automation. These capabilities reduce latency and optimize performance, making virtual environments smarter and more efficient.

Scalable cloud infrastructure is also transforming how users access VMs. Services now offer dynamic scaling to meet fluctuating workloads, ensuring better cost efficiency and resource utilization. Platforms like free online virtual machine providers are likely to integrate these features, making them more accessible to users across industries.

Advancements in browser-based VMs will further simplify setup and accessibility, bridging the gap for users who rely on free windows vm solutions. As these technologies mature, virtual machines will become more versatile, catering to tasks like software development, testing, and cloud-based workflows with unprecedented ease.

People also ask when asking about Windows Virtual Machine online

1. What is a Windows virtual machine online?

A Windows virtual machine online is a cloud-hosted environment that replicates the Windows operating system, accessible through a browser or remote connection.

2. Are there free options for Windows virtual machines?

3. What are the system requirements to use a virtual machine online?

Most online virtual machine free platforms only require a stable internet connection and a modern browser. No high-end local hardware is needed.

4. Can I use a Windows VM for software testing?

Absolutely. A free virtual machine online is ideal for testing software, especially for development and debugging tasks.

5. How do I access a Windows virtual machine for free?

6. Can I save my work on free virtual machines?

No, most free online vm options do not save data after the session ends. Use cloud storage like OneDrive to preserve your files.

Conclusion

Conclusion

Choosing the right windows virtual machine online depends on your specific needs. Free options like the Microsoft Learn VM and Sandbox offer reliable environments for testing and development, while the Instruqt Sandbox provides instant access for short-term tasks. Each platform has unique features, from resource configurations to session durations, ensuring a suitable choice for every user.

Explore these free online virtual machine solutions to find the best fit for your projects. Whether you’re developing software, testing applications, or learning new tools, these VMs provide efficient and accessible solutions.

For a more streamlined experience with cloud management and development, try ToyStack, designed to simplify your journey into virtual environments.

Leave your vote

Бесплатная виртуальная машина через браузер?

Доброго времени суток!
Интересует возможность использования виртуальной машина через браузер.
ОС не имеет значения
Аналог:
https://any.run
https://turbo.net
https://distrotest.net
В ОС должен присутствовать браузер с выходом в интернет.
Цена вопроса: Бесплатно,но не с не большими ограничениями.


  • Вопрос задан

  • 137806 просмотров

Пригласить эксперта

Чем не устраивает RDP/VNC или VPN? По ссылкам трэш какой-то, непонятно для чего.

https://www.onworks.net/
Множество OC, все бесплатно, выход в интернет тоже есть.
(На главной странице представлены не все ОС, думаю, легко разберетесь)

Войдите, чтобы написать ответ


  • Показать ещё
    Загружается…

Минуточку внимания

We’re going to run a complete virtual machine right here in your browser! And not just run the VM - we’ll boot up both FreeDOS and Alpine Linux. «Wait, what? We already have VirtualBox, VMware, and DOSBox for that stuff!» Well, who needs VirtualBox when you have a web browser? (Just kidding! 😄)

But seriously, let’s have some fun showcasing just how powerful modern browsers have become, especially now that they support WebAssembly (Wasm). Sure, traditional VM software is great, but being able to run an entire operating system in your browser? That’s just cool! 🚀

If you prefer to jump to the finished product, you can find the completed code here https://github.com/nadchif/in-browser-virtual-machine

In this guide, we’ll use React.js, but I’m keeping things generic so you can adapt everything to plain HTML or whatever framework makes you happy.

What You’ll Need

  • Basic HTML, Javascript, and CSS knowledge
  • Web browser with WebAssembly support. Don’t worry, the browser you’re using right now will likely work 😊
  • Node.js installed. You can get a copy here and follow the installation steps.

Okay, Let’s Build This Thing!

1. Setting Up Our Web App

If you’re already a React pro, feel free to skip the setup and jump to the Components part!

First, let’s create our app using Vite (it’s super fast and modern):

npm create vite@latest

Enter fullscreen mode

Exit fullscreen mode

When it asks you:

  • Pick a project name (I’m going with «browser-vm»)
  • Choose React as the framework.
  • Go with Javascript as the variant. (Keeping it generic as promised 😄 )
  • Then run:
cd browser-vm
npm install

Enter fullscreen mode

Exit fullscreen mode

Components

Now let’s set up our VM display. Open App.jsx replace all the contents with just this:

function App(){
return (
 <div id="screen_container">
 <div id="screen" style={{overflow: 'hidden'}}>Initializing Emulator…</div>
 <canvas style={{display: 'none'}}></canvas>
 </div>
 );
}
export default App

Enter fullscreen mode

Exit fullscreen mode

Open index.css and replace the contents with:

#screen_container {
 white-space: pre;
 font-family: Courier, monospace;
 font-size: 14px;
 line-height: 14px;
 background-color: #000;
 color:#fff;
}

Enter fullscreen mode

Exit fullscreen mode

2. Getting Our Virtual Machine Ready

We’re using this cool project called V86 that turns your browser into a proper computer emulator. It uses WebAssembly to translate computer instructions on the fly - pretty neat, right? More on that here

Grab these files from V86’s GitHub releases:

  • libv86.js
  • v86.wasm

Next, download the following BIOS files from the bios folder of the V86 repository:

  • seabios.bin
  • vgabios.bin

Put them in your project like this:

public/
├── v86.wasm
├── libv86.js
└── bios/
    ├── seabios.bin
    └── vgabios.bin

Enter fullscreen mode

Exit fullscreen mode

3. Time to Make It Work!

Update your index.html to include our VM engine by adding <script src="libv86.js"></script>:

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
 <title>FreeDOS 1.2</title>
</head>
<body>
 <div id="root"></div>
+ <script src="libv86.js"></script>
 <script type="module" src="/src/main.jsx"></script>
</body>
</html>

Enter fullscreen mode

Exit fullscreen mode

Now for the fun part - let’s configure our virtual machine! Update the contents of App.jsx to:

import { useEffect } from 'react';
function App() {

useEffect(function initializeEmulator(){
 // See https://github.com/copy/v86/blob/master/src/browser/starter.js for options 
 window.emulator = new window.V86({
   wasm_path: '/v86.wasm',
   screen_container: document.getElementById("screen_container"),
   bios: {
     url: "/bios/seabios.bin",
   },
   vga_bios: {
     url: "/bios/vgabios.bin",
   },
   hda: { // Hard Disk
    url:  "/images/fd12-base.img",
    async:  true,
    size:  419430400, // Recommended to add size of the image in URL. see https://github.com/copy/v86/blob/master/src/browser/starter.js 
   },
   autostart: true,
 });
}, []);

return (
     <div id="screen_container">
       <div id="screen" style={{overflow: 'hidden'}}>Initializing Emulator…</div>
       <canvas style={{display: 'none'}}></canvas>
     </div>
   );
}
export default App;

Enter fullscreen mode

Exit fullscreen mode

For more details on the available emulator options check out: https://github.com/copy/v86/blob/master/src/browser/starter.js

Let’s Boot Some Operating Systems!

First Up: FreeDOS

Let’s start with something fun - FreeDOS! It’s perfect for running classic DOS games and software. Grab the pre-built version here, extract fd12-base.img, and drop it in your public/images folder.

Start the Web App by running:

npm run dev

Enter fullscreen mode

Exit fullscreen mode

And open http://localhost:5173/ in your browser

Booting up FreeDOS within the browser

Want to Try Linux Instead?

Here’s something even cooler - we can run Alpine Linux right in the browser! Download the latest Alpine virtual ISO and update your VM settings to:

window.emulator = new window.V86({
  wasm_path:  '/v86.wasm',
  screen_container:  document.getElementById("screen_container"),
  bios: {
    url:  "/bios/seabios.bin",
  },
  vga_bios: {
    url:  "/bios/vgabios.bin",
  },
  boot_order: '0x123', // Boot from CD-ROM first
  memory_size: 512 * 1024 * 1024, // 512MB RAM
  vga_memory_size: 64 * 1024 * 1024, // 64MB VGA RAM
  // See more: https://github.com/copy/v86/blob/master/docs/networking.md
  net_device: {
    type: 'virtio',
    relay_url: "wisps://wisp.mercurywork.shop",
  },
  cdrom: {
    // Source: https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86/alpine-virt-3.20.3-x86.iso
    url: "/images/alpine-virt-3.20.3-x86.iso", 
  },
  autostart:  true,
});

Enter fullscreen mode

Exit fullscreen mode

Refresh the browser and wait for Linux to boot. It may take 3–5 min 😅. When prompted to login, enter: root

Login prompt for Alpine Linux 3.20 running in the browser

Make It Look Extra Cool 😎

Want that authentic retro computer feel? Let’s add the perfect font:

  • Get the Modern DOS font
  • Drop the files in your project in assets/fonts/ModernDOS and update index.css to:
@font-face {
 font-family: 'ModernDOS';
 src: url('./assets/fonts/ModernDOS/ModernDOS8x16.ttf') format('truetype');
}
#screen_container {
 white-space: pre;
 font-family: 'ModernDOS', 'Courier New', Courier, monospace;
 font-size: 14px;
 line-height: 14px;
 background-color: #000;
 color:#fff;
}

Enter fullscreen mode

Exit fullscreen mode

Refresh the page and enjoy the new look!

FreeDOS running in the browser using a DOS-like font

What’s Next?

Now that you’ve got a virtual machine running in your browser (how cool is that?!), here are some fun things to try:

  • Run some classic DOS games - https://www.freedos.org/about/games/
  • Play with Linux commands - https://www.freecodecamp.org/news/the-linux-commands-handbook/
  • Show your friends - they won’t believe it! 🤯
  • Jump to Episode 2: Run Your Offline AI Chat Assistant: Pure Browser, Zero Backend

Want the complete code? Grab it here:

  • FreeDOS version
  • Linux version

Similar Cool Stuff to Check Out

  • JSLinux
  • PC.js
  • Making a Boot Sector
  • daedalOS: Desktop environment in the browser 🤯
  • Halfix x86 Emulator
  • Mini.WebVM: Your own Linux box from Dockerfile, virtualized in the browser via WebAssembly

Big Thanks To

  • The awesome V86 project
  • FreeDOS and Alpine Linux teams
  • SeaBIOS folks
  • Modern DOS font creator

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Программа для выключения защитника windows 10
  • Что такое adb windows
  • Как отключить антивирус windows 10 на время на ноутбуке asus
  • Windows user migration wizard
  • Лучший rdp клиент для windows 10