summaryrefslogtreecommitdiff
path: root/virtual_host_server.mdwn
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-06-21 18:30:10 +0100
committerVincent Sanders <vince@kyllikki.org>2017-06-21 18:30:10 +0100
commit0238cbcfc0b5ca59e0ee7105db657cc2b866ba10 (patch)
treeecfb440f5523fc84ca777f1b4d29759715fe8342 /virtual_host_server.mdwn
parentb659e4ea41392f0c32e0eddcd3a165f8dead0a83 (diff)
downloadnetsurf-wiki-0238cbcfc0b5ca59e0ee7105db657cc2b866ba10.tar.gz
netsurf-wiki-0238cbcfc0b5ca59e0ee7105db657cc2b866ba10.tar.bz2
Add fedora CI slave setup
Diffstat (limited to 'virtual_host_server.mdwn')
-rw-r--r--virtual_host_server.mdwn50
1 files changed, 38 insertions, 12 deletions
diff --git a/virtual_host_server.mdwn b/virtual_host_server.mdwn
index 2b3def8..1d66542 100644
--- a/virtual_host_server.mdwn
+++ b/virtual_host_server.mdwn
@@ -4,11 +4,10 @@
[[!toc]] The system providing the
-virtual host services for the NetSurf project is currently named
-phoenix.
+virtual host services for the NetSurf project is currently named phoenix.
-Access is \*only\* via the NetSurf VPN. For VPN access contact vince
-though you can also use your ssh key access to ci.netsurf-browser.org
+Access is \*only\* via the NetSurf VPN. For VPN access contact vince@netsurf-browser.org
+Developers can also use their ssh key access to ci.netsurf-browser.org and on from there
phoenix is currently 192.168.211.50 if the DNS is unavailable
@@ -20,15 +19,41 @@ Become superuser with sudo
### Debian VPS
If you are creating a new Debian box there is a helper script
-(new-wheezy-vps.sh ) which just just need to pass a system name to and
+(new-stretch-vps.sh ) which just just need to pass a system name to and
you will get a 40G disc/ 512MB RAM system.
for example:
-`new-wheezy-vps.sh ciworker13`
+`new-stretch-vps.sh ciworker18`
+
+will create a system named ciworker18 with 40G of disc and 512MB of
+memory with the Debian stretch boot iso connected to the cdrom drive.
+
+### Fedora
+
+- create lvm device for the system
+
+ lvcreate --size 40G -n nsciworker18 vg
+
+- Ensure the OS install dvd is in /var/lib/libvirt/images/
+
+- Create the virtual machine
+
+ virt-install -n nsciworker18 -r 1024 \
+ --disk path=/dev/mapper/vg-${VDSNAME},bus=virtio \
+ --accelerate \
+ --network=bridge:${VDSBRIDGE} \
+ --connect=qemu:///system \
+ --noautoconsole -v \
+ --nographics \
+ --os-type=linux \
+ --location /var/lib/libvirt/images/Fedora-Server-dvd-x86_64-25-1.3.iso \
+ --extra-args='console=tty0 console=ttyS0,115200n8 serial'
+
+- Once running the serial console can be used
+
+ virsh console nsciworker18
-will create a system named ciworker13 with 40G of disc and 512MB of
-memory with the Debian wheezy boot iso connected to the cdrom drive.
### Other VPS
@@ -36,16 +61,17 @@ The manual setup for other systems is:
- create lvm device for the system
-`lvcreate --size 40G -n system_name vg`
+ lvcreate --size 40G -n system_name vg
- if the OS requires a cdrom install media download and place in
/var/lib/libvirt/images/
+
- use virt install to create the new VM substitutig appropriate values
for volume name, memory, boot disc
-`virt-install -n ciworker13 -r 512 --disk path=/dev/mapper/vg-ciworker13,bus=virtio \`
-`-c /var/lib/libvirt/images/cd54.iso --accelerate --network=bridge:br0 \`
-`--connect=qemu:///system --vnc --noautoconsole -v`
+ virt-install -n ciworker13 -r 512 --disk path=/dev/mapper/vg-ciworker13,bus=virtio \
+ -c /var/lib/libvirt/images/cd54.iso --accelerate --network=bridge:br0 \
+ --connect=qemu:///system --vnc --noautoconsole -v
Admin
-----