Jump to content

Hi, im relatively new to FreeNAS and virtual machines. I've been running a virtual machine inside my FreeNAS for almost a year now, however today i received a new router from my ISP and once i installed it the virtual machine has stopped working. Well, its running however whenever i try to connect to it using a VNC i get: 

This site can’t be reached

*i have removed my IP for security*refused to connect.

Try:

ERR_CONNECTION_REFUSED
 
 
 
 
Has anyone got any ideas? Thanks in advance...
Link to comment
https://linustechtips.com/topic/1237135-freenas-virtual-machine/
Share on other sites

Link to post
Share on other sites

The virtual machine likely has a new IP. What virtualization and VNC software are you using?

Make sure to quote me or use @PorkishPig to notify me that you replied!

 

 

Desktop

CPU - Ryzen 9 3900X | Cooler - Noctua NH-D15 | Motherboard - ASUS TUF X570-PLUS RAM - Corsair Vengeance LPX DDR4-3200 32GB Case - Meshify C

GPU - RTX 3080 FE PSU - Straight Power 11 850W Platinum Storage - 980 PRO 1TB, 960 EVO 500GB, S31 1TB, MX500 500GB | OS - Windows 11 Pro

 

Homelab

CPU - Core i5-11400 | Cooler - Noctua NH-U12S | Motherboard - ASRock Z590M-ITX RAM - G.Skill Ripjaws V DDR4-3600 32GB (2x16)  | Case - Node 304

PSU - EVGA B3 650W | Storage - 860 EVO 256GB, Sabrent Rocket 4.0 1TB, WD Red 4TB (x6 in RAIDZ1 w/ LSI 9207-8i) | OS - TrueNAS Scale (Debian)

Link to post
Share on other sites

Did you reserve the IP assigned to the VM? Did you configure a Static IP on the VM? It sounds like the IP DHCP likely gave it changed.

Link to post
Share on other sites

It's also possible the new router have put everything on a new network. This would also result in not being able to connect.

Link to post
Share on other sites

11 minutes ago, Windows7ge said:

Did you reserve the IP assigned to the VM? Did you configure a Static IP on the VM? It sounds like the IP DHCP likely gave it changed.

 

4 minutes ago, Windows7ge said:

It's also possible the new router have put everything on a new network. This would also result in not being able to connect.

Hi so i know very little when it comes to this sort of thing. All ive  done is plug the new router in and try to connect to my VM. I am able to connect to the FreeNAS however its IP has changed: its now .11 whereas it was .29 before. 

 

What would you suggest i do to trouble shoot my problem and find out what is causing it ?

 

Thanks and i apologies in advance for my lack of knowledge. 😂   

Link to post
Share on other sites

What you need to do is assign a static IP address to the VM. I would also recommend doing the same to FreeNAS.

 

The easy way is reserving the IP using the MAC address but you can also setup IPs manually then shrink the DHCP pool so those IPs don't get handed out.

Link to post
Share on other sites

27 minutes ago, Windows7ge said:

What you need to do is assign a static IP address to the VM. I would also recommend doing the same to FreeNAS.

 

The easy way is reserving the IP using the MAC address but you can also setup IPs manually then shrink the DHCP pool so those IPs don't get handed out.

The IP address for the VM is just the IP of the FreeNAS and then :5760. So would the VM not chaneg IP with the FreeNAS? Ive tried connecting to the VM using its old IP and the webpage just times out. 

 

How do i change the IP of my VM with FreeNAS i cant seem to find and tutorials and there doesnt seem to be an option in the interface. 

Thanks again.

Link to post
Share on other sites

16 minutes ago, Jamie.bark1 said:

The IP address for the VM is just the IP of the FreeNAS and then :5760. So would the VM not chaneg IP with the FreeNAS? Ive tried connecting to the VM using its old IP and the webpage just times out. 

 

How do i change the IP of my VM with FreeNAS i cant seem to find and tutorials and there doesnt seem to be an option in the interface. 

Thanks again.

Is it a Windows VM?

 

