Success! Windows 7 base with amahi vm, ubuntu 11 vm / dd-wrt

er0sion
Posts: 5
Joined: Sun Jul 10, 2011 8:54 am

Success! Windows 7 base with amahi vm, ubuntu 11 vm / dd-wrt

Postby er0sion » Sun Jul 10, 2011 9:47 am

Here's my situation:
Network needs to allow the backup of 4TB of data.
Network needs to allow software development, c#, mobile app development, web site devleopment
Network needs to allow streaming of media to all parts of home
Network needs to allow remote desktop access

Network storage doesn't have to be extremely speedy, it just needs to work.

I have been working on the best way I can up the network, and I have finally completed it, and it rocks!

Here are my specs:
(HTPC)
1GB Nvida 9500GT
AMD x6 1100T black edition
8GB Memory
13TB Storage
addonics eStata 5 Port multiplier
Motherboard with Marvel 8132(?) eSata

1 Cisco e1000 v1 wireless-N flashed with dd-wrt ($24 refurb at compusa!)
1 WRT54GL flashed with dd-wrt

I started with a networking configuration with my routers that already works, without having the hda installed yet:

modem --- router 1 (e1000 - AP) ---- router 2 (wrt54gl - AP)

I chose Windows 7 Ultimate (192.168.1.5) as my base with vmware workstation.

Why windows 7? This whole project started out as a media center. I'm waiting on getting my cablecard so that I can use it with windows media center without a set top box. Windows 7 is the only OS that allows this :(

I installed as many hard drives as i could into the windows7 machine. I only use one of the drives for booting windows. The rest I do not touch or format in windows. With the port multiplier, I have a small drive drive rack that contains 4 2TB drives. This port multiplier allows my esata marvell chipset to split 1 esata upto 5 sata ports, though at a cost of bandwidth reduction (150MB/s i think?), which is okay. Remember the goal is to have it work, not so blazsing fast. I also replaced my default termsrv.dll with the windows terminal server dll to allow multiple remote desktop connections to not disturb anyone watching netflix, etc.

