{"id":329,"date":"2010-12-14T23:18:51","date_gmt":"2010-12-14T21:18:51","guid":{"rendered":"http:\/\/blog.sqawasmi.com\/?p=329"},"modified":"2011-09-09T03:41:36","modified_gmt":"2011-09-09T01:41:36","slug":"installing-gentoo-at-tilaa-nl-vps-hosting","status":"publish","type":"post","link":"https:\/\/blog.sqawasmi.com\/index.php\/2010\/12\/14\/installing-gentoo-at-tilaa-nl-vps-hosting\/","title":{"rendered":"Installing Gentoo at Tilaa.nl VPS Hosting"},"content":{"rendered":"<p><span style=\"color: #0000ff;\"><strong>UPDATE, Tilaa now have Native Gentoo Support starting from August, so no need to follow this method as updated in the comments.<\/strong><\/span><\/p>\n<p>Last week, i ordered a VPS from <a title=\"Tilaa.nl\" href=\"http:\/\/Tilaa.nl\">Tilaa.nl<\/a> for testing, they use KVM Virtualization, IPv6 support and prices are good, also traceroute to middle east seems to be better than other locations, so that pushed me to test.., but suddenly they didn&#8217;t support Gentoo, after contacting the support, they seems will support Gentoo Next couple of months, anyway i like to use Gentoo, so i wrote the following steps to get Gentoo Installed and Running at your VPS @<a title=\"Tilaa.nl\" href=\"http:\/\/Tilaa.nl\">Tilaa.nl<\/a> &#8230;<\/p>\n<p>First, we need to resize the current disk to install gentoo in a new partition, i used to compile gentoo kernel with support for virtio modules to get network, after that, i add resize2fs, fdisk commands to initramfs with the modules need to get the disk and network, in this way, i just need to boot to this kernel and resize the current big root partition which i can&#8217;t shrink while using it!, you can download them from the following links:<\/p>\n<blockquote><p><a href=\"http:\/\/sqawasmi.com\/files-mix\/kernel-kvm-tilaa-shaker-x86_64-2.6.34-hardened-r6\">http:\/\/sqawasmi.com\/files-mix\/kernel-kvm-tilaa-shaker-x86_64-2.6.34-hardened-r6<\/a><br \/>\n<a href=\"http:\/\/sqawasmi.com\/files-mix\/initramfs-kvm-tilaa-shaker-RESIZE-DISK3.gz\">http:\/\/sqawasmi.com\/files-mix\/initramfs-kvm-tilaa-shaker-RESIZE-DISK3.gz<\/a><\/p><\/blockquote>\n<p><span style=\"color: #ff0000;\">NOTE: This steps works for me, There is no guarantee that this steps will work with you, you may Lose all of your VPS Data, use this steps on your responsibility..<br \/>\nNOTE: IF you are not familiar with shrinking ext3, then i suggest to stop reading!, the following tutorial may help: <a href=\"http:\/\/www.howtoforge.com\/linux_resizing_ext3_partitions\">http:\/\/www.howtoforge.com\/linux_resizing_ext3_partitions<\/a><\/span><\/p>\n<p>* after downloading them to your VPS, follow the following steps..<br \/>\n* cp kernel\/initramfs to current distro \/boot\/<\/p>\n<blockquote><p>cp kernel-kvm-tilaa-shaker-x86_64-2.6.34-hardened-r6\u00a0 \/boot\/<br \/>\ncp initramfs-kvm-tilaa-shaker-RESIZE-DISK3.gz \/boot\/<\/p><\/blockquote>\n<p>* then edit \/boot\/grub\/menu.lst to add the following<\/p>\n<blockquote><p>title Gentoo Install<br \/>\nroot (hd0,0)<br \/>\nkernel \/boot\/kernel-kvm-tilaa-shaker-x86_64-2.6.34-hardened-r6 ro root=LABEL=\/notexist console=tty0 console=ttyS0,115200 notsc divider=10<br \/>\ninitrd \/boot\/initramfs-kvm-tilaa-shaker-RESIZE-DISK3.gz<\/p><\/blockquote>\n<p>* From tilaa Dashboard, browse to your VPS and open the VPS serial console, after that do a reboot for the VPS from CLI:<\/p>\n<blockquote><p>[root@m1 ~]# reboot<\/p>\n<p>Broadcast message from root (pts\/0) (Tue Dec 14 19:12:39 2010):<\/p>\n<p>The system is going down for reboot NOW!<br \/>\n[root@m1 ~]# Connection to 46.19.32.39 closed by remote host.<br \/>\nConnection to 46.19.32.39 closed.<\/p><\/blockquote>\n<p>* Now, at the console window, choose Gentoo Install (or the name you wrote in grub as title for Gentoo Boot), after the kernel boot, you should get the following message:<\/p>\n<blockquote><p>!! Could not find the root block device in LABEL=\/notexist.<br \/>\nPlease specify another value or: press Enter for the same, type &#8220;shell&#8221; for a shell, or &#8220;q&#8221; to skip&#8230;<br \/>\nroot block device(LABEL=\/notexist) ::<\/p><\/blockquote>\n<p>* so just type shell and hit enter to use shell, here we will start the resizing (i resized root partition to 3G, leaving the rest for Gentoo):<\/p>\n<blockquote><p>!! Block device sh is not a valid root device&#8230;<br \/>\n!! Could not find the root block device in .<br \/>\nPlease specify another value or: press Enter for the same, type &#8220;shell&#8221; for a shell, or &#8220;q&#8221; to skip&#8230;<br \/>\nroot block device() :: shell<br \/>\nTo leave and try again just press &lt;Ctrl&gt;+D<br \/>\nBusyBox v1.7.4 (2010-12-09 17:35:51 EET) built-in shell (ash)<br \/>\nEnter &#8216;help&#8217; for a list of built-in commands.<br \/>\n\/bin\/ash: can&#8217;t access tty; job control turned off<br \/>\n#<br \/>\n#<br \/>\n# fdisk -l<br \/>\nDisk \/dev\/vda: 21.5 GB, 21474836480 bytes<br \/>\n255 heads, 63 sectors\/track, 2610 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<br \/>\nSector size (logical\/physical): 512 bytes \/ 512 bytes<br \/>\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes<br \/>\nDisk identifier: 0x000563f9<br \/>\nDevice Boot Start End Blocks Id System<br \/>\n\/dev\/vda1 * 1 2611 20971488+ 83 Linux<br \/>\nDisk \/dev\/vdb: 1073 MB, 1073741824 bytes<br \/>\n139 heads, 8 sectors\/track, 1885 cylinders<br \/>\nUnits = cylinders of 1112 * 512 = 569344 bytes<br \/>\nSector size (logical\/physical): 512 bytes \/ 512 bytes<br \/>\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes<br \/>\nDisk identifier: 0x00093111<br \/>\nDevice Boot Start End Blocks Id System<br \/>\n\/dev\/vdb1 1 1886 1048575+ 82 Linux swap \/ Solaris<\/p>\n<p># resize2fs \/dev\/vda1 3G<br \/>\nresize2fs 1.41.12 (17-May-2010)<br \/>\nPlease run &#8216;e2fsck -f \/dev\/vda1&#8217; first.<\/p>\n<p># e2fsck -f \/dev\/vda1<br \/>\ne2fsck 1.41.12 (17-May-2010)<br \/>\nPass 1: Checking inodes, blocks, and sizes<br \/>\nPass 2: Checking directory structure<br \/>\nPass 3: Checking directory connectivity<br \/>\nPass 4: Checking reference counts<br \/>\nPass 5: Checking group summary information<br \/>\n\/: 31369\/5207040 files (1.0% non-contiguous), 406948\/5242872 blocks<\/p>\n<p># resize2fs \/dev\/vda1 3G<br \/>\nresize2fs 1.41.12 (17-May-2010)<br \/>\nResizing the filesystem on \/dev\/vda1 <span style=\"color: #ff0000;\">to 786432 (4k) blocks.<\/span><br \/>\n<span style=\"color: #ff0000;\">The filesystem on \/dev\/vda1 is now 786432 blocks long. <\/span><\/p><\/blockquote>\n<p><span style=\"color: #ff0000;\">**** Note what i colored by red: 786432 (4k) blocks &#8212; you will use this to do the correct fdisk or you will lose your system!, the output in your case should be different from mine, so copy the number of blocks\u00a0 that you got because you will use them in calculating the new size later, if you didn&#8217;t do that, then i suspect that you will lost the system..<\/span><\/p>\n<p>* Now shutdown your VPS from tilaa website and start it again to boot into your old Distro.. (it may take a little of time to shutdown\/start)<br \/>\n* Ok, if you are lucky (seems i was) you will get your old distro, login to it through ssh, now you need to do the main part, fdisk:<\/p>\n<blockquote><p>[root@m1 ~]# fdisk -l<\/p>\n<p>Disk \/dev\/vda: 21.4 GB, 21474836480 bytes<br \/>\n255 heads, 63 sectors\/track, 2610 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<\/p>\n<p>Device Boot\u00a0\u00a0\u00a0\u00a0\u00a0 Start\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 End\u00a0\u00a0\u00a0\u00a0\u00a0 Blocks\u00a0\u00a0 Id\u00a0 System<br \/>\n\/dev\/vda1\u00a0\u00a0 *\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2611\u00a0\u00a0\u00a0 20971488+\u00a0 83\u00a0 Linux<\/p>\n<p>Disk \/dev\/vdb: 1073 MB, 1073741824 bytes<br \/>\n139 heads, 8 sectors\/track, 1885 cylinders<br \/>\nUnits = cylinders of 1112 * 512 = 569344 bytes<\/p>\n<p>Device Boot\u00a0\u00a0\u00a0\u00a0\u00a0 Start\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 End\u00a0\u00a0\u00a0\u00a0\u00a0 Blocks\u00a0\u00a0 Id\u00a0 System<br \/>\n\/dev\/vdb1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1886\u00a0\u00a0\u00a0\u00a0 1048575+\u00a0 82\u00a0 Linux swap \/ Solaris<br \/>\n[root@m1 ~]# fdisk \/dev\/vda<\/p>\n<p>The number of cylinders for this disk is set to 2610.<br \/>\nThere is nothing wrong with that, but this is larger than 1024,<br \/>\nand could in certain setups cause problems with:<br \/>\n1) software that runs at boot time (e.g., old versions of LILO)<br \/>\n2) booting and partitioning software from other OSs<br \/>\n(e.g., DOS FDISK, OS\/2 FDISK)<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/vda: 21.4 GB, 21474836480 bytes<br \/>\n255 heads, 63 sectors\/track, 2610 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<\/p>\n<p>Device Boot\u00a0\u00a0\u00a0\u00a0\u00a0 Start\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 End\u00a0\u00a0\u00a0\u00a0\u00a0 Blocks\u00a0\u00a0 Id\u00a0 System<br \/>\n\/dev\/vda1\u00a0\u00a0 *\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2611\u00a0\u00a0\u00a0 20971488+\u00a0 83\u00a0 Linux<\/p>\n<p>Command (m for help): d<br \/>\nSelected partition 1<\/p>\n<p>Command (m for help): n<br \/>\nCommand action<br \/>\ne\u00a0\u00a0 extended<br \/>\np\u00a0\u00a0 primary partition (1-4)<br \/>\np<br \/>\nPartition number (1-4): 1<br \/>\nFirst cylinder (1-2610, default 1):<br \/>\nUsing default value 1<br \/>\nLast cylinder or +size or +sizeM or +sizeK (1-2610, default 2610): +3303014K<\/p><\/blockquote>\n<p>* as you can see i entered +3303014K as last Size, i calculated this from 786432 (4k) blocks (the output of previous resizefs command) as the following:<\/p>\n<blockquote><p>(<span style=\"color: #ff0000;\">786432<\/span> * 4096 * 1.05) \/1024 = <span style=\"color: #ff0000;\">3303014<\/span>.4000000004<\/p><\/blockquote>\n<p>* SO USE THIS To calculate the expected Size (Change 786432 to the number of blocks you got from your resizefs command)<br \/>\n* After that continue creating the new partition..<\/p>\n<blockquote><p>Command (m for help): p<\/p>\n<p>Disk \/dev\/vda: 21.4 GB, 21474836480 bytes<br \/>\n255 heads, 63 sectors\/track, 2610 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<\/p>\n<p>Device Boot\u00a0\u00a0\u00a0\u00a0\u00a0 Start\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 End\u00a0\u00a0\u00a0\u00a0\u00a0 Blocks\u00a0\u00a0 Id\u00a0 System<br \/>\n\/dev\/vda1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 412\u00a0\u00a0\u00a0\u00a0 3309358+\u00a0 83\u00a0 Linux<\/p>\n<p>Command (m for help): n<br \/>\nCommand action<br \/>\ne\u00a0\u00a0 extended<br \/>\np\u00a0\u00a0 primary partition (1-4)<br \/>\np<br \/>\nPartition number (1-4): 2<br \/>\nFirst cylinder (413-2610, default 413):<br \/>\nUsing default value 413<br \/>\nLast cylinder or +size or +sizeM or +sizeK (413-2610, default 2610):<br \/>\nUsing default value 2610<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/vda: 21.4 GB, 21474836480 bytes<br \/>\n255 heads, 63 sectors\/track, 2610 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<\/p>\n<p>Device Boot\u00a0\u00a0\u00a0\u00a0\u00a0 Start\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 End\u00a0\u00a0\u00a0\u00a0\u00a0 Blocks\u00a0\u00a0 Id\u00a0 System<br \/>\n\/dev\/vda1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 412\u00a0\u00a0\u00a0\u00a0 3309358+\u00a0 83\u00a0 Linux<br \/>\n\/dev\/vda2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 413\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2610\u00a0\u00a0\u00a0 17655435\u00a0\u00a0 83\u00a0 Linux<\/p>\n<p>Command (m for help): a<br \/>\nPartition number (1-4): 1<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/vda: 21.4 GB, 21474836480 bytes<br \/>\n255 heads, 63 sectors\/track, 2610 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<\/p>\n<p>Device Boot\u00a0\u00a0\u00a0\u00a0\u00a0 Start\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 End\u00a0\u00a0\u00a0\u00a0\u00a0 Blocks\u00a0\u00a0 Id\u00a0 System<br \/>\n\/dev\/vda1\u00a0\u00a0 *\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 412\u00a0\u00a0\u00a0\u00a0 3309358+\u00a0 83\u00a0 Linux<br \/>\n\/dev\/vda2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 413\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2610\u00a0\u00a0\u00a0 17655435\u00a0\u00a0 83\u00a0 Linux<\/p>\n<p>Command (m for help): Command (m for help): w<br \/>\nThe partition table has been altered!<\/p>\n<p>Calling ioctl() to re-read partition table.<\/p>\n<p>WARNING: Re-reading the partition table failed with error 16: Device or resource busy.<br \/>\nThe kernel still uses the old table.<br \/>\nThe new table will be used at the next reboot.<br \/>\nSyncing disks.<br \/>\n[root@m1 ~]# sync<\/p><\/blockquote>\n<p>* when you finish, reboot to get the new partition synced:<\/p>\n<blockquote><p>root@m1 ~]# reboot<\/p>\n<p>Broadcast message from root (pts\/0) (Tue Dec 14 19:37:32 2010):<\/p>\n<p>The system is going down for reboot NOW!<br \/>\n[root@m1 ~]# Connection to 46.19.32.39 closed by remote host.<\/p><\/blockquote>\n<p>* Ok, now after the reboot, login to your VPS through ssh and check the disks:<\/p>\n<blockquote><p>shaker ~ $ ssh root@46.19.32.39<br \/>\nLast login: Tue Dec 14 19:35:38 2010 from 79.134.143.45<br \/>\n[root@m1 ~]# fdisk -l<\/p>\n<p>Disk \/dev\/vda: 21.4 GB, 21474836480 bytes<br \/>\n255 heads, 63 sectors\/track, 2610 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<\/p>\n<p>Device Boot\u00a0\u00a0\u00a0\u00a0\u00a0 Start\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 End\u00a0\u00a0\u00a0\u00a0\u00a0 Blocks\u00a0\u00a0 Id\u00a0 System<br \/>\n\/dev\/vda1\u00a0\u00a0 *\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 412\u00a0\u00a0\u00a0\u00a0 3309358+\u00a0 83\u00a0 Linux<br \/>\n\/dev\/vda2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 413\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2610\u00a0\u00a0\u00a0 17655435\u00a0\u00a0 83\u00a0 Linux<\/p>\n<p>Disk \/dev\/vdb: 1073 MB, 1073741824 bytes<br \/>\n139 heads, 8 sectors\/track, 1885 cylinders<br \/>\nUnits = cylinders of 1112 * 512 = 569344 bytes<\/p>\n<p>Device Boot\u00a0\u00a0\u00a0\u00a0\u00a0 Start\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 End\u00a0\u00a0\u00a0\u00a0\u00a0 Blocks\u00a0\u00a0 Id\u00a0 System<br \/>\n\/dev\/vdb1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1886\u00a0\u00a0\u00a0\u00a0 1048575+\u00a0 82\u00a0 Linux swap \/ Solaris<\/p><\/blockquote>\n<p>* So, now you have vda1 and vda2 !, now you can do mkfs.ext3 \/dev\/vda2 and continue installing your Gentoo from Stage3, as documented, everything should be easy:<\/p>\n<blockquote><p>[root@m1 ~]# mkfs.ext3 \/dev\/vda2<br \/>\nmke2fs 1.39 (29-May-2006)<br \/>\nFilesystem label=<br \/>\nOS type: Linux<br \/>\nBlock size=4096 (log=2)<br \/>\nFragment size=4096 (log=2)<br \/>\n2207520 inodes, 4413858 blocks<br \/>\n220692 blocks (5.00%) reserved for the super user<br \/>\nFirst data block=0<br \/>\nMaximum filesystem blocks=4294967296<br \/>\n135 block groups<br \/>\n32768 blocks per group, 32768 fragments per group<br \/>\n16352 inodes per group<br \/>\nSuperblock backups stored on blocks:<br \/>\n32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,<br \/>\n4096000<\/p>\n<p>Writing inode tables: done<br \/>\nCreating journal (32768 blocks): done<br \/>\nWriting superblocks and filesystem accounting information: done<\/p>\n<p>This filesystem will be automatically checked every 26 mounts or<br \/>\n180 days, whichever comes first.\u00a0 Use tune2fs -c or -i to override.<\/p><\/blockquote>\n<p>* I always follow the instructions documented in <a href=\"http:\/\/www.gentoo.org\/doc\/en\/handbook\/handbook-amd64.xml?part=1&amp;chap=5\">http:\/\/www.gentoo.org\/doc\/en\/handbook\/handbook-amd64.xml?part=1&amp;chap=5<\/a><br \/>\n* anyway, the following are the steps in general:<\/p>\n<blockquote><p># mkdir \/mnt\/gentoo &amp;&amp; mount -t ext3 \/dev\/vda2 \/mnt\/gentoo &amp;&amp; cd \/mnt\/gentoo\/ &amp;&amp; wget http:\/\/mirror.leaseweb.com\/gentoo\/releases\/amd64\/current-stage3\/stage3-amd64-20101211.tar.bz2 &amp;&amp; wget http:\/\/mirror.leaseweb.com\/gentoo\/snapshots\/portage-latest.tar.bz2<br \/>\n[root@m1 gentoo]# cd \/mnt\/gentoo\/ &amp;&amp; time tar xjf stage3-amd64-20101211.tar.bz2 &amp;&amp; time tar xjf portage-latest.tar.bz2 -C user\/<br \/>\n[root@m1 gentoo]# echo &#8216;GENTOO_MIRRORS=&#8221;http:\/\/mirror.leaseweb.com\/gentoo\/&#8221;&#8216; &gt;&gt; etc\/make.conf<br \/>\n[root@m1 gentoo]# cp \/etc\/resolv.conf etc\/<br \/>\n[root@m1 gentoo]# mount -t proc none \/mnt\/gentoo\/proc<br \/>\n[root@m1 gentoo]# mount -o bind \/dev \/mnt\/gentoo\/dev<br \/>\n[root@m1 gentoo]# chroot \/mnt\/gentoo\/ \/bin\/bash<br \/>\nm1 \/ # PS1=&#8217;\\[\\033[01;31m\\]\\h &#8211; chroot\\[\\033[01;34m\\] \\W \\$\\[\\033[00m\\] &#8216;<br \/>\nm1 &#8211; chroot \/ # emerge &#8211;sync<\/p><\/blockquote>\n<p>* I use distcc, that will reduce the time used to compile packages by distributing compilation over other servers, at my VPS i allowed all 10.0.0.0\/8 network to use my server as distcc to help them finish the compilation (btw, as of this writing, you should use gcc-4.4.X becuase that what i use at my distcc server), if you wanna use my VPS, then do the following or you can skip this if you don&#8217;t need my VPS support..:<\/p>\n<blockquote><p>m1 &#8211; chroot \/ # USE=&#8217;-*&#8217; emerge &#8211;nodeps sys-devel\/distcc<br \/>\nm1 &#8211; chroot \/ # distcc-config &#8211;set-hosts &#8220;10.0.0.252&#8221;<\/p><\/blockquote>\n<p>* Finally, i install vim and openssh and configure the network so it be accessible after reboot (i continue the installation of Gentoo from Gentoo itself!):<\/p>\n<blockquote><p>m1 &#8211; chroot \/ # emerge vim openssh<\/p><\/blockquote>\n<p>* Run openssh at boot:<\/p>\n<blockquote><p>m1 &#8211; chroot \/ # rc-update add sshd\u00a0 default<\/p><\/blockquote>\n<p>* Uncomment s0:12345:respawn:\/sbin\/agetty 9600 ttyS0 vt100\u00a0\u00a0\u00a0 in \/etc\/inittab\u00a0\u00a0 to get Console access.<\/p>\n<p>* Add Your IP and Gateway to \/etc\/conf.d\/net ,, i have the following, change IPs to yours:<\/p>\n<blockquote><p>modules=( &#8220;ifconfig&#8221; )<\/p>\n<p>config_eth0=(<br \/>\n&#8220;46.19.32.39 netmask 255.255.255.0&#8221;<br \/>\n)<br \/>\nroutes_eth0=(<br \/>\n&#8220;default via 46.19.32.1&#8221;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # IPv4 Default route<br \/>\n&#8220;default via 2001:1af8:3100:b000::1&#8221; # IPv6 Default route<br \/>\n)<\/p><\/blockquote>\n<p>* Add a root password..<\/p>\n<p>* Add a correct \/etc\/fstab file, simply i used to copy it from my current Distro (CentOS) and changing LABEL=\/ to \/dev\/vda2 , the following is mine:<\/p>\n<blockquote><p>[root@m1 ~]# cp \/etc\/fstab \/mnt\/gentoo\/etc\/fstab<br \/>\ncp: overwrite `\/mnt\/gentoo\/etc\/fstab&#8217;? y<br \/>\n[root@m1 ~]# perl -p -i -e &#8216;s|LABEL=\/|\/dev\/vda2|&#8217; \/mnt\/gentoo\/etc\/fstab<br \/>\n[root@m1 ~]# cat \/mnt\/gentoo\/etc\/fstab<br \/>\n\/dev\/vda2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ext3\u00a0\u00a0\u00a0 defaults\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1 1<br \/>\ntmpfs\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/dev\/shm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tmpfs\u00a0\u00a0 defaults\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 0<br \/>\ndevpts\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/dev\/pts\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 devpts\u00a0 gid=5,mode=620\u00a0 0 0<br \/>\nsysfs\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/sys\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 sysfs\u00a0\u00a0 defaults\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 0<br \/>\nproc\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/proc\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 proc\u00a0\u00a0\u00a0 defaults\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 0<br \/>\nUUID=358a1f7f-27bf-43f9-aefd-b3203669539b swap\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 swap\u00a0\u00a0\u00a0 defaults\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 0<\/p><\/blockquote>\n<p>*** Finally don&#8217;t forget to edit Grub and have your Gentoo listed, i have the following:<\/p>\n<blockquote><p>title Gentoo<br \/>\nroot (hd0,0)<br \/>\nkernel \/boot\/kernel-kvm-tilaa-shaker-x86_64-2.6.34-hardened-r6 ro root=\/dev\/vda2 console=tty0 console=ttyS0,115200 notsc divider=10<br \/>\ninitrd \/boot\/initramfs-kvm-tilaa-shaker-RESIZE-DISK3.gz<\/p><\/blockquote>\n<p>* Open the Console &amp; Reboot..<br \/>\n* after logging to the server through ssh, activate eth1 by your private IP, i used the following command:<\/p>\n<blockquote><p>ifconfig eth1 10.0.0.252 netmask 255.0.0.0<\/p><\/blockquote>\n<p>* Continue Installation for gentoo just as the manual &amp; Have Fun!<\/p>\n<h3>Related Images:<\/h3>","protected":false},"excerpt":{"rendered":"<p>UPDATE, Tilaa now have Native Gentoo Support starting from August, so no need to follow this method as updated in the comments. Last week, i ordered a VPS from Tilaa.nl for testing, they use KVM Virtualization, IPv6 support and prices are good, also traceroute to middle east seems to be better than other locations, so [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"ngg_post_thumbnail":0,"footnotes":""},"categories":[18],"tags":[27],"class_list":["post-329","post","type-post","status-publish","format-standard","hentry","category-linux-other-things","tag-vps"],"_links":{"self":[{"href":"https:\/\/blog.sqawasmi.com\/index.php\/wp-json\/wp\/v2\/posts\/329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.sqawasmi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.sqawasmi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.sqawasmi.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.sqawasmi.com\/index.php\/wp-json\/wp\/v2\/comments?post=329"}],"version-history":[{"count":19,"href":"https:\/\/blog.sqawasmi.com\/index.php\/wp-json\/wp\/v2\/posts\/329\/revisions"}],"predecessor-version":[{"id":332,"href":"https:\/\/blog.sqawasmi.com\/index.php\/wp-json\/wp\/v2\/posts\/329\/revisions\/332"}],"wp:attachment":[{"href":"https:\/\/blog.sqawasmi.com\/index.php\/wp-json\/wp\/v2\/media?parent=329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.sqawasmi.com\/index.php\/wp-json\/wp\/v2\/categories?post=329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.sqawasmi.com\/index.php\/wp-json\/wp\/v2\/tags?post=329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}