Changes

From Amahi Wiki
Jump to: navigation, search
2,009 bytes added ,  03:50, 16 October 2015
m
→‎Run the installation: Grammer, punctuation.
{{MessageBox|
backgroundcolor = #faa|
image =Warning.png|
heading =WARNING|
message = Amahi 7.x (for Fedora 19) specific instructions!}}
 
[https://wiki.amahi.org/index.php/Amahi_Virtualized Back to 'Amahi Virtualized']
= Why do this? =
* A working installation of VirtualBox
* An [[Express CD]] image (this was tested with Amahi-5.4-Express-2.6-Beta-i386.iso). This can be done using the normal Fedora i386/x86_64 DVD as well.
* A desire to do this!
The process is fractionally more complex than a standard Amahi install, because we need to tweak the VM network configuration part-way through.
You will also need to know the IP address range that your version of VirtualBox uses for its "Host only" network type. Check the network configuration of the host system on . On a Mac OS (and I expect Linux) host, there's an interface called "vboxnet0". At the time of writing, the default on Mac OS is 192.168.56.1.  On a Linux host, you need to create "vboxnet0" on VirtualBox. It's on file -> Settings -> Network, and then add a host only network. It will also have 192.168.56.1 as default IP address range.
= Configure the hda =
First, configure your amahi Amahi install in the usual way at the [http://www.amahi.org/user control panel]. You must use the IP address of the VirtualBox "Host only" interface as your gateway (in my case, 192.168.56.1).  You can also set the dhcp VirtualBox DHCP server to a single start/end address(i.e. 192.168.56.10). This will ensure your VM has only one possible IP and that will be the one you add to the profile.If you do not do this, then you will need to find out the IP address in order to access the dashboard. If you want to use the VirtualBox DHCP server, here's how to do it. Be aware that this affects ''all'' virtual machines on the host system, not just the virtual machine you are creating for Amahi. * In the VirtualBox Manager go to File -> Preferences -> Network -> Host-only Networks -> double-click on "VirtualBox Host-Only Ethernet Adapter" -> select the DHCP Server tab.* Check "Enable Server".** Server Address: 192.168.56.1** Server Mask: 255.255.255.0** Lower Address Bound: 192.168.56.10** Upper Address Bound: 192.168.56.10 
If you have already have Amahi on your network, you might wish to consider changing the home domain to something other than home.com.
* Select "Linux" and "Fedora" as the OS and version
* Create a virtual disk for the installation: 8GB, dynamically sized should be sufficient
 
Once you've created the VM, go to the settings window and do the following:
= Run the installation =
Start your VM and it will boot from the CD image. Work through the [[Express CD]] installer in the usual way, entering the install code that the amahi Amahi control panel gave created you earlier. You will be asked to reboot a couple of times during the process. (During the first reboot you will have to disconnect the Express CD iso image, otherwise you'll get back to the installer menu.)
Eventually, the console should show a text login prompt. At which point you should shut down the VM (, either by sending the shutdown signal from VirtualBox or log in and issue the '''shutdown''' command).
= Altering the VM network config =
* Adapter 2: Enabled, Attached to: NAT
= Reconfiguring the system network =Boot the VM and wait for the login prompt. Login as admin (default password: admin) and use su to become root.  == For Fedora 14 ==Using your favourite editor, create the file:
<blockquote><pre>/etc/sysconfig/network-scripts/ifcfg-eth1</pre></blockquote>
with the contents:
<blockquote> <pre>{{Text|Text=DEVICE=eth1
BOOTPROTO=dhcp
ONBOOT=yes}} == For Ubuntu 10.04 ==Using your favorite editor, open the file: <blockquote><pre>/etc/network/interfaces</pre></blockquote> At the end of the file add: {{Text|Text=auto eth1iface eth1 inet dhcp}} = Reinitialize the gateway =
Now we need to reconfigure the hda to ensure that it picks up the new network config, using the command hda-change-gw and the IP address of the host-only network. In my case:
 <blockquote><pre>{{Code|hda-change-gw 192.168.56.1</pre></blockquote>}}
This allows amahi to serve on the host-only network, eth0, while still having access to the wider internet through the eth1 NAT interface. (The latter is necessary if you want to install any apps, for instance.)
Amahi will work behind VirtualBox NAT quite happily, but at the time of writing, VirtualBox port-forwarding doesn't play nicely with Amahi's network config. (Or at least it didn't for me.) NAT also won't permit two virtual machines communicating (e.g. for testing PXE-booting).
== Bridged Mode ==If you want Amahi within the VM to serve other machines on your LAN, select bridged mode instead of NAT initially and don't alter the network config. (The basic install process will ''just work''. However, in your [https://www.amahi.org/user Amahi control panel] you should enter a configuraion that matches your existin network and does not clash with any other machine. This is important. If you are running on a Linux host, you can go into the "Advanced" settings and set the "Adapter Type" to "Paravirtualized Network (virtio-net)". For more information as to why you might want to do this, check read [http://wiki.libvirt.org/page/Virtio here]. = Guest Additions (Windows) =* [http://coffeeonthekeyboard.com/how-to-install-virtualbox-guest-additions-in-fedora-12-332/ How to Install VirtualBox Guest Additions in Fedora 12] has additional info that might be helpful.  [[Category:Virtualization]]
16

edits