Skip to content

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

Open
amshinde wants to merge 1 commit into
cc-api:mainfrom
amshinde:setup-cc-qemu
Open

Add scripts to setup CC with qemu on a single node#7
amshinde wants to merge 1 commit into
cc-api:mainfrom
amshinde:setup-cc-qemu

Conversation

@amshinde
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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.

Comment thread deployment/bare-metal/setup_cc.sh
Comment thread deployment/bare-metal/README.md Outdated
@ruomengh
Copy link
Copy Markdown

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

Comment thread deployment/bare-metal/README.md Outdated
Comment thread deployment/bare-metal/README.md Outdated
Comment thread deployment/bare-metal/create_k8s_node.sh Outdated
Comment thread deployment/bare-metal/install_dependencies.sh
Comment thread deployment/bare-metal/install_dependencies.sh Outdated
Comment thread deployment/bare-metal/install_dependencies.sh Outdated
@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
Copy Markdown
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
Copy Markdown

@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 <archana.m.shinde@intel.com>
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