Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Networking & Security

Reply
 
LinkBack Thread Tools
Old 12-19-08   #1 (permalink)
4.0ghz
 
Dman's Avatar
 
intel ati

Join Date: May 2006
Posts: 2,627

Rep: 256 Dman is a proven memberDman is a proven memberDman is a proven member
Unique Rep: 205
Trader Rating: 2
Default [Guide] : How to virtualize untangle

Things you need to complete this are, a computer with a single core processor, 1ghz or greater, 20gigs or more hd space, 512MB of ram and 2 network cards.

Ok, so you want to run untangle as a custom router but you don't have an extra pc lying around, but you do have one beefy rig sitting in your house, what do you do? Virtualize it! Virtualization is where the server industry is heading, it allows companies to save electricity, and reduce hardware repair and maintenance costs significantly. Ok so the first thing you need to do is decide which nic is going to be your WAN interface (where the internet comes in) and which is going to be your LAN interface(for dhcp to give ip's to the machines on your local network) Then install vmware on your existing pc, and make sure when you first configure vmware you have both of your network cards configured as "bridged" in vmware. Next you need to make a create a virtual machine within vmware. You do this by going to virtual machines ----> create new virtual machines



Next step is to configure it, untangle needs 512mb of ram, 20gigs of hd space and 2 nics, so make sure you put at least those specs in for your virtual machine otherwise it won't install properly. You will only be able to add a single nic to the VM when you first create it, so after you have finished go back into the VM and add a 2nd nic. This is an example of what the vm should look like after the configuration wizard.



Ok once you have the vm configured, put your untangle cd in the drive (or mount the iso, whatever option you chose) Then select your VM from the side bar and push the play button or select start VM from the side bar, you should get a screen like this after you start the VM.



Tada! Untangle starts up in your VM just as if you were installing it on another real pc.



Ok when it asks you to configure untangle, you would do it the same way you would any old dlink or linksys router. E.g. if you have a cable connection you would select dhcp for your internet type and assign what ever private ip you want for the secondary nic e.g. if you use 192.168.1.1 for your LAN interface it will assign ips in the format 192.168.1.XXX. Once you are done it should work. Ok now to go into a little bit of depth into VM's and networking. The "Bridged" option in vmware basically makes your virtual nics "real" nics on your network, with their own mac addresses. So essentially your 2 nics have become 4 nics. Ok so how the virtual router works is the nic 1 your WAN nic on the VM is your primary nic, and the second virtual nic the LAN one dishes out ips. I drew this diagram to explain this better because its confusing if you don't.


{modem}---{virtual wan}--{virtual lan (dhcp)}--{real lan card}-------{other pcs}---

Kind of crude I know, but still easier to work with then paint. So what this illustrates is that the modem gives its ip the the virtual wan nic on untangle. The the virtual lan (dhcp) nic gives ip's to all other nics, even the real LAN nic on the pc, and it does this through the real LAN nic. Confusing right? So basically your fake dhcp nic gives ips to all the other pc's on the lan, including the nic its going through. After this you should be up and running, the 1st nic on the real machine you should need to give it an ip with no gateway, and not have it get its ip info from the untangle router, otherwise you will get a conflict because you have 2 connected nics on the same subnet going to the same machine. The machine will get its internet through the secondary nic. If you need info on how to setup untangle I believe DuckieHo posted it in this thread here http://www.overclock.net/networking-...ml#post5102005. As you can see virtualization uses very little resources, untangle is only using 442mhz out of 5000mhz and 228 megs out of 2gigs of ram.



If you feel this guide could use more info, please feel free to ask questions in this thread.

