On 1/12/15 13:43 , Nicholas Lee via smartos-discuss wrote: > On 13 January 2015 at 08:34, Robert Mustacchi via smartos-discuss < > [email protected]> wrote: > >> >>> The KVM is immediately running. I assumed that I need to STOP this VM >> BEFORE "dd'ing" the image into it. HOWEVER, when I try "vmadm stop UUID", >> the vmadm command hangs and never returns to the command prompt. When I >> Ctrl-C the command and then "vmadm list", I can see the VM with a state of >> "stopping". >>> >>> Were you thinking that I would perform the "dd" of the RAW image >> DIRECTLY into the running VM ZVOL? >> >> No, of course not. >> >> I would have set the autoboot property to false in the JSON and then >> done the dd. vmadm stop by default tries to drop the ACPI based power >> off and then waits a while before it forcibly stops it. Given that you >> have nothing running in that guest, it's almost certainly not going to >> have anything running that would listen to ACPI. >> > > I've been wondering about that, as I've experience this "hang" and it can > take a while to clear. > > I should have check the man page... > > Next time I have this issue I'll try investigate. > > How long is the default timer? Is there a way to manually set this it?
There's no way to control the time as part of stop, aside from passing -F, which doesn't wait at all. If this is happening, it generally means something hasn't been configured in the guest. Robert ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
