Skip to content

Secondary-VM/Secondary-VM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Secondary-VM

Prerequisites

  • A host machine that is installed and enabled with the virtualization modules and packages.
  • Suggested host/guest OS: Ubuntu 20.04 or newer, RHEL 8.5 or newer.
  • A primary VM disk image that contains a client daemon.
  • A secondary drive that is hotplugged to the primary VM and contains a secondary VM disk image.
  • The host machine contains secVmTemplate.xml in /var/lib/libvirt/.

To run AMD-based confidential primary and secondary VMs, you need:

Steps to run a secVM demo

  1. Compile the secVM-enabled Libvirt code: https://github.com/Secondary-VM/libvirt/tree/dev
  2. In your build environment, run the virtlockd, virtlogd, and libvirtd binaries.
  3. Spawn a primary VM: ./virsh create Secondary-VM/vm-example/primaryVM01.xml
  4. Spawn a secondary VM by running secondary_vm commands in the primary VM. For example, if the primary VM requests to spawn/create an encrypted secondary VM with 2 vCPUs, 4 GB memory, and using secVM1.img raw disk image, the command is: sudo ./secondary_vm -c 2 -m 4 -d secVM1.img -t raw -e 1 create.

What the vm-example folder contains:

License

Apache License 2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages