惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Full Disclosure
WordPress大学
WordPress大学
小众软件
小众软件
Cloudbric
Cloudbric
AWS News Blog
AWS News Blog
腾讯CDC
量子位
人人都是产品经理
人人都是产品经理
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Vulnerabilities – Threatpost
Scott Helme
Scott Helme
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
C
CXSECURITY Database RSS Feed - CXSecurity.com
The Hacker News
The Hacker News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
IT之家
IT之家
Jina AI
Jina AI
Attack and Defense Labs
Attack and Defense Labs
S
SegmentFault 最新的问题
Simon Willison's Weblog
Simon Willison's Weblog
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
Google Online Security Blog
Google Online Security Blog
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
罗磊的独立博客
L
LINUX DO - 最新话题
博客园 - Franky
博客园 - 叶小钗
Apple Machine Learning Research
Apple Machine Learning Research
The Last Watchdog
The Last Watchdog
J
Java Code Geeks
AI
AI
C
Cisco Blogs
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Cyber Attacks, Cyber Crime and Cyber Security
Cisco Talos Blog
Cisco Talos Blog
博客园 - 三生石上(FineUI控件)
雷峰网
雷峰网
Help Net Security
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
云风的 BLOG
云风的 BLOG
I
Intezer
S
Securelist

Simply Explained

Converting a Tuya Thermostat to ESPHome Bringing Foam Monsters to Life: How I Wrote and Illustrated a Children's Book Using AI How I Built an NFC Movie Library for my Kids Analyzing Link Rot in My Newsletter (After 31 Editions) How I Use Alfred to Search My Obsidian Notes Faster (with Spotlight!) Year in review: 2022 Smart lights behind a wall switch (Shelly, Z-Wave, ESPHome) Serverless Anagram Solver with Cloudflare R2 and Pages Integrate Home Assistant with Apple Reminders How WebP Images Reduced My Bandwidth Usage by 50% Tracking gas usage with ESPHome, Home Assistant, and TCRT5000 My Sixth Year as YouTube Creator (statistics + retrospective) EZStore: a tiny serverless datastore for IoT data (DynamoDB + Lambda) ESP-IDF: Storing AWS IoT certificates in the NVS partition (for OTA) How to securely access your home network with Cloudflare Tunnel and WARP I Built a CO2 Sensor and It Terrifies Me Filtering spam on YouTube with TensorFlow & AI Building a killer NAS with an old Rackable Server How I Structure My ESPHome Config Files MAX17043: Battery Monitoring Done Right (Arduino & ESP32) Preventing Cumulative Layout Shifts with lazy loaded images (Eleventy + markdown-it) Migrating This Blog From Jekyll to Eleventy Good Home Automation Should be Boring ESP32 Cam: cropping images on device Retrospective: My Fifth Year on YouTube Secure Home Assistant Access with Cloudflare and Ubiquiti Dream Machine Shelly 2.5 + ESPHome: potential fire hazard + fix Impact of Adblockers on Google Analytics (vs. Plausible) Shelly 2.5: Flash ESPHome Over The Air! Tuya IR Hub: control Daikin AC (Home Assistant + ESPHome) Building Air Quality Sensor: Luftdaten + Home Assistant HEIC to JPG: Build a Quick Action with Automator Make Your Garage Door Opener Smart: Shelly 1, ESPHome and Home Assistant Static webhosting benchmark: AWS, Google, Firebase, Netlify, GitHub & Cloudflare Why I don't take sponsorships Monitoring my 3D printer with a Pi Zero, Home Assistant and TinyCore Linux ESP32: Keep WiFi connection alive with a FreeRTOS task Home Energy Monitor: V2 Retrospective: 4 years on YouTube
Howto Virtualize Unraid on a Proxmox host
Xavier Decuy · 2021-05-08 · via Simply Explained

Here's how to run Unraid as a virtual machine under Proxmox. This is useful when you're already using Proxmox and if you want to use Unraid as a NAS.

Step 1: Prepare the Unraid USB drive

Unlike other storage systems, Unraid can't be installed on a virtual disk. Heck, they don't even provide an ISO. Instead, Unraid runs of a USB drive.

