Use libvirt to manage virtual machine resources, not shell commands in rc.local. virsh --connect xen:///; help should get you started; there's an autostart directive for what you're trying to do.