[one-users] I'm confused the sunstone to create a VM on CentOS + ONE + XEN.

Carlos Martín Sánchez cmartin at opennebula.org
Tue Mar 13 03:31:55 PDT 2012


Hi,

What storage model are you using [1], shared? If so, please check that
/srv/cloud/one/var/ is properly mounted in your host.

Regards.

[1] http://opennebula.org/documentation:rel3.2:sm
--
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>



2012/3/10 張德勤 <cinmex91047 at gmail.com>

> Dear all:
>
> Who can help me...?
>
> Error: Device 768 (tap) could not be connected.
> /srv/cloud/one/var//15/images/disk.0 does not exist
> Is there two "/" in front 15 right??
>
>
> 張德勤 <cinmex91047 at gmail.com> 於 2012年3月10日下午10:25 寫道:
>
> Dear all :
>>
>> I tried to create a VM.But it failed.
>>
>> [oneadmin at server one-templates]$ cat small_network.net
>> NAME = "Small network"
>> TYPE = FIXED
>> BRIDGE = br0
>> LEASES = [ IP="XXX.XXX.XXX.XXX"]
>> LEASES = [ IP="XXX.XXX.XXX.XXX"]
>> LEASES = [ IP="XXX.XXX.XXX.XXX"]
>> # IP is publis IP
>>
>>
>> [oneadmin at server one-templates]$ onevnet list
>>   ID USER     GROUP    NAME              TYPE BRIDGE PUB  LEASES
>>    1 oneadmin oneadmin Small network        F    br0  No       3
>>
>> [oneadmin at server one-templates]$ cat ttylinux.one
>>
>> NAME   = ttylinux
>>
>> CPU    = 0.1
>>
>> MEMORY = 512
>>
>>
>> DISK   = [
>>
>>   source   = "/srv/cloud/one/one-templates/ttylinux.img",
>>
>>    target   = "hda",
>>
>>   readonly = "no" ]
>>
>> OS=[
>>
>>   INITRD=/boot//initramfs-2.6.32-220.el6.x86_64.img,
>>
>>   KERNEL=/boot/vmlinuz-2.6.32-220.el6.x86_64,
>>
>>   KERNEL_CMD="ro xencons=tty console=tty1",
>>
>>   ROOT=sda1 ]
>>
>> NIC    = [ NETWORK_ID = 1]
>>
>> GRAPHICS = [ TYPE = "VNC"]
>>
>> FEATURES=[ acpi="no" ]
>>
>> [oneadmin at server one-templates]$ onevm list
>>     ID USER     GROUP    NAME         STAT CPU     MEM        HOSTNAME
>>      TIME
>>
>>     15 oneadmin oneadmin ttylinux     fail   0      0K                 00
>> 00:00:09
>>
>> [oneadmin at server one-templates]$ cat ../var/15/vm.log
>> Sat Mar 10 22:14:56 2012 [DiM][I]: New VM state is ACTIVE.
>> Sat Mar 10 22:14:56 2012 [LCM][I]: New VM state is PROLOG.
>> Sat Mar 10 22:14:56 2012 [VM][I]: Virtual Machine has no context
>> Sat Mar 10 22:14:56 2012 [TM][D]: tm_clone.sh:
>> server:/srv/cloud/one/one-templates/ttylinux.img
>> client1:/srv/cloud/one/var//15/images/disk.0
>> Sat Mar 10 22:14:56 2012 [TM][D]: tm_clone.sh: DST:
>> /srv/cloud/one/var//15/images/disk.0
>> Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Creating directory
>> /srv/cloud/one/var//15/images
>> Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Executed "mkdir -p
>> /srv/cloud/one/var//15/images".
>> Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Executed "chmod a+w
>> /srv/cloud/one/var//15/images".
>> Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Cloning
>> /srv/cloud/one/one-templates/ttylinux.img
>> Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Executed "cp -r
>> /srv/cloud/one/one-templates/ttylinux.img
>> /srv/cloud/one/var//15/images/disk.0".
>> Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Executed "chmod a+rw
>> /srv/cloud/one/var//15/images/disk.0".
>> Sat Mar 10 22:14:56 2012 [TM][I]: ExitCode: 0
>> Sat Mar 10 22:14:56 2012 [LCM][I]: New VM state is BOOT
>> Sat Mar 10 22:14:56 2012 [VMM][I]: Generating deployment file:
>> /srv/cloud/one/var/15/deployment.0
>> Sat Mar 10 22:15:00 2012 [VMM][I]: Command execution fail: 'if [ -x
>> "/var/tmp/one/vmm/xen/deploy" ]; then /var/tmp/one/vmm/xen/deploy
>> /srv/cloud/one/var//15/images/deployment.0 client1 15 client1; else
>>                      exit 42; fi'
>> Sat Mar 10 22:15:00 2012 [VMM][I]: Error: Device 768 (tap) could not be
>> connected. /srv/cloud/one/var//15/images/disk.0 does not exist
>> Sat Mar 10 22:15:00 2012 [VMM][E]: Unable
>> Sat Mar 10 22:15:00 2012 [VMM][I]: ExitCode: 1
>> Sat Mar 10 22:15:00 2012 [VMM][E]: Error deploying virtual machine: Unable
>> Sat Mar 10 22:15:01 2012 [DiM][I]: New VM state is FAILED
>>
>> please help me  :(
>>
>>
>>
>> 張德勤 <cinmex91047 at gmail.com> 於 2012年3月10日下午7:49 寫道:
>>
>> Dear all:
>>>
>>> I'm confused the sunstone to create a VM on CentOS + ONE + XEN.
>>> I create a *.img file from this website.
>>>
>>> http://www.howtoforge.com/virtualization-with-xen-on-centos-6.2-x86_64-paravirtualization-and-hardware-virtualization-p2
>>> But I only have *.img file without initrd* file...
>>> How should I create a VM Template??
>>> My question is in the Boot/OS options field.
>>> I choose "Kernel" in the Boot method. (Is it right??)
>>> But what should I set in the Kernel field and Inirtd field ??
>>> I only have a *img file....  no initrd file....
>>> And what's value should the Root and Kernel commadns be??
>>> Please help me create a VM Tamplate!!
>>> Please!!
>>>
>>>
>>> --
>>> Regards,
>>>
>>> Te - Chin, Chang (張德勤), +886-3-4227151 #57968
>>> Networklab, Computer Science & Information Engineering,
>>> National Central University, Jhongli, Taiwan, R.O.C
>>>
>>
>>
>>
>> --
>> Regards,
>>
>> Te - Chin, Chang (張德勤), +886-3-4227151 #57968
>> Networklab, Computer Science & Information Engineering,
>> National Central University, Jhongli, Taiwan, R.O.C
>>
>
>
>
> --
> Regards,
>
> Te - Chin, Chang (張德勤), +886-3-4227151 #57968
> Networklab, Computer Science & Information Engineering,
> National Central University, Jhongli, Taiwan, R.O.C
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120313/041932fd/attachment-0003.htm>


More information about the Users mailing list