zeus83 Posted March 27, 2020 Share Posted March 27, 2020 (edited) Hi guys, I've recently setup a Hive OS VM and ecountered a couple of issues during this. So I've decided to prepare a quick start guide. This guide won't explain you what Hive OS is and used for, neither it will show how to setup your Hive OS account and crypto wallets. There is a lot of guides on this on the web. [Prerequisite] The only prerequisite is you have to setup your Hive OS account and properly configure at least one farm and worker. You can go through the guide here or just google any appropriate guide you like. [Instructions] Download the latest Hive OS GPU image here . You should then unpack it and put into your isos share temporarily. For me it was a 7Gb file named [email protected] . Normally this image file is supposed to be written to the usb stick, but we instead just use it as our VM disk. You need to copy the image to your VM share. cd /mnt/disks/vm/ mkdir hiveos cp /mnt/user/isos/[email protected] hiveos/vdisk1.img Now let's create a VM itself which will use our Hive OS disk image. Use Ubuntu template because Hive OS is ubuntu based distro. There are however a couple of issues we must to address. First I suggest to leave OVMF bios as default. If the VM won't boot then try the same steps with SeaBIOS. I wasn't able to boot some cards with default OVMF bios. Second it seems that Hive OS doesn't contain the Virtio drivers normally found in Ubuntu and most Linux distros. I could overcome this with setting Primary vdisk bus to SATA . As for CPU and memory don't assign much resources to it. You have to pass your dedicated GPU as well because Hive OS isn't much useful without it. Switch to XML view to change the network adapter, because as I told before there are no Virtio drivers preinstalled in Hive OS. I chose rtl8139 and it worked fine for me. You must remember that whenever you edit anything using the form view the XML part would reset and you'll have to add that part once again. Now we are ready to start our VM. Once VM is started properly you need to figure out it's assigned IP. I use my router admin page for that. Then we need connect to our VM and finish the worker configuration. Since we passed through GPU and didn't configure the VNC we'll use Hive OS integrated shellinabox. Open https://YOUR_IP:4200/ in a browser. Default login is user password 1 . If everything is ok you'll see a welcoming screen like this. Your GPU must be present and identified correctly. It's now time to finish our Hive OS worker setup. Type firstrun and follow the instructions to enter your worker RIG_ID and RIG_PASSWORD . You'd better reboot your VM after configuration finished. After completion you might check your Hive dashboard to see that the worker is online and assign a flight sheet to it. [FAQ] todo Edited June 2, 2021 by zeus83 4 2 Quote Link to comment
bag0 Posted January 18, 2021 Share Posted January 18, 2021 On 3/27/2020 at 4:31 AM, zeus83 said: Hi guys, I've recently setup a Hive OS VM and ecountered a couple of issues during this. So I've decided to prepare a quick start guide. This guide won't explain you what Hive OS is and used for, neither it will show how to setup your Hive OS account and crypto wallets. There is a lot of guides on this on the web. [Prerequisite] The only prerequisite is you have to setup your Hive OS account and properly configure at least one farm and worker. You can go through the guide here or just google any appropriate guide you like. [Instructions] Download the latest Hive OS GPU image here . You should then unpack it and put into your isos share temporarily. For me it was a 7Gb file named [email protected] . Normally this image file is supposed to be written to the usb stick, but we instead just use it as our VM disk. You need to copy the image to your VM share. cd /mnt/disks/vm/ mkdir hiveos cp /mnt/user/isos/[email protected] hiveos/vdisk1.img Now let's create a VM itself which will use our Hive OS disk image. Use Ubuntu template because Hive OS is ubuntu based distro. There are however a couple of issues we must to address. First change the bios to SeaBIOS. I wasn't able to boot the system with default OVMF bios. Second it seems that Hive OS doesn't contain the Virtio drivers normally found in Ubuntu and most Linux distros. I could overcome this with setting Primary vdisk bus to SATA . As for CPU and memory don't assign much resources to it. You have to pass your dedicated GPU as well because Hive OS isn't much useful without it. Switch to XML view to change the network adapter, because as I told before there are no Virtio drivers preinstalled in Hive OS. I chose rtl8139 and it worked fine for me. You must remember that whenever you edit anything using the form view the XML part would reset and you'll have to add that part once again. Now we are ready to start our VM. Once VM is started properly you need to figure out it's assigned IP. I use my router admin page for that. Then we need connect to our VM and finish the worker configuration. Since we passed through GPU and didn't configure the VNC we'll use Hive OS integrated shellinabox. Open https://YOUR_IP:4200/ in a browser. Default login is user password 1 . If everything is ok you'll see a welcoming screen like this. Your GPU must be present and identified correctly. It's now time to finish our Hive OS worker setup. Type firstrun and follow the instructions to enter your worker RIG_ID and RIG_PASSWORD . You'd better reboot your VM after configuration finished. After completion you might check your Hive dashboard to see that the worker is online and assign a flight sheet to it. [FAQ] todo To be able to see Step 9 it required me to start the VM then shutdown. I could then see the XML page. Thanks for the help. It works great. Quote Link to comment
KrisMin Posted February 14, 2021 Share Posted February 14, 2021 Hello and thanks for posting the guide. I managed to get it working with a default OVMF bios just fine. I am running a pair of GTX 1060's on economic settings and it runs clean. hiveOS is a nice convenient tool for managing miners. I got around 1-2% more hash on windows, but managing mining windows VM on Unraid is crappy. Quote Link to comment
marvelinc Posted February 15, 2021 Share Posted February 15, 2021 I am having an issue, the GPU is no longer seen by the VM on rebooting the VM, unfortunately I can only position it on Slot 1 on my system. I am getting this error in hiveos on reboot: Quote 3s - nvtool error (123) 999;Unknown Error;00000000:00:00.0;;;0;0;0;0.0;0.0;0.0;0;Unknown;999; GPU Slot 1: Nvidia RT 3070 Gigabyte Vision OC GPU Slot 2: AMD FirePro 2270 Workstation: HP Z440 Quote Link to comment
zhaoner Posted February 20, 2021 Share Posted February 20, 2021 hey can u make a video about that because when i try to do this it cant found an any operation system. please help me Quote Link to comment
zhaoner Posted February 20, 2021 Share Posted February 20, 2021 and which program do u use it is not like oracle or vmware Quote Link to comment
checkplus Posted March 18, 2021 Share Posted March 18, 2021 Thanks for the guide! Works flawlessly. Do you know where the config file is saved? Quote Link to comment
fishcake Posted April 7, 2021 Share Posted April 7, 2021 is there a method to install virtio drivers afterwards? my internet connection seems unstable leading to my worker being offline even though the VM is running Quote Link to comment
tcwatson Posted April 28, 2021 Share Posted April 28, 2021 I have been trying to get this working, but there is some issue with how my GPU is passed through. I have tried this with both a 3090 and 1660 Super, and both end up with the GPU only kind of being recognized (or maybe not being recognized at all) No GPU is listed when I first sign in via ShellInABox, either. Any ideas? Quote Link to comment
Themors Posted May 24, 2021 Share Posted May 24, 2021 On 3/27/2020 at 7:31 AM, zeus83 said: Hi guys, I've recently setup a Hive OS VM and ecountered a couple of issues during this. So I've decided to prepare a quick start guide. This guide won't explain you what Hive OS is and used for, neither it will show how to setup your Hive OS account and crypto wallets. There is a lot of guides on this on the web. [Prerequisite] The only prerequisite is you have to setup your Hive OS account and properly configure at least one farm and worker. You can go through the guide here or just google any appropriate guide you like. [Instructions] Download the latest Hive OS GPU image here . You should then unpack it and put into your isos share temporarily. For me it was a 7Gb file named [email protected] . Normally this image file is supposed to be written to the usb stick, but we instead just use it as our VM disk. You need to copy the image to your VM share. cd /mnt/disks/vm/ mkdir hiveos cp /mnt/user/isos/[email protected] hiveos/vdisk1.img Now let's create a VM itself which will use our Hive OS disk image. Use Ubuntu template because Hive OS is ubuntu based distro. There are however a couple of issues we must to address. First change the bios to SeaBIOS. I wasn't able to boot the system with default OVMF bios. Second it seems that Hive OS doesn't contain the Virtio drivers normally found in Ubuntu and most Linux distros. I could overcome this with setting Primary vdisk bus to SATA . As for CPU and memory don't assign much resources to it. You have to pass your dedicated GPU as well because Hive OS isn't much useful without it. Switch to XML view to change the network adapter, because as I told before there are no Virtio drivers preinstalled in Hive OS. I chose rtl8139 and it worked fine for me. You must remember that whenever you edit anything using the form view the XML part would reset and you'll have to add that part once again. Now we are ready to start our VM. Once VM is started properly you need to figure out it's assigned IP. I use my router admin page for that. Then we need connect to our VM and finish the worker configuration. Since we passed through GPU and didn't configure the VNC we'll use Hive OS integrated shellinabox. Open https://YOUR_IP:4200/ in a browser. Default login is user password 1 . If everything is ok you'll see a welcoming screen like this. Your GPU must be present and identified correctly. It's now time to finish our Hive OS worker setup. Type firstrun and follow the instructions to enter your worker RIG_ID and RIG_PASSWORD . You'd better reboot your VM after configuration finished. After completion you might check your Hive dashboard to see that the worker is online and assign a flight sheet to it. [FAQ] How do I use ubuntus template?? Quote Link to comment
zeus83 Posted May 24, 2021 Author Share Posted May 24, 2021 (edited) On 4/28/2021 at 9:44 AM, tcwatson said: I have been trying to get this working, but there is some issue with how my GPU is passed through. I have tried this with both a 3090 and 1660 Super, and both end up with the GPU only kind of being recognized (or maybe not being recognized at all) No GPU is listed when I first sign in via ShellInABox, either. Any ideas? Hi, I've prepared the instruction in a way that you don't have to see this QXL paravirtual graphic card. If you still see it in the VM then you do something wrong. If you share your VM xml I can be more specific. Edited May 24, 2021 by zeus83 Quote Link to comment
RB-BR Posted June 17, 2021 Share Posted June 17, 2021 Pl On 3/27/2020 at 7:31 AM, zeus83 said: Hi guys, I've recently setup a Hive OS VM and ecountered a couple of issues during this. So I've decided to prepare a quick start guide. This guide won't explain you what Hive OS is and used for, neither it will show how to setup your Hive OS account and crypto wallets. There is a lot of guides on this on the web. [Prerequisite] The only prerequisite is you have to setup your Hive OS account and properly configure at least one farm and worker. You can go through the guide here or just google any appropriate guide you like. [Instructions] Download the latest Hive OS GPU image here . You should then unpack it and put into your isos share temporarily. For me it was a 7Gb file named [email protected] . Normally this image file is supposed to be written to the usb stick, but we instead just use it as our VM disk. You need to copy the image to your VM share. cd /mnt/disks/vm/ mkdir hiveos cp /mnt/user/isos/[email protected] hiveos/vdisk1.img Now let's create a VM itself which will use our Hive OS disk image. Use Ubuntu template because Hive OS is ubuntu based distro. There are however a couple of issues we must to address. First I suggest to leave OVMF bios as default. If the VM won't boot then try the same steps with SeaBIOS. I wasn't able to boot some cards with default OVMF bios. Second it seems that Hive OS doesn't contain the Virtio drivers normally found in Ubuntu and most Linux distros. I could overcome this with setting Primary vdisk bus to SATA . As for CPU and memory don't assign much resources to it. You have to pass your dedicated GPU as well because Hive OS isn't much useful without it. Switch to XML view to change the network adapter, because as I told before there are no Virtio drivers preinstalled in Hive OS. I chose rtl8139 and it worked fine for me. You must remember that whenever you edit anything using the form view the XML part would reset and you'll have to add that part once again. Now we are ready to start our VM. Once VM is started properly you need to figure out it's assigned IP. I use my router admin page for that. Then we need connect to our VM and finish the worker configuration. Since we passed through GPU and didn't configure the VNC we'll use Hive OS integrated shellinabox. Open https://YOUR_IP:4200/ in a browser. Default login is user password 1 . If everything is ok you'll see a welcoming screen like this. Your GPU must be present and identified correctly. It's now time to finish our Hive OS worker setup. Type firstrun and follow the instructions to enter your worker RIG_ID and RIG_PASSWORD . You'd better reboot your VM after configuration finished. After completion you might check your Hive dashboard to see that the worker is online and assign a flight sheet to it. [FAQ] todo Would you please give more details avbout how to create a VM with hive? What software did you use? Virtualbox? Iḿ trying to create a HIVEOS VM using virtualbox on ubuntu, but i'm having issues converting .img.xz to .vdi. Quote Link to comment
mdrodge Posted June 22, 2021 Share Posted June 22, 2021 On 6/17/2021 at 9:00 PM, RB-BR said: Pl Would you please give more details avbout how to create a VM with hive? What software did you use? Virtualbox? Iḿ trying to create a HIVEOS VM using virtualbox on ubuntu, but i'm having issues converting .img.xz to .vdi. I've seen a few people asking this question and i thought i'd take a second to explain the reason no one is answering your question. If you look at the forum name you'll see this is an unraid forum and this question shows that you don't know what that is. Unraid is an OS for home lab / servers / repurposed desktops to offer File server / Docker / VM's I believe VM's are driven by KVM but i'm no expert and as mentioned above VirtIO drivers can be used at times You could run ubuntu and Hive OS as separate VM's on Unraid (and still have a file server and docker running in the background) but i don't think you'll find any help getting virtualbox going on this forum. Quote Link to comment
sonic6 Posted September 12, 2021 Share Posted September 12, 2021 Thank you for that guide. HiveOS works fine with virtio driver for vDisk and Network. Quote Link to comment
RealActorRob Posted September 13, 2021 Share Posted September 13, 2021 Got it running. Notes and a YouTube video to follow. Using XMrig CPU only just to get it going. First note, 3GB of RAM is enough. Have 300+mb left over. I suppose this might not be enough for GPU mining, but it's fine for CPU XMR mining. Quote Link to comment
cookiemonsters Posted October 12, 2021 Share Posted October 12, 2021 Got it working as well! Thanks so much for the guide! I quickly set it up with ETH, and I'm getting 27mh/s, which I don't really know what that means. This is my first attempt to mining and using the idle time of the server to make something :). I have an RTX 2060 working on it. Also, about 8 core and 16gb ram that are unused when not using my gaming VM. What would you mine with this setup? Quote Link to comment
mdrodge Posted October 13, 2021 Share Posted October 13, 2021 Pretty straightforward if you've ever set up a vm with hardware passthrough. (anyone struggling should look into that) Awesome Job Thanks Quote Link to comment
mdrodge Posted October 13, 2021 Share Posted October 13, 2021 (edited) On 10/12/2021 at 2:14 PM, cookiemonsters said: Got it working as well! Thanks so much for the guide! I quickly set it up with ETH, and I'm getting 27mh/s, which I don't really know what that means. This is my first attempt to mining and using the idle time of the server to make something :). I have an RTX 2060 working on it. Also, about 8 core and 16gb ram that are unused when not using my gaming VM. What would you mine with this setup? ETH is top dog at the moment so all good there. If your on a good pool then the only thing left to do is see how far you can over clock it before you get a little red number next to it or have the vm crash Try and limit the power, boost the ram and drop the core. (YouTube 2060 OC on HiveOS and see if you can find one with the same memory type... even then the settings will be different) tip... Your looking for slow core and fast ram with low power (maybe 950-1080 core 2000-2500 mem and power as low as it'll go (i think 70w) I don't have a 2060 but my 1660ti gets 31mh/s and my 2070 gets 44mh/s, the internet says you should get 33mh/s but you'll need to dial it in and see what your silicon will do. It's not difficult but it takes a while (it might run for a few hours and then crash if you are a little to high) Re CPU... Unless you have a very very current gen CPU don't mine with CPU or you'll spend more on power than you make. (5800x is ok but 1800x will lose you money) (my 5900x makes like £0.50 a day so it hardly worth worrying about compared to the 10 cards in the other room) Edited October 13, 2021 by mdrodge Quote Link to comment
mdrodge Posted October 15, 2021 Share Posted October 15, 2021 On 9/13/2021 at 3:30 AM, RealActorRob said: Got it running. Notes and a YouTube video to follow. Using XMrig CPU only just to get it going. First note, 3GB of RAM is enough. Have 300+mb left over. I suppose this might not be enough for GPU mining, but it's fine for CPU XMR mining. For GPU mining 1500mb is enough but CPU mining requires the DAG to be held in ram I'd check to see that you are not just wasting money since CPU mining is not very profitable (today my 5900x is making £0 profit, a few days ago it was £0.50p a day) If you're not mining with at least 1 GPU it is pointless. (the NiceHash windows client can be configured to stop mining when profit drops below cost witch is the only way I'd ever consider CPU mining) Quote Link to comment
Bofra Posted October 29, 2021 Share Posted October 29, 2021 I appreciate the guide. It has worked wonderfully for me. Too good actually. I am getting ready to move the GPUs I had in teh unraid server to a dedicated mining rig. Which brings me to a question. Is there an easy way to move the HiveOS image from the VM to an SSD so I can use on another machine? Quote Link to comment
mdrodge Posted October 30, 2021 Share Posted October 30, 2021 (edited) 22 hours ago, Bofra said: Which brings me to a question. Is there an easy way to move the HiveOS image from the VM to an SSD so I can use on another machine? Yes just drag the image to another system and use etcher to flash it to a usb stick or if you have a sata to usb adapter you could flash it to a SSD as if it was a usb stick then boot that in the new system. Optionally::: Once your running on the new system you could log in and use expand command to expand the image to take up the full SSD. NOTE:: if you already did that before the move then you'd either need a big enough ssd/usb to accommodate the larger image or steps that I don't know to srink it. (((( just my 2 cents but :::: Though if you are building rigs your in club miner and your soon be thinking about more rigs..... this is already a rig. Build more rigs and let your unraid be part of your farm. (Unless it effects your UNRAIDING i guess) For me it's nice that my handbrake box will also be free to run and own in about a year. It is rig number 3 (4 if you count chia) And I'm happy to have a couple of cards in it. I tried to get every computer i can contributing in some way if possible because money is money at the end of the day )))))) Edited October 30, 2021 by mdrodge Quote Link to comment
KPM Posted November 4, 2021 Share Posted November 4, 2021 Thank you zeus83 for this. It was very helpful. The 2 VMs created using this guide are working very well these past 2 weeks. However, I would love to be able to pass both GPUs to the same VM to only have one rig in hive. I currently have 2 VMs, created the same way and pointing to 2 different hive images. I add one GPU and the other resources as the guide says and am fine. I can run both VMs which use different GPUs at the same time with no issues (other than have 2 rigs in hive). When I add both GPU devices, one rtx 3060ti and an rtx 3090 (passing their audio counterparts as well) the rig never comes online. I don't see anything in the VM instance log. Is there something that I am missing preventing me from passing both GPUs to the same VM? Quote Link to comment
sonic6 Posted November 4, 2021 Share Posted November 4, 2021 @KPM i run two 6600xt in one HiveOS VM. So it is possible. Did you bind you GPUs to VFIO? Quote Link to comment
sonic6 Posted November 6, 2021 Share Posted November 6, 2021 in the latest Stable v0.6-211@211104 the virtio driver are missing again. so, if you come from v0.6-211 beta and you try updating your hiveOS with "hive-replace -y --stable" you have to change the vdisk bus and netzwork model like in the guide to SATA and rtl8139. Quote Link to comment
mdrodge Posted November 22, 2021 Share Posted November 22, 2021 On 10/15/2021 at 1:18 PM, mdrodge said: If you're not mining with at least 1 GPU it is pointless. I take back what i said about CPU mining (well not quite) RandomX wouldn't be very profitable but running cpuminer-opt-gr v.1.2.4 to mine Raptoreum is grate. Though if you set that up remember the tune-up time For me I wanted it to use all apart from 1 thread and just have docker tasks just run a bit slower but when its "idle" its making full hash (so never idle) When setting that up I disable docker until the tune-up is complete (3 hours) I can now justify owning 2 more Unraid rigs that just run Handbrake and have HiveOS VM's (one with GPU's and one without at the moment) Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.