顯示具有 debootstrap 標籤的文章。 顯示所有文章
顯示具有 debootstrap 標籤的文章。 顯示所有文章

2012年11月19日 星期一

Debian at Xen boot 卡住


修改 os 的 xen config
# vi debian.cfg
console='hvc0'
xencons='tty' 
或 boot kernel command line
# vi /mnt/boot/grub/menu.lst
kernel /boot/vmlinuz-3.2.0-4-amd64 root=/dev/xvda1 ro quiet console=hvc0 xencons=tty

修改 image 裡的設定
# mount -o loop debian.img /mnt
# vi /mnt/etc/inittab
1:2345:respawn:/sbin/getty 38400 tty1
改成 
1:2345:respawn:/sbin/getty 38400 hvc0


and than try it ~
# xm create debian.cfg -c




Reference :
xen - domUs hang in start up, Debian Lenny - Server Fault
[Xen-users] Debain Domu Xen PV boot hangs at CRON message - Xen Source

2012年11月14日 星期三

debootstrap

# debootstrap --arch i386 testing ./chroot/ http://debian.nctu.edu.tw/debian/

# mount --bind /dev ./chroot/dev
# mount --bind /proc ./chroot/proc
# mount --bind /sys ./chroot/sys

# chroot ./chroot/

# apt-get install linux-image-486
# apt-get install grub-legacy
# apt-get install grub2

# exit

2011年10月22日 星期六

mknod: `/mnt/./test-dev-null': Operation not permitted

# debootstrap sid /mnt/
mknod: `/mnt/test-dev-null': Operation not permitted

mknod: `/mnt/test-dev-null': Input/output error
E: Cannot install into target '/mnt' mounted with noexec or nodev

1. 掛載時不要使用noexec或nodev參數
2. 檢查該分區為linux檔案系統(Ex:ext3)