[deepin exploration] 3条命令,在deepin中安装windows虚拟机
Tofloor
poster avatar
来我的哔哩哔哩看看如何
deepin
2024-07-21 08:36
Author
sudo apt update && sudo apt install docker-compose

新建一个文件,命名为docker-compose.yaml

填入

x-name: "windowws"

volumes:
  data:

services:
  windows:
    image: docker.anyhub.us.kg/dockurr/windows
    container_name: windows
    environment:
      VERSION: "win10"
      RAM_SIZE: "4G"
      CPU_CORES: "4"
    privileged: true
    ports:
      - 8006:8006
      - 3389:3389/tcp
      - 3389:3389/udp
    stop_grace_period: 2m
    restart: on-failure
    volumes:
      - data:/storage

打开终端,执行

docker-compose up -d

在浏览器中打开127.0.0.1:8006

你的windows能用了!

Reply Favorite View the author
All Replies
花雨落逝
Moderator
2024-07-21 08:57
#1

感谢,收藏备用applaud

Reply View the author
阿尼樱奈奈
Moderator
2024-07-21 10:42
#2

docker方式安装?

Reply View the author
186******75
deepin
2024-07-21 10:45
#3

不行呀!

docker-compose up -d
ERROR: In file './docker-compose.yaml', service 'x-name' must be a mapping not a string.

Reply View the author
raspbian
deepin
2024-07-21 11:38
#4
186******75

不行呀!

docker-compose up -d
ERROR: In file './docker-compose.yaml', service 'x-name' must be a mapping not a string.

删掉第一行

Reply View the author
raspbian
deepin
2024-07-21 11:45
#5

这是个私有库

根本就不能下载

还是换成这个吧

yml
services:
  windows:
    image: dockurr/windows
    container_name: windows
    environment:
      VERSION: "win11"
    devices:
      - /dev/kvm
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 3389:3389/tcp
      - 3389:3389/udp
    stop_grace_period: 2m
Reply View the author
WangZhongyun
deepin
2024-07-21 13:41
#6

这个虚拟机安装后需要多大空间?

Reply View the author
raspbian
deepin
2024-07-22 11:56
#7
WangZhongyun

这个虚拟机安装后需要多大空间?

大多数容器分片都是共用的

没法精确计算一个单独的container

Reply View the author
131******66
deepin
2024-07-22 15:10
#8

ERROR: The Compose file './docker-compose.yaml' is invalid because:
Unsupported config option for volumes: 'data'
Unsupported config option for services: 'windows'

不支持啊咋整?

Reply View the author
fisi
deepin
2024-08-17 09:12
#9
131******66

ERROR: The Compose file './docker-compose.yaml' is invalid because:
Unsupported config option for volumes: 'data'
Unsupported config option for services: 'windows'

不支持啊咋整?

我跟你一样报错

Reply View the author
cz012273
deepin
2024-08-17 18:27
#10

浏览器中打开127.0.0.1:8006后,运行至一半丢失连接,再重新进进不去了!如下图:

截图_选择区域_20240817182612.png

Reply View the author
cz012273
deepin
2024-08-18 17:30
#11

经过在论坛中反复搜索并试验,docker下的windows终于启动成功了!需要在bios中打开Intel VT-x选项😄

感谢各位大神,给我们创造了无限可能!
截图_20240818172402.png

Reply View the author