Saturday, March 20, 2010

How To Install OpenVZ on OpenSUSE

#Check all the control panel under
yast2

#Do update using this command
zypper update

#Before installation put the VZ partition to /srv/vz

Install OpenVZ under openSUSE - Do this part carefully
=========================================================================

#First step go to zypper repo
cd /etc/zypp/repos.d

#Do this
vi openvz-kernel.repo

+++ type this contain

[openVZ-kernel]
name=OpenVZ-Kernel-2.6.27
enable=1
autorefresh=1
baseurl=http://download.opensuse.org/repositories/Virtualization%3a/OpenVZ%3a/kernel-2.6.27/openSUSE_11.1/
path=/
type=rpm-md
keeppackages=0

+++

vi openvz-tool.repo

+++ type this contain

[openvz-tool]
name=OpenVZ-Tools
enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/repositories/Virtualization:/OpenVZ:/tools/openSUSE_11.1/
path=/
type=rpm-md
keeppackages=0

+++

#Refresh the zypper
zypper-refresh

#Install using yast, dont using zypper
yast2 ->  Software Management -> type ovz -> install all openVZ, don't install kernel-ovz-syms

#Check the bootloader make it sure the kernel correct, if >3.25GB using OVZ-PAE

#Edit some config
vi /etc/systctl.conf

+++

# Disable response to broadcasts.
# You don't want yourself becoming a Smurf amplifier.
net.ipv4.icmp_echo_ignore_broadcasts = 1
# enable route verification on all interfaces
net.ipv4.conf.all.rp_filter = 1
# enable ipV6 forwarding
#net.ipv6.conf.all.forwarding = 1
# increase the number of possible inotify(7) watches
fs.inotify.max_user_watches = 65536
# avoid deleting secondary IPs on deleting the primary IP
net.ipv4.conf.default.promote_secondaries = 1
net.ipv4.conf.all.promote_secondaries = 1

net.ipv4.conf.all.forwarding = 1
net.ipv4.conf.default.forwarding = 1
net.ipv4.conf.all.proxy_arp = 1
net.ipv4.conf.default.proxy_arp = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.default.proxy_ndp = 1
net.ipv6.conf.all.proxy_ndp = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.icmp_echo_ignore_broadcasts= 1
kernel.sysrq = 1

++++

vi /etc/vz/vz.conf

+++

NEIGHBOUR_DEVS=all

+++

#Restart the machine using new kernel
shutdown -r now

# Start VZ Service

/etc/init.d/vz start
if give you an error, make it sure the ipv6 is enabled, otherwise try modprobe ipv6

#Add VZ service to start-up

chkconfig --add vz
chkconfig vz on

zypper install vzctl vzquota

lsmod | grep vz

===================Shoud Give You This============================
+vzethdev               24704  0 +
+vznetdev               30212  2 +
+vzrst                 133268  0 +
+vzcpt                 117540  0 +
+tun                    27012  2 vzrst,vzcpt +
+vzdquota               51712  1 [permanent] +
+vzmon                  39308  5 vzethdev,vznetdev,vzrst,vzcpt +
+vzdev                  19336  4 vzethdev,vznetdev,vzdquota,vzmon+
+ipv6                  241828  47 vzrst,vzcpt,vzmon +
==================Yippie openVZ Working===========================


Create openVZ Host
=========================================================================
cd /srv/vz/template/cache
wget http://download.openvz.org/template/precreated/contrib/centos-5-i386-default-5.3-20090803.tar.gz

#VZ Insallation

vzsplit -n 1 -f vps.1
vzctl create 101 --ostemplate centos-5-i386-default-5.3-20090803 --config vps.1
vzctl set 101 --onboot yes --save
vzctl set 101 --hostname S1SmNaNnLx21v.netdns.net --save
vzctl set 101 --ipadd 202.157.142.61 --save
vzctl set 101 --nameserver 165.21.83.88 --save