System: My System
CPU
i7 920 D0
Motherboard
Foxconn Bloodrage GTI
Memory
OCZ XMP DDR3 1600 low voltage
Graphics Card
2 ATI 4850 CrossFire
Hard Drive
Seagate 7200.10 320GB x2 RAID 0
Sound Card
Creative XiFi Xtreme music
Power Supply
OCZ GameXstream 700W
Case
Lian Li PC75B
CPU cooling
D-Tek Fuzion v2
GPU cooling
D-Tek Fuzion GFXv2
OS
Vista Ultimate 64bit
Monitor
Samsung 245BW 24'

Last edited by Dman : 12-19-08 at 11:41 PM
Dman is offline Overclocked Account   Reply With Quote
Old 12-19-08   #2 (permalink)
Intel Overclocker
 
intel ati

Join Date: Oct 2008
Location: Toronto
Posts: 1,210

Rep: 99 OverclockTheStock is acknowledged by some
Unique Rep: 91
Trader Rating: 7
Default

nice guide!
__________________
System: Finally Perfected
CPU
E8500@ 4.6Ghz @ 1.36V
Motherboard
Gigabyte P45
Memory
1066MHz Dominators
Graphics Card
Two Sapphire 4870's CFX
Hard Drive
500GB and 160GB
Sound Card
Onboard FTW
Power Supply
Corsair 750watt
Case
Antec 1200
CPU cooling
D-tek Fuzion 2(microres ->MCP655->360 rad->WB)
GPU cooling
Stock
OS
Windows XP Professional SP2
Monitor
Samsung SyncMaster 2253bw
OverclockTheStock is offline   Reply With Quote
Old 12-19-08   #3 (permalink)
PC Gamer
 
J.Harris's Avatar
 
intel nvidia

Join Date: Dec 2007
Posts: 626

Rep: 30 J.Harris is acknowledged by some
Unique Rep: 28
Trader Rating: 0
Default

So, if I can virtualize untangle, does this mean I can use this computer for freeNAS as well? I'm trying to keep from having to run 2 computers.
__________________
Windows 7Fan Club

System: Wow a Quad!
CPU
C2Q Q9550 e0 3.8ghz 1.25V
Motherboard
Gigabyte GA EP45-UD3P
Memory
2x2gb OCZ Reaper 1066mhz
Graphics Card
Galaxy 8800 GT 512mb (780,1900,1100)
Hard Drive
2 400gig WD SATA RAID0 116.9mb/s
Sound Card
Creative X-Fi Extreme Music
Power Supply
OCZ 700Watt Gamexstream
Case
CM690
CPU cooling
Tt Bigtyphoon + fm121
GPU cooling
Thermaltake Duorb
OS
Win7 64bit + Vista 64bit SP1
Monitor
19" LG 2ms
J.Harris is offline   Reply With Quote
Old 12-19-08   #4 (permalink)
4.0ghz
 
Dman's Avatar
 
intel ati

Join Date: May 2006
Posts: 2,627

Rep: 256 Dman is a proven memberDman is a proven memberDman is a proven member
Unique Rep: 205
Trader Rating: 2
Default

Quote:
Originally Posted by J.Harris View Post
So, if I can virtualize untangle, does this mean I can use this computer for freeNAS as well? I'm trying to keep from having to run 2 computers.
You can virtualize any server/os in vmware. Networking in virtualization is the confusing part. Yes you could actually have untangle and freenas on the same machine, and have untangle assign an ip to the free nas part. Each virtual nic on a virtual machine has its own mac address. So when setting up FreeNas, make sure you pick the "bridged" option in vmware.

System: My System
CPU
i7 920 D0
Motherboard
Foxconn Bloodrage GTI
Memory
OCZ XMP DDR3 1600 low voltage
Graphics Card
2 ATI 4850 CrossFire
Hard Drive
Seagate 7200.10 320GB x2 RAID 0
Sound Card
Creative XiFi Xtreme music
Power Supply
OCZ GameXstream 700W
Case
Lian Li PC75B
CPU cooling
D-Tek Fuzion v2
GPU cooling
D-Tek Fuzion GFXv2
OS
Vista Ultimate 64bit
Monitor
Samsung 245BW 24'
Dman is offline Overclocked Account   Reply With Quote
Old 12-19-08   #5 (permalink)
PC Gamer
 
