[one-users] Bridge, context , save image problem

Carlos Martín Sánchez cmartin at opennebula.org
Tue Feb 19 05:40:27 PST 2013


Hi,

You are installing the system on a volatile disk... you need to create an
empty persistent Image.

PS: Please reply to the mailing list.
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>


On Tue, Feb 19, 2013 at 3:24 AM, GyeongRyoon Kim <grkim at kisti.re.kr> wrote:

>  Hi Carlos Martín, MSc,
>
>
>
> Thanks for your replay.
>
> I still confuse about save image,
>
>
>
> I tried to use "onevm persistent" command what you recommended me.
>
>
> What i did is:
>
> 1. I registed linux image to the datastore using "oneimage create
> template_file"
>
> 2. Use "oneimage persistent image_id " command
>
> 3. I create vm using "onevm create template_file"
>
> 4. I install that linux on vm using  the vnc on sunstone. (manually
> install that linux )
>
> 5. after installation , I shutdown the vm machine.
>
> 6. Use "oneimage nonpersistent image_id" command
>
> 7. I create vm again using "onevm create template_file" command
>
> But the os not installed , it start installtion process again! I don't
> know why?
>
> Am I missing something??
>
>
>
>
>
>
> image file
> ------------------------------------------------------------------
> NAME            = "SL5.5 "
> TYPE            = CDROM
> PATH            = /imgrepo/SL.55.051810.DVD.x86_64.disc1.iso
> DESCRIPTION     = "sl "
>
> ------------------------------------------------------------------
>
>
>
> template.one
> ------------------------------------------------------------------
> NAME    = sl_5.5
> CPU     = 0.5
> MEMORY  = 512
>
> #OS = [ BOOT  =  cdrom ]
>
> # SL6 Boot CD-ROM image, mapped as sdc by default
> DISK = [ IMAGE_ID  = 37 ]
>
> # installation disk, mapped to vda
> DISK = [ TYPE   = fs,
>          BUS    = virtio,
>          SIZE   = 10240,
>          FORMAT = ext3,
>          TARGET = vda ]
>
> # swap disk, mapped to vdb
> DISK = [ TYPE     = swap,
>          SIZE     = 1024,
>          BUS      = virtio,
>          TARGET   = vdb,
>          READONLY = "no" ]
>
> NIC    = [ NETWORK_ID = 7 ]
> NIC    = [ NETWORK_ID = 11 ]
>
> GRAPHICS = [
>   TYPE    = "vnc",
>   LISTEN  = "0.0.0.0"]
>
> FEATURES=[ acpi="yes" ]
>
> CONTEXT = [
>     hostname = "NAME",
>     ip_public = "$NIC[IP, NETWORK_ID=7 ]",
>     ip_private = "$NIC[IP, NETWORK_ID=11 ]",
>     username = "user",
>     files = "/gcloud/one/_sl6.1/ip.sh"
> ]
> ------------------------------------------------------------------
>
>
> Thanks
> GyeongRyoon Kim.
>
>
>
>
>
> On 02/14/2013 10:42 PM, Carlos Martín Sánchez wrote:
>
> Hi,
>
>
> On Thu, Feb 14, 2013 at 2:44 AM, GyeongRyoon Kim <grkim at kisti.re.kr>wrote:
>
>>  Hi all,
>>
>>
>> 1. bridge problem
>>
>> I have a three host machin for Opennebula
>>
>> Each machine  has 2 ethernet card( eth0 for public , eth1 for private)
>>
>> I want to make bridge for vm , virtualmachin need to access other vm and
>> can access to outside network
>>
>> How can I make bridge on each host machine?
>>
>
>  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.
>
>   2. context problem
>>
>> I read http://opennebula.org/documentation:archives:rel2.2:cong  for
>> contextualizing , but still confusing.
>>
>> What i'm understaing is , context files(context.sh, init.sh , etc...)
>> should be in ISO image.
>>
>> But ISO image is readonly file. How can do that?
>>
>
>  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.
>
>   3. Image save porblem
>>
>> Assume that  If I lauch virtual machine successfuly(assign ip, with
>> certificate, etc...),
>>
>> After that, I install packages what i need.
>>
>> How can I lauch serveral vm with that configured image ? (But IP address
>> and hostname should be assign differently)
>>
>
>  Ok, first you need to have a VM template that uses a registered Image.
> 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.
>
>  Regards
>
>  [1] http://opennebula.org/documentation:rel3.8:vgg
> [2] http://opennebula.org/documentation:rel3.8:context_overview
> [3]
> http://opennebula.org/documentation:rel3.8:img_guide#making_images_persistent
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - The Open-source Solution for Data Center Virtualization
> www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org
>  | @OpenNebula <http://twitter.com/opennebula>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130219/1f98057e/attachment-0002.htm>


More information about the Users mailing list