參考: http://www.gentoo.org/doc/zh_cn/handbook/handbook-x86.xml?part=1&chap=10
shell
virtualbox 網卡設置NAT打開端口轉發,讓主機能夠ssh gentoo: vim
主機端口要大於1024,否則須要sudo 。 bash
打開 sshd : less
代碼 3.10: 啓動SSH服務 ssh |
# /etc/init.d/sshd start # passwd root |
鏈接到gentoo: ide
ssh -l root 127.0.0.1 -p 1111
spa
links http://www.gentoo.org/main/en/mirrors.xml
tar xvjf /mnt/gentoo/portage-latest.tar.bz2 -C /mnt/gentoo/usr
一步步作下來,出現問題後: .net
Chroot: code
mount /dev/sda1 /mnt/gentoo cd /mnt/gentoo mkdir boot -p mount /dev/sda3 /mnt/gentoo/boot cd / mount -t proc proc /mnt/gentoo/proc mount -o bind /dev /mnt/gentoo/dev #cp -L /etc/resolv.conf /mnt/gentoo/etc/ chroot /mnt/gentoo /bin/bash env-update && source /etc/profile ls
若是安裝了grub2: grub2-install /dev/sda grub2-mkconfig -o /boot/grub2/grub.cfg
echo "(hd0) /dev/vda" >> /boot/grub/device.map umount -l /mnt/gentoo{/boot,/proc,} reboot
vim /etc/fstab xml
參考: http://blog.jolexa.net/2008/07/howto-gentoo-guest-os-in-virtualbox/
安裝了好幾回都沒成功,因此記錄下來,加深記憶。
內核選項:
1. Processor type and features
* Processor family->
* Enable Tickless System (Dynamic Ticks)
* Remove High Resolution Timer Support
* Remove Symmetric multi-processing support
* Subarchitecture Type->PC-compatible
* Remove Machine Check Exception
* Remove 64 bit Memory and IO resources
* High Memory Support (off)
2. Power Management Options
* Remove Suspend to RAM and standby
* Remove Hibernation
* Enable ACPI Support
3. Device Drivers
* Remove Macintosh device drivers
* Remove Virtualization
4. Device Drivers -> ATA/ATAPI/MFM/RLL support
* enable Generic PCI bus-master DMA support -> Intel PIIXn chipsets support
* enable PCI IDE chipset support
5. Device Drivers -> Serial ATA and Parallel ATA drivers
* enable Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
6. Device Drivers -> Network device support
* Remove Ethernet (1000 Mbit)
* Remove Ethernet (10000 Mbit)
7. Device Drivers -> Ethernet device support -> Ethernet (10 or 100Mbit)
* Remove 3COM cards
* Remove 「Tulip」 family network device support
* Remove Broadcom 4400 ethernet support
* Remove nForce Ethernet support
* Remove Intel(R) PRO/100+ support
* Remove RealTek RTL-8139 C+ PCI Fast Ethernet Adapter Support
* Remove RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter Support
* Enable AMD PCnet32 PCI support
8. Device Drivers -> Graphics support
* Remove Lowlevel video output switch controls
* Enable Support for frame buffer devices
* Enable Support for frame buffer devices -> VESA VGA graphics support
...