Difference between revisions of "Amahi in Proxmox without Greyhole"

From Amahi Wiki
Jump to: navigation, search
Line 83: Line 83:
  
 
<br />
 
<br />
 +
....more coming.....
 +
 
[[Category:Virtualization]]
 
[[Category:Virtualization]]

Revision as of 20:07, 5 December 2012

Warning.png WARNING
This is recommended only for advanced users, proceed with caution.



Amahi in Proxmox without Greyhole

This tutorial will skip installation of Proxmox, as that is covered by Proxmox documentation.

The only particular to understand during Proxmox installation is that all drives in the machine at time of install will become part of a LVM group that Proxmox will call "local storage" for images, containers, folders, etc as well as a partition in the LVM for the Proxmox OS itself. Any drives you wish to exclusively use for Greyhole storage pooling would need to be powered-on/ connected after installation of Proxmox. This turorial is for a setup without Greyhole. This being the case, take not that you will need sufficient storage available in your "local storage" in the Proxmox node (each node is a single hardware server), or have a NFS share or iSCSI share or other LVM group storage for disk images.

Before we begin, make sure you can run the web GUI in your browser, and you have the latest version of JAVA installed in your browser, as the console views rely on it.

We will begin with setting up the Amahi VM inside the web GUI, which is accessible via the default IP
x.x.x.4:8006 (where x is the first 3 octets of your network)

  1. Click on "Create VM" at the top right corner
  2. Choose the node, VM number (defaults to the next available), name (anything you like such as 'HDA', or 'Amahi'), and the resource pool to fall under (will need to be defined beforehand) (resource pool is just a pseudo-logical way of looking at stats for several VMs) .. then click "Next"
    Prox-nogrey-01.png
  3. Choose the Linux 2.6/3.x kernel type .. then click "Next"
  4. Choose the "Use CD/DVD disc image file (iso)" option. Then find the storage area (usually 'local') where your Fedora or Ubuntu ISO resides .. then click "Next"
    Prox-nogrey-02.png
  5. In the Hard disk tab, you have several options.
    Prox-nogrey-03.png
    - Start with VIRTIO. This is a abstracted, optimized interface for drive images. As this is the first disk, it will be device '0'.
    - Choose the storage volume that will contain this image; typically the "local" unless you have setup something else.
    - Choose the disk size in gigabytes. As this is the first disc, unless you have particular needs, 16-20GB is sufficient as this will only be holding your Fedora/Ubuntu OS drive contents (/, /home, swap).
    - Choose the format of the image. This is up to you as there are pros/cons for the options. Suggest to google the types to see what works best for you. "Raw" amd "qcow2' both have similar compatibilities.
    - leave the cache option at "Default (no cache)"
    - read and write limits are up to you, but are best left at unlimited unless you've previous experience with such limitations
    - .. then click "Next"
  6. The following tab is for CPU options
    Prox-nogrey-04.png
    This tab decides how much CPU to give to your Amahi VM. Choose options that meet or exceed the minimum system requirements for your chosen OS (Fedora/ Ubuntu).
    - start with 2 core and 1 socket and a 'qemu64' CPU type. You can always go back and change it.
    - .. then click "Next"
  7. The memory tab decides the amount of system RAM you give the VM. This is also your own choice, depending on what you want to be able to do with your Amahi VM. Settomg 1GB (1024MB) is sufficient. You can always go back and change it.
    - .. then click "Next"
  8. This next network tab decides what kind of networking to give the VM.
    Prox-nogrey-06net.png
    - go for "bridged mode" as we want the VM to look like a real device on the LAN
    - the default bridge is always vmbr0 and it also shares traffic with the web GUI console. If you have no additional NICs in the physical machine, this will be the only bridge to use.
    - the model option yields tiny differences in results.
    'Intel E1000' tends to be the most compatible for a server.
    You may of course try with any of these, keeping in mind that the Fedora or Ubuntu OS may rename the interface after sucha change (Amahi depends on seeing 'eth0')
    - setting a MAC address is auto by default and rate limit is also unlimited by default. You may change these as you see fit.
    - .. then click "Next"
  9. The final tab will show you a confirmation of the settings you made. Go back and make changes if need be.
    Once ready and happy, click "Finish" and the VM will be created. 
    The VMis ready when you see it in the left side column of the main GUI, under the 'Server' view, with your Proxmox node expanded.
  10. In its current state, your new VM is off, and also NOT set to start automatically when the Proxmox node boots up. This setting can be changed later, as you see fit.
    Congrats! you've created the virtual machine that your HDA will use.
  11. To simplify storage on this VM, you can setup any drive config you please. To start, we shall add a single drive image to the VM to act as the storage mount, typically known to Amahi users as '/var/hda/files'.
    - Under the 'hardware' tab, click "add" > "hard disk" > 'VIRTIO' > device '1' > storage 'local'
    - Decide how big this drive is to be. It is limited only by how much 'local' storage is available in that Proxmox partition. Once again the remaining options are up to you, but leave cache at 'default'. If you wish you include thise drive in backups and snapshots when Proxmox is instructed to do those, this drive will be included. Finally, click "Add" and this drive is added to the VM
  12. At this point, with the HDA VM highlighted, click the "Start" button at the top right of the window and it will boot up. Right away, click the "console" button just to the right of the migrate button. 
    This will launch a window which will be the display for the VM. You will see a normal boot that will boot from the ISO you selected earlier.
  13. During installation, you can setup the second drive you added to mount '/var/hda/files', thus creating your shares partition right away at install of Fedora/Ubuntu.
  14. Installation at this time is just the same as documented by the OS and in the Amahi installation procedures. Please refer to those until your next boot.
    ** Remeber to remove the ISO from the virtual CDROM drive when required, by selecting the VM in the list and going to: "hardware" tab > select "CD/DVDROM drive" > click "Edit" > select "Do Not Use Any Media"
  15. After OS installation is complete. You may turn on the auto-boot and even select the order in which this VM boots around other VMs in Proxmox.
    Prox-nogrey-05.png
    *It is suggested that if you HDA is definitely going to be your DNS and DHCP server, that it boots as '0' (first).
     


....more coming.....