dockur / windows

Windows inside a Docker container.
MIT License
18.13k stars 1.59k forks source link

No bootable option or device was found. #709

Closed abdelaziz-mahdy closed 1 month ago

abdelaziz-mahdy commented 2 months ago

Operating system

macos 14.6.1 (23G93)

Description

i ran the container using the command

docker run -it --rm -p 8006:8006 --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows

and everything was working correctly but i wanted to save the iso and data and configure ram and disk so i made the file below but it doesnt work

looks like alot of permission errors but i dont know the fix for it

Docker compose

this is my bash script

#!/bin/bash

# Set environment variables
WINDOWS_VERSION="win11"         # Tiny Windows 11
LANGUAGE="English"               # Default language, change if needed
DISK_SIZE="64G"                  # Default disk size, adjust as needed
RAM_SIZE="8G"                    # 8 GB of RAM
STORAGE_PATH="/Users/AbdelazizMahdy/windows_storage"

# Calculate half the number of CPU cores
CPU_CORES=$(($(sysctl -n hw.ncpu) / 2))

# Echo the environment variables
echo "Using the following environment variables:"
echo "-----------------------------------------"
echo "WINDOWS_VERSION: $WINDOWS_VERSION"
echo "LANGUAGE: $LANGUAGE"
echo "DISK_SIZE: $DISK_SIZE"
echo "RAM_SIZE: $RAM_SIZE"
echo "CPU_CORES: $CPU_CORES"
echo "STORAGE_PATH: $STORAGE_PATH"
echo "-----------------------------------------"

# Create storage directory if it doesn't exist
mkdir -p $STORAGE_PATH

# Run the Docker container with the specified options
docker run -it --rm   -p 8006:8006   -p 3389:3389/tcp   --cap-add NET_ADMIN   --stop-timeout 120   -e VERSION="$WINDOWS_VERSION"   -e LANGUAGE="$LANGUAGE"   -e DISK_SIZE="$DISK_SIZE"   -e CPU_CORES="$CPU_CORES"   -e RAM_SIZE="$RAM_SIZE"   -v $STORAGE_PATH:/storage   dockurr/windows

Docker log

https://justpaste.it/e98z6

Screenshots (optional)

image
MMaaxx3253 commented 2 months ago

try with sudo or when you start press the key (for some reason) or try MANUAL instalation (-e MANUAL="Y")

abdelaziz-mahdy commented 2 months ago

sudo didnt work, and manual is a problem since i wanted to use the automated approach

the iso gets written to storage but the problem with the mounting i think

U-L-M-S commented 1 month ago

@abdelaziz-mahdy did you managed to solve it ? Can you tell us how ? It looks like permissions problems

abdelaziz-mahdy commented 1 month ago

I couldn't figure it out, and since I wanted the windows machine I went with VMware fusion since it's free and can run windows arm version