diff --git a/tools/libvirt-guests.init.sh b/tools/libvirt-guests.init.sh index ea2189e1aa3b2b4c9b918e2414514d5a6dcc2134..080cf6aa874a109138a47836df290724f0325b26 100644 --- a/tools/libvirt-guests.init.sh +++ b/tools/libvirt-guests.init.sh @@ -164,7 +164,7 @@ start() { if $guest_running; then gettext "already active"; echo else - retval run_virsh $uri start "$name" >/dev/null && \ + retval run_virsh $uri start "$guest" >/dev/null && \ gettext "done"; echo fi fi diff --git a/tools/virsh.c b/tools/virsh.c index a5e9c4f39df0f2952b2ca758d9550b4e63f282cb..b42aac4d7034f73543dfde41413a0d740de328d5 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -1402,7 +1402,8 @@ cmdStart(vshControl *ctl, const vshCmd *cmd) if (!vshConnectionUsability(ctl, ctl->conn)) return FALSE; - if (!(dom = vshCommandOptDomainBy(ctl, cmd, NULL, VSH_BYNAME))) + if (!(dom = vshCommandOptDomainBy(ctl, cmd, NULL, + VSH_BYNAME | VSH_BYUUID))) return FALSE; if (virDomainGetID(dom) != (unsigned int)-1) {