What version of FreeNAS are you running?

Link to post
Share on other sites

1 hour ago, Jamie.bark1 said:

Yeah its a Windows VM and im on the latest FreeNAS version.

 

So you aren't connecting directly to the VM you're connecting to the FreeNAS VNC server. That would be why the IP is the same as FreeNAS's.

 

Looks like you want to go to Network -> Interfaces.

 

You probably only have one entry. Click the drop-down arrow on the far right.

 

Click edit. You'll see a little box highlighted next to DHCP. Un-tick it.

 

Now where it says IP Address use one within your networks range. It's important that your Router doesn't hand it out though so I'd use an IP in the high-end and then shrink the DHCP pool in your router.

 

Now click Add. Apply.

 

You will have to re-connect using the new IP but then you should be able to connect to your Windows VM from the same IP:Port.

Link to post
Share on other sites

8 minutes ago, Windows7ge said:

So you aren't connecting directly to the VM you're connecting to the FreeNAS VNC server. That would be why the IP is the same as FreeNAS's.

 

Looks like you want to go to Network -> Interfaces.

 

You probably only have one entry. Click the drop-down arrow on the far right.

 

Click edit. You'll see a little box highlighted next to DHCP. Un-tick it.

 

Now where it says IP Address use one within your networks range. It's important that your Router doesn't hand it out though so I'd use an IP in the high-end and then shrink the DHCP pool in your router.

 

Now click Add. Apply.

 

You will have to re-connect using the new IP but then you should be able to connect to your Windows VM from the same IP:Port.

Thanks for your help so far. But ive had a look and i dont have any entry's under  Network -> Interfaces. Do you know why this is? 

Thanks.

 

Link to post
Share on other sites

4 minutes ago, Jamie.bark1 said:

Thanks for your help so far. But ive had a look and i dont have any entry's under  Network -> Interfaces. Do you know why this is? 

Thanks.

 

Peculiar...does anything show up under Network Summary?

Link to post
Share on other sites

2 minutes ago, Jamie.bark1 said:

This whats under network summary.

"re0" is suppose to be showing up under Network -> Interfaces. But nothing is there? Can you try restarting the server and see if that changes?

Link to post
Share on other sites

13 minutes ago, Jamie.bark1 said:

Yeah after a restart still nothing there!? 

If you go to ADD and click on Type does it give you an option called PHYSICAL?

Link to post
Share on other sites

Link to post
Share on other sites

Unsure if this is related, but your nameservers might not be connecting maybe? try setting them to a public DNS like 8.8.8.8/8.8.4.4

Also you should definitely set your freenas default to a static address IMO, if not you may end up having to find out what the new address is after every reboot. And it might be beneficial to also set your VM to a static address too.

If everything worked fine before, then I would suggest setting your new router to the old subnet you used to have, that is the most likely cause of the breakage.

Please quote my post, or put @paddy-stone if you want me to respond to you.

Spoiler
  • PCs:- 
  • Main PC build  https://uk.pcpartpicker.com/list/2K6Q7X
  • ASUS x53e  - i7 2670QM / Sony BD writer x8 / Win 10, Elemetary OS, Ubuntu/ Samsung 830 SSD
  • Lenovo G50 - 8Gb RAM - Samsung 860 Evo 250GB SSD - DVD writer
  •  
  • Displays:-
  • Philips 55 OLED 754 model
  • Panasonic 55" 4k TV
  • LG 29" Ultrawide
  • Philips 24" 1080p monitor as backup
  •  
  • Storage/NAS/Servers:-
  • ESXI/test build  https://uk.pcpartpicker.com/list/4wyR9G
  • Main Server https://uk.pcpartpicker.com/list/3Qftyk
  • Backup server - HP Proliant Gen 8 4 bay NAS running FreeNAS ZFS striped 3x3TiB WD reds
  • HP ProLiant G6 Server SE316M1 Twin Hex Core Intel Xeon E5645 2.40GHz 48GB RAM
  •  
  • Gaming/Tablets etc:-
  • Xbox One S 500GB + 2TB HDD
  • PS4
  • Nvidia Shield TV
  • Xiaomi/Pocafone F2 pro 8GB/256GB
  • Xiaomi Redmi Note 4

 

  • Unused Hardware currently :-
  • 4670K MSI mobo 16GB ram
  • i7 6700K  b250 mobo
  • Zotac GTX 1060 6GB Amp! edition
  • Zotac GTX 1050 mini

 

 

