User Mode Linux remote ethernet driver
-
um folder: correspond to /usr/src/linux/arch/um
-
uml_switch folder: correspond to /usr/src/dvs/dvs-apps/uml_switch
-
dvs_uml_switch folder: correspond to /usr/src/dvs/dvs-apps/dvs_uml_switch
Clone this code:
git clone https://github.com/cotyq/uml-rtuntap.git
cd uml-rtuntap
Create a new branch in uml-rtuntap:
git switch -c update-vm
Mount the VM code in um and uml_switch folders:
sshfs -o nonempty root@192.168.1.2:/usr/src/linux/arch/um um
sshfs -o nonempty root@192.168.1.2:/usr/src/dvs/dvs-apps/uml_switch uml_switch
sshfs -o nonempty root@192.168.1.2:/usr/src/dvs/dvs-apps/dvs_uml_switch dvs_uml_switch
update-vm branch will contain the VM code and master will contain the git repository code.
To see the difference between VM and repo:
git diff --name-status master
Following with the previos section instructions.
In case the VM code is out-of-date:
- Commit your changes to
update-vmbranch.
git status
git add ...
git commit
- Checkout to master branch. Due to um and uml_switch were mounted from VM, checkout changes will be automatically applied in the VM.
git checkout master