Hi,<div><br></div><div>Can you log into your VM using VNC, and execute the vmcontext script? If that sets the proper IP, then the problem might be the run-level where you put it.</div><div><br></div><div>Regards.</div><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>
<br>
<br><br><div class="gmail_quote">On Tue, May 29, 2012 at 6:01 PM, Roberto Giordani <span dir="ltr"><<a href="mailto:r.giordani@libero.it" target="_blank">r.giordani@libero.it</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">
Hello Carlos,<br>
I've understood, and now the vm running, but I've found the
following problems:<br>
<br>
1)the vm doesn't use the ip assigned by template<i><small><br>
oneadmin@cloud-mngt:~> onevnet show 1<br>
VIRTUAL NETWORK 1
INFORMATION <br>
ID : 1 <br>
NAME : 172.16.10.x <br>
USER : oneadmin <br>
GROUP : oneadmin <br>
CLUSTER : - <br>
TYPE : FIXED <br>
BRIDGE : br0 <br>
VLAN : Yes <br>
PHYSICAL DEVICE: eth0 <br>
VLAN ID : <br>
USED LEASES : 1 <br>
<br>
PERMISSIONS
<br>
OWNER : um- <br>
GROUP : --- <br>
OTHER : --- <br>
<br>
VIRTUAL NETWORK
TEMPLATE
<br>
DNS="192.168.1.2"<br>
GATEWAY="172.16.10.1"<br>
<br>
USED
LEASES
<br>
LEASE=[ IP="172.16.10.51", MAC="02:00:ac:10:0a:33", USED="1",
VID="11" ]<br>
<br>
FREE
LEASES
<br>
LEASE=[ IP="172.16.10.52", MAC="02:00:ac:10:0a:34", USED="0",
VID="-1" ]<br>
LEASE=[ IP="172.16.10.53", MAC="02:00:ac:10:0a:35", USED="0",
VID="-1" ]</small></i><br>
<br>
2)I've tried to use contextual to change GATEWAY and DNS but with no
result.<br>
This is the VM template<br>
<i><small><br>
oneadmin@cloud-mngt:~> onetemplate show 6<br>
TEMPLATE 6
INFORMATION
<br>
ID : 6 <br>
NAME : opensuse12xen <br>
USER : oneadmin <br>
GROUP : oneadmin <br>
REGISTER TIME : 05/28 19:50:04 <br>
<br>
PERMISSIONS
<br>
OWNER : um- <br>
GROUP : u-- <br>
OTHER : u-- <br>
<br>
TEMPLATE
CONTENTS
<br>
CPU="1"<br>
DISK=[<br>
BUS="scsi",<br>
DRIVER="file:",<br>
IMAGE="opensuse_raw",<br>
IMAGE_UNAME="oneadmin" ]<br>
GRAPHICS=[<br>
KEYMAP="it",<br>
TYPE="vnc" ]<br>
MEMORY="1024"<br>
NAME="opensuse12xen"<br>
NIC=[<br>
NETWORK="172.16.10.x",<br>
NETWORK_UNAME="oneadmin" ]<br>
OS=[<br>
BOOTLOADER="/usr/bin/pygrub" ]<br>
RAW=[<br>
TYPE="xen" ]<br>
TEMPLATE_ID="6"<br>
VCPU="1"</small></i><br>
<br>
and the VM xen is<br>
<br>
<i><small>oneadmin@cloud-mngt:~> onevm show 11<br>
VIRTUAL MACHINE 11
INFORMATION <br>
ID : 11 <br>
NAME : one-11 <br>
USER : oneadmin <br>
GROUP : oneadmin <br>
STATE : ACTIVE <br>
LCM_STATE : RUNNING <br>
HOSTNAME : nodoxen-1 <br>
START TIME : 05/29 19:21:19 <br>
END TIME : - <br>
DEPLOY ID : one-11 <br>
<br>
VIRTUAL MACHINE
MONITORING
<br>
NET_RX : 52 <br>
NET_TX : 88 <br>
USED CPU : 0 <br>
USED MEMORY : 1048576 <br>
<br>
PERMISSIONS
<br>
OWNER : um- <br>
GROUP : --- <br>
OTHER : --- <br>
<br>
VIRTUAL MACHINE
TEMPLATE
<br>
CPU="1"<br>
DISK=[<br>
BUS="scsi",<br>
CLONE="YES",<br>
DATASTORE="san",<br>
DATASTORE_ID="102",<br>
DISK_ID="0",<br>
DRIVER="file:",<br>
IMAGE="opensuse_raw",<br>
IMAGE_ID="16",<br>
IMAGE_UNAME="oneadmin",<br>
READONLY="NO",<br>
SAVE="NO",<br>
SOURCE="/var/lib/one/datastores/102/a9ee83c0d4a435f5bce25c1406d0e3d6",<br>
TARGET="xvda",<br>
TM_MAD="shared",<br>
TYPE="DISK" ]<br>
GRAPHICS=[<br>
KEYMAP="it",<br>
PORT="5911",<br>
TYPE="vnc" ]<br>
MEMORY="1024"<br>
NAME="one-11"<br>
NIC=[<br>
BRIDGE="br0",<br>
IP="172.16.10.51",<br>
MAC="02:00:ac:10:0a:33",<br>
NETWORK="172.16.10.x",<br>
NETWORK_ID="1",<br>
NETWORK_UNAME="oneadmin",<br>
PHYDEV="eth0",<br>
VLAN="YES" ]<br>
OS=[<br>
BOOTLOADER="/usr/bin/pygrub" ]<br>
RAW=[<br>
TYPE="xen" ]<br>
TEMPLATE_ID="6"<br>
VCPU="1"<br>
VMID="11"</small></i><br>
<br>
<br>
What is wrong?<br>
<br>
Regards,<br>
Roberto.<div><div class="h5"><br>
On 05/29/2012 10:49 AM, Carlos Martín Sánchez wrote:
<blockquote type="cite">Hi,
<div><br>
</div>
<div>You can't import an existing running VM into OpenNebula.</div>
<div>You will have to shut it down, register its disk as an Image
[1], and instantiate a new VM Template [2]. The guest needs to
be contextualized [3], otherwise it won't be able to use the IP
that OpenNebula assigns it.</div>
<div><br>
</div>
<div>Regards.</div>
<div><br>
</div>
<div>[1] <a href="http://opennebula.org/documentation:rel3.4:img_guide" target="_blank">http://opennebula.org/documentation:rel3.4:img_guide</a></div>
<div>[2] <a href="http://opennebula.org/documentation:rel3.4:vm_guide" target="_blank">http://opennebula.org/documentation:rel3.4:vm_guide</a></div>
<div>[3] <a href="http://opennebula.org/documentation:rel3.4:cong" target="_blank">http://opennebula.org/documentation:rel3.4:cong</a><br clear="all">
--<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>
<br>
<br>
<br>
<div class="gmail_quote">On Sat, May 26, 2012 at 1:41 PM,
Roberto Giordani <span dir="ltr"><<a href="mailto:r.giordani@libero.it" target="_blank">r.giordani@libero.it</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"> Hello,<br>
I'm testing <b>Opennebula 3.4.1 with OpenSUSE 12.1 x64 +
XEN 4.1.2</b> where is installed<br>
opennebula-sunstone-3.4.1-1.1.x86_64<br>
opennebula-zones-3.4.1-1.1.x86_64<br>
opennebula-3.4.1-1.1.x86_64<br>
<br>
I've a second host with some XEN VMs (Linux an Windows)
that I would like to use as VM template into OpenNebula.<br>
I didn't found any documentation about this<br>
<br>
This is important for me because I need to use some
special VM converted from P2V and I want to make available
for end-user from Self-Portal<br>
<br>
Any help will be very appreciate.<br>
<br>
Regards,<br>
Roberto.<br>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>