Hey Roberto, I still don't understand what is the editor that you have developed but if I have the will in these days I will try it.
From what I understand it starts tinycore installed on a flash drive directly on qemu. I used to do it with virtualbox but it's probably worse than doing it on qemu.
As for sudo, it happens that I don't even have it installed and usually I just use su -c "command" or I found another solution that I'm not sure works without any cons:
su root <</HEREDOC
root_password
#commands
HEREDOC