For some reason, I follow this exact guide up until the point where I try to install GRUB and I get "Unable to install GRUB in /dev/sda. Executing 'grub-instal /dev/sda' failed. This is a fatal error."
@@i12bretro Thank you so much! Once I got passed that, I got it going and it seems to be working. Your tutorial is amazing and I have never even setup my own service like this before either!
@@i12bretro I couldn't wait. I tossed it on a VM on my pre-lab test server (to get to know Proxmox) and worked great. I'm wondering, though, if I should put it on a Pi Zero W, though, due to having a low power redundand solution. I've got my network and internet access gear on a UPS setup for a pretty long keep-alive. But the Servers get shut down the second i'm convinced the power isn't going to come RIGHT back on. so if I shut down the VM host then i'd have no DNS. Unless your average desktop OS will automatically switch to secondary DNS which I could set as normal. (assuming that it wouldn't use that DNS if something didn't resolve on the pi-hole because it was being blocked. Because that would be counter productive, lol.
Sounds like an awesome setup! You'd have to do some testing with the Pi Zero W to see how responsive it is as your primary DNS server. I do like the idea of it all being low power but the W is wireless only. Im very interested in ProxMox, though I used XenServer for a few years and eventually found my way back to virtualbox with PHPVirtualBox to manage VMs from a browser. Good luck with your setup!
This tutorial is probably great for people who already have 70% of the knowledge you do but horrible for people actually trying to follow a tutorial......... sigh
I've just ran into a problem. Somebody help me please. When i turn off the virtual linux and then start it again from the virtual box, it starts the boot procedure, but when its about to finish booting a black screen appears and then nothing happens (The terminal reboot command works perfectly, but when I turn off the os from the power menu I can not turn it on anymore. However, it responds to the main os's ping command when I see the black screen.). I tried to reboot countless times but it didn't fixed the problem. In every startup just a black screen. I've even fully reinstalled the virtual linux from the first to last step as it is shown in the tutorial, but it didn't work either. So, if someone could help me I would be very grateful. ;)
(I) Why not install it in docker since windows supports Linux kernel ? tried that a couple of days ago and it works nicely, is there another benefit to the displayed method which am missing (ii) FYI, if ur running Win10 pro then u can use the built in hypervisor.
Docker is a good way of virtualizing it as well. I have a single Linux VM that runs a bunch of Linux only tools and I like the ability to take snapshots before major tweaks for easy restore if something goes wrong
@@i12bretro Very, but I had the same hiccup as @RobbieRobski had in which grub did not install (step 26) until I restarted the whole procedure and changed the disk size from 8 to 12 GB.
Are you using NAT for your Network Adapter or Bridged? I use NAT for my Pi-Hole on CentOSS 7 and my host desktop with Windows 10 can not connect to the internet when I enter in my Pi-hole's ip address as its DNS server.
nach frage ich habe gehört ohne die ipv6 ein richtung soll es nix bring da noch immer werbung kommen soll kannst du mal bitte noch ein video machen und zeigen wie man das mit der ipv6 einrichten tut wer net danke schon mal vor raus. habe auch das problem mit grub lössen können
at 2:51 it said "You don't have enough free space in /var/cache/apt/archives/. " instead of the "do you want to continue this operation" question. Any help?
@@i12bretro tried, didnt work. Also, I'm running this on a clean install. I noticed that "Actual size" is 2mb when I checked the storage setting on the vm, any idea on how to expand it or is this normal?
Does this work also on the windows browser after instalation? I mean, if I will install pihole on the VM is that work on the other devices in the network? Or only on the Raspbian?
It can work for all devices on your network if setup properly. The way I have mine setup is my router DHCP is setting the client DNS to my PiHole VM IP address. This way any device that connects to the network and gets an address from DHCP goes through PiHole and benefits from the ad blocking.
I follow all steps but ads are only blocked inside the VM. I added the DNS address from raspberry to my Windows Ethernet adapter and flushed/released/renewed my IP but still does not work.
Is the network adapter for the VM in Virtualbox set to bridged? Can you ping the VM IP address from the Windows device? I've been using this setup on my network for over a year and it's worked great.
@@i12bretro Hi, thanks for replying. Yes, it is set to bridged. I booted up my PC this morning and, for some reason, the DNS was gone from the TCP/IPv4 properties. I added it again and it worked. :-) Now, I am trying to use this DNS network-wide but I still see ads on my TV and the cell phone.
Glad to hear at least it's partially working. I think some devices, like TVs, use hard coded DNS and ignore the DNS servers the router is sending. You can at least test the router is setting the DNS server by removing the hard coded DNS on Windows and running: Ipconfig /release Ipconfig /renew Ipconfig /all And see what DNS servers are being used
Thank you for the tutorial 👍👍 but i have problem. After I installed the guest additions, and rebooted it. And the raspberry pi logo appear, and suddenly the screen just go black. Do you have any fix?
I have not run into that issue, but came across this page that has some helpful ideas to try to fix the black screen: blog.softhints.com/virtualbox-black-blank-screen-issues-ubuntu-linux-mint/
my pihole gives me an ip with starting 10 instead of 192 like yours. Is that a problem? Beacuse when i set that as the dns, nothing changes on my windows device
@@i12bretro my computer's (windows) ip starts with 192 but when i run ubuntu on virtualbox on my computer, pihole gives an ip starting with 10. and why did you drop the ip at the end of your video?
I've tested it on Kali, you just need to use the following command to bypass the unsupported OS checks curl -sSL install.pi-hole.net | PIHOLE_SKIP_OS_CHECK=true sudo -E bash Everything else was the same
@@i12bretro okay I will check it out But my current problem is I can't open admin page of pihole I have done everything correctly and changed the password but when I go to localhost/admin on firefox it shows can't connect to localhost
I don't think it's an issue with pi-hole, more RUclips finding a way to skirt ad blockers. If you search around there are some workarounds to try, but m.ruclips.net/video/o-bxDuH_T6I/видео.html
At around 4:19 I'm getting the error "Unable to update package cache. Please try "sudo apt-get update". I did that and got the same error after again running the curl command. I tried running the curl command with sudo and same error. How to fix this? Did the url get changed? What's the new url?
I had the same error. Instead of doing the commands "sudo apt-get update" and "sudo apt-get upgrade" , do: "sudo apt update" and "sudo apt upgrade". It worked for me.
@@i12bretro Definitely not. I configured vhd of 8GB. I tried again with a 12gb vhd and it finally worked. Nothing about what I did made any sense about getting it to work but it took about 5 tries of basically doing the same thing over and over again.
i was trying to view the web interface but everytime, it was showing This site can't be reached. tried setting up statisc address multiple times same issue. and then i noticed i was putting https instead of http. :) everything seems to be working now
I've installed this on Debian 10 3 or 4 times with no issues. You can try running the following to ignore the error and try to force the install curl -sSL install.pi-hole.net | PIHOLE_SKIP_OS_CHECK=true sudo -E bash
Did you add the IP address of the Pi-Hole VM as DNS server 1 in the router DHCP settings? Once you do that, you'd need to renew your IP address on the other device(s) so they'd pull in the new DNS server change. Once the other device(s) have the Pi-Hole VM IP address as their DNS, traffic should be flowing through Pi-Hole and it will filter out ads in the blocklists
Hi, when i use this on the vm it works but when i try to use it on my main pc it says it cant reach the site And i put the 192 ip address thing in there.
Do you have the network interface set to Bridged Adapter? Also, are you may need to use a different IP address than the one in the video if you're router or DHCP is setup for a different subnet. 192.168.1.x is another common one for example
I have just tried it and it work fine. The only problem I have is that I'm not able to login back to my virtual machine running Raspberry OS, neither via GUI nor via SSH, in order to update the VM. Any idea?
@@i12bretro Sorry, I expressed myself wrong. It is not a login problem, is that the guest Raspberry OS does not response to SSH and that when I run the VM there is no GUI login available. Pi-hole service is available and I'm able to use it configuring it as DNS server on the router of my network. From the host machine I'm also able to access Pi-hole web interface running on the VM. I'll try to install it again and see if the behavior is the same.
Make sure the VirtualBox network adapter is in Bridged mode. If its not you won't be able to reach the guest from outside host. It could also be firewall on the host OS, although I've never run into that problem before.
@@i12bretro The network adapter was in bridged mode as I was able to use pi-hole as my DNS server. I solved the problem reinstalling from scratch. Now the VM is accessible by GUI.
I believe under Settings > DNS you can enable the conditional forwarder option and set the IP range and router IP for PiHole to forward local DNS requests to your router. I haven't tested this, but came across it in their forums discourse.pi-hole.net/t/conditional-forwarding-how-does-it-work/36644
Great tutorial. However, I have problems with the "sudo apt-get upgrade" command. When I compare the results on the video and on mine it shows. "No space left on device" and it returned an error code (2). Please help me out
As far as I know, Raspberry Pi OS is only released in a 32 bit version to keep backwards compatibility with older Raspberry Pi boards, so regardless if the host is 64 bit, the Raspberry Pi OS is only 32 bit, so you should pick 32 bit for the VM settings. No space left of device seems like your virtual disk is full
@@i12bretro Thank you very much for the excellent tutorial. I already figured out what wrong and the virtual machine and pi-hole is working thanks men!
Try running sudo nano /etc/apt/sources.list and make sure the cdrom: entries are commented out or deleted and that there are entries. Sounds like the apt repositories aren't setup correctly if internet is working
That would probably mean the VirtualBox guest additions didn't install correctly. Here's a site listing the steps you can try linuxize.com/post/how-to-install-virtualbox-guest-additions-on-debian-10/.
I don't have any experience with this, but ETA prime did a great video on running Linux on top of Android, which may allow you to do what you want ruclips.net/video/jvuufPWKF3k/видео.html
Unfortunately not. I see the biggest impact browsing web pages. I also was looking in the logs one day and kept seeing a URL it was blocking thousands of times. After some research I found it was a tracking cookie that pihole was blocking.
@@i12bretro That makes this a pretty good usage case for me then. I generally don't mind the RUclips Ads because I know if they are blocked via Ad-Blocker or something then RUclips knows it and the channel doesn't get monotized for that single ad that was blocked. That and RUclips Ads are less likely to contain malware and other BS than their webpage counterparts.
@StevenFleming I ran through the steps and everything works as expected. I did notice in your error message, you have VboxLinuxAdditions.run, however, Linux commands are case sensitive and it should be VBoxLinuxAdditions.run
@@i12bretro It's Amazing man! Finally I can watch RUclips on My Android Tv without Ads! (Don't worry I'll watch yours with pi-hole disabled) You deserve more fame
i12bretro.github.io/tutorials/0107.html makes it easy! Well done. Pi-hole runs nicely in virtual machines and containers so you can have it anywhere. It works with Docker containers etc too. (I just installed in a VM since that's so easy and I can do other things with that Debian install while Docker is giving me problems at the moment, but since you can install PiHole in both on the same PC without conflict while learning that's not a problem.) When my cheap SSD arrives I'll install it on an old Thinkpad so it like the rest of what matters on my LAN has built-in battery backup, but individual "PiHoles everywhere" are easy to manage and permit me to (for example) USB tether my phone during power outages without losing protection I otherwise would by bypassing my LAN.
thanks for the great tutorial. Best on YT. Do you have a patreon, so i can buy you a coffee?
I do not, but I appreciate the comment and the gesture. That is enough for me. Thank you
this is a really educative tutorial, thanks for your effort, keep it up
Thank you for the comment
Thank you so much for this! Huge help brother :D
For some reason, I follow this exact guide up until the point where I try to install GRUB and I get "Unable to install GRUB in /dev/sda. Executing 'grub-instal /dev/sda' failed. This is a fatal error."
Try making the .vdi larger, like 12-16 GB
@@i12bretro Thank you so much! Once I got passed that, I got it going and it seems to be working. Your tutorial is amazing and I have never even setup my own service like this before either!
Glad to hear it and thanks for the comment!
Great tutorial, straight forward and I learned a couple things. Thank you!
Glad to hear it and thanks for the comment!
Nice tutorial. going to toss this into a Proxmox VM as soon as I get my new home lab setup.
Proxmox is on my toys to checkout. I use my pihole VM for all my external DNS and its worked flawlessly
@@i12bretro I couldn't wait. I tossed it on a VM on my pre-lab test server (to get to know Proxmox) and worked great. I'm wondering, though, if I should put it on a Pi Zero W, though, due to having a low power redundand solution. I've got my network and internet access gear on a UPS setup for a pretty long keep-alive. But the Servers get shut down the second i'm convinced the power isn't going to come RIGHT back on. so if I shut down the VM host then i'd have no DNS. Unless your average desktop OS will automatically switch to secondary DNS which I could set as normal. (assuming that it wouldn't use that DNS if something didn't resolve on the pi-hole because it was being blocked. Because that would be counter productive, lol.
@@i12bretro Oh and regard to Proxmox itself i've only been using it for a week or so and I am VERY impressed by it.
Sounds like an awesome setup! You'd have to do some testing with the Pi Zero W to see how responsive it is as your primary DNS server. I do like the idea of it all being low power but the W is wireless only. Im very interested in ProxMox, though I used XenServer for a few years and eventually found my way back to virtualbox with PHPVirtualBox to manage VMs from a browser. Good luck with your setup!
Me too, my Tony Stark lab is not far from completion as well
thankz man, its help with my final year project
Glad to hear it!
I've tried twice and it doesn't work. Maybe in another lifetime as I feel the dark getting closer.
This tutorial is probably great for people who already have 70% of the knowledge you do but horrible for people actually trying to follow a tutorial......... sigh
I've just ran into a problem. Somebody help me please. When i turn off the virtual linux and then start it again from the virtual box, it starts the boot procedure, but when its about to finish booting a black screen appears and then nothing happens (The terminal reboot command works perfectly, but when I turn off the os from the power menu I can not turn it on anymore. However, it responds to the main os's ping command when I see the black screen.). I tried to reboot countless times but it didn't fixed the problem. In every startup just a black screen. I've even fully reinstalled the virtual linux from the first to last step as it is shown in the tutorial, but it didn't work either. So, if someone could help me I would be very grateful. ;)
you sir deserve subscribing 👏
Thank you
No wireless interface found - if you have same problem, you can rewrite your dns ip in sudo nano /etc/dhcpcd.conf
Best tutorial! Thanks 😊
You're welcome, thanks for the comment. Enjoy!
(I) Why not install it in docker since windows supports Linux kernel ? tried that a couple of days ago and it works nicely, is there another benefit to the displayed method which am missing (ii) FYI, if ur running Win10 pro then u can use the built in hypervisor.
Docker is a good way of virtualizing it as well. I have a single Linux VM that runs a bunch of Linux only tools and I like the ability to take snapshots before major tweaks for easy restore if something goes wrong
did you install with a cmd from github?
Do I need to keep the VM running at all times for the pi hole to work?
Yes
@@i12bretro Thanks for responding man, also great video
No problem at all. Thanks for the comments
Thanks for the video!
You're welcome
bei mir gibt es probleme mit den grub boot loader kann ich nicht installieren
Can you also create an Adguard Home installation procedure on virtual box?
PS: This tutorial is the best. Thanks for sharing.
Yeah, I think I can do that. Thanks for the comment
Thanks for the guide!
Welcome, hope it was helpful
@@i12bretro Very, but I had the same hiccup as @RobbieRobski had in which grub did not install (step 26) until I restarted the whole procedure and changed the disk size from 8 to 12 GB.
Interesting. Maybe something has changed since I wrote the steps. I'll update the description. Thanks
@@i12bretro My info: MacOS 12.6 / Virtual Box 6.1
I updated the steps to read 12-16GB for the .vdi file
I ran the sudo nano command. Is there some way I can send you a pic of the results?
everything is working but its not blocking on other devices which are on the network.
That’s kinda cool 😅
Are you using NAT for your Network Adapter or Bridged? I use NAT for my Pi-Hole on CentOSS 7 and my host desktop with Windows 10 can not connect to the internet when I enter in my Pi-hole's ip address as its DNS server.
I used bridged so the VM acts like a separate physical device on the network.
@@i12bretro Did u also configure a static ip address on ur router for ur pi hole?
Yes I did
thanks a lot
Glad it was helpful
nach frage ich habe gehört ohne die ipv6 ein richtung soll es nix bring da noch immer werbung kommen soll kannst du mal bitte noch ein video machen und zeigen wie man das mit der ipv6 einrichten tut wer net danke schon mal vor raus. habe auch das problem mit grub lössen können
black screen after install the drivers.
at 2:51 it said "You don't have enough free space in /var/cache/apt/archives/. " instead of the "do you want to continue this operation" question. Any help?
Sounds like your VM is low on disk space. Try running sudo apt clean and sudo apt autoremove --purge to see if you can free up some space
@@i12bretro tried, didnt work. Also, I'm running this on a clean install.
I noticed that "Actual size" is 2mb when I checked the storage setting on the vm, any idea on how to expand it or is this normal?
Did you install the VM or just running a live disc? That doesn't make any sense. You should have several GB free after a fresh install
Does this work also on the windows browser after instalation? I mean, if I will install pihole on the VM is that work on the other devices in the network? Or only on the Raspbian?
It can work for all devices on your network if setup properly. The way I have mine setup is my router DHCP is setting the client DNS to my PiHole VM IP address. This way any device that connects to the network and gets an address from DHCP goes through PiHole and benefits from the ad blocking.
@@i12bretro thank You! :)
I follow all steps but ads are only blocked inside the VM.
I added the DNS address from raspberry to my Windows Ethernet adapter and flushed/released/renewed my IP but still does not work.
Is the network adapter for the VM in Virtualbox set to bridged? Can you ping the VM IP address from the Windows device? I've been using this setup on my network for over a year and it's worked great.
@@i12bretro Hi, thanks for replying. Yes, it is set to bridged.
I booted up my PC this morning and, for some reason, the DNS was gone from the TCP/IPv4 properties. I added it again and it worked. :-)
Now, I am trying to use this DNS network-wide but I still see ads on my TV and the cell phone.
Glad to hear at least it's partially working. I think some devices, like TVs, use hard coded DNS and ignore the DNS servers the router is sending. You can at least test the router is setting the DNS server by removing the hard coded DNS on Windows and running:
Ipconfig /release
Ipconfig /renew
Ipconfig /all
And see what DNS servers are being used
for some reason I can't insert the guest image. It says that the pdm media is locked
Hmm, I've never run into that. Have you tried restarting the VM to see if it unlocks the media?
Try following this:
linuxys.blogspot.com/2014/02/virtualbox-could-not-mount-mediadrive.html
Thank you for the tutorial 👍👍 but i have problem. After I installed the guest additions, and rebooted it. And the raspberry pi logo appear, and suddenly the screen just go black. Do you have any fix?
I have not run into that issue, but came across this page that has some helpful ideas to try to fix the black screen:
blog.softhints.com/virtualbox-black-blank-screen-issues-ubuntu-linux-mint/
my pihole gives me an ip with starting 10 instead of 192 like yours. Is that a problem? Beacuse when i set that as the dns, nothing changes on my windows device
It should use whatever subnet your network is on. My network is 192.168.0. If your network is 10. then that should be correct
@@i12bretro my computer's (windows) ip starts with 192 but when i run ubuntu on virtualbox on my computer, pihole gives an ip starting with 10. and why did you drop the ip at the end of your video?
You probably need to stop the VM and in settings change the network "attached to" to "bridged adapter" so it connects to your physical network
@@i12bretro i'll try. thank you
Pressing "Insert Guest Additions CD image" doesn't do anything?
oh, It didnt show up on the desktop but its in the file manager
nice tutorial really helped me a lot. but is this gonna work on Kali Linux too?
I've tested it on Kali, you just need to use the following command to bypass the unsupported OS checks
curl -sSL install.pi-hole.net | PIHOLE_SKIP_OS_CHECK=true sudo -E bash
Everything else was the same
@@i12bretro thank you so much you are the best!! also do I have to keep the Vm runnign to keep pihole working?
Yes you do, I have a video coming on a powershell script to start VMs on boot and check that they are up every 5 minutes if you are on a Windows host
@@i12bretro okay I will check it out But my current problem is I can't open admin page of pihole I have done everything correctly and changed the password but
when I go to localhost/admin on firefox it shows can't connect to localhost
Is lighttpd running?
sudo systemctl status lighttpd
I downloaded the version of pi os in the description, but grub fails to load?
I've been hearing that lately. The fix is to create a larger disk for the VM, 12GB or more
@@i12bretro Interesting, thanks for the quick reply!
No problem, please report back if that corrected the issue with GRUB for you
@@i12bretro I've given up with this endeavor for the meantime
@@i12bretro fixed the problem for me, I put 16gbs just in case
Nice song
Thank you! Appreciate the comment
i'm using on esxi as a vm but looks like it's not working for youtube videos? I see blocked numbers on pi but still i see youtube advertisement
Correct, it doesn't block RUclips ads for me either, running directly on hardware or as a VirtualBox VM
@@i12bretro What can be problem? Because it's important for youtube videos
I don't think it's an issue with pi-hole, more RUclips finding a way to skirt ad blockers. If you search around there are some workarounds to try, but m.ruclips.net/video/o-bxDuH_T6I/видео.html
At around 4:19 I'm getting the error "Unable to update package cache. Please try "sudo apt-get update". I did that and got the same error after again running the curl command. I tried running the curl command with sudo and same error. How to fix this? Did the url get changed? What's the new url?
Try rebooting
@@i12bretro Reboot successful. Same error. Any ideas?
Does your VM have a connection to the internet? The error makes it sound like it does not
I had the same error. Instead of doing the commands "sudo apt-get update" and "sudo apt-get upgrade" , do: "sudo apt update" and "sudo apt upgrade". It worked for me.
@@sabrou1991 That worked for me as well. THANKS!
Unable to install grub... executing 'grub-isntall /dev/sda' failed. This is a fatal error.
Did you run out of disk space on the host? There's not reason sda shouldn't exist at that point
@@i12bretro Definitely not. I configured vhd of 8GB. I tried again with a 12gb vhd and it finally worked. Nothing about what I did made any sense about getting it to work but it took about 5 tries of basically doing the same thing over and over again.
That's odd
@@RobbieRobski Thank you for sharing this solution! You saved my otherwise doomed saturday!
its actual size remains 2mb by default you have to change it by choosing it again
i was trying to view the web interface but everytime, it was showing This site can't be reached. tried setting up statisc address multiple times same issue.
and then i noticed i was putting https instead of http. :)
everything seems to be working now
Glad you got it working
Unsupported OS detected: Debian GNU/Linux 10 (buster)
docs.pi-hole.net/main/prerequesites/#supported-operating-systems !!!
HELP ME PLEASE!
I've installed this on Debian 10 3 or 4 times with no issues. You can try running the following to ignore the error and try to force the install
curl -sSL install.pi-hole.net | PIHOLE_SKIP_OS_CHECK=true sudo -E bash
Can't I just run this on my main os. I use linux. So can't I just install it there?, or would that cause issues for my system? 😬
Yes, you definitely can
i have added DNS on my router but still not blocking or detecting other devices.
Did you add the IP address of the Pi-Hole VM as DNS server 1 in the router DHCP settings? Once you do that, you'd need to renew your IP address on the other device(s) so they'd pull in the new DNS server change. Once the other device(s) have the Pi-Hole VM IP address as their DNS, traffic should be flowing through Pi-Hole and it will filter out ads in the blocklists
Hi, when i use this on the vm it works but when i try to use it on my main pc it says it cant reach the site
And i put the 192 ip address thing in there.
I mean i put the ip in the control panel
Do you have the network interface set to Bridged Adapter? Also, are you may need to use a different IP address than the one in the video if you're router or DHCP is setup for a different subnet. 192.168.1.x is another common one for example
why did u put the vm in d: drive ??
That's my storage SSD. Just has more free space
I have just tried it and it work fine. The only problem I have is that I'm not able to login back to my virtual machine running Raspberry OS, neither via GUI nor via SSH, in order to update the VM. Any idea?
The default username/password is pi/raspberry, unless you changed it
@@i12bretro Sorry, I expressed myself wrong. It is not a login problem, is that the guest Raspberry OS does not response to SSH and that when I run the VM there is no GUI login available. Pi-hole service is available and I'm able to use it configuring it as DNS server on the router of my network. From the host machine I'm also able to access Pi-hole web interface running on the VM. I'll try to install it again and see if the behavior is the same.
Make sure the VirtualBox network adapter is in Bridged mode. If its not you won't be able to reach the guest from outside host. It could also be firewall on the host OS, although I've never run into that problem before.
@@i12bretro The network adapter was in bridged mode as I was able to use pi-hole as my DNS server. I solved the problem reinstalling from scratch. Now the VM is accessible by GUI.
Glad you got it sorted
Can i put the pi-hole dns to my router? so that i will not manually configure the dns to the user devices.
I believe under Settings > DNS you can enable the conditional forwarder option and set the IP range and router IP for PiHole to forward local DNS requests to your router. I haven't tested this, but came across it in their forums
discourse.pi-hole.net/t/conditional-forwarding-how-does-it-work/36644
Great tutorial. However, I have problems with the "sudo apt-get upgrade" command. When I compare the results on the video and on mine it shows. "No space left on device" and it returned an error code (2). Please help me out
Ang also my operating system supports 64 bit, but when you configure the setting you choose 32 bit in which I followed. Does that cause problems?
As far as I know, Raspberry Pi OS is only released in a 32 bit version to keep backwards compatibility with older Raspberry Pi boards, so regardless if the host is 64 bit, the Raspberry Pi OS is only 32 bit, so you should pick 32 bit for the VM settings. No space left of device seems like your virtual disk is full
@@i12bretro Thank you very much for the excellent tutorial. I already figured out what wrong and the virtual machine and pi-hole is working thanks men!
Glad to hear it
Can you apply the DNS to a Smart TV on the same network ?
Depends on the TV, but you should be able to set the DNS server(s) in the TVs network settings.
0:35 I can not increase the cpu and 0:47 i can't click "ok" there HELP PLEASE1!1
The host system has to have the physical cpu cores to share them with the VM. Sounds like your host system may be older?
i did the ipconfig stuff on my pc and my vm's internet connection dropped like you said. now how do i get it back?
Did you set the gateway to the correct gateway IP on your network, usually your router
@@i12bretro hmm, ill check now
@@i12bretro so i fixed it by uninstalling the vm then reinstalling which was easy thanks to your good tutorial! thank for all the help!
Glad you got it working! Enjoy
My internet in the VM working good. Still getting the same error.
Try running sudo nano /etc/apt/sources.list and make sure the cdrom: entries are commented out or deleted and that there are entries. Sounds like the apt repositories aren't setup correctly if internet is working
Thanks for the awesome tutorial, but I have an issue, unable to fix screen resolution.
That would probably mean the VirtualBox guest additions didn't install correctly. Here's a site listing the steps you can try linuxize.com/post/how-to-install-virtualbox-guest-additions-on-debian-10/.
@@i12bretro use xrandr -q to check number of resolutions which ur virtual machine supports and use one of them with xrandr -s "resolution"
@@NeoFromMatrix-999 Good post! Sometimes Virtualbox misbehaves at other resolutions.
any way to run pi-hole from my old android phone on the network(no eth0 , wifi) just asking for a project purpose....
(and no eth0 , wifi) meaning i want to connect my phone using wifi over network and run pi-hole from it.
btw you got a sub ;)
I don't have any experience with this, but ETA prime did a great video on running Linux on top of Android, which may allow you to do what you want ruclips.net/video/jvuufPWKF3k/видео.html
10. Run the following command to install Pi-Hole
curl -sSL @t | bash
im stuck on this step
Stuck how?
Try sudo apt update
Does this block youtube ads?
Unfortunately not. I see the biggest impact browsing web pages. I also was looking in the logs one day and kept seeing a URL it was blocking thousands of times. After some research I found it was a tracking cookie that pihole was blocking.
@@i12bretro That makes this a pretty good usage case for me then. I generally don't mind the RUclips Ads because I know if they are blocked via Ad-Blocker or something then RUclips knows it and the channel doesn't get monotized for that single ad that was blocked. That and RUclips Ads are less likely to contain malware and other BS than their webpage counterparts.
Does anyone know how to fix the "Can't open ./VboxLinuxAdditions.run" issue?
I'm going to run through the steps to see if something needs to be updated. I'll reply to you in a little while with what was needed
@StevenFleming I ran through the steps and everything works as expected. I did notice in your error message, you have VboxLinuxAdditions.run, however, Linux commands are case sensitive and it should be VBoxLinuxAdditions.run
@@i12bretroThanks so much for the reply. I'll go ahead and try again
If i power down the VM ,Will it start working automatically the next time I power it on?
Yes it should. I have my router setup to use my PiHole VM as the main DNS server, so it the VM is down I can't resolve DNS. Keep this in mind
@@i12bretro Ok, noted.
Thanks a lot for the quick reply and the amazing tutorial!!!
It's Working perfectly for me!
Glad to hear it! Enjoy! It's definitely improved my home network
@@i12bretro It's Amazing man!
Finally I can watch RUclips on My Android Tv without Ads!
(Don't worry I'll watch yours with pi-hole disabled)
You deserve more fame
Haha, I appreciate it. I use IMDBTV on my FireStick alot and it blocks most ads on there. When an ad gets through I'm more impressed than anything
Does it work on kali linux?
Kali is based on Debian, so it should work, however, I haven't tested it
@@i12bretro im gonna try it thank you for the fast response ^^
It's not listed as a supported OS on Pi-Hole's site. Let me know how it goes
@@i12bretro didnt try it since kali didnt work anymore cause i shut down during update reinstalled it but im just gonna run pi hole on my raspberry
Thanks for the update, enjoy
i12bretro.github.io/tutorials/0107.html makes it easy! Well done.
Pi-hole runs nicely in virtual machines and containers so you can have it anywhere. It works with Docker containers etc too. (I just installed in a VM since that's so easy and I can do other things with that Debian install while Docker is giving me problems at the moment, but since you can install PiHole in both on the same PC without conflict while learning that's not a problem.) When my cheap SSD arrives I'll install it on an old Thinkpad so it like the rest of what matters on my LAN has built-in battery backup, but individual "PiHoles everywhere" are easy to manage and permit me to (for example) USB tether my phone during power outages without losing protection I otherwise would by bypassing my LAN.
Thanks for the comment. Sounds like you're gonna have a nice setup. Enjoy!