how to manage opennebula sandbox on virtualbox using opennebula API
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I want to manage different cloud resources using opennebula API.
For that i installed opennebula sandbox based Centos 7 on a virtualbox.
I
when i tried to execute my class in the eclipse IDE that allocate a simple virtual machine, i failed:
this is the code:
package org.opennebula;
import org.opennebula.client.Client;
import org.opennebula.client.OneResponse;
import org.opennebula.client.vm.VirtualMachine;
public class Alloue
public static void main(String args)
Client oneClient;
try
String one_auth="oneadmin:opennebula";
String one_xmlrpc="http://localhost:2633/RPC2";
oneClient=new Client(one_auth,one_xmlrpc);
String vmTemplate =
"NAME = vm_from_java CPU = 0.1 MEMORY = 64n";
System.out.println("Virtual Machine Template:n" + vmTemplate);
System.out.println();
System.out.print("Trying to allocate the virtual machine... ");
OneResponse rc = VirtualMachine.allocate(oneClient, vmTemplate);
if( rc.isError() )
System.out.println( "failed!");
throw new Exception( rc.getErrorMessage() );
else
System.out.println("ok");
catch(Exception e)
How can i resolve this problem ?
How can i manage openenbula-sandbox on virtualbox with opennebula API ?
java eclipse sandbox ide api
New contributor
add a comment |Â
up vote
0
down vote
favorite
I want to manage different cloud resources using opennebula API.
For that i installed opennebula sandbox based Centos 7 on a virtualbox.
I
when i tried to execute my class in the eclipse IDE that allocate a simple virtual machine, i failed:
this is the code:
package org.opennebula;
import org.opennebula.client.Client;
import org.opennebula.client.OneResponse;
import org.opennebula.client.vm.VirtualMachine;
public class Alloue
public static void main(String args)
Client oneClient;
try
String one_auth="oneadmin:opennebula";
String one_xmlrpc="http://localhost:2633/RPC2";
oneClient=new Client(one_auth,one_xmlrpc);
String vmTemplate =
"NAME = vm_from_java CPU = 0.1 MEMORY = 64n";
System.out.println("Virtual Machine Template:n" + vmTemplate);
System.out.println();
System.out.print("Trying to allocate the virtual machine... ");
OneResponse rc = VirtualMachine.allocate(oneClient, vmTemplate);
if( rc.isError() )
System.out.println( "failed!");
throw new Exception( rc.getErrorMessage() );
else
System.out.println("ok");
catch(Exception e)
How can i resolve this problem ?
How can i manage openenbula-sandbox on virtualbox with opennebula API ?
java eclipse sandbox ide api
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to manage different cloud resources using opennebula API.
For that i installed opennebula sandbox based Centos 7 on a virtualbox.
I
when i tried to execute my class in the eclipse IDE that allocate a simple virtual machine, i failed:
this is the code:
package org.opennebula;
import org.opennebula.client.Client;
import org.opennebula.client.OneResponse;
import org.opennebula.client.vm.VirtualMachine;
public class Alloue
public static void main(String args)
Client oneClient;
try
String one_auth="oneadmin:opennebula";
String one_xmlrpc="http://localhost:2633/RPC2";
oneClient=new Client(one_auth,one_xmlrpc);
String vmTemplate =
"NAME = vm_from_java CPU = 0.1 MEMORY = 64n";
System.out.println("Virtual Machine Template:n" + vmTemplate);
System.out.println();
System.out.print("Trying to allocate the virtual machine... ");
OneResponse rc = VirtualMachine.allocate(oneClient, vmTemplate);
if( rc.isError() )
System.out.println( "failed!");
throw new Exception( rc.getErrorMessage() );
else
System.out.println("ok");
catch(Exception e)
How can i resolve this problem ?
How can i manage openenbula-sandbox on virtualbox with opennebula API ?
java eclipse sandbox ide api
New contributor
I want to manage different cloud resources using opennebula API.
For that i installed opennebula sandbox based Centos 7 on a virtualbox.
I
when i tried to execute my class in the eclipse IDE that allocate a simple virtual machine, i failed:
this is the code:
package org.opennebula;
import org.opennebula.client.Client;
import org.opennebula.client.OneResponse;
import org.opennebula.client.vm.VirtualMachine;
public class Alloue
public static void main(String args)
Client oneClient;
try
String one_auth="oneadmin:opennebula";
String one_xmlrpc="http://localhost:2633/RPC2";
oneClient=new Client(one_auth,one_xmlrpc);
String vmTemplate =
"NAME = vm_from_java CPU = 0.1 MEMORY = 64n";
System.out.println("Virtual Machine Template:n" + vmTemplate);
System.out.println();
System.out.print("Trying to allocate the virtual machine... ");
OneResponse rc = VirtualMachine.allocate(oneClient, vmTemplate);
if( rc.isError() )
System.out.println( "failed!");
throw new Exception( rc.getErrorMessage() );
else
System.out.println("ok");
catch(Exception e)
How can i resolve this problem ?
How can i manage openenbula-sandbox on virtualbox with opennebula API ?
java eclipse sandbox ide api
java eclipse sandbox ide api
New contributor
New contributor
New contributor
asked 10 mins ago
nour
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
nour is a new contributor. Be nice, and check out our Code of Conduct.
nour is a new contributor. Be nice, and check out our Code of Conduct.
nour is a new contributor. Be nice, and check out our Code of Conduct.
nour is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475479%2fhow-to-manage-opennebula-sandbox-on-virtualbox-using-opennebula-api%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password