Qemu Agent: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 40: Zeile 40:
  
 
=guestvcpus=
 
=guestvcpus=
virsh guestvcpus jupiter
+
*virsh guestvcpus jupiter
vcpus          : 0-1
+
vcpus          : 0-1
online        : 0-1
+
online        : 0-1
offlinable    : 1
+
offlinable    : 1
 +
 
 
=Links=
 
=Links=
 
*https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/chap-qemu_guest_agent
 
*https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/chap-qemu_guest_agent

Version vom 22. Juni 2021, 16:15 Uhr

Auf der VM - Installieren der Qemu Agent

  • apt install qemu-guest-agent

Stoppen der Maschine

  • virsh shutdown jupiter

Channel zur Kommunikation hinzufügen

  • virsh edit jupiter
Muss innerhalb der Device Tags sein
<channel type='unix'>
     <target type='virtio' name='org.qemu.guest_agent.1'/>
     <address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>

Starten der Maschine

  • virsh start jupiter

guestinfo

  • virsh guestinfo jupiter
user.count          : 0
os.id               : debian
os.name             : Debian GNU/Linux
os.pretty-name      : Debian GNU/Linux 10 (buster)
os.version          : 10 (buster)
os.version-id       : 10
os.machine          : x86_64
os.kernel-release   : 4.19.0-17-amd64
os.kernel-version   : #1 SMP Debian 4.19.194-1 (2021-06-10)
timezone.name       : CEST
timezone.offset     : 7200
hostname            : debian
fs.count            : 1
fs.0.name           : vda1
fs.0.mountpoint     : /
fs.0.fstype         : ext4
fs.0.total-bytes    : 8989827072
fs.0.used-bytes     : 1457864704
fs.0.disk.count     : 1
fs.0.disk.0.alias   : vda
fs.0.disk.0.device  : /dev/vda1

guestvcpus

  • virsh guestvcpus jupiter
vcpus          : 0-1
online         : 0-1
offlinable     : 1

Links