Check-in [b31d32b79f]
Not logged in
Overview
Comment:Improved docs, removed forgotten debug output
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b31d32b79ff25b0ac844aa41c5e7468bf60cfd81
User & Date: vitus on 2016-04-15 15:15:40
Other Links: manifest | tags
Context
2016-04-15
16:35
Now stop --hard doesn't throw exception. vws list correctly shows user net mode for stopped VM check-in: 9fea10a806 user: vitus tags: trunk
15:15
Improved docs, removed forgotten debug output check-in: b31d32b79f user: vitus tags: trunk
14:58
Set version to 0.4 check-in: 52e0b8ea22 user: vitus tags: trunk
Changes

Modified vws from [06ace10362] to [7d117d71fe].

605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
                except IOError:
                    #When hard_stopping,socket might be closed by way
                    pass
                    sock.shutdown(socket.SHUT_RDWR)
                    sock.close()
        if not options.wait:
            return
        print "%d machines left running" % count
        if count>0:
            time.sleep(10)


TEMPLATE = """#!/bin/sh
# Get machine name from current directory name
NAME=$(basename $(pwd))







<







605
606
607
608
609
610
611

612
613
614
615
616
617
618
                except IOError:
                    #When hard_stopping,socket might be closed by way
                    pass
                    sock.shutdown(socket.SHUT_RDWR)
                    sock.close()
        if not options.wait:
            return

        if count>0:
            time.sleep(10)


TEMPLATE = """#!/bin/sh
# Get machine name from current directory name
NAME=$(basename $(pwd))

Modified vws.mkd from [5f40be7393] to [1e2a1e51ba].

8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42




43
44
45
46
47
48
49
*vws* - manage Virtual Workstations

SYNOPSIS
========

**vws create** *name* [ **--install** *isoimage* ]

**vws list**  [**--state**] [**--usb** ]

**vws start** *name* [**--no-gui**] [**--cdrom** *iso-image*]

**vws stop** *name* [**--hard**]

**vws save** *name*

**vws reset** *name*

**vws cdrom** [ **--id** *id* ] [ *iso-image* | **--eject *]

**vws usb insert** *name*  *pattern*

**vws usb remove** *name*  *pattern*

**vws usb attached** *name* 

**vws usb list** 

**vws snapshot** *name* [ *id* ]

**vws revert** *name* [ *id* ]

**vws commit** *name*

**vws snapshots**  *name*





**vws screenshot** *name* *filename.ppm*

**vws record** *name* *filename.wav*

**vws stoprecord**  *name*

**vws sendkey** *name* *keyspec*







|

|







|

















>
>
>
>







8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
*vws* - manage Virtual Workstations

SYNOPSIS
========

**vws create** *name* [ **--install** *isoimage* ]

**vws list**  \[**--state**\] \[**--usb**\]

**vws start** *name* [**--no-gui**] \[**--cdrom** *iso-image*\]

**vws stop** *name* [**--hard**]

**vws save** *name*

**vws reset** *name*

**vws cdrom** \[**--id** *id*\] \[*iso-image*|**--eject**\]

**vws usb insert** *name*  *pattern*

**vws usb remove** *name*  *pattern*

**vws usb attached** *name* 

**vws usb list** 

**vws snapshot** *name* [ *id* ]

**vws revert** *name* [ *id* ]

**vws commit** *name*

**vws snapshots**  *name*

**vws autostart**

**vws shutdown** \[**--wait**\] \[**--timeout** *sec*\]

**vws screenshot** *name* *filename.ppm*

**vws record** *name* *filename.wav*

**vws stoprecord**  *name*

**vws sendkey** *name* *keyspec*
205
206
207
208
209
210
211






















212
213
214
215
216
217
218

Saves virtual machine state into first disk image. Subsequent **start**
command would restore this state.

**vws reset** *machine*

Requests the reboot of guest OS via ACPI.
























REMOVABLE DEVICE MANAGEMENT
---------------------------

**vws cdrom** *machine* [ **--eject** | *iso-image* ]








>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244

Saves virtual machine state into first disk image. Subsequent **start**
command would restore this state.

**vws reset** *machine*

Requests the reboot of guest OS via ACPI.

AUTOSTART AND SHUTDOWN
----------------------

Machines, placed into system wide directory specified in the
configuration (see **Configuration
File** below) would be automatically started at system startup (provided
that **vws** service is enabled). This is performed using

**vws autostart**

command, which starts all the VMs in autostart directory. It starts VMs
under special user, specified in the configuration file.

**vws shutdown**  \[**--wait**\] \[**--timeout** *sec*\]

Does more than just stop autostarted VMs. Actually it tries to shut down
gracefully all the VMs, it found running. If **--wait** option is
specifed, it repeats scan for running VMs each ten second until
**--timeout** (default 90) seconds expired. When timeout expired, it
forcibly stops all remaining VMs. 



REMOVABLE DEVICE MANAGEMENT
---------------------------

**vws cdrom** *machine* [ **--eject** | *iso-image* ]