Can't boot VM from physical drive with Windows installed

ANONIMNIQ

Member
Oct 29, 2021
34
0
11
41
hoidapsuckhoe.online
I create Win11 VM in proxmox and passthrough my physical drive with Win11 installed on it, but VM can't boot from it, gives me access is denied error.
 

Attachments

  • Screenshot_2022-11-02-19-37-28-877_com.google.android.apps.photos.jpg
    Screenshot_2022-11-02-19-37-28-877_com.google.android.apps.photos.jpg
    58.4 KB · Views: 47
  • Screenshot_2022-11-02-19-37-49-570_com.google.android.apps.photos.jpg
    Screenshot_2022-11-02-19-37-49-570_com.google.android.apps.photos.jpg
    152.2 KB · Views: 46
try disabling secure boot for the vm (in the ovmf menu, you can access that when pressing esc during the boot screen)
 
try disabling secure boot for the vm (in the ovmf menu, you can access that when pressing esc during the boot screen)
Thank you, but now I have another error for missing drive and it boot to grub rescue console.
 

Attachments

  • Screenshot_2022-11-03-14-47-01-601_com.google.android.apps.photos.jpg
    Screenshot_2022-11-03-14-47-01-601_com.google.android.apps.photos.jpg
    94 KB · Views: 27
i thought this was a windows 11 disk? why is grub booting?
 
are you sure you're passing through the right disk?
can you post the output of
Code:
qm config ID
lsblk
mount
 
are you sure you're passing through the right disk?
can you post the output of
Code:
qm config ID
lsblk
mount
Code:
Linux pve 5.11.22-4-pve #1 SMP PVE 5.11.22-9 (Wed, 22 Sep 2021 10:11:11 +0200) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Nov  2 22:40:27 EET 2022 on pts/0
root@pve:~# qm config 101
bios: ovmf
boot: order=sata0;ide2
cores: 4
efidisk0: local-lvm:vm-101-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
ide2: local:iso/virtio-win-0.1.215.iso,media=cdrom,size=528322K
machine: pc-i440fx-7.0
memory: 8196
meta: creation-qemu=7.0.0,ctime=1667404211
name: windows11
net0: e1000=86:4E6:9C:A9:F2,bridge=vmbr0,firewall=1
numa: 0
ostype: win11
sata0: /dev/disk/by-id/ata-ADATA_SU750_2L412LS7BN12,backup=0,size=500107608K
scsihw: virtio-scsi-pci
smbios1: uuid=32464cf3-035c-4504-a4b5-65fd2de52a99
sockets: 1
tpmstate0: local-lvm:vm-101-disk-1,size=4M,version=v2.0
vmgenid: 34d5ac6e-dea5-42ca-93d5-c1ccb1f6afd4
root@pve:~# lsblk
NAME                         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                            8:0    0 931.5G  0 disk
└─sda1                         8:1    0 931.5G  0 part /media/georgi83/New Volume
sdb                            8:16   0   3.6T  0 disk
├─sdb1                         8:17   0   128M  0 part
└─sdb2                         8:18   0   3.6T  0 part /media/georgi83/Seagate Basic
sdc                            8:32   0 476.9G  0 disk
├─sdc1                         8:33   0    16M  0 part
├─sdc2                         8:34   0 476.1G  0 part
├─sdc3                         8:35   0   608M  0 part
└─sdc4                         8:36   0   200M  0 part
nvme0n1                      259:0    0 232.9G  0 disk
├─nvme0n1p1                  259:1    0  1007K  0 part
├─nvme0n1p2                  259:2    0   512M  0 part /boot/efi
└─nvme0n1p3                  259:3    0 232.4G  0 part
  ├─pve-swap                 253:0    0     8G  0 lvm  [SWAP]
  ├─pve-root                 253:1    0    58G  0 lvm  /
  ├─pve-data_tmeta           253:2    0   1.5G  0 lvm
  │ └─pve-data-tpool         253:4    0 147.4G  0 lvm
  │   ├─pve-data             253:5    0 147.4G  1 lvm
  │   ├─pve-vm--100--disk--0 253:6    0     4M  0 lvm
  │   ├─pve-vm--100--disk--1 253:7    0   200G  0 lvm
  │   ├─pve-vm--101--disk--0 253:8    0     4M  0 lvm
  │   └─pve-vm--101--disk--1 253:9    0     4M  0 lvm
  └─pve-data_tdata           253:3    0 147.4G  0 lvm
    └─pve-data-tpool         253:4    0 147.4G  0 lvm
      ├─pve-data             253:5    0 147.4G  1 lvm
      ├─pve-vm--100--disk--0 253:6    0     4M  0 lvm
      ├─pve-vm--100--disk--1 253:7    0   200G  0 lvm
      ├─pve-vm--101--disk--0 253:8    0     4M  0 lvm
      └─pve-vm--101--disk--1 253:9    0     4M  0 lvm
