Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scripts to setup CC with qemu on a single node #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amshinde
Copy link

@amshinde amshinde commented Aug 4, 2024

Scripts create a VM image with TDX support, installs required dependencies such as docker and kubernetes, sets up proxy setttings for systemd services and provides instructions to launch a kubernetes cluster.

Note:
This is a work-in-progress PR intended to get initial feedback on the workflow. While parts of it are verified, there still needs to be additional verification done.

@amshinde
Copy link
Author

amshinde commented Aug 4, 2024

@ruomengh Please take a look.

@amshinde amshinde marked this pull request as draft August 4, 2024 08:14
@amshinde amshinde force-pushed the setup-cc-qemu branch 2 times, most recently from 254280f to 9f94ca1 Compare August 8, 2024 01:49
@amshinde amshinde marked this pull request as ready for review August 13, 2024 01:57
}

install_pre_reqs() {
sudo -E apt install -y qemu-utils guestfs-tools virtinst genisoimage libvirt-daemon-system libvirt-daemon cloud-init
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amshinde Qemu and libvirt should already be installed via Canonical before running setup_cc.sh.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I just added this in case these are uninstalled. In any case if these are already installed, this will just be no-op.

deployment/bare-metal/setup_cc.sh Show resolved Hide resolved
deployment/bare-metal/README.md Outdated Show resolved Hide resolved
@ruomengh
Copy link
Contributor

@amshinde Seems the launch_k8s or launch_k3s part is not implemented yet. Also a few inline comments. Thanks.

deployment/bare-metal/README.md Outdated Show resolved Hide resolved
deployment/bare-metal/README.md Outdated Show resolved Hide resolved
deployment/bare-metal/create_k8s_node.sh Outdated Show resolved Hide resolved
deployment/bare-metal/install_dependencies.sh Show resolved Hide resolved
deployment/bare-metal/install_dependencies.sh Outdated Show resolved Hide resolved
deployment/bare-metal/install_dependencies.sh Outdated Show resolved Hide resolved
@amshinde amshinde force-pushed the setup-cc-qemu branch 2 times, most recently from 8c07a99 to bd2b7a7 Compare August 20, 2024 00:03
@amshinde amshinde changed the title WIP: Add scripts to setup CC with qemu on a single node Add scripts to setup CC with qemu on a single node Sep 6, 2024
@amshinde
Copy link
Author

amshinde commented Sep 6, 2024

@ruomengh I have addressed your review comments last week itself. Any pending typos including changing all usage of apt-get to apt has been done as well. Please take a look.

Copy link
Contributor

@ruomengh ruomengh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Scripts create a VM image with TDX support, install required
dependencies and start qemu with confidential cluster running on it.

Signed-off-by: Archana Shinde <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants