help about libvirt console

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list,

My xml is like below, it works well with "virsh console qemu1"


<domain type='kvm'>
  <name>qemu1</name>
  <memory>1024000</memory>
  <currentMemory>512000</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc'>hvm</type>
    <boot dev='hd' />
    <kernel>/boot/bzImage</kernel>
    <cmdline>console=ttyS0 root=/dev/hda rw</cmdline>
  </os>
  <devices>
    <disk type='file' device='disk'>
      <source file='/boot/test.img.raw' />
      <target dev='hda' bus='ide' />
    </disk>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
  </devices>
</domain>


I want to use virtio console, so I change

    <console type='pty'>
      <target type='virtio' port='0'/>

then
I do
#virsh define newvm.xml
#virsh start qemu1
#virsh console qemu1

it show nothing

any help for the virtio console seting?

Lei

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux