Hi,<div><br></div><div>You are installing the system on a volatile disk... you need to create an empty persistent Image.</div><div><br></div><div>PS: Please reply to the mailing list.<br clear="all"><div>--<br>Carlos Martín, MSc<br>
Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
</div>
<br><br><div class="gmail_quote">On Tue, Feb 19, 2013 at 3:24 AM, GyeongRyoon Kim <span dir="ltr"><<a href="mailto:grkim@kisti.re.kr" target="_blank">grkim@kisti.re.kr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hi Carlos Martín, MSc,<br>
<br>
<br>
<br>
Thanks for your replay.<br>
<br>
I still confuse about save image,<br>
<br>
<br>
<br>
I tried to use "onevm persistent" command what you recommended me.<br>
<br>
<br>
What i did is:<br>
<br>
1. I registed linux image to the datastore using "oneimage create
template_file"<br>
<br>
2. Use "oneimage persistent image_id " command<br>
<br>
3. I create vm using "onevm create template_file"<br>
<br>
4. I install that linux on vm using the vnc on sunstone.
(manually install that linux )<br>
<br>
5. after installation , I shutdown the vm machine.<br>
<br>
6. Use "oneimage nonpersistent image_id" command<br>
<br>
7. I create vm again using "onevm create template_file" command<br>
<br>
But the os not installed , it start installtion process again! I
don't know why?<br>
<br>
Am I missing something??<br>
<br>
<br>
<br>
<br>
<br>
<br>
image file<br>
------------------------------------------------------------------<br>
NAME = "SL5.5 "<br>
TYPE = CDROM<br>
PATH = /imgrepo/SL.55.051810.DVD.x86_64.disc1.iso<br>
DESCRIPTION = "sl "<br>
<br>
------------------------------------------------------------------<br>
<br>
<br>
<br>
template.one <br>
------------------------------------------------------------------<br>
NAME = sl_5.5<br>
CPU = 0.5<br>
MEMORY = 512 <br>
<br>
#OS = [ BOOT = cdrom ]<br>
<br>
# SL6 Boot CD-ROM image, mapped as sdc by default<br>
DISK = [ IMAGE_ID = 37 ]<br>
<br>
# installation disk, mapped to vda<br>
DISK = [ TYPE = fs,<br>
BUS = virtio,<br>
SIZE = 10240,<br>
FORMAT = ext3,<br>
TARGET = vda ]<br>
<br>
# swap disk, mapped to vdb<br>
DISK = [ TYPE = swap,<br>
SIZE = 1024,<br>
BUS = virtio,<br>
TARGET = vdb,<br>
READONLY = "no" ]<br>
<br>
NIC = [ NETWORK_ID = 7 ]<br>
NIC = [ NETWORK_ID = 11 ]<br>
<br>
GRAPHICS = [<br>
TYPE = "vnc",<br>
LISTEN = "0.0.0.0"]<br>
<br>
FEATURES=[ acpi="yes" ]<br>
<br>
CONTEXT = [<br>
hostname = "NAME",<br>
ip_public = "$NIC[IP, NETWORK_ID=7 ]",<br>
ip_private = "$NIC[IP, NETWORK_ID=11 ]",<br>
username = "user",<br>
files = "/gcloud/one/_sl6.1/ip.sh"<br>
]<br>
------------------------------------------------------------------<br>
<br>
<br>
Thanks<span><font color="#888888"><br>
GyeongRyoon Kim.</font></span><div><div><br>
<br>
<br>
<br>
<br>
On 02/14/2013 10:42 PM, Carlos Martín Sánchez wrote:<br>
</div></div></div><div><div>
<blockquote type="cite">Hi,
<div><br>
<br>
<div class="gmail_quote">On Thu, Feb 14, 2013 at 2:44 AM,
GyeongRyoon Kim <span dir="ltr"><<a href="mailto:grkim@kisti.re.kr" target="_blank">grkim@kisti.re.kr</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Hi all,<br>
<br>
<br>
1. bridge problem<br>
<br>
I have a three host machin for Opennebula<br>
<br>
Each machine has 2 ethernet card( eth0 for public , eth1
for private)<br>
<br>
I want to make bridge for vm , virtualmachin need to
access other vm and can access to outside network <br>
<br>
How can I make bridge on each host machine?<br>
</div>
</blockquote>
<div><br>
</div>
<div>This is exactly the example given in the Virtual Network
guide [1]. You need to create two bridges, and two different
Virtual Networks. Then you can create a VM that uses both
vnets, adding two NIC attributes. </div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> 2. context problem<br>
<br>
I read <a href="http://opennebula.org/documentation:archives:rel2.2:cong" target="_blank">http://opennebula.org/documentation:archives:rel2.2:cong</a>
for contextualizing , but still confusing.<br>
<br>
What i'm understaing is , context files(context.sh,
init.sh , etc...) should be in ISO image.<br>
<br>
But ISO image is readonly file. How can do that?<br>
</div>
</blockquote>
<div><br>
</div>
<div>This [2] is the link for the 3.8 guides. The iso file is
automatically created by opennebula, and it will contain
context.sh and any other files you may add.</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> 3. Image save porblem<br>
<br>
Assume that If I lauch virtual machine successfuly(assign
ip, with certificate, etc...),<br>
<br>
After that, I install packages what i need.<br>
<br>
How can I lauch serveral vm with that configured image ?
(But IP address and hostname should be assign differently)<br>
</div>
</blockquote>
<div><br>
</div>
<div>Ok, first you need to have a VM template that uses a
registered Image.</div>
<div>You make the image persistent [3] before you launch the
first VM, this way it will keep your changes after the VM is
shut down. Then make the image non-persistent, and all the
following VM instances from the same template will use a
different copy of the Image.</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div>[1] <a href="http://opennebula.org/documentation:rel3.8:vgg" target="_blank">http://opennebula.org/documentation:rel3.8:vgg</a></div>
<div>[2] <a href="http://opennebula.org/documentation:rel3.8:context_overview" target="_blank">http://opennebula.org/documentation:rel3.8:context_overview</a></div>
<div>[3] <a href="http://opennebula.org/documentation:rel3.8:img_guide#making_images_persistent" target="_blank">http://opennebula.org/documentation:rel3.8:img_guide#making_images_persistent</a><br>
--<br>
Carlos Martín, MSc<br>
Project Engineer<br>
OpenNebula - The Open-source Solution for Data Center
Virtualization
<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.opennebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"></span></div>
</div>
<div><br>
</div>
</div>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>