Skip to content

Commit f17eed6

Browse files
committed
Merge pull request xapi-project#5 from jonludlam/novncterm-wrapper
No vncterm-wrapper
2 parents b8d92d3 + 392762b commit f17eed6

File tree

6 files changed

+25
-54
lines changed

6 files changed

+25
-54
lines changed

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ install:
3535
install -D ./dist/build/xenopsd_simulator/xenopsd_simulator $(DESTDIR)/$(SBINDIR)/xenopsd_simulator
3636
install -D ./dist/build/xenguest/xenguest $(DESTDIR)/$(LIBEXECDIR)/xenguest
3737
install -D ./scripts/vif $(DESTDIR)/$(SCRIPTSDIR)/vif
38-
install -D ./scripts/vncterm-wrapper $(DESTDIR)/$(LIBEXECDIR)/vncterm-wrapper
3938
install -D ./scripts/qemu-dm-wrapper $(DESTDIR)/$(LIBEXECDIR)/qemu-dm-wrapper
4039
install -D ./scripts/qemu-vif-script $(DESTDIR)/$(LIBEXECDIR)/qemu-vif-script
4140
install -D ./scripts/setup-vif-rules $(DESTDIR)/$(LIBEXECDIR)/setup-vif-rules
@@ -55,7 +54,6 @@ uninstall:
5554
rm -f $(DESTDIR)/$(LIBEXECDIR)/xenguest
5655
rm -f $(DESTDIR)/$(ETCDIR)/xenopsd.conf
5756
rm -f $(DESTDIR)/$(SCRIPTSDIR)/vif
58-
rm -f $(DESTDIR)/$(LIBEXECDIR)/vncterm-wrapper
5957
rm -f $(DESTDIR)/$(LIBEXECDIR)/qemu-dm-wrapper
6058
rm -f $(DESTDIR)/$(LIBEXECDIR)/setup-vif-rules
6159
rm -f $(DESTDIR)/$(ETCDIR)/xcp/network.conf

lib/path.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ let vif_script = ref "/usr/lib/xcp/scripts/vif"
1717
let qemu_vif_script = ref "/usr/lib/xcp/scripts/qemu-vif-script"
1818
let vbd_script = ref "/etc/xen/scripts/block"
1919
let pci_flr_script = ref "/usr/lib/xcp/lib/pci-flr"
20-
let vncterm_wrapper = ref "/usr/lib/xcp/lib/vncterm-wrapper"
2120
let vncterm = ref "/usr/lib/xcp/lib/vncterm"
2221
let xenguest = ref "/usr/lib/xcp/lib/xenguest"
2322
let qemu_dm_wrapper = ref "/usr/lib/xcp/lib/qemu-dm-wrapper"
@@ -39,7 +38,6 @@ let essentials = [
3938
R_OK, "network-conf", network_conf, "path to the network backend switch";
4039
X_OK, "vif-script", vif_script, "path to the vif backend script";
4140
X_OK, "qemu-vif-script", qemu_vif_script, "path to the qemu vif script";
42-
X_OK, "vncterm-wrapper", vncterm_wrapper, "path to the vncterm-wrapper script";
4341
X_OK, "vncterm", vncterm, "path to the vncterm binary";
4442
X_OK, "xenguest", xenguest, "path to the xenguest binary";
4543
X_OK, "qemu-dm-wrapper", qemu_dm_wrapper, "path to the qemu-dm-wrapper script";

scripts/make-custom-xenopsd.conf

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,30 @@
55

66
install -D ./xenopsd.conf ${DESTDIR}/${ETCDIR}/xenopsd.conf
77

8-
cat >> ${DESTDIR}/${ETCDIR}/xenopsd.conf <<EOT
8+
# Find xen:
9+
for i in xen xen-4.1 xen-4.2 xen-4.3; do
10+
if [ -d /usr/lib/$i ]; then myxen=$i; fi
11+
done
912

13+
# Find a group
14+
for i in root wheel xapi xendev; do
15+
egrep -i "^$i" /etc/group > /dev/null && group=$i
16+
done
1017

18+
cat >> ${DESTDIR}/${ETCDIR}/xenopsd.conf <<EOT
1119
# Locations of the necessary scripts, generated from xenopsd:Makefile
1220
# on $(date)
13-
xenguest=${DESTDIR}/${LIBEXECDIR}/xenguest
14-
network-conf=${DESTDIR}/${ETCDIR}/xcp/network.conf
15-
vif-script=${DESTDIR}/${SCRIPTSDIR}/vif
16-
qemu-vif-script=${DESTDIR}/${SCRIPTSDIR}/qemu-vif-script
17-
vncterm-wrapper=${DESTDIR}/${LIBEXECDIR}/vncterm-wrapper
18-
qemu-dm-wrapper=${DESTDIR}/${LIBEXECDIR}/qemu-dm-wrapper
19-
setup-vif-rules=${DESTDIR}/${LIBEXECDIR}/setup-vif-rules
21+
xenguest=${LIBEXECDIR}/xenguest
22+
network-conf=${ETCDIR}/xcp/network.conf
23+
vif-script=${SCRIPTSDIR}/vif
24+
qemu-vif-script=${SCRIPTSDIR}/qemu-vif-script
25+
qemu-dm-wrapper=${LIBEXECDIR}/qemu-dm-wrapper
26+
setup-vif-rules=${LIBEXECDIR}/setup-vif-rules
27+
hvmloader=/usr/lib/${myxen}/boot/hvmloader
28+
pygrub=/usr/lib/${myxen}/bin/pygrub
29+
sockets-group=$group
30+
vncterm=${LIBEXECDIR}/vncterm
31+
eliloader=${LIBEXECDIR}/eliloader
2032
EOT
2133

2234
echo You may now run:

scripts/vncterm-wrapper

Lines changed: 0 additions & 35 deletions
This file was deleted.

xc/device.ml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -869,15 +869,16 @@ let save ~xs domid =
869869
| None -> ()
870870

871871
let start ?statefile ~xs ?ip domid =
872+
debug "In PV_Vnc.start";
872873
let ip = Opt.default "127.0.0.1" ip in
873-
let l = [ string_of_int domid; (* absorbed by vncterm-wrapper *)
874-
(* everything else goes straight through to vncterm: *)
875-
"-x"; sprintf "/local/domain/%d/console" domid;
874+
let l = [ "-x"; sprintf "/local/domain/%d/console" domid;
876875
"-T"; (* listen for raw connections *)
877876
"-v"; ip ^ ":1";
878877
] @ load_args statefile in
879878
(* Now add the close fds wrapper *)
880-
let pid = Forkhelpers.safe_close_and_exec None None None [] !Path.vncterm_wrapper l in
879+
let pid = Forkhelpers.safe_close_and_exec None None None [] !Path.vncterm l in
880+
let path = vnc_pid_path domid in
881+
xs.Xs.write path (string_of_int (Forkhelpers.getpid pid));
881882
Forkhelpers.dontwaitpid pid
882883

883884
let stop ~xs domid =

xenopsd.conf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ disable-logging-for=http
4848
# Path to the PCI FLR script
4949
# pci-flr-script=/opt/xensource/libexec/pci-flr
5050

51-
# Path to the vncterm wrapper script
52-
# vncterm-wrapper=/opt/xensource/libexec/vncterm-wrapper
53-
5451
# Path to the vncterm binary
5552
# vncterm=/usr/lib/xen/bin/vncterm
5653

0 commit comments

Comments
 (0)