root@pve:~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=7089968k,nr_inodes=1772492,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1431152k,mode=755,inode64)
/dev/mapper/pve-root on / type ext4 (rw,relatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=23561)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
/dev/nvme0n1p2 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
/dev/fuse on /etc/pve type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1431148k,nr_inodes=357787,mode=700,uid=1000,gid=1000,inode64)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sda1 on /media/georgi83/New Volume type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
/dev/sdb2 on /media/georgi83/Seagate Basic type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=1431148k,nr_inodes=357787,mode=700,inode64)
 

Attachments

  • Screenshot_2022-11-03-18-28-22-774_com.google.android.apps.photos.jpg
    Screenshot_2022-11-03-18-28-22-774_com.google.android.apps.photos.jpg
    135.4 KB · Views: 16
Last edited:
oh could you also post the output of
Code:
ls -lh /dev/disk/by-id
(i forgot to mention that one)

i'd check the boot options from the ovmf menu, maybe there is an old grub bootloader on that disk or something like that
(you can access it by pressing 'esc' on vm boot)
 
oh could you also post the output of
Code:
ls -lh /dev/disk/by-id
(i forgot to mention that one)

i'd check the boot options from the ovmf menu, maybe there is an old grub bootloader on that disk or something like that
(you can access it by pressing 'esc' on vm boot)
Code:
root@pve:~# ls -lh /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Nov  4  2022 ata-ADATA_SU750_2L412LS7BN12 -> ../../sdc
lrwxrwxrwx 1 root root 10 Nov  4  2022 ata-ADATA_SU750_2L412LS7BN12-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Nov  4  2022 ata-ADATA_SU750_2L412LS7BN12-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Nov  4  2022 ata-ADATA_SU750_2L412LS7BN12-part3 -> ../../sdc3
lrwxrwxrwx 1 root root 10 Nov  4  2022 ata-ADATA_SU750_2L412LS7BN12-part4 -> ../../sdc4
lrwxrwxrwx 1 root root 10 Nov  4  2022 dm-name-pve-root -> ../../dm-1
lrwxrwxrwx 1 root root 10 Nov  4  2022 dm-name-pve-swap -> ../../dm-0
lrwxrwxrwx 1 root root 10 Nov  4  2022 dm-name-pve-vm--100--disk--0 -> ../../dm-6
lrwxrwxrwx 1 root root 10 Nov  4  2022 dm-name-pve-vm--100--disk--1 -> ../../dm-7
lrwxrwxrwx 1 root root 10 Nov  4  2022 dm-name-pve-vm--101--disk--0 -> ../../dm-8
lrwxrwxrwx 1 root root 10 Nov  4  2022 dm-name-pve-vm--101--disk--1 -> ../../dm-9
lrwxrwxrwx 1 root root 10 Nov  4  2022 dm-uuid-LVM-PwZgZS5CrRcdBcHNptHCI5thT5AdVwKx1DYnvluFJwLAgtc3fES7rsl5yhzQ3vQd -> ../../dm-9
lrwxrwxrwx 1 root root 10 Nov  4  2022 dm-uuid-LVM-PwZgZS5CrRcdBcHNptHCI5thT5AdVwKx434C1OG2wCZHJ3xtrjiyRymRDiZDtblL -> ../../dm-7
lrwxrwxrwx 1 root root 10 Nov  4  2022 dm-uuid-LVM-PwZgZS5CrRcdBcHNptHCI5thT5AdVwKxjJNV7N6HegpW8eXer1ZI0RJBkAc7urAh -> ../../dm-0
lrwxrwxrwx 1 root root 10 Nov  4  2022 dm-uuid-LVM-PwZgZS5CrRcdBcHNptHCI5thT5AdVwKxLdfttvNdlUbbLeFagilvZLww8iLDRun2 -> ../../dm-8
lrwxrwxrwx 1 root root 10 Nov  4  2022 dm-uuid-LVM-PwZgZS5CrRcdBcHNptHCI5thT5AdVwKxOPZdTCRcK9D0P4ht4Ptg6bcsGU2EweIk -> ../../dm-1
lrwxrwxrwx 1 root root 10 Nov  4  2022 dm-uuid-LVM-PwZgZS5CrRcdBcHNptHCI5thT5AdVwKxrM8Kq2GEaSUiiRJMbXLAucI3znPhwUkx -> ../../dm-6
lrwxrwxrwx 1 root root 15 Nov  4  2022 lvm-pv-uuid-tg1cFZ-QTf0-LUib-AdDV-TIh0-Nte5-ahd86p -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 13 Nov  4  2022 nvme-eui.0026b7684086b5e5 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Nov  4  2022 nvme-eui.0026b7684086b5e5-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Nov  4  2022 nvme-eui.0026b7684086b5e5-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Nov  4  2022 nvme-eui.0026b7684086b5e5-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 13 Nov  4  2022 nvme-KINGSTON_SA2000M8250G_50026B7684086B5E -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Nov  4  2022 nvme-KINGSTON_SA2000M8250G_50026B7684086B5E-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Nov  4  2022 nvme-KINGSTON_SA2000M8250G_50026B7684086B5E-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Nov  4  2022 nvme-KINGSTON_SA2000M8250G_50026B7684086B5E-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root  9 Nov  4  2022 usb-Seagate_Basic_NABS3WQ1-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Nov  4  2022 usb-Seagate_Basic_NABS3WQ1-0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Nov  4 13:17 usb-Seagate_Basic_NABS3WQ1-0:0-part2 -> ../../sdb2
lrwxrwxrwx 1 root root  9 Nov  4  2022 usb-Seagate_Expansion_NA4A8XW9-0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Nov  4 13:17 usb-Seagate_Expansion_NA4A8XW9-0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root  9 Nov  4  2022 wwn-0x5707c18100af7188 -> ../../sdc
lrwxrwxrwx 1 root root 10 Nov  4  2022 wwn-0x5707c18100af7188-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Nov  4  2022 wwn-0x5707c18100af7188-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Nov  4  2022 wwn-0x5707c18100af7188-part3 -> ../../sdc3
lrwxrwxrwx 1 root root 10 Nov  4  2022 wwn-0x5707c18100af7188-part4 -> ../../sdc4
 