# highest upper limit
vzctl set 101 --kmemsize 2147483647:2147483647 --save
vzctl set 101 --lockedpages 2147483647:2147483647 --save
vzctl set 101 --privvmpages 2147483647:2147483647 --save
vzctl set 101 --shmpages 2147483647:2147483647 --save
vzctl set 101 --numproc 2147483647:2147483647 --save
vzctl set 101 --numtcpsock 2147483647:2147483647 --save
vzctl set 101 --numflock 2147483647:2147483647 --save
vzctl set 101 --numpty 2147483647:2147483647 --save
vzctl set 101 --numsiginfo 2147483647:2147483647 --save
vzctl set 101 --tcpsndbuf 2147483647:2147483647 --save
vzctl set 101 --tcprcvbuf 2147483647:2147483647 --save
vzctl set 101 --othersockbuf 2147483647:2147483647 --save
vzctl set 101 --dgramrcvbuf 2147483647:2147483647 --save
vzctl set 101 --numothersock 2147483647:2147483647 --save
vzctl set 101 --dcachesize 2147483647:2147483647 --save
vzctl set 101 --numfile 2147483647:2147483647 --save
vzctl set 101 --numiptent 2147483647:2147483647 --save
vzctl set 101 --diskspace 1423360000:1433600000 --save
vzctl set 101 --diskinodes 1390000000:1400000000 --save

Regards,
феникс

Wednesday, March 17, 2010

Install SnowLeopard with Vanila Kernel

Hi everyone,

Just to share with you all, how to install SnowLeo 10.6 with vanilla kernel.

This is my PC specification :
  • Intel Core 2 Duo E7600
  • ASUS P5BV with BIOS ver. 0402
  • 8 GB DDR2 PC6400
  • Geforce 8400GS 512MB
  • Samsung SyncMaster 2033 1600x900
  • Sound Blaster Live! 24bit
  • 1 x Seagate 160GB
  • 1 x Seagate 200GB
  • 2 x Seagate 250GB
The First thing you need is :

  1. Any OSX server can be installed, I suggest iAtkos v7 - you can find this on the website or torrent the file.
  2. USB FlashDisk 8GB.
  3. SnowLeopard Retail 10.6 ISO file - You can find this on the website or torrent it or buy the retail one.
  4. Download this two files : My Hack Installer or myHack Web, ATools, and PCI Efi 10.5
  5. This one is optional if you using Sound Blaster Live! 24 bit.
Here we go :

1st Step Prepare your USB Drive:
  • 'Utilities'->;'Disk Utility'
  • Plug the USB flash drive. It should be at least of 8 GB capacity.
  • Partition GUID with only one partition schema, formatted as Mac OS Plus (journaled). Labeled it with any name.
  • Mount the original Snow Leopard ISO image
  • Back in Disk Utility and in the Restore tab of the created partition, drag and drop the "Mac OS Install DVD" volume to the source field and your USB FlashDisk as the destination. We've just erased the flash drive, so there's no need to check the box "Erase destination".
  • Wait until Finish it will take around 20-30 minutes.
2nd Step Install myHack to your USB

  • Mount myHack
  • Run it and select the flash drive as destination


  • Customize the options suitable to your system. This is really the most important thing in the project. You need to understand what does every extension and if you need it or not for your system. You may also need some additional extensions to support your hardware that aren't included with myHack. At the end of the guide you'll find an appendix with an explanation of my selections.



  • I highly recommend to obtain a compiled DSDT.aml for your system and better with some fixes applied. It's out of the scope of this guide, but you'll find tons of info in http://www.osx86.es/ and more specifically with the tool DSDTSE. Once you have your dsdt.aml file, you should place it in the root of your flash drive.

Run pfix to repair permissions and rebuild mkext.kext
This step is crucial. You need to re-run pfix everytime you make some changes in the contents of the Extra folder. You'll do it this way:
  • Run the terminal app
  • Write sudo -s
  • Enter the admin password
  • Drag and drop the pfix program from the root of your flash drive to the terminal command line and press the enter key.
  • It will show a list of every volume in the system. By default it assumes "/" as the root of
  • If we're trying to run pfix in the boot volume we should just press enter, but now we need to run it over the "Mac OS Install USB" volume so we'll type /Volumes/Mac OS Install USB after /pfix  (ex-sample : /pfix /Volumes/Mac OS Install DVD 

    3rd Step Install Hackintosh using FlashDrive

    • Boot from FlashDisk
    • I will Prompt you installation page.
    • Go to 'Utilities' -> 'Disk Utility'
    • Install your Macintosh

    If you only use this harddisk as mac os only, GUID partition would be better.


    4th First Login to mac

    • After the installation done, do restart. Boot from your FlashDisk first.
    • Install myHack Package one more time, but put your HDD as the destination.
    • Install everything as same as your installation before.
    • Restart your machine again. Unplug your FlashDisk.
    • Boot from your HardDisk, to make sure everything work well, put in 'Verbose Mode'.
    • Welcome to Hackintosh :)

    Hopefully this method quite helpful. Feel free to inform me if there is something wrong there ^^


    Regards,
    феникс