To create such a drive, I used the Unraid USB Flash Creator (exists for Windows and macOS). It's a pretty straightforward tool: pick the version of Unraid you want to run, select your USB drive and click on "Write".

Screenshot of Unraid USB Flash Creator

It'll download Unraid, unpack it, and copy it to your drive.

In my case, the tool did finish, but the drive was not bootable. If this happens to you, run the make_bootable_mac or make_bootable_windows scripts that have been placed on your drive.

Unraid's make bootable script Using the make_bootable_mac tool to make sure my drive was bootable.

Step 2: Create the virtual machine

Next, create a virtual machine in Proxmox with the following settings:

  • OS: Linux (5.x - 2.6 kernel)
  • No CD drive (we'll attach the USB drive later)
  • SCSI Controller: VirtIO SCSI (others might not be recognized)
  • BIOS: Default (SeaBIOS)
  • Machine: Default (i440fx)
  • Network card model: Intel E1000 (others might not be recognized)
  • CPU & memory is up to you
  • You can attach a virtual hard disk to this VM, but you'll probably want to use passthrough later.
  • Don't start the VM when you're finished. We'll need to make a few tweaks.

Here are the screenshots of how each step looks in the Proxmox UI:

Naming the VM.

Unraid boots from a USB drive. Not from CD or ISO. Don't forget to set the Linux type.

Keep the default BIOS and machine settings. Change the SCSI controller for compatibility.

At this point, you'll be able to attach virtual hard drives to the VM. This is a bit useless, as you'll want to pass through your physical hard drives. You could, however, use the virtual drive as a cache drive in Unraid. Size it as you see fit. I choose to create a dummy drive that I deleted later.

As for CPU core: a single core should work, but a dual core is recommended. Memory-wise, UnRaid recommends at least 2GB. Note that because I use Proxmox as a hypervisor, I will be using Unraid solely as a NAS.

Network interface. Make sure to select the Intel E1000 for compatibility reasons.

Step 3: Passthrough the USB device & change boot order

With the VM created, we now have to pass through the USB drive. Plug it into your Proxmox machine and head over to your VM > Hardware > Add > USB Device.

You'll have two options: you can pass through a specific device, regardless of which port it is attached to (handy if you want to swap it sometimes). Or you can pass through a whole USB port. Both options work fine.

Passthrough the USB drive.

I opted not to enable USB3 as Unraid is not recommending that.

(At this point, you can also add the physical hard drives that you want to use in Unraid. I didn't do that because this is a test setup to evaluate Unraid.)

And finally, change the boot order of the VM. Head over to "Options > Boot Order":

Make sure that usb0 is enabled. I also dragged it to the top and disabled all other options, but this is not required.

Save the settings and start your VM!

Step 4: Boot & enjoy (or fix boot errors)

You should be able to open your Unraid instance by navigating to http://tower.local

If that's not the case, open the console of your VM. In my case, Unraid couldn't boot because of a kernel panic:

VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
Please append a correct "root=" boot option;
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

I restarted the VM and paused the boot screen by using the arrow keys. Select the Unraid OS option and press tab.

Now add this boot option: root=sda and hit enter.

Unraid will now try to boot again, and it should be successful! If you want to make this change permanent, plug the USB drive back into your main computer and edit the file: /syslinux/syslinux.cfg

Add the root=sda option to this section:

label Unraid OS
   menu default
   kernel /bzimage
   append initrd=/bzroot root=sda

Save the file, plug the drive back in, and fire up the VM!

(Found this solution on the Unraid Forums)

Caveats

Some people might frown upon running Unraid as a virtual machine because Unraid itself is a hypervisor. When you go for a setup like this, it would be wise not to run virtual machines or containers inside Unraid (in fact, that won't work unless you enable nested virtualization).

That's fine by me. I chose Proxmox because it's a lightweight hypervisor dedicated to running KVM VM's and LXC containers, nothing else. It's been rock solid. All Unraid has to do is keep my files safe, which is what it does best.

I'm planning to replace my current MergerFS + SnapRAID setup with Unraid. More on that in a (potential) future blog post.