File tree Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ install: all
14
14
ssh $(HOST ) " test -d /boot/guest || mkdir /boot/guest"
15
15
ssh $(HOST ) " cd /boot/guest; rm -f test-vm.xen"
16
16
scp src/test-vm.xen.gz $(HOST ) :/boot/guest
17
- ssh $(HOST ) " cd /boot/guest; gunzip test-vm.xen.gz"
18
17
19
18
remove :
20
19
true
Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ release. The file goes into `/boot/guest` on a host:
30
30
31
31
HOST=host
32
32
ssh root@$HOST "test -d /boot/guest || mkdir /boot/guest"
33
- scp test-vm.xen root@$HOST:/boot/guest
33
+ scp test-vm.xen.gz root@$HOST:/boot/guest
34
34
35
35
The kernel needs to be registered with Xen on the host. As root on
36
36
` $HOST ` , do:
37
37
38
38
xe vm-create name-label=minion
39
39
# this echoes a UUID for the new VM named "minion"
40
- xe vm-param-set PV-kernel=/boot/guest/test-vm.xen uuid=$UUID
40
+ xe vm-param-set PV-kernel=/boot/guest/test-vm.xen.gz uuid=$UUID
41
41
42
42
Once installed, use the CLI on the host to operate the VM or use
43
43
XenCenter.
@@ -78,6 +78,7 @@ the hypervisor only sends these.
78
78
reboot
79
79
halt
80
80
crash
81
+ ignore
81
82
82
83
## Testing Messages
83
84
@@ -88,6 +89,7 @@ The kernel reads messages in "control/testing". Legal messages are:
88
89
now:reboot
89
90
now:halt
90
91
now:crash
92
+ now:ignore
91
93
92
94
Each makes the kernel respond to these immediately. In addition, these
93
95
messages are legal:
@@ -97,6 +99,7 @@ messages are legal:
97
99
next:reboot
98
100
next:halt
99
101
next:crash
102
+ next:ignore
100
103
101
104
The next time the kernel receives a shutdown message, it ignores the
102
105
message it received and acts on the next: message instead. This permits
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ type shutdown =
7
7
| Reboot
8
8
| Halt
9
9
| Crash
10
+ | Ignore
10
11
11
12
type testing =
12
13
| Now of shutdown
Original file line number Diff line number Diff line change 12
12
| Reboot
13
13
| Halt
14
14
| Crash
15
+ | Ignore
15
16
16
17
type testing =
17
18
| Now of shutdown
24
25
| " reboot" { Reboot }
25
26
| " halt" { Halt }
26
27
| " crash" { Crash }
28
+ | " ignore" { Ignore }
27
29
| _ { raise (Error " unknown shutdown command" ) }
28
30
29
31
and testing = parse
45
47
| Reboot -> " reboot"
46
48
| Halt -> " halt"
47
49
| Crash -> " crash"
50
+ | Ignore -> " ignore"
48
51
49
52
let testing = function
50
53
| Now (msg ) -> Printf. sprintf " now:%s" (shutdown msg)
Original file line number Diff line number Diff line change @@ -62,9 +62,10 @@ module Main (C: V1_LWT.CONSOLE) = struct
62
62
| CMD. Reboot -> reboot ()
63
63
| CMD. Halt -> halt ()
64
64
| CMD. Crash -> crash ()
65
+ | CMD. Ignore -> return false
65
66
66
67
67
- (* event loop *)
68
+ (* event loop *)
68
69
let start c =
69
70
OS.Xs. make () >> = fun client ->
70
71
let rec loop tick override =
You can’t perform that action at this time.
0 commit comments