Difference between revisions of "User:Deepb"
Line 78: | Line 78: | ||
sfdisk -c /dev/sdb 1 fd | sfdisk -c /dev/sdb 1 fd | ||
sfdisk -c /dev/sdb 2 fd | sfdisk -c /dev/sdb 2 fd | ||
− | mdadm --create - | + | mdadm --create -l1 -n2 /dev/md0 missing /dev/sdb1 |
− | mdadm --create - | + | mdadm --create -l1 -n2 /dev/md1 missing /dev/sdb2 |
+ | copy /boot to the new raid md. (Note: md with raid means "multiple device" and has nothing to do with media director) | ||
+ | mkfs.ext3 /dev/md0 | ||
+ | mkdir /mnt/md0 | ||
+ | mount /dev/md0 /mnt/md0 | ||
+ | cp -ax /boot/* /mnt/md0 | ||
+ | Then edit the fstab | ||
+ | nano /etc/fstab | ||
+ | and find the line for boot that says | ||
+ | UUID=xxxxxxxxx /boot ext3 defaults 0 1 | ||
+ | and change it to | ||
+ | /dev/md0 /boot ext3 defaults 0 1 |
Revision as of 16:30, 12 September 2013
Contents
Installation of LinuxMCE in a KVM Virtual Machine
On this page I will describe the installation process of LinuxMCE in a KVM virtual machine. As a host system I use proxmox, a very user friendly and easy to use bare metal hypervisor.
Download Required Software
Download Proxmox the latest version of proxmox: [1]
- At the moment of this writing the current version is Proxmox VE 3.1
Download LinuxMCE [2]
- At the moment of this writing the current version is LinuxMCE 1004 final
Adittionally if you are on Windows and want to use a usb-stick: (you do not need any addidional program on Linux)
- Suse Studio Image Writer [3] to write the image to a usb-stick. UnetBootin and Rufus do not work.
Copying Image to USB-Stick
If you want to use a CD simply burn the iso to a cd.
On Linux
Please make sure that /dev/XYZ is the right device, as this delets all content. Please also note that this is the device WITHOUT the number for the partition. SO for example /dev/sdc AND NOT /dev/sdc1 pve-cd.iso is the current proxmox iso that you downloaded.
dd if=pve-cd.iso of=/dev/XYZ bs=1M
On Windows
First delete the partition of the usb-stick, else Suse Studio Image Writer might fail with a access failed error. Then rename the Proxmox iso that you downloaded from .iso to .raw. Run Suse Studio Image Writer, selct the drive and the image.
Base Installation of Proxmox
The graphical installation guide is straightforward and easy to understand. Please note though that the installer DELETS ALL PARTITIONS ON THE SELECTED DRIVE! So all data on that drive is lost! You might want to unhook all harddrives that have unsaved data on it just to make sure you do not pick the wrong one by accident.
Reboot and Settings
After the base installation reboot the system, and check if you put in the right ip data in the installation process. NOTE: if you have multiple newtork cards make sure you plug the cable into the right one, if you do not have network connection try the other one.
Networking
Networking should work out of the box, if it does you can ignore this chapter and continue with Update. Else: check if there is internet connectivity by pinging something.
ping google.com
If you want to change the network settings
nano /etc/network/interfaces
if you want to use dhcp for the public interface this should look like:
auto lo iface lo inet loopback auto vmbr0 iface vmbr0 inet dhcp
If you want to use static it should look something like that:
auto lo iface lo inet loopback auto vmbr0 iface vmbr0 inet static address 192.168.0.13 netmask 255.255.255.0 gateway 192.168.0.1 bridge_ports eth0 bridge_stp off bridge_fd 0
if you did change some network setting run
/etc/init.d/networking restart
Update
run
aptitude update && aptitude full-upgrade
If you get the message
E: Some index files failed to download. They have been ignored, or old ones used instead.
you can ignore it, or if rather not you can edit
nano /etc/apt/sources.list.d/pve-enterprise.list
and comment out the enterpries repository by placing a "#" in front of it.
#deb https://enterprise.proxmox.com/debian wheezy pve-enterprise
Software Raid
If you do not want to use softwar raid you can continue with the next chapter. WARNING: Software raid is not supported by proxmox! But of course it works nevertheless, but as usual do it on your own risk. This part of the guide is based in a German guide found here[4] First install the required package:
apt-get update; apt-get install mdadm
If there are any prompts on installing mdadm just ignore or press yes.
Prepare Raid
If you have not done so yet shutdown and plugin the second (identical) drive. In this guide the harddrive that proxmox was installed on is /dev/sda, while the second to use in the raid is /dev/sdb. If you have different drive letter, please change them accordingly. Prepare and create raid:
sfdisk -d /dev/sda | sfdisk -f /dev/sdb sfdisk -c /dev/sdb 1 fd sfdisk -c /dev/sdb 2 fd mdadm --create -l1 -n2 /dev/md0 missing /dev/sdb1 mdadm --create -l1 -n2 /dev/md1 missing /dev/sdb2
copy /boot to the new raid md. (Note: md with raid means "multiple device" and has nothing to do with media director)
mkfs.ext3 /dev/md0 mkdir /mnt/md0 mount /dev/md0 /mnt/md0 cp -ax /boot/* /mnt/md0
Then edit the fstab
nano /etc/fstab
and find the line for boot that says
UUID=xxxxxxxxx /boot ext3 defaults 0 1
and change it to
/dev/md0 /boot ext3 defaults 0 1