Add: source-dev and fstype args && Remove: pty
This commit is contained in:
@@ -8,34 +8,6 @@ chmod +x create-vm.sh
|
||||
./create-vm.sh --bootstrap-env env
|
||||
vi env
|
||||
sudo ./create-vm.sh -e ./env
|
||||
sudo less -R /tmp/create-vm/Ubuntu22.04/serial.log # For observing the test
|
||||
```
|
||||
As a result you will get something like that:
|
||||
```
|
||||
Using uid:0, gid:0.
|
||||
Writing a byte at a time...done
|
||||
Writing intelligently...done
|
||||
Rewriting...done
|
||||
Reading a byte at a time...done
|
||||
Reading intelligently...done
|
||||
start 'em...done...done...done...done...done...
|
||||
Create files in sequential order...done.
|
||||
Stat files in sequential order...done.
|
||||
Delete files in sequential order...done.
|
||||
Create files in random order...done.
|
||||
Stat files in random order...done.
|
||||
Delete files in random order...done.
|
||||
Version 2.00 ------Sequential Output------ --Sequential Input- --Random-
|
||||
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
|
||||
Name:Size etc /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
|
||||
Ubuntu22 4G 751k 97 155m 33 35.4m 12 974k 96 41.8m 8 227.2 11
|
||||
Latency 15686us 203ms 367ms 358ms 282ms 396ms
|
||||
Version 2.00 ------Sequential Create------ --------Random Create--------
|
||||
Ubuntu22 -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
|
||||
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
|
||||
16 1 2 +++++ +++ 724249376 2 1 1 +++++ +++ 724249376 1
|
||||
Latency 1858ms 46383us 1105ms 2012ms 2620us 2165ms
|
||||
1.98,2.00,Ubuntu22,1,1700182713,4G,,8192,5,751,97,159132,33,36287,12,974,96,42847,8,227.2,11,16,,,,,49,2,+++++,+++,95,2,45,1,+++++,+++,78,1,15686us,203ms,367ms,358ms,282ms,396ms,1858ms,46383us,1105ms,2012ms,2620us,2165ms
|
||||
```
|
||||
|
||||
### Usage of `./create-vm.sh`:
|
||||
@@ -62,6 +34,10 @@ required_args:
|
||||
-p, --prefix PREFIX network prefix
|
||||
-g, --gateway GATEWAY ip address of network gateway
|
||||
-d, --dns DNS ip address of dns server
|
||||
-S, --source-dev SOURCE_DEV size of the created image for
|
||||
performing a test on it
|
||||
-f, --fstype FSTYPE filesystem type
|
||||
default: xfs
|
||||
-t, --test-suite TEST_UTIL what should be used for the test
|
||||
(bonnie++ and iozone are available)
|
||||
default: bonnie++
|
||||
@@ -96,10 +72,12 @@ env example:
|
||||
PREFIX=24
|
||||
GATEWAY=192.168.122.1
|
||||
DNS=8.8.8.8
|
||||
SOURCE_DEV=/dev/sdx # CHANGE IT!
|
||||
FSTYPE=xfs
|
||||
TEST_UTIL=bonnie++
|
||||
TEST_UTIL_ARGS="-u 0"
|
||||
RM=true
|
||||
PUBKEY=/home/cloudadmin/.ssh/id_rsa.pub
|
||||
PUBKEY=/root/.ssh/id_rsa.pub
|
||||
VNC_PASSWORD=PASSWD1!
|
||||
|
||||
|
||||
@@ -131,6 +109,9 @@ cloud-init example:
|
||||
groups: sudo
|
||||
shell: /bin/bash
|
||||
runcmd:
|
||||
- wipefs -a /dev/{{DEV_INTERNAL_NAME}}
|
||||
- mkfs.{{FSTYPE}} /dev/{{DEV_INTERNAL_NAME}}
|
||||
- mkdir -p {{TESTDIR}}
|
||||
- mount /dev/{{DEV_INTERNAL_NAME}} {{TESTDIR}}
|
||||
- {{TEST_UTIL}} {{TEST_UTIL_ARGS}}
|
||||
```
|
||||
Reference in New Issue
Block a user