qemus / qemu-docker

QEMU in a Docker container.
MIT License
400 stars 48 forks source link

QEmu can't stay up #303

Closed Beulu closed 8 months ago

Beulu commented 8 months ago

Hi !

Tried in docker compose the default configuration, with and without BOOT_MODE: "uefi"; even without any added option and the container can't stay up. I don't know how to launch it.

How can use an iso on local server HDD ? Tried BOOT: "/srv/dev-disk-by-uuid-17a832c5-e23e-471d-a423-516ecbb18a10/Splinter/Isos/OS/Windows_98_SE.iso", and volume : /srv/dev-disk-by-uuid-17a832c5-e23e-471d-a423-516ecbb18a10/Splinter/Isos/OS/:/os to have folder in qemu if possible (don't know because I even don't know what it looks like)

Thanks !

Beulu commented 8 months ago

Now it's up with an online .iso (linux mint) but Firefox can't open my localhost:2222 webpage...

kroese commented 8 months ago

The 2222 port is not from a webpage, but to connect a SSH client (to execute terminal commands).

Beulu commented 8 months ago

5900 doesn't work too.

And Putty doesn't connect to SSH @ 2222

Is there a GUI like when you lanch a computer ?

kroese commented 8 months ago

This container just launches an ISO, so if there is a port for web-interface or a GUI is totally dependant on which ISO you choose.

I do not think Linux Mint provides a web-interface, but you can connect with VNC to port 5900 to see the display (like remote desktop). Then you can use the mouse to work with the system.

Beulu commented 8 months ago

5900 doesn't work too.

No response on web navigator. No error when compiling through docker-compose.

How can use an iso on local server HDD ? Tried BOOT: "/srv/dev-disk-by-uuid-17a832c5-e23e-471d-a423-516ecbb18a10/Splinter/Isos/OS/Windows_98_SE.iso", and volume : /srv/dev-disk-by-uuid-17a832c5-e23e-471d-a423-516ecbb18a10/Splinter/Isos/OS/:/os to have folder in qemu if possible (don't know because I even don't know what it looks like)

Wanna try with a Windows ISO but got it in local. Is there a way to change https:// by local directory ?

Thanks !

kroese commented 8 months ago

No response on web navigator. No error when compiling through docker-compose.

I have no idea what you mean? You need to install a VNC client, you cannot do it via a webbrowser.

Wanna try with a Windows ISO but got it in local. Is there a way to change https:// by local directory ?

You can just rename the .iso to boot.iso and place it in the /storage folder and it will use that file instead of downloading anything.

For Windows 10 you need to set BOOT_UEFI=uefi and for Windows 11 you need to set BOOT_MODE=windows

kroese commented 8 months ago

BTW: From your questions it really sounds like you never used QEMU before. If that is the case, then I would not recommend using this container. Because it's made for people who know exactly how to work with QEMU.

If you are new it is better to use something else that provides a GUI for QEMU. For example Proxmox, virtmanager or many others.

Beulu commented 8 months ago

No response on web navigator. No error when compiling through docker-compose.

I have no idea what you mean? You need to install a VNC client, you cannot do it via a webbrowser.

I'd think it was trough web navigator. I'm looking for a vms maker on docker to run windows app everywhere.

BTW: From your questions it really sounds like you never used QEMU before. If that is the case, then I would not recommend using this container. Because it's made for people who know exactly how to work with QEMU.

100% correct, I don't know anything about QEmu. I thank it was my only way to do what I want. I'm coming from here : https://www.youtube.com/watch?v=2EEzKlF7miA

I'm sorry to had disturb you. If you have some ideas, I take. Google answer me the same thing : docker in a vm mainly...

kroese commented 8 months ago

In that video they use a different container (one that includes a web-based VNC viewer). In my container this is not included (but it might be an interesting idea to add that in a future version).

So what you need to do is to download VNC software (like RealVNC for example) to connect to the VM and see the screen.

But my container is more focussed on running Linux operating systems, and not really optimized for usage with Windows, so it might be easier to just use the container they use in that video.

Also its much easier to install something like Oracle VirtualBox if you want a WinXP VM and don't care if it runs in Docker or not.

Beulu commented 8 months ago

For the optimization, we speak about Windows XP that got... 22 years ^^.

My project is to run 3 specific app (games : ultrastar, stepmania and clonehero, and maybe a Batocera Linux) to play everywhere with a web navigator. all file are on the same server. So i'm looking for a look-a-like VM for docker with compose to be able adding all volumes I need.

I don't know if I'm clear. ^^

kroese commented 8 months ago

With optimization I mainly ment that it doesn't include an audio output device and other stuff that is useful when you want to use the VM as a desktop. It is more focussed at running server OS'es where you do not care about sound and graphics. So for gaming this container is far from optimal.

In any case, this container does not have a "web navigator" so I would advice to use the container from the video.

Beulu commented 8 months ago

OK. thanks for your time :)

kroese commented 8 months ago

I created a new project: dockur/windows especially for running Windows. Its partly based on your idea with the web viewer, so thanks for that :)