diff --git a/docs/en/docs/StratoVirt/VM_configuration.md b/docs/en/docs/StratoVirt/VM_configuration.md index d565a4aa1d7023a07b3cc238519f01e09c612ca4..e87ef824a3ce5a60e4513bc5b8a6b32bc149dd1d 100644 --- a/docs/en/docs/StratoVirt/VM_configuration.md +++ b/docs/en/docs/StratoVirt/VM_configuration.md @@ -106,7 +106,7 @@ VM disk configuration includes the following configuration items: - **if** (optional): driver type. The default value is **none**. The block device is **none**. - **bus**: bus to which the device is to be mounted. - **addr**: IDs of the slot and function to which the device is to be mounted. -- **multifunction** (optional): whether to enable PCI multi-function. +- **multifunction** (optional): whether to enable PCI multi-function. #### Disk Configuration Modes @@ -116,14 +116,14 @@ The lightweight VM configuration format is as follows: ``` -drive id=drive_id,file=path_on_host[,readonly=off][,direct=off][,throttling.iops-total=200][,if=none] --device virtio-blk-device,drive=drive_id[,iothread=iothread1][,serial=serial_num] +-device virtio-blk-device,drive=drive_id,id=blkid[,iothread=iothread1][,serial=serial_num] ``` The standard VM configuration format is as follows: ``` -drive id=drive_id,file=path_on_host[,readonly=off][,direct=off][,throttling.iops-total=200][,if=none] --device virtio-blk-pci,drive=drive_id,bus=pcie.0,addr=0x3.0x0[,iothread=iothread1,][serial=serial_num][,multifunction=on] +-device virtio-blk-pci,drive=drive_id,bus=pcie.0,addr=0x3.0x0,id=blkid[,iothread=iothread1,][serial=serial_num][,multifunction=on] ``` The following describes the **throttling.iops-total** and **iothread** configuration items: @@ -176,6 +176,7 @@ VM NIC configuration includes the following configuration items: > Before using the network, run the following commands to configure the host bridge and tap device: > > ``` +> $ yum install -y bridge-utils iproute net-tools > $ brctl addbr qbr0 > $ ip tuntap add tap0 mode tap > $ brctl addif qbr0 tap0 @@ -249,7 +250,7 @@ A serial port is a VM device used to transmit data between hosts and VMs. To use Or: ``` --chardev backend[,path=path,server,nowait] +-chardev backend[,path=path,server,nowait] ``` ### Console Device Configuration diff --git "a/docs/zh/docs/StratoVirt/\350\231\232\346\213\237\346\234\272\351\205\215\347\275\256.md" "b/docs/zh/docs/StratoVirt/\350\231\232\346\213\237\346\234\272\351\205\215\347\275\256.md" index 435fb0f09cd504812336af441af018c3efdb3b3a..40585d620ef2febab8736de7cfbd687af0cdd765 100644 --- "a/docs/zh/docs/StratoVirt/\350\231\232\346\213\237\346\234\272\351\205\215\347\275\256.md" +++ "b/docs/zh/docs/StratoVirt/\350\231\232\346\213\237\346\234\272\351\205\215\347\275\256.md" @@ -117,14 +117,14 @@ StratoVirt 能够运行的最小配置为: ``` -drive id=drive_id,file=path_on_host[,readonly=off][,direct=off][,throttling.iops-total=200][,if=none] --device virtio-blk-device,drive=drive_id[,iothread=iothread1][,serial=serial_num] +-device virtio-blk-device,drive=drive_id,id=blkid[,iothread=iothread1][,serial=serial_num] ``` 标准虚拟机配置格式为: ``` -drive id=drive_id,file=path_on_host[,readonly=off][,direct=off][,throttling.iops-total=200][,if=none] --device virtio-blk-pci,drive=drive_id,bus=pcie.0,addr=0x3.0x0[,iothread=iothread1,][serial=serial_num][,multifunction=on] +-device virtio-blk-pci,drive=drive_id,bus=pcie.0,addr=0x3.0x0,id=blkid[,iothread=iothread1,][serial=serial_num][,multifunction=on] ``` 下面对throttling.iops-total和iothread两个配置项进行详细说明: @@ -177,6 +177,7 @@ iothread配置细节见[iothread配置](#iothread配置) > 使用网络前请先使用如下命令配置好 host 网桥和 tap 设备。 > > ``` +> $ yum install -y bridge-utils iproute net-tools > $ brctl addbr qbr0 > $ ip tuntap add tap0 mode tap > $ brctl addif qbr0 tap0 @@ -250,7 +251,7 @@ iothread配置细节见[iothread配置](#iothread配置) 或者: ``` --chardev backend[,path=path,server,nowait] +-chardev backend[,path=path,server,nowait] ``` ### console 设备配置