Server setup
I have a server I'm about to get back up and running, but I have a few changes in mind (starting from scratch) because I believe I can merge my router into this server (IPCOP router). Here are my requirements:
-Sun virtualbox vm running two guest OS: 1. IPCOP, needs to have full control over two hardware NIC 2. Windows 2000 or XP, with access to usb port to manage a printer for network. -Virtual VM guests need to be ran Headless and started on boot. -Host OS running SVN server, MySQL server, Web Server, SAMBA. -Server gets IP address through DHCP on the Virtual machine its running. I'll end up having three NIC used and one USB port with this setup. Server Specs: AMD 4000+ x2 am2 w/ 2GB ram Does it sound possible? |
Possible yes, but I might suggest a static IP for the Host server. You can start the VM by adding a startup to rclocal, you might consider scripting it so one line in rclocal runs a script that brings up your VMs. I might suggest though you look at resource usage, I feel you may run into an issue with the amount of RAM, but then again maybe not. I suppose 256 for Win2000/XP VM, a 768 or a gig for the IPCOP VM and the remainder for the Host. I would suggest on the host that you not run a GUI interface, or you have a very minimal one and that you NOT HAVE IT start on boot. only start it if you need to administer something. Conserve resources. I think the big question is how much activity is your mysql and SVN going to get. Serving Samba shares is minimal usage but Mysql can be resource intensive. Same with the webserver if running much server side dynamic content.
|
I managed to get a lot of it running, only thing left to do is actually move it over and test the actual network with ipcop and get VNC or some type of remote desktop for the host OS. I decided i'm going to keep a GUI running because i'm doing very well on ram (after boot, both VM running headless, and logged in to gnome):
Code:
$ free -m edited: see post below |
Alright I have it all setup but I can't get bridged networking going. Nothing can ping the guest, guest can't ping outside, guest can ping itself. Fedora 11 x86 is the host and I've tried doing a bridged connection with windows 2000 and IPCOP guests. I'm stumped as of why this isn't working.
|
It sounds like it might be a problem with your iptables. you may need to masquerade your hw nics to the VM? or you just have your VM incorrectly setup without access to the nics.
|
Maybe your VM isn't in bridged mode?
|
Ok I managed to get ping to work, eth0 and eth2 where down (didn't know I needed these up for the bridge to work), I can ping back and forth between the host and guest and any other computer on the network. Now I can't seem to get firefox to open up the website (http://192.168.0.2:81).
/etc/rc.local (how i'm starting the VM): Code:
touch /var/lock/subsys/local Code:
<?xml version="1.0" encoding="UTF-8"?> Code:
# ifconfig |
Ok I think I managed to find the problem. I downloaded a testing version of ipcop (1.9.7). I realized this when I did a
Code:
netstat -an | grep "LISTEN" Reinstalling with 1.4.20, i'll post back with results. |
Alright everything is going smooth now that the correct version is installed. I've even added another VM for git, updated and hopefully final notes:
Code:
### SAMBA setup ############################################################### |
All times are GMT -5. The time now is 10:54 PM. |