Now chroot into this new system and configure it:
~ chroot /mnt/feisty /bin/bash
14. Add the packages that we will need:
# apt-get install nfs-common portmap
15. Set the hostname for this system:
~ echo "ubuntu_feisty_nfs_domU" > /etc/hostname
16. Set up the filesystems that will be loaded on boot:
cat > /etc/fstab << "EOF"
# file system mount point type options dump pass
192.168.1.67:/mnt/feisty nfs rw 0 0
proc /proc proc defaults 0 0
sys /sys sysfs defaults 0 0
EOF
17. Set up the network. We will be using the loopback interface and eth0 for the
Ethernet connection. The eth0 interface will be using DHCP to set itself
up automatically:
cat > /etc/network/interfaces << "EOF"
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
EOF
Storage
[ 92 ]
18. Add a user, create an admin group, put the added user in to this group, and
set the root password:
# adduser pchaganti
# addgroup --system admin
# adduser pchaganti admin
# passwd root
19. Ubuntu uses sudo to let users perform administrative functions. Use visudo
to edit the sudoers file:
visudo
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
20. Create the xen config file for this domU:
cat > /home/pchaganti/xen-images/ubuntu_feisty_nfs_domU.cfg <<
"EOF"
kernel = "/boot/vmlinuz-2.6.16.38-xenU"
memory = 256
name = "ubuntu_feisty_nfs_domU"
vif = [ 'ip=192.168.1.111' ]
nfs_server = '192.
Pages:
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91