Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Task 2: Setting up guest2

1. Enter the following commands into the terminal:

sudo apt update -y
sudo apt install -y qemu-kvm net-tools nfs-common

2. Before launching QEMU on the second guest VM, obtain the IP address of this VM.

ip a

3. Enter the following commands into the terminal to mount NFS service:

sudo mkdir -p /mnt/nfs
sudo mount -t nfs <replace_with_guest1_ip>:/mnt/nfs /mnt/nfs>

4. Luanch QEMU on the second VM to prepare for the incoming live virtual machine migration:

sudo qemu-system-x86_64 \
    -cpu host -enable-kvm -m 2G -smp 1 \
    -drive if=virtio,format=qcow2,file=/mnt/nfs/ubuntu.qcow2 \
    -incoming tcp:0:4400

A window similar to this will then appear: