Skip to content

Commit

Permalink
2024.12.06
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS committed Dec 6, 2024
1 parent d1a2a4f commit 7de2f62
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 27 deletions.
29 changes: 14 additions & 15 deletions docs/en/guide/pve/pve_kvm.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ outline: deep

## SSH Login Instructions

The virtual machines created through KVM virtualization do not have the username ```root``` by default. To switch to the root user, you need to execute ```sudo -i``` .
When KVM virtualization opens a virtual machine, the default generated username **can be something other than** ```root```, in which case you need to run ```sudo -i``` to switch to root!

**Default allow logging in with the username ```root```, and the default root password is ```password``` or ```oneclickvirt```. You can give it a try.**
If the default username **is not ```root```, the default unset root password is ```password``` or ```oneclickvirt```**.

Once you've logged in via SSH and switched to root privileges, it's crucial to change the root password. You can use the following command to do so.

Command:
**After logging into SSH and switching to root privileges, be sure to change the root password**, which can be changed using the following command:

```bash
bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/tools/main/root.sh) [PASSWORD]
```

## Partial Notes

**Commands to set up the testing environment for executing this project are as follows:**
Expand Down Expand Up @@ -108,7 +107,7 @@ Note that the Password here should be a mix of English and numbers only, and sta
### Test Example

```shell
./buildvm.sh 111 test1 oneclick123 1 512 10 40001 40002 40003 50000 50025 debian11 local N
./buildvm.sh 111 root oneclick123 1 512 10 40001 40002 40003 50000 50025 debian11 local N
```

After setup is completed, you can execute ```cat vm111``` to view the information or check the NOTES section for the corresponding VM on the WEB interface.
Expand All @@ -118,7 +117,7 @@ Below is the information for the example VM that has been set up:
| Attribute | Value |
|-------------------------|----------------|
| VMID | 111 |
| SSH Username | test1 |
| SSH Username | root |
| SSH Password | oneclick123 |
| Number of CPU Cores | 1 |
| Memory Size | 512MB |
Expand Down Expand Up @@ -258,15 +257,15 @@ Note that the Password here should be a mix of English and numbers only, and sta
#### Test Example

```shell
./buildvm_extra_ip.sh 152 test1 oneclick123 1 1024 10 debian12 local N
./buildvm_extra_ip.sh 152 root oneclick123 1 1024 10 debian12 local N
```

The above command is used to create a virtual machine with a dedicated IPv4 address.

| Attribute | Value |
|------------|----------------|
| VMID | 152 |
| Username | test1 |
| Username | root |
| Password | oneclick123 |
| CPU | 1 core |
| Memory | 1024MB |
Expand Down Expand Up @@ -317,15 +316,15 @@ Note that the PASSWORD here should be a mix of English and numbers only, and sta
#### Test Example

```shell
./buildvm_manual_ip.sh 152 test1 oneclick123 1 1024 10 debian12 local a.b.c.d/24 N
./buildvm_manual_ip.sh 152 root oneclick123 1 1024 10 debian12 local a.b.c.d/24 N
```

The above command is used to create a virtual machine with an independent IPV4 address.

| Attribute | Value |
|--------------|-------------------|
| VMID | 152 |
| Username | test1 |
| Username | root |
| Password | oneclick123 |
| CPU | 1 core |
| Memory | 1024MB |
Expand Down Expand Up @@ -371,15 +370,15 @@ Note that the PASSWORD here should be a mix of English and numbers only, and sta
#### Test Example

```shell
./buildvm_fullnat_ip.sh 152 test1 oneclick123 1 1024 10 debian12 local a.b.c.d N
./buildvm_fullnat_ip.sh 152 root oneclick123 1 1024 10 debian12 local a.b.c.d N
```

The above command is used to create a virtual machine with an independent IPV4 address.

| Attribute | Value |
|--------------|-------------------|
| VMID | 152 |
| Username | test1 |
| Username | root |
| Password | oneclick123 |
| CPU | 1 core |
| Memory | 1024MB |
Expand Down Expand Up @@ -439,15 +438,15 @@ Note that the password here should be a mix of English and numbers only, and sta
#### Test Example

```shell
./buildvm_onlyv6.sh 152 test1 oneclick123 1 1024 10 debian12 local
./buildvm_onlyv6.sh 152 root oneclick123 1 1024 10 debian12 local
```