J.Harris's Avatar
 
intel nvidia

Join Date: Dec 2007
Posts: 626

Rep: 30 J.Harris is acknowledged by some
Unique Rep: 28
Trader Rating: 0
Default

Quote:
Originally Posted by Dman View Post
You can virtualize any server/os in vmware. Networking in virtualization is the confusing part. Yes you could actually have untangle and freenas on the same machine, and have untangle assign an ip to the free nas part. Each virtual nic on a virtual machine has its own mac address. So when setting up FreeNas, make sure you pick the "bridged" option in vmware.
Ohh man, I can tell this will be complex.
__________________
Windows 7Fan Club

System: Wow a Quad!
CPU
C2Q Q9550 e0 3.8ghz 1.25V
Motherboard
Gigabyte GA EP45-UD3P
Memory
2x2gb OCZ Reaper 1066mhz
Graphics Card
Galaxy 8800 GT 512mb (780,1900,1100)
Hard Drive
2 400gig WD SATA RAID0 116.9mb/s
Sound Card
Creative X-Fi Extreme Music
Power Supply
OCZ 700Watt Gamexstream
Case
CM690
CPU cooling
Tt Bigtyphoon + fm121
GPU cooling
Thermaltake Duorb
OS
Win7 64bit + Vista 64bit SP1
Monitor
19" LG 2ms
J.Harris is offline   Reply With Quote
Old 12-19-08   #6 (permalink)
4.0ghz
 
Dman's Avatar
 
intel ati

Join Date: May 2006
Posts: 2,627

Rep: 256 Dman is a proven memberDman is a proven memberDman is a proven member
Unique Rep: 205
Trader Rating: 2
Default

Quote:
Originally Posted by J.Harris View Post
Ohh man, I can tell this will be complex.
Not really, you just install free nas as you would if you were going to install it on a separate machine. Make the virtual nic "bridged" to the one on your real pc that is getting its ip from the router, then the virtual machine will get another ip address from the router and you will be able to access it via the network. You have to think of the virtual machine as a separate actual machine, it makes it easier to network.

System: My System
CPU
i7 920 D0
Motherboard
Foxconn Bloodrage GTI
Memory
OCZ XMP DDR3 1600 low voltage
Graphics Card
2 ATI 4850 CrossFire
Hard Drive
Seagate 7200.10 320GB x2 RAID 0
Sound Card
Creative XiFi Xtreme music
Power Supply
OCZ GameXstream 700W
Case
Lian Li PC75B
CPU cooling
D-Tek Fuzion v2
GPU cooling
D-Tek Fuzion GFXv2
OS
Vista Ultimate 64bit
Monitor
Samsung 245BW 24'
Dman is offline Overclocked Account   Reply With Quote
Old 12-19-08   #7 (permalink)
Security Sleuth
 
intel ati

Join Date: Dec 2008
Location: Alabama
Posts: 86

Rep: 18 gnomepunk Unknown
Unique Rep: 12
Trader Rating: 0
Default

I was thinking about trying this in VirtualBox the other day. I couldn't decided if it would work well or not. Glad to see that you got it working. I'm off to try this in VB now!
__________________
Alabama Overclocker

Steam ID: Easy_D

System: The Dark Side
CPU
Intel E7300
Motherboard
Gigabyte GA-EP34-UD3P
Memory
2x 2GB Mushkin DDR2-1066
Graphics Card
Visiontek 4870 512mb
Hard Drive
WD Black WD6401AALS
Power Supply
Silverstone S-12 500w
Case
Antec P180
CPU cooling
TRUE w/ M1A Panaflo
GPU cooling
Stock
OS
Vista Ultimate x64
gnomepunk is offline   Reply With Quote
Old 12-19-08   #8 (permalink)
PC Gamer
 
