[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] MiniHowto Clean domU for xen 2.0.7 debian
For those interrested a mini howto to get a domu started if you use Debian. I presume you use sarge (who doesn't :-)) I'm assuming a Xen kernel is running, and there is a partition /dev/hda5free for use for xen. I'm using LVM, if you don't want to... well... then don't. I don't know howto use the wiki (well actually i do, but it's very very late, and i'm very very tired) So maybe someone is willing to put it in there... ------------------------- - apt-get install lvm2 - pvcreate /dev/hda5 - vgcreate lvmxen /dev/hda5 - lvcreate -L1G -n domu1 lvmxen - mke2fs /dev/lvmxen/domu1 - tune2fs -j /dev/lvmxen/domu1 - mount /dev/lv - mxen/domu1 /mnt - debootstrap sarge /mnt <debianserver of your choice> - mv /mnt/lib/tls /mnt/lib/tls.disabled put in /mnt/etc/network/interfaces: auto lo iface lo inet loopback put in /mnt/etc/fstab: # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0/dev/hda1 / ext3 defaults,errors=remount-ro 0 1 modify /mnt/etc/inittab: the line: 1:2345:respawn:/sbin/getty 38400 tty1 into: 1:2345:respawn:/sbin/getty 38400 console comment out 2,3,4,5 and 6 /sbin/getty's - cd / - umount /mnt create a /etc/xen/domu1 file for example: # -*- mode: python; -*- kernel = "/boot/vmlinuz-2.6.11-xenU" memory = 128 name = "domu1" vif = [' bridge=xen-br0' ] disk = ['phy:/dev/lvmxen/proxy,hda1,w'] ip="192.168.2.103" netmask="255.255.255.0" gateway="192.168.2.1" hostname = "domu1" root = "/dev/hda1 ro" extra = "4" - xm create domu1 -c log in as root, run base-config, happy xenning :-) ------------------------- Kind regards, Robin van Leeuwen RLD Software ICT Services _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |