diff --git a/share/hooks/ebtables-kvm b/share/hooks/ebtables-kvm index 6cd909e..5900791 100755 --- a/share/hooks/ebtables-kvm +++ b/share/hooks/ebtables-kvm @@ -55,7 +55,7 @@ def get_interfaces end end -nets=`virsh dumpxml #{VM_NAME}` +nets=`virsh -c qemu:///system dumpxml #{VM_NAME}` doc=REXML::Document.new(nets).root diff --git a/share/scripts/one b/share/scripts/one index 94d2220..067646a 100755 --- a/share/scripts/one +++ b/share/scripts/one @@ -83,11 +83,13 @@ start() fi if [ ! -f "$ONE_DB" ]; then - if [ -z "$ONE_AUTH" ]; then - echo "You should have ONE_AUTH set the first time you start" - echo "OpenNebula as it is used to set the credentials for" - echo "the adminitrator user." - exit 1 + if [ ! -f "$HOME/.one/one_auth" ]; then + if [ -z "$ONE_AUTH" ]; then + echo "You should have ONE_AUTH set the first time you start" + echo "OpenNebula as it is used to set the credentials for" + echo "the adminitrator user." + exit 1 + fi fi fi