...
First you need to setup libvirt's bridge adaptor, so we can bind the VMs network to have a default internet access via NAT on the VMs at creation.interfaces to it:
Code Block | ||||
---|---|---|---|---|
| ||||
root@hpc-admin # virshvim net-define /etc/libvirt/qemu/networks/default.xml root@hpc-admin # virsh net-autostart default root@hpc-admin # virsh net-start default # Makesure it worked root@hpc-admin # brctl show # Make sure FORWARD works on rebootnetwork/interfaces # auto enp0s25 # iface enp0s25 inet dhcp auto br0 iface br0 inet static address 10.50.0.2 netmask 255.255.0.0 gateway 10.50.0.1 dns-nameservers 10.50.0.1 bridge_ports enp0s25 bridge_stp off bridge_maxwait 0 bridge_fd 0 root@hpc-admin # echo net.ipv4.ip_forward=1 > /etc/sysctl.confsystemctl restart networking |
Then create 2 VMs : one for MrP, one for Jenkins.
...