http://ftp.<countrycode>.debian.org/debian
You can use any other Debian http/ftp mirror you want.
7. When debootstrap completes successfully, modify settings:
chroot /mnt/disk /bin/bash
Edit the following files using vi or nano and make needed changes:
/etc/hostname
/etc/hosts
/etc/resolv.conf
/etc/network/interfaces
/etc/networks
Set up access to the services, edit:
/etc/hosts.deny
/etc/hosts.allow
/etc/inetd.conf
Add Debian mirror to:
/etc/apt/sources.list
Create fstab like this:
/dev/sda1 / ext3 errors=remount-ro 0 1
/dev/sda2 none swap sw 0 0
proc /proc proc defaults 0 0
Logout
8. Unmount the disk image
umount /mnt/disk
9. Create Xen 2.0 configuration file for the new domain. You can use the example-
configurations coming with Xen as a template.
Make sure you have the following set up:
disk = [ ’file:/path/diskimage,sda1,w’, ’file:/path/swapimage,sda2,w’ ]
root = "/dev/sda1 ro"
10. Start the new domain
xm create -f domain_config_file
Check that the new domain is running:
xm list
11. Attach to the console of the new domain. You should see something like this
when starting the new domain:
Started domain testdomain2, console on port 9626
There you can see the ID of the console: 26. You can also list the consoles with
xm consoles (ID is the last two digits of the port number.)
44
Commentaires sur ces manuels