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. Exit out of the chroot
environment and unmount the file system.
#exit
#umount /xen-mounts/ubuntu_feisty_domU
19. Create the configuration file that will be used by dom0 to create this guest
domain. The MAC address used below is an offset of the MAC set block that
was allocated to Xen Source, Inc. This is an OUI (Organizationally Unique
Identifier) and you can view the entire list online at http://standards.
ieee.org/regauth/oui/oui.txt.
cat > /home/pchaganti/xen-images/ubuntu_feisty_domU.cfg << "EOF"
kernel = "/boot/vmlinuz-2.6.16.38-xenU"
memory = 256
name = "ubuntu_feisty_domU"
disk = ['tap:aio:/home/pchaganti/xen-
images/ubuntu_feisty_domU.img,sda1,w','tap:aio:/home/pchaganti
/xen-images/ubuntu_feisty_boot_domU.img,sda2,w','tap:aio:/home
/pchaganti/xen-images/ubuntu_feisty_swap.img,sda3,w']
vif = [ 'mac=00:16:3e:00:00:10, bridge=xenbr0' ]
root = "/dev/sda1 ro"
EOF
20. Call xm to create the virtual machine.
# xm create /home/pchaganti/xen-images/debian_etch_domU.cfg -c
This will start up a console and boot our brand new virtual machine. The usual
Linux start up messages will flash by and then you will be staring at the Ubuntu
Feisty login prompt. Welcome to your first Xen domU!
Chapter 3
[ 37 ]
You can see the running domains by using xm.
# xm list
You can shut down the domain in two different ways??”by using the halt command
inside the domain itself or by calling xm to shutdown.
Pages:
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48