Attachments

  • Screenshot_2022-11-04-13-25-47-268_com.google.android.apps.photos.jpg
    Screenshot_2022-11-04-13-25-47-268_com.google.android.apps.photos.jpg
    92.6 KB · Views: 21
  • Screenshot_2022-11-04-13-25-56-086_com.google.android.apps.photos.jpg
    Screenshot_2022-11-04-13-25-56-086_com.google.android.apps.photos.jpg
    28.6 KB · Views: 19
yeah, there are no efi boot entries there, because they are saved in the efi of your host (the guest has seperate 'efivars' saved in the 'efidisk')
you could extract them on the host with 'efibootmgr' and insert them in the efivars of the vm by booting a livecd with efibootmgr
 
yeah, there are no efi boot entries there, because they are saved in the efi of your host (the guest has seperate 'efivars' saved in the 'efidisk')
you could extract them on the host with 'efibootmgr' and insert them in the efivars of the vm by booting a livecd with efibootmgr
I read this article but not sure how exactly to extract efivars and then insert them in the VM. Can I do this directly from proxmox? Also where to find live cd with efibootmgr?
https://wiki.gentoo.org/wiki/Efibootmgr/en
 
@dcsapak I fixed it by adding new boot option from ovmf menu pointing to boot EFI file on the disk in EFI/Windows folder and now it boots perfect, but now I have another issue. I passthrough GPU but there is no HDMI sound, can't detect my TV as sound input device. How to fix this?
 
@dcsapak I fixed it by adding new boot option from ovmf menu pointing to boot EFI file on the disk in EFI/Windows folder and now it boots perfect, but now I have another issue. I passthrough GPU but there is no HDMI sound, can't detect my TV as sound input device. How to fix this?
great that you fixed this issue, but maybe open another thread with the new problem (when too many topics are mixed it's harder to follow a thread)