I installed ubuntu as my development server. I wanted to keep home media separate from development as much as possible. I used a 20GB virtual disk and did a full install. This machine will have the host address of 192.168.1.7 (i set this for static now, it will be dhcp with a static ip on the hda when installed), with addresses 192.168.1.20 - 192.168.1.100 for web site development. after configuring apache 2 and the network addresses, i went to my windows7 machine and added the websites that i develop into my windows hosts, for easy access (http://website1, http://website2). i set up the ftp server, phpmyadmin, etc.

Now the fun part.

I Created a 70GB amahi virtual machine, and installed. This machine has the ip address of 192.168.1.6 static.
Install went smooth.

Then i started to reconfigure all the ip addresses in http//hda that I use for my servers:
192.168.1.1 - router1
192.168.1.2 - router2
192.168.1.4 - printer
192.168.1.5 - windows7
192.168.1.6 - amahi
192.168.1.7 - ubuntu

The reason i have 2 routers is because I have a few network adapters that are wireless-N. I dont want any mixing or matching of speeds on the routers, so i Have my main access point ssid: "router-N" (router1) and a secondary accesspoint ssid: "router" (router2). Router 2 has the ethernet from the switch side to the switch side of router1. I connect my win7 to router2, (theyre both in my server closet with a 35ft hdmi connect to my tv in the tv room).

Router settings: (this is where dd-wrt kicks ass)
192.168.1.1 (router 1, connected to modem)
Under setup:
router ip:
192.168.1.1
subnet mask: 255.255.255.0
gateway: 0.0.0.0
LOCAL DNS: 192.168.1.6 (<-- amahi)

network address settings: DNS Forwarder
192.168.1.6 (<--amahi)

192.168.1.2 (router 2, ethernet to amahi, ethernet to router 1)
under setup:
connection type: disabled (used as an AP that hands out ip address from wherever 192.168.1.1 is getting them from)
router ip:
192.168.1.2
subnet mask: 255.255.255.0
gateway: 0.0.0.0
local dns: 8.8.8.4 (google's dns i use.. its nice, fast and public, this is the important part)

network address settings: disabled
also make sure firewall is off,

save settings on booth routers and reboot them.

they should now connect to amahi and amahi should hand out ip addresses. you can test this by firing up a dhcp machine like a laptop or something, connecting to the network and seeing if amahi is working correctly. in my case, i connected to the network, viewed the status of my network adapter, and the gateway was 192.168.1.1 and my dns and dhcp were 192.168.1.6 which was correct. and the internet worked, duh.

Now for greyhole set up.
Originally I was looking into getting a plug in for windows home server 2011, but I read many great things about greyhole.
So, now to use all those blank drives I set up on the windows machine.

I allowed amahi's VM physicial access to the drives. To do this, view your connected drives in windows:
Control Panel\All Control Panel Items\Administrative Tools \ storage \ diskamangement and take note of where it says disk0, disk1, etc.
Now, in VMware, add a new hard drive to your vm guest OS and use the 'use physical disk' option and create 1 for each of the hard drives you are going to use in greyhole.

Now, go to amahi and format the drives as ext4 (or whatever).
Now,
su root, and type hda-diskmount, then you're going to want to copy and paste the "UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2 " or whatever it tells you, to /etc/fstab

after you've done this for all your newly formatted drives, type mount -a

for more info on this part, read:
http://wiki.amahi.org/index.php/Adding_ ... o_your_HDA

Now go back to greyhole and make sure the storage amount is close to what you just added up. Youll also see all your drives in http://hda / storage if you did it right.

Network complete, and rock solid.

* note: I also use 'allway sync' to sync between my development pc (a random pc i have windows on) with my \\hda\development share. Though, I noticed it does make both machines chug at times, but i only have it sync very late and the process is interruptable, so i can stop it at any time and it will resume for a set time after im idle.


sorry for all the typos and not so detailed info. If anyone really needs me to write something up and draw pictures, I'll be glad to.
Oh one last note. I gave both VM's 2 cores and 2048 GB of ram each, I might scale my dev server to just 1 core, I'll find out as testing goes along.

I'm going to set up my xboxes to see if i can stream to them and use amahi shares. I have 1 in each room that i want to use as a media extender. I'll update as I go along.

er0sion
Posts: 5
Joined: Sun Jul 10, 2011 8:54 am

Re: Success! Windows 7 base with amahi vm, ubuntu 11 vm / dd

Postby er0sion » Tue Jul 12, 2011 10:43 am

I have noticed 1 problem unrelated to amahi.

When windows detects sata drives of the same size, it gets confused as to which channel to assign the drive to. This affects my amahi installation because I'm using the UUID's for greypole and windows is changing the channels on boot so greyhole can't find the drive, amahi panics, and doesnt boot.


http://support.microsoft.com/kb/937251

I am currently tying to find a workaround for this issue, and no, don't reboot is not one of them, hah!

stillthesame
Posts: 1
Joined: Sun Nov 27, 2011 5:45 pm

Re: Success! Windows 7 base with amahi vm, ubuntu 11 vm / dd

Postby stillthesame » Sun Nov 27, 2011 5:46 pm

I want to build the same setup as you. Did you fixed your problem?

User avatar
sgtfoo
Posts: 419
Joined: Sun Jul 18, 2010 8:27 pm

Re: Success! Windows 7 base with amahi vm, ubuntu 11 vm / dd

Postby sgtfoo » Wed Feb 29, 2012 12:46 pm

What are the settings you used for the VM for Fedora/Amahi?

I'm looking at using VMWare to virtualize 4 servers (including amahi/fedora) on to my current Amahi hardware when the next upgrade happens... allowing for snapshots, clones, etc.

Have you gotten around the bouncing SATA channels issue with Windows yet?? perhaps having Linux as the base OS would fix?
SgtFoo
HDA: VM inside oVirt FX-8300 95w (2 cores for HDA), 32GB RAM (2GB for HDA)
My PC: FX-8300, 16GB RAM, 3x 1TB HDDs, Radeon HD6970 2GB video; Win10 Pro x64
Other: PC, Asus 1215n (LXLE), Debian openZFS server (3x(2x2tb) mirrors)
Modem&Network: Thomson DCM475; Asus RT-AC66U; HP 1800-24G switch

msstatecoletrain
Posts: 28
Joined: Thu Jan 24, 2013 7:18 am

Re: Success! Windows 7 base with amahi vm, ubuntu 11 vm / dd

Postby msstatecoletrain » Wed Jul 31, 2013 2:20 pm

any updates to this? I'm wanting to use Windows Media Center and a vm for amahi but this is the only partial success story I've seen.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Success! Windows 7 base with amahi vm, ubuntu 11 vm / dd

Postby bigfoot65 » Wed Jul 31, 2013 2:39 pm

Recommend you check out the Virtualization topic area. I am using Proxmox and running my HDA as a VM with 3 physical drives for Greyhole.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

msstatecoletrain
Posts: 28
Joined: Thu Jan 24, 2013 7:18 am

Re: Success! Windows 7 base with amahi vm, ubuntu 11 vm / dd

Postby msstatecoletrain » Thu Aug 01, 2013 6:56 am

Yeah I dove into that wiki. I guess my problem is that WMC does not work well through virtualization. I use it as my DVR with a cable card tv tuner (SiliconDust PRIME HD).

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Success! Windows 7 base with amahi vm, ubuntu 11 vm / dd

Postby bigfoot65 » Thu Aug 01, 2013 1:39 pm

I have used WMC with my HDA being virtualized. Did not have any issues that I recall.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 20 guests