Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

sudo gedit /etc/libvirt/qemu/VM1.xml

Add this code:

Code Block

   <devices>
    <emulator>/usr/bin/kvm</emulator>
    <hostdev mode='subsystem' type='usb'>
    <source>
    <vendor id='0x058f' />
    <product id='0x6387' />
    </source>
    </hostdev>
    <disk type='file' device='disk'>

Save and close the file and then restart.
If we want to add the USB device to VM2, we just have to enter in the terminal:

Panel

sudo gedit /etc/libvirt/qemu/VM2.xml

And add the same code to the file.

FTP

We are going to test FTP service between guest operating systems we had installed in the virtual machines.
FTP is a protocol used to copy file from one host to another. In FTP we use port 20 for data and port 21 for commands

...