5 cent Tip:
If we want boot the virtual machine from ISO image. Do the following steps as root:
1. Shutdown the virtual machine.
2. Add the location of iso file into the Xen guest configuration file:
- old entry in the Xen gues configuration file (say /etc/xen/rhel4es.conf)
disk = [ ‘file:/var/lib/xen/images/rhel4es.img,ioemu:hda,w’]
add iso file into that entry, the new entry will be:
disk = [ ‘file:/var/lib/xen/images/rhel4es.img,ioemu:hda,w’,'file:/opt/RHEL4.6-x86_64-AS-disc1.iso,ioemu:hdc:cdrom,r’]
here the location of RedHat Enterprise Linux 4AS update 6 iso file is at /opt. Then change boot entry from:
boot=”c”
to
boot=”d”
boot=”d’ means that the first boot device will be cdrom, not from hard disk (boot=”c”).
3. Start the VM by using command:
# xm create -c /etc/xen/rhel4es.conf
Important Note:
If you don’t run that command but simply restart this VM by Virtual Machine Manager, your change is not effective and you still boot your VM from the hard disk.
Recent Comments