J.Harris's Avatar
 
intel nvidia

Join Date: Dec 2007
Posts: 626

Rep: 30 J.Harris is acknowledged by some
Unique Rep: 28
Trader Rating: 0
Default

So tell me, what OS do I need to install first? I'm really confused about how to get started.
__________________
Windows 7Fan Club

System: Wow a Quad!
CPU
C2Q Q9550 e0 3.8ghz 1.25V
Motherboard
Gigabyte GA EP45-UD3P
Memory
2x2gb OCZ Reaper 1066mhz
Graphics Card
Galaxy 8800 GT 512mb (780,1900,1100)
Hard Drive
2 400gig WD SATA RAID0 116.9mb/s
Sound Card
Creative X-Fi Extreme Music
Power Supply
OCZ 700Watt Gamexstream
Case
CM690
CPU cooling
Tt Bigtyphoon + fm121
GPU cooling
Thermaltake Duorb
OS
Win7 64bit + Vista 64bit SP1
Monitor
19" LG 2ms
J.Harris is offline   Reply With Quote
Old 12-19-08   #9 (permalink)
4.0ghz
 
Dman's Avatar
 
intel ati

Join Date: May 2006
Posts: 2,627

Rep: 256 Dman is a proven memberDman is a proven memberDman is a proven member
Unique Rep: 205
Trader Rating: 2
Default

Quote:
Originally Posted by J.Harris View Post
So tell me, what OS do I need to install first? I'm really confused about how to get started.
First you need to answer me this, how many computers do you have, and one OS is on the one you want to install vmware on?

System: My System
CPU
i7 920 D0
Motherboard
Foxconn Bloodrage GTI
Memory
OCZ XMP DDR3 1600 low voltage
Graphics Card
2 ATI 4850 CrossFire
Hard Drive
Seagate 7200.10 320GB x2 RAID 0
Sound Card
Creative XiFi Xtreme music
Power Supply
OCZ GameXstream 700W
Case
Lian Li PC75B
CPU cooling
D-Tek Fuzion v2
GPU cooling
D-Tek Fuzion GFXv2
OS
Vista Ultimate 64bit
Monitor
Samsung 245BW 24'
Dman is offline Overclocked Account   Reply With Quote
Old 12-20-08   #10 (permalink)
2 + 2 = 5
 
DuckieHo's Avatar
 
intel nvidia

Join Date: Nov 2006
Location: In a Chair.
Posts: 34,855

Rep: 4165 DuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guru
Unique Rep: 1903
Trader Rating: 56
Default

Could you throw up some screenshots of assign IPs to the virtual and real NICs? This is where I get confused.... thanks!
__________________
To answer most of your questions: (1) a fridge cannot cool a PC (2) 64-bit OS for over 3.4GB (3) If a PCIe card fits, it should work (4) Resolution, not screen size (5) If you have a question, it is not news (6) Report, not respond to Spam (7) Single-Rail/Non-Modular PSUs are not always better than Multi-Rail/Modular


System: Three Dead Mobos in a Year
CPU
Q6600 (3.4GHz)
Motherboard
EVGA 780i
Memory
2x2GB OCZ Reaper 1096MHz
Graphics Card
GTX260 55nm
Hard Drive
PERC 6/i: 3xRAID0 7200.12 500GB
Sound Card
X-Fi XtremeMusic
Power Supply
Corsair 620HX
Case
Li Lian PC-V2100 [10x120mm fans]
CPU cooling
FuZion V2 + Quad-Heatercore
GPU cooling
EK Block + DDC-3.2
OS
Vista Ultimate 64
Monitor
Samsung 226BW "C" + Sceptre 19"
DuckieHo is offline Overclocked Account DuckieHo's Gallery   Reply With Quote
Reply

Tags
guide


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 10:28 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.17306 seconds with 8 queries