Link to post
Share on other sites

6 minutes ago, paddy-stone said:

Unsure if this is related, but your nameservers might not be connecting maybe? try setting them to a public DNS like 8.8.8.8/8.8.4.4

Also you should definitely set your freenas default to a static address IMO, if not you may end up having to find out what the new address is after every reboot. And it might be beneficial to also set your VM to a static address too.

If everything worked fine before, then I would suggest setting your new router to the old subnet you used to have, that is the most likely cause of the breakage.

 

19 hours ago, Windows7ge said:

If we can't set it up this way there is an alternative option I can walk you through.

Hi guys sorry for not replying, i got abit fed up. So, basically im still no further forward: i tried going to go to 'ADD' in the interfaces section but there is no option for 'TYPE'. 

I think i can solve the problem by changing the VM's IP address but i dont know how to could anyone walk me through that? Thanks for all your help so far...

Link to post
Share on other sites

5 minutes ago, Jamie.bark1 said:

 

Hi guys sorry for not replying, i got abit fed up. So, basically im still no further forward: i tried going to go to 'ADD' in the interfaces section but there is no option for 'TYPE'. 

I think i can solve the problem by changing the VM's IP address but i dont know how to could anyone walk me through that? Thanks for all your help so far...

OK, we can try.

 

First off though I need to know a few things:

 

Are you connected to your router via ethernet? and using DHCP?  this will definitely help if so. And you can alter your router's settings by connecting to it's IP address, eg 192.168.1.1?

And do you remember what your old router's subnet was? cos it sounds to me like that was what broke your ability to connect to your VM.

 

So IMO it'd be best to try that first. Go into your router's settings and look for the part that says LAN setup or similar.

