[one-users] Installation From ISO images
Ruben S. Montero
rubensm at dacya.ucm.es
Thu Jan 21 15:14:07 PST 2010
Hi,
The procedure should be as follows, create a template that contains :
1- Define your main disk as usual, and tell OpenNebula to keep the changes
DISK = [
source = "/srv/cloud/images/master/fedora_disk.img",
target = "hda",
save = "yes"
clone = "no" ]
(this assumes that you have a plain file for fedora_disk.img (e.g.
with a dd). You can also use separate partitions for swap and the OS
installation...
2- Define an additional DISK for the ISO image with the installation CD
DISK = [
source = "/srv/cloud/images/isos/fedora_12.iso",
type = "cdrom",
target = "hdb",
clone = "no" ]
3.- Add a VNC console so you can interact with the installer. And tell
to listen in a cluster node hostname, by adding to the template:
GRAPHICS = [ type = "vnc", listen = "a_cluster_node_hostname", port = "5902"]
4.- Tell OpenNebula to place the VM in that clusternode, by adding to
the template:
REQUIREMENTS="HOSTNAME=a_cluster_node_hostname"
Once you have the template ready....
1.- Create the VM with onevm create
2.- use you favorite VNC client to install the OS (you should be able
to see the console at c<cluster_node_name>:5902) NOTE: You can always
use 127.0.0.1 for the VNC server but then you have to start the VNC
client from the cluster node, but we usually do not have an X server
there...
3.- When you are done shutdown the VM. onevm shutdown
4.- The new installed image would be in
$ONE_LOCATION/var/<VM_ID>/disk.0 Copy it to a safe location so you can
use it later as a master image.
Hope it helps
Ruben
On Thu, Jan 21, 2010 at 5:35 PM, Viji V Nair <viji at fedoraproject.org> wrote:
> Hi,
>
> I have a two node cluser with OCFS2 running on OpenNebula 1.4 and Fedora 12
> x86_64. Is it possible to start installation of vms directly from an iso
> image other than running virt-install to create the image and then deploy
> the same.
>
> Any help of the same greatly appreciated.
>
> Viji
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
--
Dr. Ruben Santiago Montero
Associate Professor, Complutense University of Madrid
URL: http://dsa-research.org/doku.php?id=people:ruben
Weblog: http://blog.dsa-research.org/?author=7
More information about the Users
mailing list