[virt-tools-list] How to create a virtio-serial console
Cole Robinson
crobinso at redhat.com
Tue Dec 9 20:54:17 UTC 2014
On 12/09/2014 03:50 PM, Michael Schwager wrote:
> Hello,
> I have been attempting to create a virtual machine with a virtio console.
> However, it does not appear to be working as I've read in, for example,
> http://www.redhat.com/archives/libvir-list/2012-May/msg00964.html . After I
> create my virtual machine, no devices appear on the host. What am I doing wrong?
>
> Here is my virt-install:
> virt-install \
> --ram=1024 \
> --accelerate \
> --name testola \
> --vcpus=1,maxvcpus=2 \
> --cpuset=auto \
> --pxe \
> --os-type=linux \
> --os-variant=rhel7 \
> --disk path=/var/kvm/testola.img \
> --boot=hd,network,menu=on \
> -v \
> --network bridge=br0 \
> --graphics none \
> --channel pty,target_type=virtio \
> --console pty,target_type=virtio
>
> Once I run that virt-install, I expect to see files/devices in
> /sys/class/virtio-ports and /dev/vport0?? . But there are none.
>
You said 'host' above, are you looking inside the VM or on your host? Those
paths should be in your VM. On my fedora21 VM if have /dev/vport* and
/dev/virtio-ports/*
What's your guest OS? Make sure it has the virtio-console module loaded
- Cole
More information about the virt-tools-list
mailing list