``` # samba-tool domain provision --help ... Samba Common Options: -d DEBUGLEVEL, --debuglevel=DEBUGLEVEL debug level ... # samba-tool domain provision -d 0 ERROR: No domain set! # samba-tool domain provision -d 10 INFO: Current debug levels: all: 10 tdb: 10 printdrivers: 10 lanman: 10 smb: 10 rpc_parse: 10 rpc_srv: 10 rpc_cli: 10 passdb: 10 sam: 10 auth: 10 winbind: 10 vfs: 10 idmap: 10 quota: 10 acls: 10 locking: 10 msdfs: 10 dmapi: 10 registry: 10 scavenger: 10 dns: 10 ldb: 10 tevent: 10 auth_audit: 10 auth_json_audit: 10 kerberos: 10 drs_repl: 10 smb2: 10 smb2_credits: 10 dsdb_audit: 10 dsdb_json_audit: 10 dsdb_password_audit: 10 dsdb_password_json_audit: 10 dsdb_transaction_audit: 10 dsdb_transaction_json_audit: 10 dsdb_group_audit: 10 dsdb_group_json_audit: 10 ldapsrv: 10 ERROR: No domain set! ```
(In reply to SATOH Fumiyasu from comment #0) It isn't so much that it is failing because you are setting the debug level, it is failing because you are not setting the required '--interactive' switch or the individual separate options. The error message is telling you this. See here for how to set up a new domain: https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller
I got it! Thank you.