Making a Xen domU interactiviely under CentOS 5.4
Assumption:
1. Need to have the CentOS 5.4 DVD iso mounted at /mnt/cdrom
mount -o loop -t iso9660 CentOS-5.4-i386-bin-DVD.iso /mnt/cdrom
2. Have httpd server runing and a symbolic link pointed to the /mnt/cdrom, this is served for the source location.
- mkdir /var/www/html/os
- cd /var/www/html/os
- ln -s /mnt/cdrom cent54
/* List the directory */
[root@xen /var/www/html/os]# ls -alt
total 12
drwxr-xr-x 5 root root 4096 Feb 11 16:22 ..
drwxr-xr-x 2 root root 4096 Jan 26 16:55 .
lrwxrwxrwx 1 root root 10 Jan 26 16:55 cent54 -> /mnt/cdrom
/* Start the Installation interactively */
[root@xen ~]# virt-install –prompt
What is the name of your virtual machine? test
How much RAM should be allocated (in megabytes)? 256
What would you like to use as the disk (file path)? /var/lib/xen/images/test.img
How large would you like the disk (/var/lib/xen/images/test.img) to be (in gigabytes)? 2
What is the install URL? http://192.168.1.28/os/cent54
/* Connect the domU from dom0 terminal */
xm console < domU name or id >
To exit : type CTRL-]
/* Some useful commands */
xm list
xm pause domain-id
xm reboot domain-id
xm shutdown domain-id
/* Using the man page */
man xm