diff options
Diffstat (limited to 'virtual_host_server.mdwn')
-rw-r--r-- | virtual_host_server.mdwn | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/virtual_host_server.mdwn b/virtual_host_server.mdwn index 93fcab5..6bcc6c0 100644 --- a/virtual_host_server.mdwn +++ b/virtual_host_server.mdwn @@ -21,34 +21,39 @@ If you are creating a new Debian box there is a helper script (new-stretch-vps.s for example: - new-stretch-vps.sh ciworker18 + new-stretch-vps.sh ${VDSNAME} -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. +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 + lvcreate --size 40G -n ${VDSNAME} vg Ensure the OS install dvd is in /var/lib/libvirt/images/ Create the virtual machine - virt-install -n nsciworker18 -r 1024 \ + virt-install -n ${VDSNAME} -r 1024 \ --disk path=/dev/mapper/vg-${VDSNAME},bus=virtio \ --accelerate \ - --network=bridge:${VDSBRIDGE} \ + --network=bridge:br0 \ --connect=qemu:///system \ --noautoconsole -v \ --nographics \ --os-type=linux \ - --location /var/lib/libvirt/images/Fedora-Server-dvd-x86_64-25-1.3.iso \ + --location /var/lib/libvirt/images/Fedora-Server-dvd-x86_64-26-1.5.iso \ --extra-args='console=tty0 console=ttyS0,115200n8 serial' +The bridge interface MAC address should be edited to something like 0e:00:00:00:01:xx + + virsh edit ${VDSNAME} + Once running the serial console can be used - virsh console nsciworker18 + virsh console ${VDSNAME} ### Other @@ -57,14 +62,16 @@ The manual setup for other systems is: create lvm device for the system - lvcreate --size 40G -n system_name vg + lvcreate --size 40G -n ${VDSNAME} vg -if the OS requires a cdrom install media download and place in /var/lib/libvirt/images/ +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 +use virt install to create the new VM substitutig appropriate values +for volume name, memory, boot disc - virt-install -n ciworker18 -r 512 \ - --disk path=/dev/mapper/vg-ciworker13,bus=virtio \ + virt-install -n ${VDSNAME} -r 512 \ + --disk path=/dev/mapper/vg-${VDSNAME},bus=virtio \ -c /var/lib/libvirt/images/cd54.iso \ --accelerate --network=bridge:br0 \ --connect=qemu:///system \ @@ -73,5 +80,7 @@ use virt install to create the new VM substitutig appropriate values for volume Admin ----- -You can either use virsh on phoenix to directly admin consoles or alternatively use virt-admin over the VPN which is by far the easier option. +You can either use virsh on phoenix to directly admin consoles or +alternatively use virt-admin over the VPN which is by far the easier +option. |