<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//DE"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><TITLE></TITLE></HEAD><BODY><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;"><p style="margin:0px;padding:0px;">hi, now i have changed the suoders-file, but the error is still the same (onevm create failed). thanks for reply.</p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;">note (on the execution-host):</p>
<p style="margin:0px;padding:0px;">pwd: /srv/cloud/one</p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;">which xm: (empty result)</p>
<p style="margin:0px;padding:0px;">sudo which xm: (/usr/sbin/xm)</p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;">xm list: (not enough privilegs)</p>
<p style="margin:0px;padding:0px;">sudo xm list: (dom0 is seen)</p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;">error-message:<br /><br />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<br />Wed Dec  8 17:12:18 2010 [VMM][I]: STDERR follows.<br />Wed Dec  8 17:12:18 2010 [VMM][I]: sudo: /usr/sbin/xm: command not found<br />Wed Dec  8 17:12:18 2010 [VMM][I]: ExitCode: 1<br />Wed Dec  8 17:12:18 2010 [VMM][E]: Error deploying virtual machine<br />Wed Dec  8 17:12:18 2010 [DiM][I]: New VM state is FAILED</p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;"><span>Infos:<br /><br /></span><span>     two hosts. debian lenny. xen hypervisor. one network-interface per host.</span><br /><br /><span>     master: 192.168.2.108</span><br /><span>     node: 192.168.2.102</span><br /><br /><span>    ok: passwordless ssh-connection login as oneadmin user (already works)</span><br /><br /><br /><span>ok?</span></p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;"><span># User privilege specification (on every machine the same)</span></p>
<p style="margin:0px;padding:0px;"><span>root    ALL=(ALL) ALL</span></p>
<p style="margin:0px;padding:0px;"><span>oneadmin        ALL=(ALL) NOPASSWD: ALL</span></p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;">%xen, %cloud  ALL = NOPASSWD: /usr/sbin/xm<br />%xen, %cloud  ALL = NOPASSWD: /usr/sbin/xentop</p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;"><span>ok?</span><br /><span># network settings (frontend):</span></p>
<p style="margin:0px;padding:0px;"><span>auto lo</span></p>
<p style="margin:0px;padding:0px;"><span>iface lo inet loopback</span></p>
<p style="margin:0px;padding:0px;"><span># The primary network interface</span></p>
<p style="margin:0px;padding:0px;"><span>allow-hotplug eth0</span></p>
<p style="margin:0px;padding:0px;"><span>auto eth0</span></p>
<p style="margin:0px;padding:0px;"><span>iface eth0 inet static</span></p>
<p style="margin:0px;padding:0px;"><span>       address 192.168.2.108</span></p>
<p style="margin:0px;padding:0px;"><span>       netmask 255.255.255.0</span></p>
<p style="margin:0px;padding:0px;"><span>       network 192.168.2.0</span></p>
<p style="margin:0px;padding:0px;"><span>       broadcast 192.168.2.255</span></p>
<p style="margin:0px;padding:0px;"><span>       gateway 192.168.2.1</span></p>
<p style="margin:0px;padding:0px;"><span>       dns-nameservers 192.168.2.1</span></p>
<p style="margin:0px;padding:0px;"><br /><br /><span>ok?</span><br /><span># network settings (execution-host (node)):</span></p>
<p style="margin:0px;padding:0px;"><span>auto lo</span></p>
<p style="margin:0px;padding:0px;"><span>iface lo inet loopback</span></p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;"><span>allow-hotplug eth0</span></p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;"><span># The primary network interface</span></p>
<p style="margin:0px;padding:0px;"><span>auto eth0</span></p>
<p style="margin:0px;padding:0px;"><span>iface eth0 inet static</span></p>
<p style="margin:0px;padding:0px;"><span>       address 192.168.2.102</span></p>
<p style="margin:0px;padding:0px;"><span>       netmask 255.255.255.0</span></p>
<p style="margin:0px;padding:0px;"><span>       network 192.168.2.0</span></p>
<p style="margin:0px;padding:0px;"><span>       broadcast 192.168.2.255</span></p>
<p style="margin:0px;padding:0px;"><span>       gateway 192.168.2.108</span></p>
<p style="margin:0px;padding:0px;"><span>       dns-nameservers 192.168.2.108</span></p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;"><span># Primary (internal) cloud bridge interface</span></p>
<p style="margin:0px;padding:0px;"><span>auto br0</span></p>
<p style="margin:0px;padding:0px;"><span>iface br0 inet static</span></p>
<p style="margin:0px;padding:0px;"><span>       address 192.168.2.102</span></p>
<p style="margin:0px;padding:0px;"><span>       netmask 255.255.255.0</span></p>
<p style="margin:0px;padding:0px;"><span>       network 192.168.2.0</span></p>
<p style="margin:0px;padding:0px;"><span>       broadcast 192.168.2.255</span></p>
<p style="margin:0px;padding:0px;"><span>       gateway 192.168.2.108</span></p>
<p style="margin:0px;padding:0px;"><span>       dns-nameservers 192.168.2.108</span></p>
<p style="margin:0px;padding:0px;"><span>       bridge_ports eth0</span></p>
<p style="margin:0px;padding:0px;"><span>       bridge_fd 9</span></p>
<p style="margin:0px;padding:0px;"><span>       bridge_hello 2</span></p>
<p style="margin:0px;padding:0px;"><span>       bridge_maxage 12</span></p>
<p style="margin:0px;padding:0px;"><span>       bridge_maxwait 5</span></p>
<p style="margin:0px;padding:0px;"><span>       bridge_stp off</span></p>
<p style="margin:0px;padding:0px;"><br /><br /><span>ok?</span><br /><span># define the virtual network vm_lan.template:</span></p>
<p style="margin:0px;padding:0px;"><span>NAME = "VM LAN"</span></p>
<p style="margin:0px;padding:0px;"><span>TYPE = RANGED</span></p>
<p style="margin:0px;padding:0px;"><span>BRIDGE = br0</span></p>
<p style="margin:0px;padding:0px;"><span>NETWORK_ADDRESS = 192.168.2.128</span></p>
<p style="margin:0px;padding:0px;"><span>NETWORK_SIZE = 126</span></p>
<p style="margin:0px;padding:0px;"><span>NETMASK          = 255.255.255.0</span></p>
<p style="margin:0px;padding:0px;"><span>GATEWAY         = 192.168.2.108</span></p>
<p style="margin:0px;padding:0px;"><span>NS                     = 192.168.2.108 # ip of frontend</span></p>
<p style="margin:0px;padding:0px;"><br /><span>ok?</span><br /><span># define xen settings /srv/cloud/one/etc/vmm_sh/vmm_sh_xen.conf</span></p>
<p style="margin:0px;padding:0px;"><span>CPU = 0.5</span></p>
<p style="margin:0px;padding:0px;"><span>MEMORY = 256</span></p>
<p style="margin:0px;padding:0px;"><span>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" ]</span></p>
<p style="margin:0px;padding:0px;"><span>CREDIT = 256</span></p>
<p style="margin:0px;padding:0px;"><br /><span>ok?</span><br /><span># check etc/oned.conf</span></p>
<p style="margin:0px;padding:0px;"><span>VM_DIR=/srv/cloud/one/var/images</span></p>
<p style="margin:0px;padding:0px;"><span>IMAGE_REPOSITORY_PATH = /srv/cloud/one/var/images</span></p>
<p style="margin:0px;padding:0px;"><span>DEFAULT_IMAGE_TYPE = "CDROM" # because of iso-image, is this </span><span>ok?</span></p>
<p style="margin:0px;padding:0px;"><span>DEFAULT_DEVICE_PREFIX = "hd"</span></p>
<p style="margin:0px;padding:0px;"> </p>
<p style="margin:0px;padding:0px;"><span>VM_MAD = [</span></p>
<p style="margin:0px;padding:0px;"><span>    name       = "vmm_xen",</span></p>
<p style="margin:0px;padding:0px;"><span>    executable = "one_vmm_sh",</span></p>
<p style="margin:0px;padding:0px;"><span>    arguments  = "xen",</span></p>
<p style="margin:0px;padding:0px;"><span>    default    = "vmm_sh/vmm_sh_xen.conf",</span></p>
<p style="margin:0px;padding:0px;"><span>    type       = "xen" ]</span></p>
<p style="margin:0px;padding:0px;"><span>[...]</span></p>
<p style="margin:0px;padding:0px;"><br /><br /><span>ok?</span><br /><span># check vm_instance.template</span></p>
<p style="margin:0px;padding:0px;"><span>NAME   = debian</span></p>
<p style="margin:0px;padding:0px;"><span>CPU    = 1</span></p>
<p style="margin:0px;padding:0px;"><span>MEMORY = 512</span></p>
<p style="margin:0px;padding:0px;"><span># Define your main disk as usual, and tell OpenNebula to keep the changes.</span></p>
<p style="margin:0px;padding:0px;"><span>DISK = [</span></p>
<p style="margin:0px;padding:0px;"><span>TYPE = "disk",</span></p>
<p style="margin:0px;padding:0px;"><span>SOURCE   = "/srv/cloud/images/debian_disk.img",</span></p>
<p style="margin:0px;padding:0px;"><span>TARGET   = hda,</span></p>
<p style="margin:0px;padding:0px;"><span>CLONE   = "no" ]</span></p>
<p style="margin:0px;padding:0px;"><span>DISK   = [</span></p>
<p style="margin:0px;padding:0px;"><span>TYPE = "cdrom",</span></p>
<p style="margin:0px;padding:0px;"><span>SOURCE = "/srv/cloud/images/debian-506-amd64-netinst.iso",</span></p>
<p style="margin:0px;padding:0px;"><span>TARGET = hdb,</span></p>
<p style="margin:0px;padding:0px;"><span>CLONE   = "no" ]</span></p>
<p style="margin:0px;padding:0px;"><span># swap, sdd</span></p>
<p style="margin:0px;padding:0px;"><span>DISK = [</span></p>
<p style="margin:0px;padding:0px;"><span>TYPE     = swap,</span></p>
<p style="margin:0px;padding:0px;"><span>SIZE     = 1024,</span></p>
<p style="margin:0px;padding:0px;"><span>READONLY = "no" ]</span></p>
<p style="margin:0px;padding:0px;"><span>DISK = [</span></p>
<p style="margin:0px;padding:0px;"><span>TYPE   = fs,</span></p>
<p style="margin:0px;padding:0px;"><span>SIZE   = 4096,</span></p>
<p style="margin:0px;padding:0px;"><span>FORMAT = ext3,</span></p>
<p style="margin:0px;padding:0px;"><span>SAVE   = yes,</span></p>
<p style="margin:0px;padding:0px;"><span>TARGET = sdg ]</span></p>
<p style="margin:0px;padding:0px;"><span>NIC    = [ NETWORK = "VM LAN" ]</span></p>
<p style="margin:0px;padding:0px;"><span>GRAPHICS = [</span></p>
<p style="margin:0px;padding:0px;"><span>type = "vnc",</span></p>
<p style="margin:0px;padding:0px;"><span>listen  = "node1",</span></p>
<p style="margin:0px;padding:0px;"><span>port = "5902" ]</span></p>
<p style="margin:0px;padding:0px;"><span>FEATURES=[ acpi="no" ]</span></p>
<p style="margin:0px;padding:0px;"><br /><br /><br />vielen dank nochmal<br />gruß sufian</p>
<p style="margin:0px;padding:0px;"> </p></div><br><br><div style="font-family:arial;font-size:10pt;">Exklusiv: Neue E-Mail-Adresse @iPhone.de jetzt verfügbar!<br>Sichern Sie sich jetzt ihre persönliche <a style="font-family:arial;font-size:10pt;" href="http://www.iphone.de/iphonemail/index.html?pid=10111947021" target="_blank">E-Mail-Adresse@iphone.de</a></div>
</BODY></HTML>