virtualbox 安装 gentoo


参考: http://www.gentoo.org/doc/zh_cn/handbook/handbook-x86.xml?part=1&chap=10

virtualbox 网卡设置NAT打开端口转发,让主机可以ssh gentoo:

virtualbox 安装 gentoo

主机端口要大于1024,不然需要sudo 。



打开 sshd :

代码 3.10: 启动SSH服务 

# /etc/init.d/sshd start
# passwd root


连接到gentoo:

ssh -l root 127.0.0.1 -p 1111

links http://www.gentoo.org/main/en/mirrors.xml
tar xvjf /mnt/gentoo/portage-latest.tar.bz2 -C /mnt/gentoo/usr 


一步步做下来,出现问题后:


Chroot:

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



参考:  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


...

你可能感兴趣的:(virtualbox 安装 gentoo)