Create your own virtual machine

Who did this?

Please give your warm applause to NorthernLights

Note

Contact Lixiang Chen if you need any help to use this server.

Create your own VM

Currently, 45.52.27.89 has PVE(Proxmox Virtual Environment) installed, which can isolate CPU and storage resources through virtualization. Each users can create independent VM instances which won't interfere with each other. Additionally, if the operating system becomes corrupted, user can maintain them via the PVE interface without affecting the host system.

Quick Start

If you have no requirements for resource isolation or distributed environments, you can directly connect to a pre-configured public machine via the below jump server. This user has root privileges and you can add users as needed.

First, generate SSH Key if none exists:

ssh-keygen -t ed25519  # Press Enter to accept default settings

Then edit ~/.ssh/config and upload the key:

Host aliyun-jump
  HostName 106.14.192.92
  User jump
  Port 10092

Host ubuntu-dev
  User ubuntu  # Password is eWNjc2IK
  HostName 10.10.10.102
  ProxyJump aliyun-jump
ssh-copy-id -i ~/.ssh/xxx.pub aliyun-jump  # Password is ZWdndGFydAo=

Now you can login via ssh ubuntu-dev. After that, you can create your own user and login with the same way.

Create new VM

Well, if you need to create your own VM, please read the following guide.

First, login into PVE. The username and password are root and eWNjc2IK respectively.

Click the "Create VM" button in the upper-right corner, set the VM ID and Name (make sure that the ID does not conflict with existing ones). Then just click "Next" to finish the creation.

image-20250501203709250

image-20250501204837835

Debian and Ubuntu Server ISO images have been stored in local storage. To use other OS, upload them as you need.

image-20250501204209397

image-20250501204348622

How to bind CPU

TBD

Network Setting

Please configure networking following these settings during installation:

  • Subnet: 10.10.10.0/24
  • IP Address: 10.10.10.{VM_ID}
    • Example: For VM ID 123 → 10.10.10.123
  • Gateway: 10.10.10.1
  • Name Server: 114.114.114.114
  • Search domains: confusinglab.ecnu.edu.cn

image-20250501204941904

image-20250501204957978

After that, you can also login via the same jump server, remember to change the HostName and User.

Some reminder

How to Install Programs 😵‍💫

When installing compiled programs in a shared environment, running sudo make install might not be the best approach. Many libraries can use configure command to generate a Makefile to specify the installation path by adding --prefix=your_path.

If a Makefile already exists, you can also specify the installation path using make install DESTDIR=your_path.

Personally, I prefer installing programs in my /home directory and then configuring the search path accordingly.

GPU Configuration

🚥 TBD