The above command is used to create a virtual machine with only IPv6 addresses.

| Parameter | Value |
|-------------|-----------------|
| VMID | 152 |
| Username | test1 |
| Username | root |
| Password | oneclick123 |
| CPU | 1 core |
| Memory | 1024MB |
Expand Down
24 changes: 12 additions & 12 deletions docs/guide/pve/pve_kvm.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ outline: deep

## SSH登录说明

KVM虚拟化开设出的虚拟机,**默认生成的用户名不是```root```你需要执行```sudo -i```切换为root用户**
KVM虚拟化开设出的虚拟机,默认生成的用户名**可以不是**```root```此时你需要执行```sudo -i```切换为root用户

**默认支持用户名```root```登录,默认的root密码是```password``````oneclickvirt```,你也可以先试试**
默认设置的用户名**不是```root```时,未经过设置的默认的root密码是```password``````oneclickvirt```**

**登录SSH切换为root权限后,一定要修改root密码**,可以使用以下命令修改

Expand Down Expand Up @@ -125,7 +125,7 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
### 测试示例

```shell
./buildvm.sh 111 test1 oneclick123 1 512 10 40001 40002 40003 50000 50025 debian11 local N
./buildvm.sh 111 root oneclick123 1 512 10 40001 40002 40003 50000 50025 debian11 local N
```

开设完毕可执行```cat vm111```查看信息,或到WEB端对应VM的NOTES中查看
Expand All @@ -135,7 +135,7 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
| 属性 ||
|-------------------------|----------------|
| VMID | 111 |
| SSH登录的用户名 | test1 |
| SSH登录的用户名 | root |
| SSH登录的密码 | oneclick123 |
| CPU核数 | 1 |
| 内存大小 | 512MB |
Expand Down Expand Up @@ -296,15 +296,15 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
#### 测试示例

```shell
./buildvm_extra_ip.sh 152 test1 oneclick123 1 1024 10 debian12 local N
./buildvm_extra_ip.sh 152 root oneclick123 1 1024 10 debian12 local N
```

上述命令意义为开设一个带独立IPV4地址的虚拟机

| 属性 ||
|------------|----------------|
| VMID | 152 |
| 用户名 | test1 |
| 用户名 | root |
| 密码 | oneclick123 |
| CPU | 1核 |
| 内存 | 1024MB |
Expand Down Expand Up @@ -363,15 +363,15 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
#### 测试示例

```shell
./buildvm_manual_ip.sh 152 test1 oneclick123 1 1024 10 debian12 local a.b.c.d/24 N
./buildvm_manual_ip.sh 152 root oneclick123 1 1024 10 debian12 local a.b.c.d/24 N
```

上述命令意义为开设一个带独立IPV4地址的虚拟机

| 属性 ||
|--------------|-------------------|
| VMID | 152 |
| 用户名 | test1 |
| 用户名 | root |
| 密码 | oneclick123 |
| CPU | 1核 |
| 内存 | 1024MB |
Expand Down Expand Up @@ -426,15 +426,15 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
#### 测试示例

```shell
./buildvm_fullnat_ip.sh 152 test1 oneclick123 1 1024 10 debian12 local a.b.c.d N
./buildvm_fullnat_ip.sh 152 root oneclick123 1 1024 10 debian12 local a.b.c.d N
```

上述命令意义为开设一个带独立IPV4地址的虚拟机

| 属性 ||
|--------------|-------------------|
| VMID | 152 |
| 用户名 | test1 |
| 用户名 | root |
| 密码 | oneclick123 |
| CPU | 1核 |
| 内存 | 1024MB |
Expand Down Expand Up @@ -501,15 +501,15 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
#### 创建示例

```shell
./buildvm_onlyv6.sh 152 test1 oneclick123 1 1024 10 debian12 local
./buildvm_onlyv6.sh 152 root oneclick123 1 1024 10 debian12 local
```

上述命令意义为开设一个纯IPV6地址的虚拟机

| 参数 ||
|--------------|------------------|
| VMID | 152 |
| 用户名 | test1 |
| 用户名 | root |
| 密码 | oneclick123 |
| CPU | 1核 |
| 内存 | 1024MB |
Expand Down

0 comments on commit 7de2f62

Please sign in to comment.