Compatibility Guide 4.0
This guide is aimed at OpenNebula 3.8 users and administrators who want to upgrade to the latest version. The following sections summarize the new features and usage changes that should be taken into account, or prone to cause confusion. You can check the upgrade process in the following guide
Visit the Features list and the Release Notes for a comprehensive list of what's new in OpenNebula 4.0.
onevm –schedule
option (#1483)<xterm> $ onetemplate instantiate 6 –cpu 2 –memory 1024 </xterm>
Some onevm commands have been renamed. This is the complete list of onevm sub-commands:
OpenNebula 3.8 | OpenNebula 4.0 | |
---|---|---|
Creation | create | |
hold | ||
release | ||
Attribute updates | update | |
rename | ||
resize | ||
chgrp | ||
chown | ||
chmod | ||
Disk actions | attachdisk | disk-attach |
detachdisk | disk-detach | |
saveas | disk-snapshot | |
disk-snapshot –live | ||
Nic actions | nic-attach | |
nic-detach | ||
Scheduling and deployment | deploy | |
migrate | ||
livemigrate | migrate –live | |
resched | ||
unresched | ||
Power on and off | poweroff | |
poweroff –hard | ||
shutdown | ||
cancel | shutdown –hard | |
reboot | ||
reset | reboot –hard | |
restart | boot | |
Deletion | delete | destroy |
resubmit | destroy –recreate | |
Stop/Resume | stop | |
suspend | ||
resume | ||
VM Snapshots | snapshot-create | |
snapshot-revert | ||
snapshot-delete | ||
Query | list | |
show | ||
top |
New CLI commands:
Changed CLI commands:
–hold
for 'onevm create' and 'onetemplate instantiate'. Using this flag, the new VMs are created on hold state instead of pending. VMs in this state are ignored by the scheduler, giving users the chance release them later or to deploy them manually.–enforce
for 'onevm deploy' and 'onevm (live)migrate'. Using this flag, the core will enforce that the target host's capacity is not overcommitted.Options:
–user
and –password
are available for all commands. They replace the current credentials, making it easier for administrators to quicky execute commands as another user.Some of these changes are better explained, with examples, in this blog post.
REQUIREMENTS=“\”/HOST/HOST_SHARE/MAX_MEM\“ > 0”
(#1747)New xml-rpc methods:
Changed xml-rpc methods:
require 'opennebula'
<xterm> $ gem install opennebula-oca –pre </xterm>
X509:
Changes in /ect/one/oned.conf
im_kvm
changed to kvm
, vmm_xen
to xen
and so on. To add a kvm
host the command will be:<xterm> $ onehost create host_name –im kvm –vm kvm –net dummy </xterm>
Changes in /etc/one/sunstone-server.conf
Changes in /etc/one/auth/x509_auth.conf
Changes in /var/lib/one/remotes/vmm/kvm/kvmrc
Changes in /etc/one/occi-server.conf
Changes in EC2 Server configuration files: