vm模板


  1 'kvm' id='6' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  2   vm-test
  3   e0cccc71-1a93-d008-15c0-60155feecb01
  4   'KiB'>2097152
  5   'KiB'>2097152
  6   'static'>2
  7   
  8     /machine
  9   
 10   
 11     'x86_64' machine='pc-i440fx-rhel7.6.0'>hvm
 12     'hd'/>
 13   
 14   
 15     
 16     
 17   
 18   'host-passthrough' check='none'/>
 19   'utc'/>
 20   destroy
 21   restart
 22   restart
 23   
 24     /usr/libexec/qemu-kvm
 25     'file' device='disk'>
 26       'qemu' type='qcow2'/>
 27       '/root/qemu/CentOS-Stream-GenericCloud-9-20220302.0.x86_64.qcow2_v2' index='1'/>
 28       'file' index='2'>
 29         'qcow2'/>
 30         '/root/qemu/CentOS-Stream-GenericCloud-9-20220302.0.x86_64.qcow2'/>
 31         
 32       
 33       'vda' bus='virtio'/>
 34       'virtio-disk0'/>
 35       
'pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> 36 37 'ide' index='0'> 38 'ide'/> 39
'pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> 40 41 'scsi' index='0' model='virtio-scsi'> 42 'scsi0'/> 43
'pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/> 44 45 'usb' index='0' model='piix3-uhci'> 46 'usb'/> 47
'pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> 48 49 'pci' index='0' model='pci-root'> 50 'pci.0'/> 51 52 'virtio-serial' index='0'> 53 'virtio-serial0'/> 54
'pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> 55 56 <interface type='network'> 57 '00:16:3e:1a:b3:4a'/> 58 'examplenetwork' portid='f4939d94-361b-473a-aa53-29473bbbc89a' bridge='virbr100'/> 59 'vnet0'/> 60 'virtio'/> 61 'net0'/> 62
'pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> 63 interface> 64 'pty'> 65 '/dev/pts/1'/> 66 'isa-serial' port='0'> 67 'isa-serial'/> 68 69 'serial0'/> 70 71 'pty' tty='/dev/pts/1'> 72 '/dev/pts/1'/> 73 'serial' port='0'/> 74 'serial0'/> 75 76 'unix'> 77 'bind' path='/var/lib/libvirt/qemu/f16x86_64.agent'/> 78 'virtio' name='org.qemu.guest_agent.0' state='connected'/> 79 'channel0'/> 80
'virtio-serial' controller='0' bus='0' port='1'/> 81 82 'mouse' bus='ps2'> 83 'input0'/> 84 85 'keyboard' bus='ps2'> 86 'input1'/> 87 88 'vnc' port='5900' autoport='yes' listen='127.0.0.1' sharePolicy='allow-exclusive'> 89 'address' address='127.0.0.1'/> 90 91
 1 '1'>
 2   examplenetwork
 3   9fd177fd-3f13-420d-baf6-bf211f730524
 4   'nat'>
 5     
 6       '1024' end='65535'/>
 7     
 8   
 9   'virbr100' stp='on' delay='0'/>
10   '52:54:00:6d:9e:2d'/>
11   '192.168.200.1' netmask='255.255.255.0'>
12   
13 
1 title CentOS (4.18.0-305.7.1.el8_4.x86_64) 8 kernel
2 version 4.18.0-305.7.1.el8_4.x86_64
3 linux /vmlinuz-4.18.0-305.7.1.el8_4.x86_64
4 initrd /initramfs-4.18.0-305.7.1.el8_4.x86_64.img $tuned_initrd
5 options $kernelopts $tuned_params nokaslr
6 id centos-20210629220338-4.18.0-305.7.1.el8_4.x86_64
7 grub_users $grub_users
8 grub_arg --unrestricted
9 grub_class kernel