WHAT'S HOT
Prev | Current Page 83 | Next

Prabhakar Chaganti

"Xen Virtualization: A Practical Handbook"

ubuntu.com/ubuntu
11. We will be using the domU kernel that we created earlier for booting this
domain. So this domain will need the kernel modules compiled for that
kernel. Copy them from the /lib/modules directory:
~ cp -dpR /lib/modules/2.6.16.38-xenU /mnt/feisty/lib/modules
12. Now chroot into this new system and configure it:
~ chroot /mnt/feisty /bin/sh
13. Set the hostname for this system:
~ echo "ubuntu_feisty_domU" > /etc/hostname
14. Set up the filesystems that will be loaded on boot:
cat > /etc/fstab << "EOF"
# file system mount point type options dump pass
/dev/sda1 / ext3 defaults 0 1
proc /proc proc defaults 0 0
sys /sys sysfs defaults 0 0
EOF
Chapter 6
[ 97 ]
15. Setup 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
16. Add a user, create an admin group, put the added user in this group, and set
the root password:
# adduser pchaganti
# addgroup --system admin
# adduser pchaganti admin
# passwd root
17. 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
18. We have completed the initial configuration.


Pages:
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95