This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| unraid:virtual:win10 [2021/04/10 13:20] – created dirk | unraid:virtual:win10 [2024/03/24 13:58] (current) – [Install to Virtual Machine] dirk | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Install Windows 10 as Unraid Virtual Machine ====== | + | ====== Install Windows 10/11 as Unraid Virtual Machine ====== |
| - | This will guide you through the setup of a Windows 10 machine as an Unraid Virtual Machine. | + | This will guide you through the setup of a Windows 10/11 machine as an Unraid Virtual Machine. |
| ===== VM Settings ===== | ===== VM Settings ===== | ||
| * Autostart: No | * Autostart: No | ||
| - | * Name: Windows 10 | + | * Name: windows 11 |
| - | * Description: | + | * Description: |
| * CPU Mode: Host Passthrough | * CPU Mode: Host Passthrough | ||
| - | * Logical CPUs: 4/5 | + | * Logical CPUs: 4/12 5/13 6/14 7/15 |
| - | * Internal Memory: | + | * Internal Memory: |
| - | * Max Memory: | + | * Max Memory: |
| - | * Machine: Q35-4.1 | + | * Machine: Q35-7.2 |
| - | * BIOS: OVMF | + | * BIOS: OVMF TPM |
| * Hyper-V: Yes | * Hyper-V: Yes | ||
| - | * USB Controller: | + | * USB Controller: |
| - | * OS Install ISO: select the Win 10 iso | + | * OS Install ISO: select the Win 10/11 iso |
| * OS Install CDRom Bus: SATA | * OS Install CDRom Bus: SATA | ||
| * VirtIO Drivers ISO: select the virtio-win iso | * VirtIO Drivers ISO: select the virtio-win iso | ||
| * VirtIO Drivers CDRom Bus: SATA | * VirtIO Drivers CDRom Bus: SATA | ||
| * Primary vDisk Location: Auto if on the array, below options for ssd | * Primary vDisk Location: Auto if on the array, below options for ssd | ||
| - | */ | + | */ |
| */ | */ | ||
| - | * Primary vDisk Size: 40G | + | * Primary vDisk Size: 100G |
| * Primary vDisk Type: raw | * Primary vDisk Type: raw | ||
| * Primary vDisk Bus: VirtIO if on the array, below options for ssd | * Primary vDisk Bus: VirtIO if on the array, below options for ssd | ||
| Line 37: | Line 37: | ||
| ===== Install to Virtual Machine ===== | ===== Install to Virtual Machine ===== | ||
| - | * Custom storage layout | + | * Boot up VM and boot from CD (it might put you in shell mode, just type exit, then reboot and press any key to boot from CD) |
| - | * Partitions: (ext4) | + | * Click on Load driver to be able to see the virtual disk you want to install on |
| - | + | * Select Browse | |
| - | ^ Size ^ Location | + | * Expand E drive |
| - | | 4 GB | swap (primary) | + | * Expand viostor |
| - | | 6 GB | / (logical) | + | * Expand Win10/11 |
| - | | 5 GB | /home (logical) | + | |
| - | | 1 GB | /boot (logical) | + | |
| - | | 19.498 GB | /var (logical) | + | * Select Disk and click next |
| - | | 4 GB | /tmp (logical) | + | * Install will finish then reboot |
| + | | ||
| + | * Press Shift+F10 | ||
| + | * type: OOBE\BYPASSNRO | ||
| + | * computer will restart now with the "I don't have internet" | ||
| + | * profit | ||
| * Full Name: Dirk Rockface | * Full Name: Dirk Rockface | ||
| - | * Server: brimble | + | * Uncheck all the customize tracking things |
| - | * User Name: dirk | + | * Let install |
| - | * Finish installing. I didn't install any " | + | * Right click on WIN->Device Manager |
| - | + | * Right click on Microsoft Basic Display Adapter | |
| - | ===== Setup ===== | + | * Update Driver |
| - | ==== Update Packages ==== | + | * Browse |
| - | < | + | * Browse |
| - | sudo apt-get dist-upgrade</ | + | * Select E drive |
| - | + | * OK | |
| - | ==== Install SSH Server ==== | + | * Install |
| - | < | + | * Do same for Ethernet controller |
| - | ==== Mount Unraid Shares ==== | + | |
| - | * add the following to /etc/fstab where backup is whatever you called the Unraid Mount tag and /mnt/backup is whatever folder you made in ubuntu to mount to. < | + | * change resolution |
| - | * Note: if you've already created the VM and THEN added the unraid tag, your NIC name was changed (probably from enp1s0 to enp3s0) run ifconfig -a to see new name then modify / | + | * Network & internet -> Properties -> Switch |
| - | * Note: also, to add more shares after initial creation, use XML mode, duplicate the section, and increment the function to 0x1 | + | * Settings |
| - | + | * Pass thru video card and audio component... had to reboot twice to get that to come up in Win 11 | |
| - | ==== Install ex-fat (for USB drives or FAT formats) ==== | + | |
| - | < | + | |
| - | ==== Reboot ==== | + | |
| - | < | + | |
| - | ==== Create ssh-rsa key auth ==== | + | |
| - | * In home directory < | + | |
| - | * authorized_keys file needs to have keys in them. Copy over from harddrive, external drive, or create them. | + | |
| - | * When making keys on clients < | + | |
| - | * New things for keys: | + | |
| - | * So, ssh-keygen no longer creates the keys with the headers | + | |
| - | * To make private keys with headers for Cyberduck:< | + | |
| - | openssl rsa -in id_rsa -pubout -out id_rsa.test | + | |
| - | ssh-keygen -f id_rsa.test -i -mPKCS8</ | + | |
| - | | + | |
| - | * https:// | + | |
| - | * https:// | + | |
| - | + | ||
| - | | + | |
| - | PasswordAuthentication no</ | + | |
| - | ==== Reboot ==== | + | |
| - | < | + | |
| - | ==== Install | + | |
| - | < | + | |
| - | + | ||
| - | === Copy webpage files === | + | |
| - | < | + | |
| - | sudo cp -a / | + | |
| - | | + | |
| - | sudo chmod 755 webapps</ | + | |
| - | === Allow Directory Browsing === | + | |
| - | < | + | |
| - | < | + | |
| - | | + | |
| - | <param-value>true</ | + | |
| - | </init-param></ | + | |
| - | ==== Install MySql (if not using a docker)==== | + | |
| - | < | + | |
| - | === Import database dump === | + | |
| - | < | + | |
| - | === Create mysql user === | + | |
| - | < | + | |
| - | CREATE USER ' | + | |
| - | show databases; | + | |
| - | GRANT ALL PRIVILEGES ON *.* TO ' | + | |
| - | exit</ | + | |
| - | === Allow write access for user === | + | |
| - | < | + | |
| - | exit</ | + | |
| - | === Allow mysql to write to files === | + | |
| - | < | + | |
| - | * This should show mysqld in enforce mode | + | |
| - | < | + | |
| - | * add folders near the bottom like this:< | + | |
| - | / | + | |
| - | < | + | |
| - | * add at bottom:< | + | |
| - | * while in this file, decrease sleep time to avoid max connections (default is 8 hrs)< | + | |
| - | * Note: In order to get sql to write, I had to make everything in the webapps folder root:dirk (which it probably was) and the export folder 777. Not sure which of those did the trick (or both) | + | |
| - | * Note: New in mysqlserver v8: files writen from mysql are only readable by root and the mysql group so you have to add the use tomcat (the one reading the files in the march madness bracket) to the mysql group (the one creating the files)< | + | |
| - | * Changes will take effect after restart< | + | |
| - | ==== Tomcat | + | |
| - | * Install Java Development Kit<code> sudo apt-get install default-jdk</ | + | |
| - | * Install Java / Mysql connector< | + | |
| - | * Note: This was not supported in 20.04 at the time and must be installed manually. | + | |
| - | * Download JDBC Driver for Mysql (Connector/J) from https:// | + | |
| - | * Install the debfile:< | + | |
| - | * Create symlink for connector< | + | |
| - | * Faster tomcat startup | + | |
| - | * Note: This is due to using random vs urandom | + | |
| - | * edit java.security | + | |
| - | * at last check, this was located here: < | + | |
| - | * change< | + | |
| - | * Link: https:// | + | |
| - | * New change for 20.04: | + | |
| - | * If webinf files need to be compiled:< | + | |
| - | * reboot< | + | |
| - | ==== Install Samba ==== | + | |
| - | < | + | |
| - | sudo smbpasswd -a dirk | + | |
| - | sudo vim / | + | |
| - | < | + | |
| - | comment = Webpage Files | + | |
| - | path = / | + | |
| - | available = yes | + | |
| - | browsable = yes | + | |
| - | guest ok = yes | + | |
| - | read only = no | + | |
| - | writable = yes | + | |
| - | admin users = dirk</ | + | |
| - | * you may have to chmod correct permissions for webapps folder (775) | + | |
| - | + | ||
| - | ==== Add football season ==== | + | |
| - | < | + | |
| - | UPDATE games SET vscore = NULL where year = 2019; | + | |
| - | UPDATE games SET hscore = NULL where year = 2019;</ | + | |
| - | + | ||
| - | ==== Allow rsync to run on own ==== | + | |
| - | < | + | |
| - | dirk ALL=(ALL: | + | |
| - | + | ||
| - | ==== Add cron job for backup ==== | + | |
| - | < | + | |
| - | < | + | |
| - | + | ||
| - | ==== Change timezone ==== | + | |
| - | < | + | |