tenclass / mvisor

A mini x86 hypervisor
GNU General Public License v3.0
201 stars 45 forks source link

Blue screen when I try to install win7 #44

Closed brookate closed 1 week ago

brookate commented 3 weeks ago

1

brookate commented 3 weeks ago

I get win7 iso from ed2k://|file|7601.24214.180801-1700.win7sp1_ldr_escrow_CLIENT_ULTIMATE_x64FRE_en-us.iso|5876357120|9C55A020B327AD60CB8A37D0317743F2|/

nooodles2023 commented 3 weeks ago

Post your config file

brookate commented 3 weeks ago
name: Default configuration
base: q35.yaml

machine:
  memory: 8G
  vcpu: 2
  # Set vcpu thread priority value [-20, 19]
  # A higher value means a lower priority
  priority: 1
  # Turn on BIOS output and performance measurement
  debug: Yes
  # Turn on hypervisor to lower CPU usage (Hyper-V is used for Windows)
  hypervisor: Yes

objects:
  - name: cmos
    # gmtime for linux, localtime for windows
    rtc: localtime

  - class: qxl
  - class: spice-agent
  - class: usb-tablet

  - class: virtio-network
    mac: 01:50:00:11:22:33
    map: tcp:0.0.0.0:8023-:22
    # If you have configured the tap interface, you can uncomment the following lines
    # backend: tap
    # ifname: tap0

  - class: ata-cdrom 
    image: /home/uuu/tmp/7601.24214.180801-1700.win7sp1_ldr_escrow_CLIENT_ULTIMATE_x64FRE_en-us.iso

  - class: ata-cdrom
    image: /mnt/data/virtio.iso

  - class: ata-disk
    image: /mnt/data/win7.qcow2
    snapshot: No

    # - class: ata-disk 
    #image: /mnt/data/vr_data.qcow2 
    #snapshot: No

  # - class: floppy
  #   image: /data/images/floppy.img

  # - class: virtio-block
  #   image: /data/empty.qcow2
  #   snapshot: No

    #  - class: virtio-fs
    #path: /home/uuu/tmp
    #disk_name: win
    #disk_size: 200G
    #inode_count: 2000000

  # - class: vfio-pci
  #   sysfs: /sys/bus/mdev/devices/c2e088ba-954f-11ec-8584-525400666f2b
  #   debug: Yes

  - class: virtio-vgpu
    memory: 1G
    staging: No
    blob: No
    node: /dev/dri/renderD129

  - class: virtio-cuda
    memory: 1G
    gpu_memory: 8G
    visible_gpus: GPU-0
brookate commented 3 weeks ago

ISO file should be no problem. I can use iso file create win7 vm with VIrtualBox.

nooodles2023 commented 3 weeks ago

Try to use virtio-block instead of ata-disk. Remove virtio-cuda, it has not been published yet.

brookate commented 3 weeks ago

Tryed, still exists.

win7.log

here is log file, maybe helpful.

nooodles2023 commented 3 weeks ago

how about using i440fx instead of q35?

brookate commented 3 weeks ago

always like this ![Uploading 1.png…]()

brookate commented 3 weeks ago

2

brookate commented 3 weeks ago

oh, still blue screen. simplescreenrecorder-2024-08-18_20.59.30.webm

nooodles2023 commented 3 weeks ago

ok, post your host env, I would test it tomorrow

brookate commented 3 weeks ago
➜  ~ uname -a
Linux 192.168.2.156 6.10.5-gentoo-dist-xanmod1 #2 SMP PREEMPT_DYNAMIC Sun Aug 18 16:56:57 CST 2024 x86_64 13th Gen Intel(R) Core(TM) i9-13950HX GenuineIntel GNU/Linux
192.168.2.156➜  ~ screenfetch
grep: warning: stray \ before "
grep: warning: stray \ before "
         -/oyddmdhs+:.                uuu@192.168.2.156
     -odNMMMMMMMMNNmhy+-`             OS: Gentoo 2.15
   -yNMMMMMMMMMMMNNNmmdhy+-           Kernel: x86_64 Linux 6.10.5-gentoo-dist-xanmod1
 `omMMMMMMMMMMMMNmdmmmmddhhy/`        Uptime: 4h 6m
 omMMMMMMMMMMMNhhyyyohmdddhhhdo`      Packages: 1097
.ydMMMMMMMMMMdhs++so/smdddhhhhdm+`    Shell: zsh 5.9
 oyhdmNMMMMMMMNdyooydmddddhhhhyhNd.   Resolution: 1920x1200
  :oyhhdNNMMMMMMMNNNmmdddhhhhhyymMh   WM: Awesome
    .:+sydNMMMMMNNNmmmdddhhhhhhmMmy   WM Theme: beautiful.init(gears.filesystem.get_themes_dir() .. "zenburn
       /mMMMMMMNNNmmmdddhhhhhmMNhs:   GTK Theme: Adwaita [GTK3]
    `oNMMMMMMMNNNmmmddddhhdmMNhs+`    Disk: 2.4T / 3.4T (76%)
  `sNMMMMMMMMNNNmmmdddddmNMmhs/.      CPU: 13th Gen Intel Core i9-13950HX @ 32x 5.3GHz [61.0°C]
 /NMMMMMMMMNNNNmmmdddmNMNdso:`        GPU: NVIDIA RTX 3500 Ada Generation Laptop GPU
+MMMMMMMNNNNNmmmmdmNMNdso/-           RAM: 16482MiB / 63985MiB
yMMNNNNNNNmmmmmNNMmhs+/-`            
/hMMNNNNNNNNMNdhs++/-`               
`/ohdmmddhys+++/:.`                  
  `-//////:--.        

kernel from https://xanmod.org/

shiguowang commented 3 weeks ago

Gentoo

Hi @nooodles2023 How do you try using different Host ? Install the system directly on the bare metal?Or use virtualization software?

nooodles2023 commented 3 weeks ago

Gentoo

Hi @nooodles2023 How do you try using different Host ? Install the system directly on the bare metal?Or use virtualization software?

There isn't any convenient way. I just want to refer to your kernel version.

nooodles2023 commented 3 weeks ago

It is a bug after supporting UEFI and macOSX at commit https://github.com/tenclass/mvisor/commit/939afd97e8ae6c9c5e81b42479734c1b35ce10d1 You can use the commit before it. Recommend using https://github.com/tenclass/mvisor/commit/e2d435419d9bf8858781ce73fe7b31449b997226 to go further. We will repair it later.

78 commented 2 weeks ago

This error is caused by x_dsdt == 0. A new pull request has been added to fix this issue.

nooodles2023 commented 2 weeks ago

@brookate Screenshot from 2024-08-24 18-01-23