My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
UsageOnevm  
Usage of oneuser, onehost, onevnet, onevm commands.
Updated Oct 6, 2010 by davidr...@gmail.com

From page 30 in this guide, we can see an example usage of the oneuser, onehost, onevnet and onevm commands.

http://www.slideshare.net/rsmontero/building-clouds-one-14


1º Step: usage of oneuser command

Firstly we can see with oneuser list, the user's list. If we want to add a new user, we must do, for example:

#oneuser create helen mypass, where helen is the user's name and mypass the user's password.

After that, we have to modify one_auth and add helen:mypass.

If we want to delete it, we must do #oneuser delete helen.


2º Step: usage of onehost command

We are going to use dummy drivers, so we go to /etc/oned.conf and comment im_mad, vmm_mad and tm_mad drivers of kvm , and uncomment the same for dummy drivers. After that we are ready to create a host with dummy drivers.

#onehost create "IP_ADDRESS" im_dummy vmm_dummy tm_dummy

After that:

#tail -f $ONE_LOCATION/var/oned.log

And we'll see that our host is being succesfully monitorized with

#onehost list


3º Step: usage of onevnet command

We have to create a XX.net file where we define our network's properties.

For example:

blue.net

NAME= "Blue LAN"

TYPE=FIXED

BRIDGE=eth0

NETWORK_SIZE=C

LEASES= [IP=192.168.170.5]

LEASES= [IP=192.168.170.10]

LEASES= [IP=192.168.170.15]

LEASES= [IP=192.168.170.20]

LEASES= [IP=192.168.170.25]

NOTE: BEFORE "IP" THERE IS A "[" AND AT THE END "]"

After that we are ready to create it

#onevnet create blue.net


4º Step: usage of onevm command

After creating hosts, users and network, we can define a template which we can use to create a VM, we have an example in /one/share/scripts/ttylinux/context/ttylinux.one.

In this template we have to replace "Red Virtual" for our network's name, and "kvm" for "dummy" and some other parameters we have to consider like IP_ADDRESS or the image file.

#onevm create ttylinux.one

After that

#onevm list, and we'll see our VM running. With onevm show ID we can see its properties.

Powered by Google Project Hosting