forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cgclassify and nsenter to move VM into the container
* Remove the `docker exec` approach, it does not work for us because of not passed on filedescriptors * Add a macvtap network to the Vagrant VMs * Add a `testdomain.xml` which spawns a VM called `testvm` with a macvtap and a tap network attached. * Move the qemu process into all cgroups supported by docker * Move the qemu process into the PID namespace of the container, to get all the container signals from the kernel Change-Id: Ia3d18bdcc0a9f426461dce6af64d159baeb8861b Signed-off-by: Roman Mohr <[email protected]>
- Loading branch information
Showing
6 changed files
with
47 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<network> | ||
<name>kubevirt-net</name> | ||
<forward mode="bridge"> | ||
<interface dev="eth1"/> | ||
</forward> | ||
</network> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<domain type="qemu"> | ||
<name>testvm</name> | ||
<memory unit="KiB">8192</memory> | ||
<os> | ||
<type>hvm</type> | ||
</os> | ||
<devices> | ||
<emulator>/usr/local/bin/qemu-x86_64</emulator> | ||
<interface type='network'> | ||
<source network='kubevirt-net'/> | ||
</interface> | ||
<interface type='network'> | ||
<source network='default'/> | ||
</interface> | ||
</devices> | ||
</domain> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters