Difference between revisions of "Kvm test"
(→kvm volume) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 32: | Line 32: | ||
</pre> |
</pre> |
||
= kvm volume = |
= kvm volume = |
||
+ | == lvm physical volume == |
||
+ | Eerst de testuitvoer van het physical volume. |
||
<pre> |
<pre> |
||
root@sauron:~# pvcreate /dev/sda6 |
root@sauron:~# pvcreate /dev/sda6 |
||
Line 52: | Line 54: | ||
Total: 1 [226.66 GiB] / in use: 0 [0 ] / in no VG: 1 [226.66 GiB] |
Total: 1 [226.66 GiB] / in use: 0 [0 ] / in no VG: 1 [226.66 GiB] |
||
root@sauron:~# |
root@sauron:~# |
||
+ | </pre> |
||
+ | == lvm logical volume == |
||
+ | En vervolgens de testuitvoer over de logical volumes: |
||
+ | <pre> |
||
+ | root@sauron:~# lvdisplay /dev/dev-kvm/support |
||
+ | --- Logical volume --- |
||
+ | LV Name /dev/dev-kvm/support |
||
+ | VG Name dev-kvm |
||
+ | LV UUID hUKCpG-qOP4-goMD-dmIJ-bfJg-I0r7-kBw7v1 |
||
+ | LV Write Access read/write |
||
+ | LV Status available |
||
+ | # open 1 |
||
+ | LV Size 16.00 GiB |
||
+ | Current LE 4096 |
||
+ | Segments 1 |
||
+ | Allocation inherit |
||
+ | Read ahead sectors auto |
||
+ | - currently set to 256 |
||
+ | Block device 251:4 |
||
+ | |||
+ | root@sauron:~# |
||
+ | </pre> |
||
+ | |||
+ | = virt-top = |
||
+ | <pre> |
||
+ | virt-top 21:16:59 - x86_64 8/8CPU 2527MHz 7992MB |
||
+ | 1 domains, 1 active, 1 running, 0 sleeping, 0 paused, 0 inactive D:0 O:0 X:0 |
||
+ | CPU: 0.1% Mem: 128 MB (128 MB by guests) |
||
+ | |||
+ | ID S RDRQ WRRQ RXBY TXBY %CPU %MEM TIME NAME |
||
+ | 3 R 0 0 6096 0 0.1 1.0 3:04.30 test01 |
||
+ | </pre> |
||
+ | = virtueel console = |
||
+ | <pre> |
||
+ | root@sauron:~# virsh console test01 |
||
+ | Connected to domain test01 |
||
+ | Escape character is ^] |
||
+ | |||
+ | Ubuntu 10.04 LTS test01 ttyS0 |
||
+ | |||
+ | test01 login: tester |
||
+ | Password: |
||
+ | Last login: Thu Jun 17 23:11:18 CEST 2010 on ttyS0 |
||
+ | Linux test01 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010 x86_64 GNU/Linux |
||
+ | Ubuntu 10.04 LTS |
||
+ | |||
+ | Welcome to the Ubuntu Server! |
||
+ | * Documentation: http://www.ubuntu.com/server/doc |
||
+ | |||
+ | System information as of Thu Jun 17 23:19:35 CEST 2010 |
||
+ | |||
+ | System load: 0.0 Memory usage: 33% Processes: 75 |
||
+ | Usage of /: 5.5% of 15.03GB Swap usage: 0% Users logged in: 0 |
||
+ | |||
+ | Graph this data and manage this system at https://landscape.canonical.com/ |
||
+ | |||
+ | 6 packages can be updated. |
||
+ | 6 updates are security updates. |
||
+ | |||
+ | tester@test01:~$ |
||
</pre> |
</pre> |
||
<hr> |
<hr> |
Latest revision as of 22:11, 17 June 2010
Contents
Bridge van de netwerkinterface
Na de aanpassing van de configuratie:
udell-kvm:~# /etc/init.d/networking restart udell-kvm:~# ifconfig
br0 Link encap:Ethernet HWaddr 00:1d:09:ce:71:43 inet addr:10.21.22.4 Bcast:10.21.22.31 Mask:255.255.255.224 inet6 addr: fe80::21d:9fe:fece:7143/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:41761 errors:0 dropped:0 overruns:0 frame:0 TX packets:38081 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8146503 (7.7 MiB) TX bytes:37966761 (36.2 MiB) eth0 Link encap:Ethernet HWaddr 00:1d:09:ce:71:43 inet6 addr: fe80::21d:9ff:febe:7143/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:61041 errors:0 dropped:0 overruns:0 frame:0 TX packets:52944 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:37905144 (36.1 MiB) TX bytes:39143902 (37.3 MiB) Interrupt:17 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:280 (280.0 B) TX bytes:280 (280.0 B)
kvm volume
lvm physical volume
Eerst de testuitvoer van het physical volume.
root@sauron:~# pvcreate /dev/sda6 Physical volume "/dev/sda6" successfully created root@sauron:~# pvdisplay "/dev/sda6" is a new physical volume of "226.66 GiB" --- NEW Physical volume --- PV Name /dev/sda6 VG Name PV Size 226.66 GiB Allocatable NO PE Size 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID E873tT-F3zW-rMM9-CJ4q-Lf6r-ZYEi-kZsojC root@sauron:~# pvscan PV /dev/sda6 lvm2 [226.66 GiB] Total: 1 [226.66 GiB] / in use: 0 [0 ] / in no VG: 1 [226.66 GiB] root@sauron:~#
lvm logical volume
En vervolgens de testuitvoer over de logical volumes:
root@sauron:~# lvdisplay /dev/dev-kvm/support --- Logical volume --- LV Name /dev/dev-kvm/support VG Name dev-kvm LV UUID hUKCpG-qOP4-goMD-dmIJ-bfJg-I0r7-kBw7v1 LV Write Access read/write LV Status available # open 1 LV Size 16.00 GiB Current LE 4096 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 251:4 root@sauron:~#
virt-top
virt-top 21:16:59 - x86_64 8/8CPU 2527MHz 7992MB 1 domains, 1 active, 1 running, 0 sleeping, 0 paused, 0 inactive D:0 O:0 X:0 CPU: 0.1% Mem: 128 MB (128 MB by guests) ID S RDRQ WRRQ RXBY TXBY %CPU %MEM TIME NAME 3 R 0 0 6096 0 0.1 1.0 3:04.30 test01
virtueel console
root@sauron:~# virsh console test01 Connected to domain test01 Escape character is ^] Ubuntu 10.04 LTS test01 ttyS0 test01 login: tester Password: Last login: Thu Jun 17 23:11:18 CEST 2010 on ttyS0 Linux test01 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010 x86_64 GNU/Linux Ubuntu 10.04 LTS Welcome to the Ubuntu Server! * Documentation: http://www.ubuntu.com/server/doc System information as of Thu Jun 17 23:19:35 CEST 2010 System load: 0.0 Memory usage: 33% Processes: 75 Usage of /: 5.5% of 15.03GB Swap usage: 0% Users logged in: 0 Graph this data and manage this system at https://landscape.canonical.com/ 6 packages can be updated. 6 updates are security updates. tester@test01:~$
Terug naar: KVM