zoukankan      html  css  js  c++  java
  • virsh console ubuntu

    ubuntu guest setting

      systemctl disable systemd-networkd-wait-online
      systemctl enable serial-getty@ttyS0.service
      systemctl start serial-getty@ttyS0.service
    

    login by console

      virsh console ubuntu1
    

    exit guest

      ctrl + ]
    

    virsh xml define

    <domain type='kvm' >
      <name>slb1</name>
      <memory unit='MiB'>1024</memory>
      <currentMemory unit='MiB'>1024</currentMemory>
      <vcpu placement='static'>1</vcpu>
      <os>
        <type arch='x86_64' machine='pc'>hvm</type>
        <boot dev='hd'/>
        <!--boot dev='cdrom'/--> 
      </os>
      <features>
        <acpi/>
        <apic/>
      </features>
      <on_poweroff>destroy</on_poweroff>
      <on_reboot>restart</on_reboot>
      <on_crash>destroy</on_crash>
      <devices>
        <disk type='file' device='disk'>
          <driver name='qemu' type='qcow2'/>
          <source file='/opt/vms/slb1.qcow2'/>
          <target dev='hda' bus='ide'/>
        </disk>
    
        <interface type='network'>
          <source network='default'/>
          <target dev='vnet-slb1'/>
        </interface>
    
        <serial type='pty'>
          <target port='0'/>
        </serial>
        <console type='pty'>
          <target type='serial' port='0'/>
        </console>
    
        <input type='mouse' bus='ps2'>
          <alias name='input0'/>
        </input>
    
        <input type='keyboard' bus='ps2'>
          <alias name='input1'/>
        </input>
    
        <serial type='pty'>
          <target port='0'/>
        </serial>
        <console type='pty'>
          <target type='serial' port='0'/>
        </console>
    
        <graphics type='vnc' port='-1' listen = '0.0.0.0' keymap='en-us'/>
    
      </devices>
    </domain>
    

    end.

  • 相关阅读:
    JS——正则案例
    JS——正则
    JS——旋转木马
    JS——缓动框架的问题
    JS——缓慢动画封装案例
    JS——缓慢动画封装
    JS——隐式全局变量
    JS——样式获取的兼容写法
    JS——冒泡案例
    JS——事件冒泡与捕获
  • 原文地址:https://www.cnblogs.com/sixloop/p/8044785.html
Copyright © 2011-2022 走看看