[one-users] onevm create failed

sufian.abu-rab at freenet.de sufian.abu-rab at freenet.de
Wed Dec 8 09:51:51 PST 2010


hi, now i have changed the suoders-file, but the error is still the same (onevm create failed). thanks for reply.
 
note (on the execution-host):
pwd: /srv/cloud/one
 
which xm: (empty result)
sudo which xm: (/usr/sbin/xm)
 
xm list: (not enough privilegs)
sudo xm list: (dom0 is seen)
 
 
error-message:

Wed Dec  8 17:12:18 2010 [VMM][I]: Command execution fail: /srv/cloud/one/lib/remotes/vmm/xen/deploy node1 /srv/cloud/one/var/30/deployment.0
Wed Dec  8 17:12:18 2010 [VMM][I]: STDERR follows.
Wed Dec  8 17:12:18 2010 [VMM][I]: sudo: /usr/sbin/xm: command not found
Wed Dec  8 17:12:18 2010 [VMM][I]: ExitCode: 1
Wed Dec  8 17:12:18 2010 [VMM][E]: Error deploying virtual machine
Wed Dec  8 17:12:18 2010 [DiM][I]: New VM state is FAILED
 
Infos:

     two hosts. debian lenny. xen hypervisor. one network-interface per host.

     master: 192.168.2.108
     node: 192.168.2.102

    ok: passwordless ssh-connection login as oneadmin user (already works)


ok?
 
# User privilege specification (on every machine the same)
root    ALL=(ALL) ALL
oneadmin        ALL=(ALL) NOPASSWD: ALL
 
%xen, %cloud  ALL = NOPASSWD: /usr/sbin/xm
%xen, %cloud  ALL = NOPASSWD: /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" ]



vielen dank nochmal
gruß sufian
 


Exklusiv: Neue E-Mail-Adresse @iPhone.de jetzt verfügbar!
Sichern Sie sich jetzt ihre persönliche E-Mail-Adresse at iphone.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20101208/7405a216/attachment-0003.htm>


More information about the Users mailing list