[one-users] onevm create failed
sufian.abu-rab at freenet.de
sufian.abu-rab at freenet.de
Tue Dec 7 08:40:30 PST 2010
hi, onevm create still failed. i have following settings:
two hosts. debian lenny. xen hypervisor. one network-interface per host.
master: 192.168.2.108
node: 192.168.2.102
thanks
Infos:
ok: passwordless ssh-connection login as oneadmin user (already works)
ok: xen dom0 (creating vm directly also works fine)
ok?
# User privilege specification (on every machine the same)
root ALL=(ALL) ALL
oneadmin ALL=(ALL) NOPASSWD: ALL
%xen, %cloud, oneadmin ALL=(ALL) NOPASSWD: /usr/sbin/xm/, /usr/sbin/xm, /usr/sbin/xm *
%xen, %cloud, oneadmin ALL=(ALL) NOPASSWD: /usr/sbin/xentop/, /usr/sbin/xentop, /usr/sbin/xentop *
ok?
# network settings (frontend):
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.2.108
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
dns-nameservers 192.168.2.1
ok?
# network settings (execution-host (node)):
auto lo
iface lo inet loopback
allow-hotplug eth0
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.2.102
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.108
dns-nameservers 192.168.2.108
# Primary (internal) cloud bridge interface
auto br0
iface br0 inet static
address 192.168.2.102
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.108
dns-nameservers 192.168.2.108
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_maxwait 5
bridge_stp off
ok?
# define the virtual network vm_lan.template:
NAME = "VM LAN"
TYPE = RANGED
BRIDGE = br0
NETWORK_ADDRESS = 192.168.2.128
NETWORK_SIZE = 126
NETMASK = 255.255.255.0
GATEWAY = 192.168.2.108
NS = 192.168.2.108 # ip of frontend
ok?
# define xen settings /srv/cloud/one/etc/vmm_sh/vmm_sh_xen.conf
CPU = 0.5
MEMORY = 256
OS = [ KERNEL="/boot/vmlinuz-2.6.26-1-xen-amd64", INITRD="/boot/initrd.img-2.6.26-1-xen-amd64" , kernel_cmd="ro", root="sda5" ]
CREDIT = 256
ok?
# check etc/oned.conf
VM_DIR=/srv/cloud/one/var/images
IMAGE_REPOSITORY_PATH = /srv/cloud/one/var/images
DEFAULT_IMAGE_TYPE = "CDROM" # because of iso-image, is this ok?
DEFAULT_DEVICE_PREFIX = "hd"
VM_MAD = [
name = "vmm_xen",
executable = "one_vmm_sh",
arguments = "xen",
default = "vmm_sh/vmm_sh_xen.conf",
type = "xen" ]
[...]
ok?
# check vm_instance.template
NAME = debian
CPU = 1
MEMORY = 512
# Define your main disk as usual, and tell OpenNebula to keep the changes.
DISK = [
TYPE = "disk",
SOURCE = "/srv/cloud/images/debian_disk.img",
TARGET = hda,
CLONE = "no" ]
DISK = [
TYPE = "cdrom",
SOURCE = "/srv/cloud/images/debian-506-amd64-netinst.iso",
TARGET = hdb,
CLONE = "no" ]
# swap, sdd
DISK = [
TYPE = swap,
SIZE = 1024,
READONLY = "no" ]
DISK = [
TYPE = fs,
SIZE = 4096,
FORMAT = ext3,
SAVE = yes,
TARGET = sdg ]
NIC = [ NETWORK = "VM LAN" ]
GRAPHICS = [
type = "vnc",
listen = "node1",
port = "5902" ]
FEATURES=[ acpi="no" ]
Log-File:
Mon Dec 6 17:02:43 2010 [LCM][I]: New VM state is BOOT
Mon Dec 6 17:02:43 2010 [VMM][I]: Generating deployment file: /srv/cloud/one/var/22/deployment.0
Mon Dec 6 17:02:43 2010 [VMM][I]: Command execution fail: /srv/cloud/one/lib/remotes/vmm/xen/deploy node1 /srv/cloud/one/var/22/deployment.0
Mon Dec 6 17:02:43 2010 [VMM][I]: STDERR follows.
Mon Dec 6 17:02:43 2010 [VMM][I]: sudo: /usr/sbin/xm: command not found
Mon Dec 6 17:02:43 2010 [VMM][I]: ExitCode: 1
Mon Dec 6 17:02:43 2010 [VMM][E]: Error deploying virtual machine
Mon Dec 6 17:02:43 2010 [DiM][I]: New VM state is FAILED
Mon Dec 6 17:02:43 2010 [TM][W]: Ignored: LOG - 22 tm_delete.sh: Deleting /srv/cloud/one/var/images/22/images
Mon Dec 6 17:02:43 2010 [TM][W]: Ignored: LOG - 22 tm_delete.sh: Executed "rm -rf /srv/cloud/one/var/images/22/images".
Mon Dec 6 17:02:43 2010 [TM][W]: Ignored: TRANSFER SUCCESS 22 -
freenetMobile - Handytarif des Jahres!
Für 8 Cent/Min. telefonieren & kostenlos mobil surfen!
Sichern Sie sich jetzt das Startpaket mit 10 € Startgutgaben unter http://freenetmobile.de!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20101207/bb569439/attachment-0003.htm>
More information about the Users
mailing list