yum install virt-manager
yum install vnc-server
vncpasswd
vncserver :1
export DISPLAY=:1
virt-manager
yum install firefox
vncserver :2
export DISPLAY=:2
firefox
cd /xen/images/
mkdir os
cd /os
wget http://cdimage.debian.org/cdimage/archive/5.0.9/i386/iso-dvd/debian-509-i386-DVD-1.iso
wget http://cdimage.debian.org/cdimage/archive/5.0.9/amd64/iso-dvd/debian-509-amd64-DVD-1.iso
wget http://centos.mirror.iweb.ca/5.7/isos/i386/CentOS-5.7-i386-bin-1of8.iso
wget http://centos.mirror.iweb.ca/5.7/isos/i386/CentOS-5.7-i386-bin-2of8.iso
wget http://ftp.iinet.net.au/pub/centos/5.7/isos/i386/CentOS-5.7-i386-bin-DVD-1of2.iso
wget http://cdimage.debian.org/debian-cd/6.0.3/i386/iso-dvd/debian-6.0.3-i386-DVD-1.iso
####Creating additional loop devices####
vi /etc/modprobe.conf
#add below link
options loop max_loop=64
reboot
ls -al /dev/loop*
## You must have 64 loop dev
###Add IP address to Virtual Machine
cd /etc/sysconfig/network-scripts/
rm ifcfg-eth0:6
service network restart
iptables -L
iptables-save > ~/firewall
iptables-restore < ~/firewall
iptables-save
cat /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/ip_forward
No comments:
Post a Comment