[slint] Re: VM

  • From: Didier Spaier <didier@xxxxxxxx>
  • To: slint@xxxxxxxxxxxxx
  • Date: Sun, 15 Aug 2021 18:02:29 +0200

Correction:

instead of:
qemu-img create -f qcow2 -o ~/qemu/windows.qcow2 64G

read:
qemu-img create -f qcow2 ~/qemu/windows.qcow2 64G

Le 15/08/2021 à 17:59, Didier Spaier a écrit :

Hi Shinji,

here is a guide,  but I don't know how make Windows 10 itself speak during
installation:

Make as regular user directory ~/qemu with this command:

mkdir ~/qemu I remind you that ~ stands for /home/username or $HOME, so for me
~/qemu/ would be the same as /home.didier/qemu and for you probably
/home/shinji/qemu

Move your downloaded Windows 10 ISO image to ~/qemu and rename it windows.iso. For instance:

mv ~/Downloads/Win10_21H1_English_x64.iso windows.iso ~/qemu

Make a Qemu virtual disk that will be named windows.qcow2 in the same
directory, typing this command as regular user:

qemu-img create -f qcow2 -o ~/qemu/windows.qcow2 64G

This command says that the virtual disk will be of format qcow2 and that its
maximum size will be 64G.

Then save the attached script in the same  directory. It will be:
~/qemu/windows10.sh

Now change to this directory:
cd ~/qemu

Check that you have all needed files:

ls -1

The answer should be the next three lines:
windows.iso
windows.qcow2
windows.sh

Then run the script windows.sh, which will build the VM and start the Windows
installer in it:

sh windows.sh

For convenience, I paste the content of the script windows10.sh below:

#!/bin/sh
# Start the virtual machine and the installer
cd ~/qemu
qemu-system-x86_64 \
-cpu host \
-enable-kvm \
-smp $(nproc) \
-m 4G \
-device intel-hda \
-device hda-duplex \
-display gtk \
-vga std \
-drive file=windows.qcow2,format=qcow2,media=disk \
-cdrom /data/images_iso/windows.iso


If the VM grabs the focus, get it back in the host pressing Ctrl+Alt+G

After installation, if the Windows installer starts again, just remove the last
line of the script and the \ at the end of the previous line.

Cheers,
Didier

Le 15/08/2021 à 16:21, 崎山信司 a écrit :
Hi Didier.
I really want make an virtual disk image and install windows 10 on it.
Didier, can you give me steep by steep guide please?

Sent from my iPhone

On Aug 15, 2021, at 10:43 PM, Didier Spaier <didier@xxxxxxxx> wrote:

Hi Shinji,

using Qemu, there are two possibilities

1) Create a virtual disk image and install Windows 10 on it.
2) Convert an exiting disk where Windows 10 is installed to a virtual disk image on another drive. This needs that you have enough space of this other drive.

What do you want to do?

Best regards,
Didier

Le 13/08/2021 à 13:16, 崎山信司 a écrit :
Hi!
I’m Shinji.
How can I boot windows10 on VM?
Some recommend for me accessible VM on slint please?
===============================================================================
The Slint mailing list.
Archive: https://www.freelists.org/archive/slint
To subscribe or unsubscribe, email slint-request@xxxxxxxxxxxxx with the subject
'subscribe' or 'unsubscribe', then answer the email you will receive.
More: email slint-request@xxxxxxxxxxxxx with as subject 'help' or 'commands'.

Other related posts: