GRUB boot to last OS
edit /etc/default/grub
change or aadd:
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
GRUB_DISABLE_OS_PROBER=false
Recreate config
Arch example:
grub-mkconfig -o /boot/grub/grub.cfg
edit /etc/default/grub
change or aadd:
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
GRUB_DISABLE_OS_PROBER=false
Recreate config
Arch example:
grub-mkconfig -o /boot/grub/grub.cfg
To delete a menu entry using efibootmgr
first list the current boot entries with sudo efibootmgr
Identify the boot number of the entry you want to delete, then use the command:
sudo efibootmgr -b XXXX -B
replacing XXXX with the boot number of the entry you wish to remove.
To add a menu entry using efibootmgr, use the following command format:
sudo efibootmgr -c -d /dev/sdX -p NN -L "Label" -l "\EFI\path\to\boot\file.efi"
where /dev/sdX is your disk, NN is the partition number,
“Label” is the name you want for the boot entry,
and \EFI\path\to\boot\file.efi is the path to the EFI executable.
powercfg.exe /SETDCVALUEINDEX SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 1
powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 1
Goto https://uupdump.net
Search “23H2” (build number 22631)
Download and unpack files
Click uup_download_windows.cmd batch file and select the Run as administrator option.
After download use Rufus or other app to create bootable USB Drive
Get ISO fro https://www.microsoft.com/pl-pl/software-download/windows11
Mount iso
Windows+r “cmd”
select mounted drive ex.: D:
then
.setup.exe /product server
click “Change how to setup download updates” and select “Not right now”
Enable Multiple RDP Sessions
Create a new VM in the web interface (leave other settings as default)
copy VM disk to proxmox (ex. using terminal) and import it to newly created VM machine
qm importdisk machine_id_number /var/lib/vz/images/file.qcow local-zfs
qm rescan
Go to your new created VM in the proxmox web interface.
Go to the Hardware section of the newly created VM in the Proxmox web interface
Look for the Unused Disk and select it.
Then you have to add the disk by clicking on Edit on the top.
On all mounting points
dd if=/dev/zero of=/nul;sync;sync;sync;rm -f /nul;sync
qemu-img convert -O qcow2 -c disk1.qcow disk1.new.qcow
upower -i $(upower -e | grep '_AC') | grep "online"
mysqlcheck -u root -p --auto-repair --check --all-databases