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

[libvirt-users] help about libvirt console



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


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