<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
hi,<br>
A problem confused me for a month and I still can't solve it.<br>
Configuration: <br>
Opennebula 3.2.1, <br>
Host OS 12.04<br>
I install front-end and hosts from ubuntu's official source. And I
test the iaas infursturcture<br>
by ttylinux, which works fine. I built a ubuntu9.04 image, and
modify the configuration from opennebula3.2.1 source code. I create
the vm . The vm's status is running, and no error outputs. However
I can't ping /ssh it.<br>
Anyone can help me?<br>
<br>
Before creating vm, I prepared config file and init.sh copied from
the source code of same version.<br>
I modified the rc.local in vm.<br>
#!/bin/sh -e<br>
mount -t iso9660 /dev/sdc /mnt<br>
if [ -f /mnt/context.sh ]; then<br>
. /mnt/init.sh<br>
fi<br>
umount /mnt<br>
exit 0<br>
BTW: My image has two disks: /sda1 is root system, another is swap.<br>
<br>
$onevm create ubunut9.one<br>
<b>Here is ubunut9.one:</b><br>
NAME = Ubuntu9<br>
CPU = 0.5<br>
MEMORY = 1024<br>
OS=[arch="x86_64"]<br>
<br>
DISK = [<br>
source = "/fs1/ubu.img",<br>
target = "sda",<br>
readonly = "no" ]<br>
NIC = [ NETWORK = "Small network" ]<br>
<br>
FEATURES=[ acpi="no" ]<br>
RAW = [ type = "kvm", data = " <serial type='pty'> <source
path='/dev/pts/3'/> <target port='1'/> </serial>" ]<br>
<br>
CONTEXT = [<br>
hostname = "$NAME",<br>
#ip_public = "$NIC[IP, NETWORK=\"Red Virtual\"]",<br>
ip_public = "192.168.161.9",<br>
files = "/fs1/init.sh",<br>
target = "sdc"<br>
#root_pubkey = "id_dsa.pub",<br>
#username = "oneadmin",<br>
#user_pubkey = "id_dsa.pub"<br>
] <br>
<br>
Here is details of vm:<br>
oneadmin@lab175:/fs1$ onevm show 5<br>
VIRTUAL MACHINE 5
INFORMATION <br>
ID : 5 <br>
NAME : Ubuntu9 <br>
USER : oneadmin <br>
GROUP : oneadmin <br>
STATE : ACTIVE <br>
LCM_STATE : RUNNING <br>
HOSTNAME : lab176 <br>
START TIME : 08/23 14:03:07 <br>
END TIME : - <br>
DEPLOY ID : one-5 <br>
<br>
VIRTUAL MACHINE
MONITORING <br>
USED MEMORY : 1048576 <br>
USED CPU : 0 <br>
NET_TX : 1748 <br>
NET_RX : 4426449 <br>
<br>
PERMISSIONS
<br>
OWNER : um- <br>
GROUP : --- <br>
OTHER : --- <br>
<br>
VIRTUAL MACHINE
TEMPLATE <br>
CONTEXT=[<br>
FILES=/fs1/init.sh,<br>
HOSTNAME=Ubuntu12s,<br>
IP_PUBLIC=192.168.161.9,<br>
TARGET=sdc ]<br>
CPU=0.5<br>
DISK=[<br>
DISK_ID=0,<br>
READONLY=no,<br>
SOURCE=/fs1/ubu.img,<br>
TARGET=sda ]<br>
FEATURES=[<br>
ACPI=no ]<br>
MEMORY=1024<br>
NAME=Ubuntu12s<br>
NIC=[<br>
BRIDGE=br0,<br>
IP=192.168.161.186,<br>
MAC=02:00:c0:a8:a1:ba,<br>
NETWORK="Small network",<br>
NETWORK_ID=0,<br>
VLAN=NO ]<br>
OS=[<br>
ARCH=x86_64 ]<br>
RAW=[<br>
DATA=" <serial type='pty'> <source path='/dev/pts/3'/>
<target port='1'/> </serial>",<br>
TYPE=kvm ]<br>
VMID=5<br>
<br>
VIRTUAL MACHINE
HISTORY <br>
SEQ HOSTNAME REASON START TIME PTIME<br>
0 lab176 none 08/23 14:03:08 00 10:31:23 00 00:03:05<br>
<p>---------------------------------------------------------------------------------------------------<br>
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) <br>
is intended only for the use of the intended recipient and may be confidential and/or privileged of <br>
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is <br>
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying <br>
is strictly prohibited, and may be unlawful.If you have received this communication in error,please <br>
immediately notify the sender by return e-mail, and delete the original message and all copies from <br>
your system. Thank you. <br>
---------------------------------------------------------------------------------------------------</p></body>
</html>