There you should be able to specify what subnet you want to use and what DHCP  IP range you want to use (this enables you to have some IP addresses that aren't handed out by the DHCP server.

eg, 192.168.1.1 and DHCP range of 192.168.1.2 to 192.168.1.200

 

This would give you 54 addresses you could set manually on devices without the DHCP server also handing out those addresses and causing a conflict.

Also set the DNS/nameservers to something other than the ISP one IMO, so for example

google 8.8.8.8/8.8.4.4

openDNS 208.67.220.220/208.67.222.222

quad9 9.9.9.9

1.1.1.1

You can also just google "public DNS servers" and choose from one of those.

When the settings have been input, click OK, or apply, the router should then roboot on most routers IIRC.

Please quote my post, or put @paddy-stone if you want me to respond to you.

Spoiler
  • PCs:- 
  • Main PC build  https://uk.pcpartpicker.com/list/2K6Q7X
  • ASUS x53e  - i7 2670QM / Sony BD writer x8 / Win 10, Elemetary OS, Ubuntu/ Samsung 830 SSD
  • Lenovo G50 - 8Gb RAM - Samsung 860 Evo 250GB SSD - DVD writer
  •  
  • Displays:-
  • Philips 55 OLED 754 model
  • Panasonic 55" 4k TV
  • LG 29" Ultrawide
  • Philips 24" 1080p monitor as backup
  •  
  • Storage/NAS/Servers:-
  • ESXI/test build  https://uk.pcpartpicker.com/list/4wyR9G
  • Main Server https://uk.pcpartpicker.com/list/3Qftyk
  • Backup server - HP Proliant Gen 8 4 bay NAS running FreeNAS ZFS striped 3x3TiB WD reds
  • HP ProLiant G6 Server SE316M1 Twin Hex Core Intel Xeon E5645 2.40GHz 48GB RAM
  •  
  • Gaming/Tablets etc:-
  • Xbox One S 500GB + 2TB HDD
  • PS4
  • Nvidia Shield TV
  • Xiaomi/Pocafone F2 pro 8GB/256GB
  • Xiaomi Redmi Note 4

 

  • Unused Hardware currently :-
  • 4670K MSI mobo 16GB ram
  • i7 6700K  b250 mobo
  • Zotac GTX 1060 6GB Amp! edition
  • Zotac GTX 1050 mini

 

 

Link to post
Share on other sites

23 minutes ago, Jamie.bark1 said:

Hi guys sorry for not replying, i got abit fed up. So, basically im still no further forward: i tried going to go to 'ADD' in the interfaces section but there is no option for 'TYPE'. 

No?

 

277966051_Screenshotfrom2020-08-2311-06-45.png.927a8a01227063fb5e705feb058bbebb.png

 

23 minutes ago, Jamie.bark1 said:

I think i can solve the problem by changing the VM's IP address but i dont know how to could anyone walk me through that? Thanks for all your help so far...

If you connect to the VM using FreeNAS's IP but a different port number (because you're not connecting to the VM directly you're connecting to the VNC server FreeNAS is running to view the VM) then changing the IP of the VM won't improve the situation.

 

Since FreeNAS is being weird we can reserve the IP FreeNAS currently has in the router so it doesn't change unless you change out your router again.

Link to post
Share on other sites

5TrPcjd.png

Please quote my post, or put @paddy-stone if you want me to respond to you.

Spoiler
  • PCs:- 
  • Main PC build  https://uk.pcpartpicker.com/list/2K6Q7X
  • ASUS x53e  - i7 2670QM / Sony BD writer x8 / Win 10, Elemetary OS, Ubuntu/ Samsung 830 SSD
  • Lenovo G50 - 8Gb RAM - Samsung 860 Evo 250GB SSD - DVD writer
  •  
  • Displays:-
  • Philips 55 OLED 754 model
  • Panasonic 55" 4k TV
  • LG 29" Ultrawide
  • Philips 24" 1080p monitor as backup
  •  
  • Storage/NAS/Servers:-
  • ESXI/test build  https://uk.pcpartpicker.com/list/4wyR9G
  • Main Server https://uk.pcpartpicker.com/list/3Qftyk
  • Backup server - HP Proliant Gen 8 4 bay NAS running FreeNAS ZFS striped 3x3TiB WD reds
  • HP ProLiant G6 Server SE316M1 Twin Hex Core Intel Xeon E5645 2.40GHz 48GB RAM
  •  
  • Gaming/Tablets etc:-
  • Xbox One S 500GB + 2TB HDD
  • PS4
  • Nvidia Shield TV
  • Xiaomi/Pocafone F2 pro 8GB/256GB
  • Xiaomi Redmi Note 4

 

  • Unused Hardware currently :-
  • 4670K MSI mobo 16GB ram
  • i7 6700K  b250 mobo
  • Zotac GTX 1060 6GB Amp! edition
  • Zotac GTX 1050 mini

 

 

Link to post
Share on other sites

I use FreeNAS on a regular basis, and use the virtual machines feature. In the Virtual Machines section, select the three dot button next to one of the entries, if you have more than one. Click on Devices, and then click on the three dot button next to VNC and click Edit. You should see a section that says Bind, and an IP. It might be blank at this point due to the likely IP change. Click on it and see if there's a new IP there, and then save it. Personally, I've always had issues with configuring the network section of FreeNAS, so I would steer clear of it unless someone is with you who knows what they're doing. There are ways of fixing the mess up, but it might be a headache that's more than its worth. 

 

As far as ensuring the IP doesn't change in the future, you probably have some options within the router itself to make the IP permanent on that particular machine. 

"It pays to keep an open mind, but not so open your brain falls out." - Carl Sagan.

"I can explain it to you, but I can't understand it for you" - Edward I. Koch

"I didn't die! I performed a tactical reset!" - Apollolol

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×